/* Catalogue at scale (WF-081 R2/R3): crowds dial, band tags, bounded rows, Pick a country, Ready-made routes, country page.
   Tokens from style.css only. */

/* Crowds dial, under the search box */
.crowds-dial{margin:14px 0 4px;max-width:560px}
.crowds-dial-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.crowds-dial-label{font-weight:800;color:var(--ink-2);font-size:14px}
.crowds-dial-note{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.crowds-info{position:relative}
.crowds-info>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;border-radius:var(--radius-pill);color:var(--accent-text)}
.crowds-info>summary::-webkit-details-marker{display:none}
.crowds-info>p{position:absolute;right:0;top:calc(100% + 4px);z-index:20;width:min(320px,calc(100vw - 2 * var(--gutter)));margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);box-shadow:var(--shadow-pop);color:var(--ink-2);font-size:13px;line-height:1.45}
.crowds-segments{max-width:560px}

/* Band and coverage tags (cards, country rows) */
.crowd-tag,.coverage-tag{display:inline-block;font-size:11px;font-weight:800;padding:2px 8px;border-radius:var(--radius-pill);line-height:1.5;white-space:nowrap}
.crowd-tag{background:var(--surface);color:var(--ink-2);border:1px solid var(--line)}
.crowd-tag.is-quiet{background:var(--ok-bg);color:var(--ok-ink);border-color:var(--ok-line)}
.crowd-tag.is-classic{background:var(--accent-soft);color:var(--accent-ink);border-color:var(--accent-line)}
.coverage-tag{background:var(--warn-bg);color:var(--warn-ink);border:1px solid var(--warn-line)}
.card-stat-crowds{display:inline-flex;gap:4px;flex-wrap:wrap}

/* Bounded answer rows: "All N →" in the group heading; the opened row wraps into a grid in place */
.all-link{min-height:var(--tap);padding:0 6px;color:var(--accent-text);font-size:14px;white-space:nowrap}
.result-group-heading .group-all{margin-left:auto;align-self:center}
.result-group-heading .refine-toggle+.group-all{margin-left:0}
.result-group .results.is-all{flex-wrap:wrap;overflow-x:visible;margin:0;padding:2px 0 6px}
.result-group .results.is-all>.trip-card{width:calc(50% - 6px)}
@media(min-width:700px){.result-group .results.is-all>.trip-card{width:calc((100% - 36px)/4)}}

/* Pick a country, Ready-made routes */
.collections{display:grid;gap:28px;margin-bottom:28px}
.collections[hidden]{display:none}
.collection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.collection-head h2{margin:0;font-size:24px;line-height:1.2}
.country-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:900px){.country-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.country-tile{position:relative;display:flex;align-items:flex-end;min-width:0;width:100%;aspect-ratio:4/3;padding:0;overflow:hidden;border:0;border-radius:var(--radius-card);background:linear-gradient(100deg,var(--skeleton) 30%,var(--skeleton-hi) 50%,var(--skeleton) 70%) 0 0/300% 100%;animation:shimmer 1.4s linear infinite;color:var(--ink);text-align:left;cursor:pointer}
.country-tile.loaded,.country-tile.no-photo{animation:none}
.country-tile.no-photo{background:var(--surface-3)}
.country-tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity var(--dur) var(--ease)}
.country-tile.loaded>img{opacity:1}
.country-tile.loaded::after{content:"";position:absolute;inset:0;background:var(--scrim-hero)}
.country-tile-caption{position:relative;z-index:1;display:flex;flex-direction:column;gap:2px;padding:12px 14px}
.country-tile.loaded .country-tile-caption{color:var(--on-accent)}
.country-tile-name{font-family:var(--font-head);font-size:19px;font-weight:900;line-height:1.15}
.country-tile-meta{font-size:13px}
.country-tile:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.country-list{list-style:none;margin:12px 0 0;padding:0;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);overflow:hidden}
.country-list li+li{border-top:1px solid var(--line)}
.country-row{width:100%}
.route-list{display:grid;gap:12px}
@media(min-width:900px){.route-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
.route-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:16px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);color:var(--ink);text-align:left;cursor:pointer}
.route-card:hover{border-color:var(--line-strong)}
.route-card:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.route-card.is-highlight{border-color:var(--accent-line);box-shadow:var(--shadow-card)}
.route-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.route-card-name{font-size:17px}
.route-card-days{font-size:13px;color:var(--muted);white-space:nowrap}
.route-dots{display:flex;align-items:center}
.route-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.route-line{flex:1;height:2px;margin:0 4px;background:var(--line-strong)}
.route-card-chain{font-size:15px;color:var(--ink-2);overflow-wrap:anywhere}
.route-card-summary{font-size:13px;color:var(--muted)}
.route-card-cta{font-weight:800;color:var(--accent-text);font-size:14px}

