/* Touch-first controls, without expanding the initial JavaScript bundle. */
.header .brand{width:max-content;max-width:100%;justify-self:start}.display-toggle{display:inline-flex}.header-preferences{display:none;position:absolute;right:0;top:calc(100% + .65rem);z-index:45;width:21rem;max-width:calc(100vw - 1.7rem);padding:1rem;background:var(--surface);border:1px solid var(--line);border-radius:1.25rem;box-shadow:0 12px 42px #16284130}.header-preferences.is-open{display:grid;gap:1rem}.prefs-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:1.05rem}.prefs-heading .icon-button{width:2.75rem;height:2.75rem}.preference-field{display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:1rem}.preference-field>span{font-weight:600}.preference-field select{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:.75rem;padding:.65rem;min-height:2.75rem;max-width:12rem}.theme-buttons{display:flex;padding:.2rem;gap:.1rem;background:var(--surface-alt,#edf2f9);border-radius:1rem}.theme-buttons button{min-height:2.75rem;padding:.45rem .65rem;border-radius:.8rem;background:transparent;color:var(--muted);font-size:.95rem}.theme-buttons button.active{color:white;background:var(--blue);box-shadow:0 1px 4px #14283c20}.preference-info{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:2.75rem;font-size:1rem;color:var(--blue);background:none;text-align:left}.header{grid-template-columns:auto minmax(12rem,40rem) auto}.header-actions{z-index:50}.back-to-map{display:none}.selection-panel,.explorer{scroll-margin-top:1rem}.selection-panel:focus,.explorer:focus{outline:none}.detail-period{display:grid;gap:.25rem;padding:.7rem .85rem;margin:0 0 1rem;background:var(--blue-soft);color:var(--ink);border-radius:.8rem;border-left:3px solid var(--blue);line-height:1.35}.detail-period strong{font-size:1rem}.detail-period span{font-size:.9rem;color:var(--muted)}.detail-period.is-stale{border-color:#b17d30;background:color-mix(in srgb,#e4b54b 12%,var(--surface))}.layer-switch #rain-layer{gap:.4rem;border:1px solid transparent}.layer-switch #rain-layer.active{background:#653db4;color:white;border-color:#653db4;box-shadow:0 2px 6px #43256f24}.toggle-state{font-size:.8125rem;font-weight:750;min-width:2rem;padding:.2rem .35rem;border-radius:.45rem;background:color-mix(in srgb,currentColor 10%,transparent)}.rain-legend{display:flex;align-items:center;gap:.5rem;font-size:.95rem;color:var(--ink);margin:.65rem 0}.rain-legend[hidden]{display:none}.rain-swatch{width:1.1rem;height:1.1rem;border-radius:.35rem;background:repeating-linear-gradient(135deg,#653db4 0 5px,#a28acb 5px 7px);flex:none}.map-bottom{flex-wrap:wrap}.rain-legend{order:3;width:100%}.trip-options{overflow:hidden;padding:1.25rem}.trip-options h3{font-size:1.35rem;margin-bottom:.5rem}.trip-options>p{font-size:1rem;margin:.5rem 0 1rem;line-height:1.5}.trip-options .booking-link{font-size:1.05rem;padding:1rem}.place-grip{touch-action:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;cursor:grab}.place-tile,.city-card{ -webkit-touch-callout:none;user-select:none;-webkit-user-select:none}.sorting-places{user-select:none;-webkit-user-select:none;overscroll-behavior:none}.place-tile.is-dragging{opacity:.3;outline:2px dashed var(--blue);outline-offset:-2px;border-radius:1rem}.sort-ghost{box-shadow:0 16px 40px #16284145!important;opacity:.98}.city-label{max-width:calc(100% - 1rem)}.city-label-main{min-width:0}.city-label-main>span:not(.temp-dot){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toast{pointer-events:none;bottom:auto;top:1rem;max-width:calc(100vw - 2rem);z-index:100;font-size:1rem;padding:.7rem 1rem}.month-options{gap:.15rem}.month-option{min-width:0}.month-dot{border-radius:50%!important}.booking-link span{min-width:0}.booking-link .icon{flex-shrink:0}
@media(max-width:1120px){.header{grid-template-columns:1fr auto}.search-wrap{grid-column:1/-1;grid-row:2}}
@media(max-width:1000px){.back-to-map{display:inline-flex;align-items:center;min-height:2.75rem;margin:0 0 .4rem;padding:.5rem 0;background:transparent;color:var(--blue);font-size:1rem;font-weight:650}.selection-panel{display:block}.city-detail{padding:1.15rem}.detail-main{margin:.7rem 0}.detail-description{margin:.6rem 0 1rem}.detail-temp{font-size:4.25rem}.wear-guide{padding:.8rem}.detail-foot{padding-top:.8rem;margin-top:.8rem}.selection-panel .trip-options{margin-top:1rem}.destination-heading{margin-bottom:.6rem}.places{margin-top:1.5rem}.data-status{margin:.65rem 0}.globe-stage{scroll-margin-top:1rem}}
@media(max-width:640px){.header{padding:.65rem .85rem}.header .brand-title{font-size:1.2rem;max-width:10rem}.header-preferences{width:21rem}.header-share{width:2.75rem}.explore-controls{padding:.75rem}.outfit-filters{gap:.35rem}.outfit-chip{padding:.5rem .55rem}.map-toolbar{padding:.45rem .8rem}.map-bottom{padding:.8rem}.layer-switch{width:100%;justify-content:stretch}.layer-switch button{flex:1;justify-content:center;font-size:1rem;min-height:3rem}.legend{width:100%;margin-top:.65rem}.globe-stage{height:24rem;min-height:20rem}.detail-period{margin-bottom:.8rem}.detail-name{font-size:1.75rem}.place-grip{width:2.75rem;height:2.75rem;top:.1rem;right:.1rem}.city-cards{gap:.65rem}.city-card{padding:.85rem 2.5rem .85rem .8rem;min-height:9rem}.card-name{font-size:1.05rem;overflow-wrap:anywhere}.card-country{font-size:.9rem}.card-outfit{font-size:.9rem}.places-heading{gap:.65rem;align-items:flex-start}.places-heading h2{font-size:1.35rem}.places-heading p{font-size:.9rem;line-height:1.45;max-width:15rem}.places-actions .action-button{padding:.55rem .65rem;white-space:nowrap}.month-options{grid-template-columns:repeat(6,minmax(0,1fr));gap:.15rem}.month-option{font-size:.875rem;min-height:2.75rem}.footer{gap:.75rem;padding:1.5rem 0}.footer .data-info-link{font-size:.95rem}.header .brand-title span{display:block}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}.sort-ghost,.place-tile{transition:none!important}}

