/* Colivings for what you love. Shared tokens only (public/shared/site.css); no colour values here. */
.facts .stat{align-content:start}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin:1.2rem 0 .5rem}
.page-head .note{margin-top:1.2rem}

/* index: collection cards */
.h-index .page-head{padding-bottom:.5rem}
.h-grid-sec{padding-top:.5rem}
.collections{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.coll{display:flex;flex-direction:column;text-decoration:none;color:inherit;transition:border-color .15s,transform .15s}
.coll:hover{border-color:var(--accent);color:inherit}
.coll figure{aspect-ratio:3/2;overflow:hidden;background:var(--line-2)}
.coll figure img{width:100%;height:100%;object-fit:cover}
.coll h2{font-size:1.3rem;margin:0 0 .3rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.coll .tagline{font-size:.92rem;color:var(--ink-2);margin-bottom:.6rem}
.coll .facts-line{font-size:.9rem;color:var(--ink-2);margin-top:auto}
.coll .facts-line b{font-family:var(--display);font-size:1.3rem;font-weight:500;color:var(--ink)}

/* collection page: header with the hand-picked hero */
.h-head{padding-top:clamp(1rem,3vw,2rem)}
.h-head-grid{display:grid;gap:1.25rem;align-items:center}
.h-head h1{margin-bottom:.6rem}
@media (min-width:900px){.h-head-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:2.5rem}}
.h-hero{margin:0;border-radius:var(--radius);overflow:hidden;background:var(--line-2);box-shadow:var(--shadow)}
.h-hero img{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover}
.h-hero figcaption{font-size:.8rem;color:var(--ink-3);padding:.45rem .8rem;background:var(--card)}
.h-hero figcaption a{color:var(--ink-2)}
/* Phone: the hero goes first, so the promise is visible before the copy; shorter so the first houses stay near the fold. */
@media (max-width:899px){.h-head-grid .h-hero{order:-1}.h-head-grid{gap:.9rem}}
@media (max-width:600px){.h-hero img{aspect-ratio:12/5}.h-hero figcaption{padding:.3rem .7rem}.h-head h1{font-size:1.75rem;margin-bottom:.3rem}.h-back{min-height:40px;margin-bottom:.1rem}}
.h-back{display:inline-flex;align-items:center;min-height:44px;font-weight:700;font-size:.9rem;text-decoration:none;margin-bottom:.4rem}
.h-back::before{content:"\2190";margin-right:.4rem}

/* filters: visible from first paint, disabled until the data arrives (no layout shift) */
.h-filters-sec{padding:0 0 .5rem}
.h-filters fieldset{border:0;margin:0;padding:0;min-width:0;display:grid;gap:.75rem 1rem;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:end}
.h-filters{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1rem}
.h-filters fieldset[disabled]{opacity:.6}
.h-filters .field{margin:0}
.h-filters .label{font-weight:700;font-size:.9rem;display:block;margin-bottom:.3rem}
.h-filters .chip{min-height:44px;width:100%;justify-content:center}
@media (max-width:480px){.h-filters fieldset{grid-template-columns:1fr 1fr}}

/* results */
.h-results{padding-top:.5rem}
.h-count{font-family:var(--body);font-size:1rem;font-weight:700;color:var(--ink-2);margin:.4rem 0 1rem;letter-spacing:0}
.h-conf{display:flex;align-items:center;gap:.6rem;margin:.2rem 0 .3rem;font-size:.8rem;color:var(--ink-3)}
.h-pick{font-size:.86rem;color:var(--ink-2);margin:.2rem 0 .5rem}
.h-pick .pill{margin-right:.3rem}
.h-xs{display:flex;flex-wrap:wrap;gap:0 .9rem;width:100%}
.h-x{display:inline-flex;align-items:center;min-height:44px;font-size:.86rem;font-weight:700}
.h-more{display:flex;justify-content:center;margin-top:1.5rem}
.h-empty-actions{margin-top:1rem;display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}

/* the two tiers (wave 4): counted houses above; "the host says so" listed apart, never counted */
.coll .h-claimed-line{font-size:.8rem;color:var(--ink-3);margin:.25rem 0 0}
.h-facts-note{font-size:.84rem;color:var(--ink-3);margin:.2rem 0 0;max-width:62ch}
.h-facts-note a{color:var(--accent-ink);font-weight:700}
.h-claimed{padding-top:1.5rem;border-top:1px solid var(--line);margin-top:1.5rem}
.h-claimed .h-count{margin-bottom:.3rem}
.h-claimed-why{font-size:.9rem;color:var(--ink-2);margin:0 0 .8rem;max-width:62ch}
.h-claimed-open{justify-content:flex-start;margin:0 0 1rem}
.h-claimed .empty{margin-top:.5rem}
@media (max-width:600px){.h-facts-note{font-size:.8rem;line-height:1.4}.h-index .coll .h-claimed-line{font-size:.74rem}}

/* next step, rules, other collections */
.h-next{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-bottom:1.5rem}
.h-next-l{font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink);font-weight:700;width:100%}
.h-method p{margin:.4rem 0}
.h-rules{list-style:none;display:grid;gap:.45rem;margin:1rem 0}
.h-rules li{display:flex;gap:.7rem;align-items:baseline;font-size:.92rem;color:var(--ink-2)}
.h-w{flex:0 0 6.6rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.15rem .5rem;background:var(--accent-soft);color:var(--accent-ink);font-weight:700;font-size:.74rem;white-space:nowrap}
.h-w-no{background:var(--line-2);color:var(--ink-2)}
.h-others-h{margin-top:2rem}
.h-others{margin:.8rem 0 .5rem}
.h-others .chip{text-decoration:none;min-height:44px}
.h-others .chip small{color:var(--ink-3);font-weight:600}
@media (max-width:480px){.facts{grid-template-columns:1fr 1fr}.stat b{font-size:1.4rem}}
/* Phone: keep the first cards close to the fold (stats in one row, shorter lead, compact filters). */
@media (max-width:600px){
  .h-coll .facts{grid-template-columns:repeat(3,1fr);gap:.6rem;margin:.9rem 0 .2rem}
  .h-coll .stat{align-content:start}.h-coll .stat b{font-size:1.3rem}.h-coll .stat span{font-size:.78rem;line-height:1.3}
  .h-coll .lead{font-size:1rem}
  .h-coll .page-head{padding-bottom:.8rem}
  .h-filters{padding:.75rem}
  .h-filters fieldset{gap:.5rem .6rem}
  .h-filters label,.h-filters .label{font-size:.8rem;margin-bottom:.15rem}
}
/* Phone index: two collections per row so most of the ten are visible within two screens. */
@media (max-width:600px){
  .h-index .collections{grid-template-columns:1fr 1fr;gap:.7rem}
  .h-index .coll .body{padding:.7rem .75rem .8rem}
  .h-index .coll h2{font-size:1.05rem;line-height:1.15}
  .h-index .coll .tagline{display:none}
  .h-index .coll .facts-line{font-size:.8rem;line-height:1.35}
  .h-index .coll .facts-line b{font-size:1.1rem}
}
.coll .h-typ{display:block}
@media (max-width:600px){.h-index .coll .h-ctry{display:none}}
.h-index .h-method{margin-top:1.5rem}
.h-coll .h-method{margin-top:2rem}
/* Phone: the selects say what they are ("All countries", "Any price", "Top picks first"), so the labels stay for
   screen readers only and the first houses move up. */
