/* =====================================================
   UCB identity layer (v3)
   An original girih-inspired ornament, grouped navigation,
   planner tools (shortlist, finder, RFP), programmes,
   proof blocks, guide and print styles.
   Loaded after styles.css and pages.css.
   ===================================================== */

:root {
  /* 8-point star tile with interlace lines, drawn for this project. */
  --girih-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.085' stroke-width='1.2'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 0L28 28M96 0L68 28M0 96L28 68M96 96L68 68M48 0V19.7M48 96V76.3M0 48H19.7M96 48H76.3'/%3E%3C/g%3E%3C/svg%3E");
  --girih-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%230B7F8F' stroke-opacity='0.07' stroke-width='1.2'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 0L28 28M96 0L68 28M0 96L28 68M96 96L68 68M48 0V19.7M48 96V76.3M0 48H19.7M96 48H76.3'/%3E%3C/g%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23D4A537' stroke-width='2'%3E%3Crect x='10' y='10' width='20' height='20'/%3E%3Crect x='10' y='10' width='20' height='20' transform='rotate(45 20 20)'/%3E%3C/g%3E%3C/svg%3E");
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---- Accessibility ---- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--accent); color: #2B2B2D; font-weight: 800; padding: 10px 16px; border-radius: 12px; transition: top .2s; }
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, label.choice:focus-within {
  outline: 3px solid #2AC4F4; outline-offset: 2px; border-radius: 10px;
}

/* ---- Ornament: hero pattern, dividers ---- */
.hero-dark::after { background-image: var(--girih-dark); background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.65) 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.65) 55%, transparent 100%); }
.hero-dark::before {
  content: ''; position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%) rotate(12deg);
  background: var(--star) center / contain no-repeat; opacity: .16; pointer-events: none;
}
@media (max-width: 1023px) { .hero-dark::before { display: none; } }
.pattern-light { background-image: var(--girih-light); background-size: 96px 96px; }
.ornament { display: flex; align-items: center; gap: 16px; color: var(--primary); margin: 0 auto; max-width: 280px; }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); opacity: .5; }
.ornament::after { transform: scaleX(-1); }
.ornament i { width: 22px; height: 22px; background: var(--star) center / contain no-repeat; display: block; }
footer.bg-dark { position: relative; }
footer.bg-dark::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 24px, #2AC4F4 24px 32px, var(--primary) 32px 56px, #2B2B2D 56px 64px); opacity: .9; }

/* ---- Grouped navigation ---- */
.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 700;
  background: none; border: 0; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.nav-trigger svg { transition: transform .25s var(--ease); }
.nav-item.is-open .nav-trigger svg, .nav-item:hover .nav-trigger svg { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 560px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px -24px rgba(43,43,45,.35);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; z-index: 60;
}
.nav-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.nav-item.is-open .nav-panel, .nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-panel-link { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background .15s; }
.nav-panel-link:hover, .nav-panel-link.is-active { background: var(--canvas); }
.nav-panel-link b { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; }
.nav-panel-link small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav-panel-link.is-active b { color: var(--primary); }
.nav-panel-icon { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.mobile-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; }
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary::after { content: '+'; font-weight: 800; color: var(--primary); }
.mobile-group[open] summary::after { content: '−'; }
.mobile-menu-inner { max-height: calc(100vh - 80px); overflow-y: auto; }