.header-preferences{max-height:calc(100dvh - 7rem);overflow:auto}.prefs-heading strong{min-width:0;line-height:1.3}.prefs-heading .icon-button{flex:none}.preference-info{border:0}.theme-buttons{background:var(--soft)}.theme-buttons button.active{background:#185ed2;color:#fff}.preference-field select{min-width:0;width:100%;max-width:12rem}.preference-field>span{flex-shrink:0}
@media(max-width:380px){.preference-field{flex-wrap:wrap}.preference-field>span{width:100%}.theme-buttons{width:100%}.theme-buttons button{flex:1}.preference-field select{max-width:100%}.prefs-heading{font-size:1rem}.header-preferences{max-width:calc(100vw - 2rem);padding:.85rem}.preference-info{font-size:.95rem}}

.back-to-map{border:0}.selection-panel .detail-period strong{font-size:1rem}
/* Compact place identity and clear, separate trip actions. */
.country-flag{display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:1.1rem;line-height:1;width:1.4rem;letter-spacing:0}.card-country{display:flex;align-items:center;gap:.35rem}.city-label{padding:0!important;gap:0!important;overflow:hidden;text-align:left}.city-label-pick{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;padding:.55rem .65rem;border:0;background:none;width:100%;text-align:left;min-height:3.4rem;border-radius:.85rem;color:var(--ink)}.city-label-main{gap:.35rem}.city-label .country-flag{font-size:.9375rem;width:1.15rem}.city-label .temp-dot{display:none}.city-label .label-wear{padding-left:0}
.label-actions { display: flex; align-items: stretch; border-top: 1px solid var(--line); background: var(--blue-soft) }
.label-actions a { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; min-height: 2.75rem; padding: .35rem .6rem; color: var(--blue); font-size: .8125rem; font-weight: 650; text-decoration: none }
.label-actions a + a { border-inline-start: 1px solid var(--line) }
.label-actions a:hover { text-decoration: underline; text-underline-offset: .17em }
.label-actions a:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px }
.place-tile .city-card{padding-bottom:3rem;min-height:11rem}.tile-stays{position:absolute;left:.75rem;bottom:.35rem;display:inline-flex;align-items:center;gap:.35rem;min-height:2.5rem;font-size:.9rem;text-decoration:none;font-weight:650;color:var(--blue);border-radius:.6rem;padding:0 .2rem}.tile-stays .icon{width:1rem;height:1rem}.tile-stays:hover{background:var(--blue-soft)}.tile-saved{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;max-width:calc(100% - 1rem);padding:.3rem .65rem;background:var(--surface);color:var(--muted);border:1px solid var(--line);font-size:.8125rem;font-weight:550;line-height:1.5;white-space:nowrap;border-radius:2rem;box-shadow:0 2px 8px #16284112;pointer-events:none;animation:saved-arrives .12s ease-out}.tile-saved.save-error{color:#a83c29}.search-result{gap:.65rem!important}.search-place{flex:1;min-width:0}.search-place>strong{font-size:1rem;font-weight:650}.search-place small{font-size:.875rem;line-height:1.3}.search-weather{display:grid!important;justify-items:end;gap:.15rem;flex:none;max-width:42%}.search-weather>strong{font-size:1rem}.search-weather>small{display:flex;align-items:center;justify-content:flex-end;gap:.25rem;line-height:1.25;font-size:.8125rem;color:var(--muted)}.search-weather .icon{width:.9rem;height:.9rem}.climate-guide-link{display:flex;align-items:center;justify-content:space-between;font-size:.9375rem;min-height:2.75rem;margin-top:.5rem;text-decoration:none;font-weight:600}.search-results{max-height:min(28rem,65dvh);overscroll-behavior:contain}@keyframes saved-arrives{from{opacity:0}to{opacity:1}}
@media(max-width:380px){.search-result{padding:.7rem .6rem}.search-result>.country-flag{display:none}.search-weather{max-width:43%}.search-weather>small{font-size:.75rem}.map-toolbar{gap:.25rem}}

.guide-discovery{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1.25rem 0;border-top:1px solid var(--line);margin-top:1.5rem}.guide-discovery h2{font-size:1.15rem;letter-spacing:-.025em;margin:0}.guide-discovery p{font-size:.95rem;color:var(--muted);margin:.35rem 0 0}.guide-discovery>a{font-size:1rem;font-weight:650;min-height:2.75rem;display:inline-flex;align-items:center;text-decoration:none}.footer>a.data-info-link{text-decoration:none}

/* Keep map controls together; wrap whole groups on smaller screens. */
.map-toolbar{flex-wrap:wrap}.map-actions{margin-left:auto}.map-actions output{min-width:1.6rem}.map-actions{gap:.2rem}.map-actions .reset-button{margin-left:0}
@media(max-width:359px){.map-toolbar{row-gap:.5rem}.map-actions{width:100%;justify-content:flex-end}}
.trip-photo{margin:0 0 1.1rem;position:relative;overflow:hidden;border-radius:1rem;background:var(--soft)}.trip-photo img{display:block;width:100%;height:clamp(11rem,18vw,16rem);object-fit:cover}.trip-photo figcaption{position:absolute;bottom:0;inset-inline:0;display:flex;justify-content:space-between;align-items:end;gap:.75rem;padding:1.8rem .85rem .7rem;background:linear-gradient(transparent,rgba(0,0,0,.68));color:white;font-size:.875rem}.trip-photo figcaption>span{font-weight:750;font-size:1.1rem}.trip-photo figcaption a{color:white;text-underline-offset:3px;font-size:.75rem}.clothing-shop{display:flex;gap:.8rem;align-items:flex-start;margin-top:1.25rem;padding-top:1.15rem;border-top:1px solid var(--line)}.clothing-shop strong{font-size:1.0625rem}.shopping-icon{display:grid;place-items:center;width:2.8rem;height:2.8rem;border-radius:.85rem;background:var(--soft);color:var(--blue);flex:none}.shopping-icon svg{width:1.6rem;height:1.6rem}.shop-provider{display:block;color:var(--muted);font-size:.875rem;margin:.25rem 0}.shop-fits{display:flex;gap:1.3rem}.shop-fits a{color:var(--blue);font-weight:650;min-height:2.75rem;display:inline-flex;align-items:center;text-underline-offset:3px}#map-level{font-weight:650;color:var(--muted)}[dir=rtl] .search-wrap>svg{left:auto;right:1.25rem}[dir=rtl] .search-wrap input{padding-left:1rem;padding-right:3.5rem}[dir=rtl] .header-actions,[dir=rtl] .globe-labels,[dir=rtl] .country-labels{direction:ltr}[dir=rtl] .selection-panel,[dir=rtl] .search-results,[dir=rtl] .places{direction:rtl;text-align:start}[dir=rtl] .place-grip{right:auto;left:.65rem}[dir=rtl] .place-menu-toggle{right:auto;left:.6rem}
.account-toggle[hidden]{display:none!important}.account-toggle{max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.google-sign-in{display:block;background:var(--surface);border:1px solid var(--line);border-radius:.8rem;min-height:3.1rem;padding:.8rem 1.25rem;color:var(--ink);font:inherit;font-weight:600;width:100%;cursor:pointer}.google-sign-in:disabled{opacity:.6}.account-privacy{font-size:.875rem;color:var(--muted)}#account-message{font-size:1rem;min-height:1.5em}#account-dialog h2{padding-inline-end:2rem}#account-dialog button[hidden]{display:none}@media(max-width:600px){.header-actions{gap:.4rem}.account-toggle{min-height:2.75rem;padding:.5rem .7rem;font-size:.875rem;max-width:6.5rem}}

[dir=rtl] .brand,[dir=rtl] .map-actions{direction:ltr}

/* The saved list belongs to the map column, independently of the taller trip panel. */
@media(min-width:1001px){
 .explorer-layout{grid-template-rows:auto 1fr;column-gap:1rem;row-gap:1.15rem}
 .explorer-layout>.explorer{grid-column:1;grid-row:1}
 .explorer-layout>.selection-panel{grid-column:2;grid-row:1 / span 2}
 .explorer-layout>.places{grid-column:1;grid-row:2;margin-top:0;min-width:0}
 .explorer-layout .city-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
 .trip-photo img{height:auto;aspect-ratio:16/9}
}
@media(min-width:1800px){.explorer-layout .city-cards{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1000px){.explorer-layout>.places{min-width:0;margin-top:0}}
@media(prefers-reduced-motion:reduce){.tile-saved{animation:none}}

.account-delete{display:block;margin-top:1rem;border:0;background:transparent;color:var(--muted);font:inherit;font-size:.875rem;text-decoration:underline;cursor:pointer;min-height:2.75rem}#account-retry{margin-top:.75rem}

/* Sharing stays with the destination, including below the mobile map. */
.destination-heading{flex-wrap:wrap}.destination-actions{display:flex;align-items:center;gap:.45rem;margin-inline-start:auto}.destination-actions .action-button{min-height:2.75rem;padding:.45rem .7rem;gap:.4rem;font-size:.875rem}.destination-actions .icon{width:1.1rem;height:1.1rem}@media(max-width:1000px){.destination-heading{position:sticky;top:0;z-index:12;background:var(--bg,#f4f7fc);padding:.55rem 0;margin-bottom:.5rem}.destination-heading .eyebrow{flex:1;min-width:8rem}}

.photo-stamp-launch{display:flex;width:100%;align-items:center;gap:.65rem;min-height:3rem;padding:.62rem .94rem;background:var(--surface);border:1px solid var(--line);border-radius:1rem;color:var(--blue);font-weight:650;text-align:start}
.photo-stamp-launch span:last-child{margin-inline-start:auto}
.share-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.share-actions button{flex:1;min-height:2.9rem}.share-actions #native-view{background:var(--ink);color:var(--surface);border-color:var(--ink)}#share-error:empty{display:none}
.selection-panel .data-status + .photo-stamp-launch{margin-block-start:.8rem}
.selection-panel .photo-stamp-launch + .trip-options{margin-block-start:1rem}
#account-dialog .google-sign-in:not([hidden]){display:flex;align-items:center;justify-content:center;gap:.75rem;background:white;border:1px solid #747775;color:#1f1f1f;font-family:Roboto,Arial,sans-serif;font-weight:500}
.google-sign-in img{width:20px;height:20px;flex:none}
.search-context{display:flex;align-items:center;justify-content:space-between;gap:.65rem;min-height:2.8rem;padding-block:.35rem}
.search-context .scope-reset{border:0;background:transparent;color:var(--blue);font-weight:650;padding:.55rem .25rem;min-height:2.75rem;white-space:nowrap}
.search-result .area-action{margin-inline-start:auto;color:var(--blue);background:var(--soft);font-size:.8rem;font-weight:650;padding:.32rem .65rem;border-radius:1rem;text-align:center}
.season-shortcut{display:flex;align-items:center;gap:.7rem;padding:.75rem 0;color:var(--blue);text-decoration:none;border-bottom:1px solid var(--line)}
.season-shortcut span{display:grid;gap:.1rem;flex:1}.season-shortcut small{color:var(--muted);font-size:.82rem}.season-shortcut strong{font-size:1rem}.season-shortcut:hover strong,.city-card:hover .card-name{text-decoration:underline;text-underline-offset:3px}
.city-card:hover .card-name{color:var(--blue)}.card-period{display:block;color:var(--muted);font-size:.75rem;margin-top:.65rem}.card-period+.card-bottom{margin-top:.12rem}

.place-tile{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.place-tile:has(.city-card.active){border-color:var(--blue);background:var(--blue-soft)}
.place-tile .city-card{background:transparent;border:0;box-shadow:none;color:var(--ink);padding:.9rem 2.6rem .55rem .9rem;min-height:0;text-align:start}
.tile-map-hint{display:flex;align-items:center;gap:.35rem;margin-top:.55rem;color:var(--muted);font-size:.78rem}.tile-map-hint .icon{width:.95rem;height:.95rem}
.tile-links{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .65rem;margin:0 .7rem;padding-block:.2rem .55rem;padding-inline-end:2.25rem;border-top:1px solid var(--line)}
.tile-links .tile-stays,.tile-explore{position:static;display:inline-flex;align-items:center;gap:.3rem;min-height:2.75rem;font-size:.82rem;text-decoration:none;color:var(--blue)}
.tile-explore{font-weight:700}.tile-explore .icon{width:.88rem;height:.88rem}.tile-links .tile-stays{color:var(--muted);font-weight:500}.tile-explore:hover{text-decoration:underline}

.place-tile .place-menu-toggle { bottom: .55rem }
#country-picker { max-width: 26rem; padding: 1.2rem; overflow: hidden }
#country-picker[open] { display: flex; flex-direction: column; gap: .7rem }
.country-picker-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem }
#country-picker-title { margin: 0; font-size: 1.4rem }
#country-picker-search { flex: none; min-width: 0; min-height: 2.8rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); color: var(--ink); font: inherit }
#country-picker-choices { overflow: auto; overscroll-behavior: contain; min-height: 0 }
#country-picker-choices button { width: 100%; min-height: 2.85rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .18rem .55rem; text-align: start; padding: .65rem .55rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer }
#country-picker-choices button:last-child { border-bottom: 0 }
#country-picker-choices button:hover { background: var(--blue-soft) }
#country-picker-choices button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px }
#country-picker-choices small { color: var(--muted) }

.delete-actions {display:flex;flex-wrap:wrap;gap:.65rem}
.delete-actions [value=delete] {color:#9d2a31}
:root[data-theme=dark] .delete-actions [value=delete] {color:#ffc3c1}
.locate-button{display:grid;place-items:center;flex:0 0 2.75rem;height:2.75rem;margin-inline-end:-.65rem;border:0;border-radius:50%;background:transparent;color:var(--blue)}
.locate-button:hover,.locate-button:focus-visible{background:var(--soft)}
.locate-button[hidden],.destination-origin[hidden]{display:none}
.destination-origin{grid-column:1/-1;margin:0 0 .65rem;color:var(--muted);font-size:.85rem}
