/* Where to go next. Page styles on top of shared/site.css. Colours come from shared tokens; the only fixed
   colours are the white text and dark scrim over listing photos, which read the same in both themes. */
.nx-head{padding:1rem 0 .3rem}
.nx-head h1{font-size:clamp(1.7rem,4.5vw,2.6rem);margin-bottom:.3rem}
.nx-head .lead{font-size:.98rem;margin:0}
@media (min-width:960px){.nx-head{padding:2.2rem 0 1rem}.nx-head .lead{font-size:1.1rem}}
.finder{padding-top:.5rem}
.layout{display:grid;gap:1rem;align-items:start}
@media (min-width:960px){.layout{grid-template-columns:380px minmax(0,1fr);gap:2rem}.answers{position:sticky;top:4.5rem;max-height:calc(100vh - 5.5rem);overflow:auto;border-radius:var(--radius)}}

/* answers box: a one-line summary that opens the form on a phone; always open on a wide screen */
.qbox{overflow:visible}
.qbox>summary{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:0 .6rem;min-height:56px;padding:.5rem 1rem;cursor:pointer;border-radius:var(--radius)}
.qbox>summary::-webkit-details-marker{display:none}
.qbox>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.sum-label{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--ink-3);flex-basis:100%}
.sum-text{flex:1;min-width:0;font-weight:700;color:var(--ink);font-size:.95rem}
.sum-action{font-weight:700;color:var(--accent-ink);font-size:.9rem;display:inline-flex;align-items:center;gap:.3rem;min-height:44px;padding:0 .2rem}
.sum-action::after{content:"";width:.5rem;height:.5rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:-.2rem 0 0 .15rem}
.qbox[open]>summary .sum-action::after{transform:rotate(-135deg);margin-top:.25rem}
.qbox[open]>summary{border-bottom:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0}
@media (min-width:960px){.qbox>summary{cursor:default}.sum-action{display:none}.sum-text{font-weight:600;color:var(--ink-2);font-size:.9rem}}