/* ---- Shortlist button & save hearts ---- */
.shortlist-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s; }
.shortlist-btn:hover, .shortlist-btn.is-active { background: var(--primary-soft); color: var(--primary); }
body.dark-top #navbar:not(.scrolled) .shortlist-btn { color: #fff; }
body.dark-top #navbar:not(.scrolled) .shortlist-btn:hover { background: rgba(255,255,255,.12); }
.shortlist-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #2B2B2D; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.shortlist-count[hidden] { display: none; }
.save-btn { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: #111827; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); transition: transform .2s var(--ease), background .2s; }
.save-btn:hover { transform: scale(1.08); }
.hotel-card { position: relative; }
.hotel-card > .save-btn { top: 136px; bottom: auto; } /* sits on the 190px cover, above the star row */
.save-btn[aria-pressed="true"] { background: #fff; color: #E11D48; }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.save-btn.inline { position: static; width: auto; height: auto; border-radius: 14px; padding: 12px 18px; gap: 8px; display: inline-flex; align-items: center; font-weight: 800; font-size: 14px;
  background: #fff; border: 1.5px solid var(--line); box-shadow: none; }
.save-btn.inline:hover { transform: none; border-color: #E11D48; color: #E11D48; }
.save-btn.inline[aria-pressed="true"] { border-color: #FECDD3; background: #FFF1F2; }

/* ---- Finder & map ---- */
.finder-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: center; }
.finder-bar > * { min-width: 0; }
.finder-bar .filter-select, .finder-bar input { width: 100%; text-overflow: ellipsis; }
@media (max-width: 1023px) { .finder-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .finder-bar .view-toggle { grid-column: 1 / -1; justify-self: start; } }
.finder-checks { display: flex; gap: 8px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; background: #E9E5DC; border-radius: 12px; padding: 4px; gap: 2px; }
.view-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.view-toggle button[aria-pressed="true"] { background: #fff; color: var(--primary); box-shadow: 0 2px 8px -4px rgba(0,0,0,.25); }
#finder-map { height: 640px; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; background: #E9E5DC; }
@media (max-width: 767px) { #finder-map { height: 480px; } }
.leaflet-container { font-family: 'Montserrat', sans-serif; }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(43,43,45,.4); }
.leaflet-popup-content { margin: 14px 16px; font-size: 13px; line-height: 1.5; }
.leaflet-popup-content b { font-size: 14px; display: block; margin-bottom: 2px; }
.leaflet-popup-content a { color: var(--primary); font-weight: 800; }
.map-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(0,0,0,.45); border: 2px solid #fff; }
.map-pin span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 12px; }
.map-pin.venue { background: var(--primary); }
.map-pin.hotel { background: #0A6A96; }
.map-cluster { width: 54px; height: 54px; border-radius: 50%; background: #2B2B2D; color: #2AC4F4; border: 3px solid #2AC4F4; display: grid; place-items: center; font-weight: 800; font-size: 14px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.5); }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.badge-green { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(16,185,129,.16); color: #047857; }
.badge-green::before { content: ''; width: 10px; height: 10px; background: currentColor; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.cover .badge-green { background: rgba(255,255,255,.92); }

/* ---- RFP stepper ---- */
.rfp-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: s; }
.rfp-progress li { counter-increment: s; display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; color: #5F5E62; padding-top: 12px; border-top: 4px solid var(--line); transition: border-color .3s, color .3s; }
.rfp-progress li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: #E9E5DC; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.rfp-progress li.is-done, .rfp-progress li.is-current { border-color: var(--primary); color: var(--ink); }
.rfp-progress li.is-current::before, .rfp-progress li.is-done::before { background: var(--primary); color: #fff; }
@media (max-width: 640px) { .rfp-progress li span { display: none; } }
.rfp-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .rfp-step:not(.is-current) { display: none; }
.rfp-step legend { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 20px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
label.choice { position: relative; cursor: pointer; }
label.choice input { position: absolute; opacity: 0; pointer-events: none; }
label.choice span { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s; height: 100%; }
label.choice span::before { content: ''; width: 18px; height: 18px; border-radius: 6px; border: 2px solid #C9C3B6; flex-shrink: 0; transition: all .15s; }
label.choice input[type=radio] + span::before { border-radius: 50%; }
label.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
label.choice input:checked + span::before { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.rfp-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.rfp-summary dl { margin: 0; display: grid; gap: 12px; }
.rfp-summary dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #5F5E62; font-weight: 800; }
.rfp-summary dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
.rfp-success { text-align: center; padding: 48px 24px; }
.rfp-success .icon-box { margin: 0 auto 18px; width: 72px; height: 72px; border-radius: 50%; }

/* ---- Programmes ---- */
.program-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.program-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; background: var(--canvas); color: var(--ink); }
.itinerary { list-style: none; padding: 0; margin: 0; position: relative; }
.itinerary::before { content: ''; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--primary), var(--accent)); opacity: .4; }
.itinerary li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 22px; }
.itinerary li:last-child { padding-bottom: 0; }
.itinerary .day { width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; position: relative; }
.itinerary h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); font-weight: 800; margin: 0 0 4px; }
.itinerary p { margin: 0; color: #3A3646; line-height: 1.65; }

/* ---- Proof: stories, testimonials, facts ---- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.testimonial::before { content: '“'; position: absolute; top: 6px; right: 22px; font-size: 96px; line-height: 1; color: var(--accent); opacity: .35; font-weight: 800; }
.testimonial blockquote { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); font-weight: 600; }
.testimonial .who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.testimonial .who img, .testimonial .who .ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.testimonial .who b { display: block; font-size: 14px; }
.testimonial .who small { color: var(--muted); font-size: 12.5px; }
.fact-tile { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.fact-tile .n { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--primary); line-height: 1; }
.fact-tile .l { font-weight: 700; color: var(--ink); }
.fact-tile .s { font-size: 12px; color: #5F5E62; margin-top: auto; padding-top: 10px; }
.story-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .story-stats { grid-template-columns: repeat(2, 1fr); } }
.story-stats div { background: var(--canvas); border-radius: 14px; padding: 14px; }
.story-stats b { display: block; font-size: 20px; font-weight: 800; }
.story-stats span { font-size: 11px; color: #5F5E62; text-transform: uppercase; letter-spacing: .06em; }
.pull-quote { border-left: 4px solid var(--accent); padding: 8px 0 8px 22px; font-size: 22px; line-height: 1.5; font-weight: 700; color: var(--ink); margin: 0; }

/* ---- Guide ---- */
.guide-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
@media (max-width: 1023px) { .guide-layout { grid-template-columns: 1fr; } .guide-toc { display: none; } }
.guide-toc { position: sticky; top: 110px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.guide-toc a { display: block; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.guide-toc a:hover { background: var(--canvas); color: var(--primary); }
.guide-section { scroll-margin-top: 110px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.guide-section h2 { font-size: 26px; font-weight: 800; margin: 0 0 10px; display: flex; gap: 12px; align-items: center; }
.guide-section p { font-size: 17px; line-height: 1.75; color: #3A3646; margin: 0; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 767px) { .checklist-grid { grid-template-columns: 1fr; } }
.checklist-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.checklist-card h3 { font-size: 15px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }

/* ---- Shortlist page ---- */
.short-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; }
.short-item .thumb { height: 84px; border-radius: 14px; background-size: cover; background-position: center; }
.short-item h3 { font-size: 17px; font-weight: 800; margin: 2px 0 4px; }
.short-item .type { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.short-item p { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 640px) { .short-item { grid-template-columns: 80px 1fr; } .short-item .actions-col { grid-column: 1 / -1; } }

/* ---- Tools row on home ---- */
.tool-card { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 26px; color: #fff; text-decoration: none; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.tool-card:hover { background: rgba(255,255,255,.09); border-color: rgba(231,194,106,.5); transform: translateY(-4px); }
.tool-card h3 { font-size: 18px; font-weight: 800; margin: 0; }
.tool-card p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; margin: 0; }
.tool-card .go { margin-top: auto; color: #2AC4F4; font-weight: 800; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }

/* ---- Steps (ambassadors, bid) ---- */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; counter-reset: st; list-style: none; padding: 0; margin: 0; }
.steps-row li { counter-increment: st; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; position: relative; }
.steps-row li::before { content: counter(st, decimal-leading-zero); display: block; font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.steps-row h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.steps-row p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.notice { display: flex; gap: 14px; align-items: flex-start; background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; border-radius: 16px; padding: 16px 18px; font-weight: 600; font-size: 15px; }

/* ---- Print (guide, shortlist, programmes) ---- */
@media print {
  #navbar, footer, .toast, .no-print, .skip-link, .filter-bar, .save-btn, .cta-band { display: none !important; }
  body { background: #fff !important; color: #000; }
  .hero-dark { background: #fff !important; color: #000 !important; padding: 0 0 16px !important; }
  .hero-dark::before, .hero-dark::after { display: none !important; }
  .hero-dark .tag, .hero-dark h1, .hero-dark p { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section-pad { padding: 12px 0 !important; }
  .panel, .checklist-card, .short-item, .fact-tile { break-inside: avoid; box-shadow: none !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 11px; color: #555; }
}

/* ---- Device adaptation (phones, tablets, notches, touch) ---- */
:root { --header-h: 64px; }
@media (min-width: 768px) { :root { --header-h: 80px; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; }
.filter-bar { top: var(--header-h); }
.mobile-menu-inner { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
#navbar > div:first-child { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 640px) { #navbar > div:first-child { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); } }
@media (min-width: 1024px) { #navbar > div:first-child { padding-left: 32px; padding-right: 32px; } }

.brand-text { display: none; }
@media (min-width: 360px) { .brand-text { display: block; } }
@media (max-width: 639px) { .brand-text .brand-title { font-size: 13px; } .brand-text .brand-sub { font-size: 9px; letter-spacing: .12em; } }

/* Touch screens: finger-sized controls, no sticky hover effects */
@media (pointer: coarse) {
  .filter-tab, .filter-select, .lang-btn { min-height: 40px; }
  .filter-tab { display: inline-flex; align-items: center; gap: 6px; }
  .form-input { min-height: 46px; font-size: 16px; } /* 16px stops iOS from zooming into fields */
  textarea.form-input { min-height: 0; }
  .hotel-card:hover, .dest-card:hover, .tool-card:hover { transform: none; }
}

/* Phones */
@media (max-width: 767px) {
  .filter-bar { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #category-filters, .filter-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  #category-filters::-webkit-scrollbar, .filter-scroll::-webkit-scrollbar { display: none; }
  #category-filters > *, .filter-scroll > * { flex: 0 0 auto; white-space: nowrap; }
  .section-pad { padding-top: 56px; padding-bottom: 56px; }
  .toast { left: 16px; right: 16px; max-width: none; }
  #finder-map { height: 65vh; min-height: 360px; }
  .rfp-steps { gap: 6px; }
  .steps-row { gap: 12px; }
}
@media (max-width: 374px) {
  h1 { font-size: 2rem !important; line-height: 1.12 !important; }
  .hero-stat .n { font-size: 1.5rem; }
}

/* Landscape phones: keep the menu and map usable */
@media (max-height: 500px) and (orientation: landscape) {
  #finder-map { height: 80vh; min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 1279px) { html.menu-open, html.menu-open body { overflow: hidden; } }
@media (max-width: 767px) {
  .filter-bar > [data-filter-group] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filter-bar > [data-filter-group]::-webkit-scrollbar { display: none; }
  .filter-bar > [data-filter-group] > * { flex: 0 0 auto; white-space: nowrap; }
}

/* Grid and flex children may shrink below their content width (prevents "grid blowout" on phones) */
.grid > *, .hero-search > input, .flex-1 { min-width: 0; }
@media (max-width: 479px) {
  .hero-search { padding-left: 14px; }
  .hero-search .btn-primary { padding: 10px 14px !important; }
}
@media (max-width: 1023px) { .filter-bar { position: static; } }