@media (max-width:600px){
  .h-filters label,.h-filters .label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .h-filters fieldset{align-items:center}
  .h-results{padding-top:.2rem}
  .h-count{margin:.2rem 0 .7rem}
}

/* ---- wave 6: towns strip, best-weather month, the quiz ------------------------------------------------------- */
.h-towns{padding:.2rem 0 .4rem}
.h-towns-h{font-size:1.1rem;margin:0 0 .15rem}
.h-towns-sub{font-size:.86rem;color:var(--ink-3);margin:0 0 .7rem;max-width:70ch}
.h-towns-list{list-style:none;margin:0;padding:0 0 .3rem;display:flex;gap:.6rem;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin}
.h-towns-list li{flex:0 0 auto;scroll-snap-align:start;max-width:min(78vw,260px)}
.h-town{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;text-align:left;min-height:44px;height:100%;padding:.6rem .85rem;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--card);color:var(--ink);font:inherit;cursor:pointer;box-shadow:var(--shadow)}
.h-town:hover{border-color:var(--accent)}
.h-town[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.h-town b{font-family:var(--display);font-size:1.12rem;font-weight:500;line-height:1.15}
.h-town-n{font-size:.8rem;font-weight:700;color:var(--ink-2)}
.h-town-why{font-size:.78rem;color:var(--ink-3);line-height:1.35}
.h-town:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media (min-width:900px){.h-towns-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));overflow:visible}.h-towns-list li{max-width:none}}
.h-month-note{font-size:.84rem;color:var(--ink-2);margin:.6rem 0 0;padding:.5rem .7rem;border-left:3px solid var(--sea);background:var(--sea-soft);border-radius:var(--radius-s);max-width:76ch}
.h-weather{display:flex;align-items:center;gap:.4rem;font-size:.84rem;font-weight:700;color:var(--ink-2);margin:.1rem 0 .3rem}
.h-weather i{width:9px;height:9px;border-radius:50%;background:var(--green);flex:0 0 auto}
.h-weather[data-c="3"] i{background:var(--gold)}
.h-weather[data-c="2"] i,.h-weather[data-c="1"] i{background:var(--rose)}
.h-weather-none{font-weight:500;color:var(--ink-3)}
@media (max-width:480px){.h-filters .h-month{grid-column:1/-1}}