.qform{padding:1rem}
@media (min-width:960px){.qform{padding:1.1rem 1.25rem 1.25rem}}
.qgroup{border:0;margin:0 0 1.1rem;padding:0;min-width:0}
.qgroup legend{font-weight:700;color:var(--ink);font-size:.95rem;margin-bottom:.45rem;padding:0}
.qgroup legend label{margin:0;font:inherit;color:inherit}
.qgroup .optional{font-weight:600;color:var(--ink-3);font-size:.82rem}
.qgroup .hint{font-size:.8rem;color:var(--ink-3);margin-top:.45rem;max-width:none}
.field-msg{font-size:.84rem;color:var(--bad);font-weight:600;margin:.35rem 0 0}
.field-msg:empty{display:none}
.chip small{font-weight:600;color:var(--ink-3);font-size:.76rem}
.chip[aria-pressed="true"] small{color:var(--teal-2)}
.months{gap:.4rem}
.months .chip{min-width:52px;justify-content:center;padding-inline:.5rem}
.chips.dim .chip{opacity:.55}
.budget-row{display:flex;align-items:center;gap:.5rem;margin-bottom:.55rem}
.budget-row .currency{font-weight:800;color:var(--ink-3);font-size:1.1rem}
.budget-row input{max-width:160px;font-weight:800;font-size:1.1rem}
.budget-row input[aria-invalid="true"]{border-color:var(--bad)}
.picked{margin-top:.6rem;font-size:.88rem;color:var(--ink-2);display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.map-slot{margin-top:.6rem}
.qactions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
.qactions .btn{flex:1 1 auto}

/* results */
.results{min-width:0;scroll-margin-top:72px}
.results-head h2{margin-bottom:.25rem;font-size:clamp(1.3rem,3vw,1.9rem)}
.results-head .small{margin-bottom:.8rem}
.results-head h2:focus{outline:none}
/* the answers as chips: the one the page assumed is marked, and each one the guest can drop has a remove button */
.given{list-style:none;margin:.2rem 0 .6rem;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.given:empty{display:none}
.gchip{display:inline-flex;align-items:center;gap:.1rem;min-height:36px;padding:.15rem .3rem .15rem .75rem;border-radius:999px;background:var(--teal-soft);color:var(--teal-2);font-size:.84rem;font-weight:700;line-height:1.2}
.gchip:not(:has(.gx)){padding-right:.75rem}
.gchip.assumed{background:var(--amber-soft);color:var(--amber-ink)}
.gx{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin:-.15rem -.1rem -.15rem 0;border:0;border-radius:50%;background:transparent;color:inherit;font:inherit;font-size:1.25rem;line-height:1;cursor:pointer}
.gx:hover{background:rgba(0,0,0,.08)}
.gx:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
.nx-room{display:block;font-size:.8rem;font-weight:600;color:var(--amber-ink);margin-top:.15rem}
#list{display:grid;grid-template-columns:minmax(0,1fr);gap:1.2rem;transition:opacity .2s}
#list>*{min-width:0}
#list.loading{opacity:.55}

/* one city: a listing photo with the name on it, then the weather, why it fits and the places */
.city{padding:0}
.city-hero{position:relative;aspect-ratio:16/9;max-height:300px;width:100%;background:var(--line-2);overflow:hidden}
@media (max-width:599px){.city-hero{aspect-ratio:2/1}}
.city-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.city-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(20,16,12,.82) 0%,rgba(20,16,12,.45) 42%,rgba(20,16,12,0) 72%);pointer-events:none}
.hero-text{position:absolute;left:0;right:0;bottom:0;z-index:1;display:flex;gap:.7rem;align-items:flex-end;padding:.8rem 1rem .85rem;color:#fff}
.city-rank{font-family:var(--display);font-size:1.35rem;line-height:1;padding-bottom:.35rem;opacity:.9}
.city-title{flex:1;min-width:0}
.city-title h3{font-family:var(--display);font-weight:500;font-size:clamp(1.5rem,4.6vw,2rem);margin:0;color:#fff;line-height:1.1;text-shadow:0 1px 8px rgba(0,0,0,.35)}
.city-title .sub{font-size:.85rem;margin-top:.15rem;color:#fff;opacity:.92}
.city-score{text-align:right;flex-shrink:0}
.city-score b{font-family:var(--display);font-size:1.9rem;font-weight:500;line-height:1;display:block;color:#fff}
.city-score span{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#fff;opacity:.92}
.city-hero.no-photo{aspect-ratio:auto;max-height:none;background:var(--accent-soft)}
.city-hero.no-photo::after{display:none}
.city-hero.no-photo .hero-text{position:static;color:var(--ink)}
.city-hero.no-photo .city-title h3,.city-hero.no-photo .city-title .sub,.city-hero.no-photo .city-score b,.city-hero.no-photo .city-score span{color:var(--ink);text-shadow:none}
.city-body{padding:.9rem 1rem 1rem}
@media (min-width:600px){.city-body{padding:1.1rem 1.35rem 1.25rem}}

/* one cell per chosen month: high, night low, rain */
.mstrip{list-style:none;margin:0 0 .2rem;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:.4rem}
.mstrip.many{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}
.mcell{background:var(--accent-soft);border-radius:var(--radius-s);padding:.45rem .65rem .5rem;display:flex;flex-direction:column;gap:.05rem;line-height:1.2}
.mcell .m{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.mcell b{font-size:1.25rem;font-variant-numeric:tabular-nums;color:var(--ink)}
.mcell .lo,.mcell .rain{font-size:.76rem;color:var(--ink-2)}
.mcell.off{background:var(--line-2)}
.mcell.wet .rain{color:var(--ink);font-weight:700}
.mcell.wet{box-shadow:inset 0 -3px 0 var(--sea)}
.w-est{margin:.35rem 0 0;font-size:.8rem;color:var(--amber-ink);font-weight:600}

/* why it fits */
.fits{list-style:none;margin:.8rem 0 .2rem;padding:0;display:grid;gap:.45rem}
.fits li{display:grid;grid-template-columns:6.6rem 1fr;grid-template-rows:auto auto;gap:.15rem .7rem;align-items:start;font-size:.9rem}
.fits .fk{grid-column:1;grid-row:1}.fits .fv{grid-column:2;grid-row:1/3}
.fk{font-weight:700;color:var(--ink-2);font-size:.8rem}
.fv{color:var(--ink)}
.fbar{grid-column:1;grid-row:2;display:block;height:5px;width:4.5rem;border-radius:3px;background:var(--line-strong);position:relative;overflow:hidden}
.fbar::after{content:"";position:absolute;inset:0;width:var(--p,0%);background:var(--accent);border-radius:2px}
.about{font-size:.9rem;color:var(--ink-2);max-width:none;margin-top:.7rem}
.covers{font-size:.84rem;color:var(--ink-3);margin-top:.3rem}
.fit-title{font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--ink-3);margin:1rem 0 .5rem}

/* listings: a swipeable row of three on a phone, a grid on wider screens; "show more" adds the other three */
.listings-row{contain:inline-size;display:grid;grid-auto-flow:column;grid-auto-columns:80%;overflow-x:auto;scroll-snap-type:x mandatory;gap:.75rem;padding-bottom:.5rem;overscroll-behavior-x:contain;scrollbar-width:thin}
.listings-row>.listing{scroll-snap-align:start;box-shadow:none}
.city .listing h3{font-size:1rem}
.more{margin-top:.6rem}
.city:not(.all) .listing.extra{display:none}
@media (min-width:600px){
  .listings-row{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));overflow:visible}
}

.next-steps{display:flex;flex-wrap:wrap;gap:.1rem 1.2rem;align-items:center;margin-top:.9rem;padding-top:.7rem;border-top:1px solid var(--line)}
.next-steps .lbl{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--ink-3);flex-basis:100%}
.next-steps a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px;font-size:.92rem}
.next-steps a::after{content:"\2192";margin-left:.35rem;text-decoration:none}

.rest{margin-top:1.6rem}
.rest h3{font-size:1.05rem;margin-bottom:.3rem}
.rest p{margin-bottom:.6rem}
.rest table{font-size:.88rem}
.rest td,.rest th{padding:.45rem .5rem}
.rest th{text-transform:none;letter-spacing:0;font-size:.8rem}
.rest .num{width:6.5rem}
.rest tr.extra{display:none}.rest.all tr.extra{display:table-row}
/* every row opens that city's places: the city name is the link, the whole row is the tap target */
.rest tr[data-k]{cursor:pointer}
.rest tr[data-k]:hover td{background:var(--accent-soft)}
.rest-link{display:inline-flex;align-items:center;min-height:36px;font-weight:700;color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}
.rest-link .muted{font-weight:500;text-decoration:none;margin-left:.3rem}
.rest-link::after{content:"\2192";margin-left:.35rem;text-decoration:none}
.rest .more{margin-top:.5rem}
.suggest-list{text-align:left;margin:1rem auto 0;max-width:34rem;padding-left:1.2rem}
.suggest{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.9rem;justify-content:center}
.share{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;margin-top:1.5rem}
.share-url{font-size:.85rem}
.empty{background:var(--card)}
.empty h3{color:var(--ink);font-size:1.15rem;margin-bottom:.4rem}
.empty p{margin-inline:auto}
.empty.err{border-style:solid;border-color:var(--bad)}
.skeleton-card .sk-hero{aspect-ratio:2/1;border-radius:0;min-height:0}
@media (min-width:600px){.skeleton-card .sk-hero{aspect-ratio:16/9;max-height:300px}}

/* how we work this out */
.how{margin-top:1.8rem}
.how-body p{margin:.5rem 0;max-width:68ch}
/* The full-screen map lives inside the sticky answers column; lift that column above the results while it is open. */
.answers:has(.cm-full){z-index:1001;position:relative}
@media (min-width:960px){.answers:has(.cm-full){position:sticky;overflow:visible}}
/* The answers column is narrow on a wide screen: keep the map's search and region chips stacked there. */
.answers .cm-panel:not(.cm-full) .cm-top{grid-template-columns:1fr}

/* your stay (for the cost line): months 1-6, who is coming, a desk */
.sublabel{font-size:.86rem;font-weight:600;color:var(--ink-2);margin:.15rem 0 .35rem}
.stay .chip{min-width:44px;justify-content:center;padding-inline:.5rem}
.stay-pair{display:flex;flex-wrap:wrap;gap:.2rem 1.4rem;margin-top:.6rem}
#stay-hint:empty{display:none}

/* what a month costs in this city: three figures, what you save over the stay, where the figures come from */
.cost{margin:.95rem 0 .2rem;padding:.8rem .85rem .85rem;border-radius:var(--radius-s);background:var(--line-2);border:1px solid var(--line)}
.cost-h{margin:0 0 .5rem;font-weight:800;color:var(--ink);font-size:.95rem;line-height:1.3}
.cost-who{display:flex;flex-wrap:wrap;align-items:center;gap:0 .3rem;font-weight:600;font-size:.8rem;color:var(--ink-3);margin-top:.1rem}
.linkish{display:inline-flex;align-items:center;min-height:36px;min-width:36px;padding:0 .2rem;border:0;background:transparent;color:var(--accent-ink);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.linkish:focus-visible{outline:3px solid var(--focus);outline-offset:1px;border-radius:4px}
.cost-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin:0}
.ct{background:var(--card);border-radius:8px;padding:.45rem .55rem .5rem;min-width:0}
.ct dt{font-size:.72rem;font-weight:700;color:var(--ink-2);line-height:1.2}
.ct dd{margin:.15rem 0 0;font-size:1.15rem;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.15}
.ct.col{background:var(--accent-soft)}
.ct.col dt{color:var(--accent-ink)}
@media (min-width:600px){.ct dd{font-size:1.3rem}.ct dt{font-size:.78rem}}
.cost-save{margin:.6rem 0 0;font-size:.9rem;color:var(--ink);line-height:1.45;max-width:none}
.cost-save b{font-variant-numeric:tabular-nums}
.cost-note{margin:.35rem 0 0;font-size:.8rem;color:var(--ink-3);line-height:1.45;max-width:none}
.cost-none .cost-h{margin-bottom:.2rem}
.cost-none .cost-note{margin-top:0}
.cost-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.7rem}
.cost-actions .btn{flex:1 1 auto}
@media (min-width:600px){.cost-actions .btn{flex:0 0 auto}}
.cost .cmp{color:var(--accent-ink);border-color:var(--accent-ink)}
.cost .cmp[aria-pressed="true"]{background:var(--teal-soft);color:var(--teal-2)}

/* the cities picked to compare: a bar along the bottom of the screen while any is picked */
.cmp-bar{position:fixed;left:0;right:0;bottom:0;z-index:900;background:var(--card);border-top:1px solid var(--line-strong);box-shadow:0 -6px 20px rgba(0,0,0,.12);padding:.55rem 0 calc(.55rem + env(safe-area-inset-bottom,0px))}
.cmp-in{display:flex;align-items:center;gap:.4rem .8rem;flex-wrap:wrap}
.cmp-names{margin:0;flex:1 1 12rem;min-width:0;font-size:.88rem;font-weight:700;color:var(--ink);line-height:1.35}
.cmp-acts{display:flex;gap:.4rem;margin-left:auto}
body.has-cmp{padding-bottom:5.5rem}
@media (max-width:599px){body.has-cmp{padding-bottom:7.5rem}}
#profile-box{margin-top:1.4rem}
.cmp-l{display:block;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.cmp-names b{font-weight:800}
.cmp-names{font-weight:600}
/* on a wide screen the sticky answers column ends above the compare bar */
@media (min-width:960px){body.has-cmp .answers{max-height:calc(100vh - 10rem)}}