/* Country page (?country=<id>) */
.country-page{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;max-width:760px;margin:0 auto;padding:8px 0 32px}
.country-top{display:flex;align-items:center;gap:10px}
.country-back{padding-left:0}
.country-kicker{font-size:13px;color:var(--muted)}
.country-hero{position:relative;display:flex;align-items:flex-end;height:clamp(200px,42vw,340px);overflow:hidden;border-radius:var(--radius-card);background:linear-gradient(100deg,var(--skeleton) 30%,var(--skeleton-hi) 50%,var(--skeleton) 70%) 0 0/300% 100%;animation:shimmer 1.4s linear infinite}
.country-hero.loaded,.country-hero.no-photo{animation:none}
.country-hero.no-photo{background:var(--surface-3)}
.country-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity var(--dur) var(--ease)}
.country-hero.loaded>img{opacity:1}
.country-hero.loaded::after{content:"";position:absolute;inset:0;background:var(--scrim-hero)}
.country-hero-text{position:relative;z-index:1;padding:16px 18px}
.country-hero-text h1{margin:0;font-size:36px;line-height:38px}
@media(min-width:700px){.country-hero-text h1{font-size:56px;line-height:56px}}
.country-hero-sub{margin:4px 0 0;font-size:14px}
.country-hero.loaded .country-hero-text,.country-hero.loaded .country-hero-text h1{color:var(--on-accent)}
.country-facts{display:flex;gap:8px;margin:0 calc(-1 * var(--gutter));padding:2px var(--gutter) 4px;overflow-x:auto;list-style:none;scrollbar-width:none;align-items:flex-start}
.country-facts::-webkit-scrollbar{display:none}
.country-fact{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);font-size:13px;color:var(--ink-2);white-space:nowrap}
.country-fact a{color:inherit;text-decoration:none}
.country-fact a:hover{text-decoration:underline}
.country-fact-more>summary{list-style:none;cursor:pointer}
.country-fact-more>summary::-webkit-details-marker{display:none}
.country-fact-more[open]{white-space:normal;max-width:min(320px,calc(100vw - 2 * var(--gutter) - 26px))}
.country-fact-more[open]>p{margin:6px 0 0;font-size:13px;line-height:1.45}
.country-intro{margin:0;font-size:16px;line-height:1.5;color:var(--ink-2)}
.country-intro.is-missing{font-size:14px;color:var(--muted)}
.country-section{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.country-section .collection-head{margin-bottom:0;flex-wrap:wrap}
.country-filter{flex:none}
.country-filter>button{flex:auto;padding:0 14px;font-size:13px}
.country-map{margin:0;padding:10px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface-2)}
.country-map>svg{display:block;width:100%;max-width:560px;height:auto;margin:0 auto;overflow:visible}
.cmap-sea{fill:var(--hairline)}
.cmap-land{fill:var(--surface);stroke:var(--muted);stroke-opacity:.55;stroke-width:.7;stroke-linejoin:round}
.cmap-pin circle{fill:var(--muted);stroke:var(--surface);stroke-width:2}
.cmap-pin.is-classic circle{fill:var(--accent)}
.cmap-pin.is-well-known circle{fill:var(--ink-2)}
.cmap-pin.is-quiet circle{fill:var(--ok-ink)}
.cmap-pin text{font-size:10px;font-weight:800;fill:var(--ink);paint-order:stroke;stroke:var(--surface);stroke-width:3px}
.cmap-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:4px 12px;margin-top:6px;font-size:11px;color:var(--muted)}
.cmap-key::before{content:"";display:inline-block;width:8px;height:8px;margin-right:4px;border-radius:50%;background:var(--muted);vertical-align:0}
.cmap-key.is-classic::before{background:var(--accent)}
.cmap-key.is-well-known::before{background:var(--ink-2)}
.cmap-key.is-quiet::before{background:var(--ok-ink)}
.country-places{margin:0}
.country-place{align-items:center}
.country-place-thumb{position:relative;overflow:hidden;background:var(--surface-3)}
.country-place-thumb>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.list-row-body .country-place-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;color:var(--ink)}
.list-row-body .country-place-head strong{min-width:0}
.list-row-body .country-place-nights{display:inline;flex:none;font-size:12px;color:var(--muted)}
.country-place-summary{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.list-row-body .country-place-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}
.list-row-body .country-place-tags>.tag{display:inline-block;font-size:11px}
.country-route{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.country-route-nights{margin:0 4px;font-size:13px;color:var(--muted)}
.country-own{padding:16px;border-radius:var(--radius-card);background:var(--surface-2)}
.country-own h2{margin:0;font-size:20px}
.country-own p{margin:0}
.country-own .outline{justify-self:start}

/* Route screen (?route=<id>, R4) */
.route-screen{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:760px;margin:0 auto;padding:8px 0 32px}
.route-screen h1{margin:0;font-size:30px;line-height:1.15}
.route-intro{margin:0;color:var(--ink-2)}
.route-chips{display:flex;gap:8px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.route-chips li{padding:6px 12px;border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);font-size:14px}
.route-flights{margin:0;font-size:14px;color:var(--muted)}
.route-chain{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.route-stop{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface)}
.route-stop-n{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--fill);color:var(--on-accent);font-weight:800;font-size:14px}
.route-stop-body{flex:1;min-width:140px}
.route-stop-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
.route-stop-sub{margin:2px 0 0;font-size:13px;color:var(--muted)}
.route-stop-remove{flex:none;font-size:13px}
.route-transfer{display:flex;flex-direction:column;gap:2px;margin-left:13px;padding:6px 0 6px 25px;border-left:2px dashed var(--line-strong);font-size:14px;color:var(--ink-2)}
.route-transfer.is-travel .route-transfer-line{font-weight:800}
.route-use{display:grid;gap:6px}
.route-use .primary{justify-self:stretch}
.route-start{justify-self:start;color:var(--accent-text)}
.route-screen .stepper{display:inline-flex;flex-direction:row;align-items:center;gap:6px;flex:none}
.route-screen .stepper-value{min-width:64px;text-align:center;font-size:14px}
/* The Crowds pill on the home's results bar (user, 2026-10-28): the dial opens in a panel under it. */
.crowds-pill{position:relative}
.crowds-pill>summary{display:inline-flex;align-items:center;min-height:var(--tap);padding:0 14px;border:1px solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink-2);font-weight:800;font-size:14px;cursor:pointer;list-style:none;white-space:nowrap}
.crowds-pill>summary::-webkit-details-marker{display:none}
.crowds-pill>summary:hover,.crowds-pill[open]>summary{background:var(--surface-2);color:var(--accent-ink)}
.crowds-pill>summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.crowds-pill-mode{color:var(--accent-text)}
.crowds-pill-panel{position:absolute;left:0;top:calc(100% + 6px);z-index:20;width:min(380px,calc(100vw - 2 * var(--gutter)));padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow-pop)}
.crowds-pill-panel .crowds-dial{margin:0}
@media(max-width:699px){
 .crowds-pill{position:static;flex:none}
 .crowds-pill>summary{padding:0 12px;font-size:13px}
 .crowds-pill-panel{left:0;right:0;width:auto}
}
/* Every country (user, 2026-10-28): the home's tiles on a page of their own. */
.countries-page h1{margin:8px 0 4px;font:900 clamp(28px,5vw,40px)/1.1 var(--font-head)}
.countries-page h1:focus{outline:none}
.countries-page-sub{margin:0 0 16px;color:var(--muted);font-size:14px}
@media(min-width:700px) and (max-width:899px){.countries-page .country-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* WF-114: the country map's dots (stops outside the selection) and pins without room for a label: the name shows on tap/hover */
.cmap-pin.is-dot circle{opacity:.75;stroke-width:1.5}
.cmap-pin .cmap-tap-label{display:none}
.cmap-pin.is-unlabelled{cursor:pointer;outline:none}
.cmap-pin.is-unlabelled:hover .cmap-tap-label,.cmap-pin.is-unlabelled:focus .cmap-tap-label{display:inline}
.cmap-pin.is-unlabelled:focus circle{stroke:var(--ink);stroke-width:2}
.cmap-key-note{font-style:italic}
/* WF-116: a photo per route, the route map with stop thumbnails */
.route-card.has-photo{padding-top:0;overflow:hidden}
.route-card-photo{display:block;margin:0 -16px 4px;aspect-ratio:16/9;background:var(--surface-3);overflow:hidden}
.route-card-photo{position:relative}
.route-card-photo>img{display:block;width:100%;height:100%;object-fit:cover}
.route-photo[data-photo-stop]{position:relative;aspect-ratio:16/9}
.route-photo[data-photo-stop]>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.route-photo{margin:0;border-radius:var(--radius-card);overflow:hidden;background:var(--surface-3)}
.route-photo>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.route-photo figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 10px;padding:6px 10px;font-size:11px;color:var(--muted);background:var(--surface-2)}
.route-photo figcaption a{color:var(--muted)}
.route-photo-where{color:var(--ink-2);font-weight:700}
.route-map{margin:0;padding:10px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface-2)}
.rmap-box{position:relative;width:100%;max-width:600px;margin:0 auto;aspect-ratio:360/240}
.rmap-box>svg{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;border-radius:8px}
.rmap-line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-dasharray:6 5;stroke-linecap:round;stroke-linejoin:round}
.rmap-pin{--t:56px;position:absolute;width:0;height:0}
@media(max-width:600px){.rmap-pin{--t:42px}}
.rmap-thumb{position:absolute;left:calc(var(--t)/-2);top:calc(var(--t)/-2);width:var(--t);height:var(--t);border-radius:50%;overflow:hidden;border:3px solid var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.35);background:var(--accent-soft)}
.rmap-thumb>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rmap-n{position:absolute;left:calc(var(--t)/2 - 12px);top:calc(var(--t)/-2 - 6px);min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--fill);color:var(--on-accent);font-size:12px;font-weight:800;line-height:20px;text-align:center;box-shadow:0 0 0 2px var(--surface)}
.rmap-name{position:absolute;left:0;top:calc(var(--t)/2 + 3px);transform:translateX(-50%);white-space:nowrap;font-size:12px;font-weight:800;color:var(--ink);text-shadow:0 0 3px var(--surface),0 0 3px var(--surface),0 0 3px var(--surface)}
.rmap-pin.is-label-above .rmap-name{top:auto;bottom:calc(var(--t)/2 + 3px)}
/* Country page order and compact sections (user, 2026-11-03) */
.country-hero-link{display:inline;min-height:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.country-hero-link:hover{text-decoration-thickness:2px}
.country-section .collection-head .country-see-all{margin-left:auto;flex:none}
.country-places.is-scroll{max-height:340px;overflow-y:auto;overscroll-behavior:contain}
.country-events{display:grid;gap:14px}
@media(min-width:620px){.country-events{grid-template-columns:repeat(2,minmax(0,1fr))}}
.country-events-col{min-width:0}
.country-events-col h3{margin:0 0 8px;font-size:15px}
.country-events-list{margin:0}
.country-events-list>li{padding:8px 12px;font-size:14px;line-height:1.45}
.ev-kind{font-size:11px;vertical-align:1px}
.country-subpage h1{margin:0;font-size:28px;line-height:1.2}
.country-subpage h1:focus{outline:none}