.h-quiz-link{margin-top:.8rem}
.h-quiz{padding-top:.6rem}
.h-quiz h2{margin-bottom:.2rem}
.h-quiz-sub{color:var(--ink-2);margin:0 0 1rem;max-width:60ch}
.h-quiz-form{display:grid;gap:1rem;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1rem}
.h-q{border:0;margin:0;padding:0;min-width:0}
.h-q legend{font-weight:700;margin-bottom:.5rem;padding:0}
.h-q-opts{display:flex;flex-wrap:wrap;gap:.45rem}
.h-q .chip{position:relative;cursor:pointer;user-select:none}
.h-q .chip input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.h-q .chip:has(input:checked){background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink)}
.h-q .chip:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}
.h-quiz-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem}
.h-quiz-err{color:var(--bad);font-weight:700;font-size:.9rem;margin:0}
.h-quiz-err:empty{display:none}
.h-quiz-result{margin-top:1rem;scroll-margin-top:72px}
.h-quiz-card{overflow:hidden}
.h-quiz-card figure{margin:0;aspect-ratio:2/1;background:var(--line-2)}
.h-quiz-card figure img{width:100%;height:100%;object-fit:cover;display:block}
.h-quiz-card h3{font-family:var(--display);font-weight:500;font-size:1.7rem;margin:0 0 .2rem}
.h-quiz-tag{color:var(--ink-2);margin:0 0 .5rem}
.h-quiz-card .facts-line{font-size:.92rem;color:var(--ink-2);margin:0 0 .5rem}
.h-quiz-card .facts-line b{font-family:var(--display);font-size:1.3rem;font-weight:500;color:var(--ink)}
.h-quiz-why{font-size:.86rem;color:var(--ink-3);margin:0 0 .8rem}
.h-quiz-cta{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.6rem}
.h-quiz-share{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .8rem}
.h-quiz-share .small{color:var(--ink-2);font-weight:600}
/* Phone: country names ("United Kingdom") and "Top picks first" do not fit half a 320-412 px screen at 16 px (the
   size iOS needs to not zoom), so those two selects take the full row; price and "Available now" share one. */
@media (max-width:480px){
  .h-filters fieldset{grid-auto-flow:row dense}
  .h-filters .field:has(#f-country),.h-filters .field:has(#f-sort){grid-column:1/-1}
}
@media (max-width:480px){.h-filters select{padding-left:.65rem;padding-right:1.9rem}}
/* Below 360 px even "Up to $2,000" does not fit half a row: one filter per row. */
@media (max-width:359px){.h-filters fieldset{grid-template-columns:1fr}}
