@layer base, components, utilities;

@layer base {
  :root {
    color-scheme: light;
    --navy: #172e32;
    --arctic: #e0eeeb;
    --blue: #155e57;
    --ice: #cf793d;
    --snow: #f4f6f2;
    --muted: #53676a;
    --line: #d8e2dd;
    --white: #ffffff;
    --radius: 20px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 24px; }
  body { margin: 0; background: var(--snow); color: var(--navy); font: 16px/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
  a { color: var(--blue); text-underline-offset: 4px; }
  a:hover { text-decoration-thickness: 2px; }
  button, input, select { font: inherit; }
  button, select { cursor: pointer; }
  button { touch-action: manipulation; }
  button:disabled { cursor: wait; opacity: .65; }
  input, select { min-height: 48px; width: 100%; border: 1px solid #a6bab5; border-radius: 10px; background: var(--white); color: var(--navy); padding: .75rem .85rem; }
  input::placeholder { color: #607574; }
  input[type="checkbox"] { min-height: auto; width: auto; accent-color: var(--blue); }
  :focus-visible { outline: 3px solid #cf793d; outline-offset: 4px; }
  h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; }
  h1, h2 { font-weight: 750; }
  h1 { font-size: clamp(2.6rem, 6vw, 5.3rem); margin: 1rem 0 1.5rem; }
  h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); margin: 0 0 1rem; }
  h3 { font-size: 1.25rem; margin: 0 0 .8rem; }
  p { margin: 0 0 1rem; }
  img { display: block; width: 100%; object-fit: cover; }
  svg { flex-shrink: 0; }
  [hidden] { display: none !important; }
  ::selection { background: #cf793d; color: #fff; }
}

@layer components {
  .container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
  .site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
  .header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); font-weight: 850; letter-spacing: -.045em; font-size: 1.2rem; }
  .brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--blue); color: white; border-radius: 12px; font-size: 1.25rem; transform: rotate(-5deg); }
  .site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
  .site-nav a { font-size: .86rem; text-decoration: none; color: var(--muted); font-weight: 650; padding: 8px 0; border-bottom: 2px solid transparent; }
  .site-nav a[aria-current="page"], .site-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
  .age-label { display: inline-flex; border: 1px solid #a6bab5; border-radius: 50%; width: 39px; height: 39px; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; }
  .menu-toggle { display: none; background: white; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; color: var(--navy); }
  .skip-link { position: absolute; left: 16px; top: -100px; z-index: 10001; padding: 12px; background: white; }
  .skip-link:focus { top: 10px; }

  .hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #132f34; }
  .hero::before { content: ""; position: absolute; z-index: -1; inset: -25%; background: radial-gradient(ellipse at 75% 30%, #468e7970, transparent 45%), radial-gradient(ellipse at 20% 90%, #23606b90, transparent 50%); animation: northern-light-drift 16s ease-in-out infinite alternate; pointer-events: none; }
  .hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; padding-block: 76px 88px; }
  .hero-copy { min-width: 0; animation: hero-reveal .8s ease-out both; }
  .hero h1 { max-width: 720px; }
  .hero h1 span { color: #b5dfbe; }
  .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--blue); }
  .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  .hero .eyebrow { color: #b5dfbe; }
  .lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
  .hero .lead { color: #d5e5e2; }
  .hero-search { display: flex; gap: 8px; padding: 8px; margin-top: 28px; border: 1px solid #ffffff40; border-radius: 14px; background: white; box-shadow: 0 15px 40px #0002; }
  .hero-search input { border: 0; min-width: 0; }
  .hero-search .btn { flex-shrink: 0; }
  .hero-suggestions { color: #d5e5e2; font-size: .85rem; margin-top: 16px; }
  .hero-suggestions a { color: #fff; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--blue); border-radius: 10px; padding: .8rem 1.1rem; min-height: 46px; background: var(--blue); color: white; text-decoration: none; font-size: .88rem; font-weight: 700; line-height: 1.45; text-align: center; transition: background .2s, transform .2s; }
  .btn:hover { background: #104740; border-color: #104740; color: white; transform: translateY(-2px); }
  .btn-secondary { background: var(--white); color: var(--navy); border-color: #a6bab5; }
  .btn-secondary:hover { background: #e0eeeb; border-color: #779991; color: var(--navy); }
  .btn-small { padding: .5rem .85rem; min-height: 42px; }
  .hero-visual { position: relative; padding: 22px; border: 1px solid #ffffff30; border-radius: 28px; background: #ffffff09; box-shadow: 0 24px 80px #071c2530; animation: hero-reveal 1s .12s ease-out both; }
  .hero-visual-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #d5e5e2; }
  .hero-visual-heading span:last-child { border: 1px solid #ffffff40; border-radius: 30px; padding: 3px 9px; }
  .hero-map { display: block; width: 100%; height: 350px; filter: drop-shadow(0 12px 18px #0002); }
  .hero-city-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .hero-city-links a { padding: 12px 8px; border: 1px solid #ffffff25; border-radius: 12px; background: #ffffff08; color: white; text-decoration: none; font-size: .83rem; text-align: center; transition: background .2s; }
  .hero-city-links a:hover { background: #ffffff20; }
  .hero-city-links small { display: block; color: #c2d7d1; font-size: .68rem; margin-top: 3px; }
  .hero-map-note { color: #bfd2ce; font-size: .7rem; text-align: center; margin: 12px 0 0; }
  .map-marker-ring { animation: marker-pulse 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  .stat-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid #ffffff25; color: #bfd2ce; font-size: .8rem; }
  .stat-strip strong { color: white; font-size: 1.05rem; margin-right: 4px; }
  @keyframes northern-light-drift { from { transform: translate3d(-2%,0,0) rotate(-4deg); } to { transform: translate3d(4%,3%,0) rotate(5deg); } }
  @keyframes hero-reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes marker-pulse { 0%,100% { opacity: .3; transform: scale(1); } 55% { opacity: .08; transform: scale(1.9); } }

  .section { padding-block: 72px; }
  .section-tint { background: #e8efea; border-block: 1px solid var(--line); }
  .section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
  .section-head p { margin-bottom: 0; color: var(--muted); }
  .section-head > a { flex-shrink: 0; font-size: .88rem; font-weight: 700; }
  .card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .venue-card, .panel, .city-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
  .venue-card { display: flex; flex-direction: column; box-shadow: 0 5px 18px #172e3205; transition: border-color .2s, box-shadow .2s, transform .2s; }
  .venue-card:hover { border-color: #7ca99a; box-shadow: 0 18px 40px #172e3210; transform: translateY(-4px); }
  .venue-image { height: 195px; background: var(--arctic); }
  .image-caption { margin: 0; font-size: .67rem; background: #eef4ef; padding: 8px 20px; color: var(--muted); }
  .card-body { padding: 24px; min-width: 0; flex: 1; }
  .card-body h3 { font-size: 1.35rem; line-height: 1.2; }
  .card-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 14px; }
  .badge { display: inline-flex; gap: 5px; align-items: center; padding: 4px 9px; background: #e1eee5; color: #245c44; border-radius: 6px; font-size: .67rem; font-weight: 700; }
  .badge-neutral { background: #f4ede2; color: #775129; }
  .address { font-style: normal; font-size: .9rem; color: var(--muted); }
  .venue-facts { display: grid; grid-template-columns: minmax(0,1fr); margin: 20px 0 0; font-size: .8rem; }
  .venue-facts div { padding-block: 10px; border-top: 1px solid var(--line); min-width: 0; }
  .venue-facts dt { font-size: .68rem; letter-spacing: .035em; text-transform: uppercase; font-weight: 800; color: #3d615a; }
  .venue-facts dd { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
  .card-actions { padding: 0 24px 24px; display: grid; gap: 9px; }
  .card-actions .btn { font-size: .8rem; }
  .city-card { padding: 32px; text-decoration: none; color: var(--navy); position: relative; border-top: 4px solid var(--blue); transition: transform .2s, background .2s; }
  .city-card h3 { margin-bottom: 20px; font-size: 1.7rem; }
  .city-card::after { content: "↗"; position: absolute; right: 25px; top: 23px; color: var(--blue); font-size: 1.5rem; }
  .city-card:hover { transform: translateY(-4px); background: #eaf3ec; }
  .city-card span { color: var(--muted); font-size: .88rem; }
  .panel { padding: 30px; }
  .card-grid > .panel { border-top: 3px solid #88ad9c; }
  .note { border-left: 3px solid var(--ice); background: #f3eee2; padding: 18px 22px; border-radius: 0 12px 12px 0; color: #625238; font-size: .86rem; }
  .notice { background: #f8efda; border: 1px solid #ddc99e; border-radius: 12px; padding: 18px 20px; color: #654c20; font-size: .88rem; }
  .page-heading { padding: 56px 0 36px; max-width: 1000px; }
  .page-heading h1 { font-size: clamp(2.3rem,4.6vw,3.8rem); }
  .breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 24px; }
  .breadcrumbs a { text-decoration: none; }
  .filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 22px; }
  label { display: block; font-size: .8rem; font-weight: 700; }
  label input, label select { display: block; margin-top: 7px; font-size: .85rem; font-weight: 400; }
  .filter-search { grid-column: span 2; }
  .toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; margin: 0 0 25px; }
  .segmented { display: flex; gap: 4px; border: 1px solid var(--line); padding: 4px; background: white; border-radius: 12px; }
  .segmented button { border: 0; background: transparent; color: var(--navy); border-radius: 8px; padding: 9px 16px; }
  .segmented button[aria-pressed="true"] { background: var(--navy); color: white; }
  .results-list { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .results-list .venue-card { display: grid; grid-template-columns: 220px minmax(0,1fr); grid-template-rows: 180px auto 1fr; align-items: start; }
  .results-list .venue-image { grid-column: 1; grid-row: 1; height: 180px; }
  .results-list .image-caption { grid-column: 1; grid-row: 2; }
  .results-list .card-body { grid-column: 2; grid-row: 1/4; border-left: 1px solid var(--line); }
  .results-list .venue-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
  .results-list .card-actions { grid-column: 1; grid-row: 3; padding: 20px; }
  .map-consent { padding: 40px; text-align: center; border: 1px dashed #779991; border-radius: 20px; background: #e4eee7; }
  .map-consent p { max-width: 640px; margin-inline: auto; }
  .map-canvas { height: 480px; border: 1px solid var(--line); border-radius: 20px; background: var(--arctic); z-index: 0; }
  .leaflet-popup-content { font-family: system-ui,sans-serif; line-height: 1.6; color: var(--navy); }
  .leaflet-container a { color: var(--blue); }
  .empty-state { grid-column: 1/-1; text-align: center; padding: 50px 20px; border: 1px dashed #a6bab5; border-radius: 20px; background: white; }
  .support-band { background: var(--navy); color: white; border-radius: 24px; padding: 40px; display: flex; gap: 30px; align-items: center; justify-content: space-between; }
  .support-band p { color: #d0e2db; max-width: 700px; margin-bottom: 0; }
  .support-band .btn { background: #d5eecf; color: var(--navy); border-color: #d5eecf; flex-shrink: 0; }
  .support-band .btn:hover { background: #b6dbaf; }
  .faq { max-width: 920px; }
  .faq details { border-bottom: 1px solid var(--line); padding-block: 22px; }
  summary { cursor: pointer; font-weight: 700; }
  details p { margin: 13px 0 0; color: var(--muted); }
  .prose { max-width: 900px; padding-bottom: 72px; }
  .prose h2 { font-size: 1.75rem; margin-top: 42px; }
  .prose h3 { margin-top: 26px; }
  .prose p, .prose li { color: #465e5f; }
  .prose li { margin-bottom: 9px; }
  .guide-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; border-bottom: 1px solid var(--line); }
  .detail-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
  .detail-layout h2 { font-size: 1.8rem; }
  .detail-gallery { margin: 0 0 25px; }
  .detail-gallery-image { height: 370px; border-radius: 20px; background: var(--arctic); }
  .gallery-controls { display: flex; align-items: center; gap: 10px; margin-block: 12px; }
  .gallery-controls button { border: 1px solid #a6bab5; background: white; border-radius: 8px; padding: 9px 16px; color: var(--navy); }
  .gallery-controls button[aria-pressed="true"] { background: var(--navy); color: white; }
  .spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
  .spec-table th, .spec-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
  .spec-table th { width: 34%; padding-right: 20px; }
  .site-footer { background: #10272c; color: #c1d7d0; padding-block: 60px 26px; font-size: .83rem; }
  .site-footer a { color: #e0edce; }
  .footer-grid { display: grid; grid-template-columns: 1.1fr .85fr 1.1fr; gap: 40px; }
  .footer-title { color: white; font-weight: 800; font-size: 1.15rem; }
  .footer-links { display: grid; gap: 8px; align-content: start; }
  .footer-contact { padding: 24px; background: #ffffff06; border: 1px solid #46615e; border-radius: 16px; overflow-wrap: anywhere; }
  .footer-contact h2 { font: 700 1rem/1.4 system-ui,sans-serif; letter-spacing: 0; color: white; margin-bottom: 16px; }
  .footer-contact dl { margin: 0 0 16px; }
  .footer-contact dl div + div { margin-top: 12px; }
  .footer-contact dt { color: #bdd4cb; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
  .footer-contact dd { margin: 3px 0 0; color: white; }
  .footer-contact .contact-note { font-size: .75rem; line-height: 1.6; }
  .site-footer .btn-secondary { color: var(--navy); background: #e0edce; border-color: #e0edce; }
  .footer-legal { border-top: 1px solid #46615e; margin-top: 34px; padding-top: 25px; font-size: .73rem; }
  .footer-legal p { max-width: 1120px; }
  .footer-legal details { margin-block: 15px; }
  .footer-legal details p { color: #c1d7d0; }
  .copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; font-size: .75rem; }
  .consent-banner { position: fixed; bottom: 20px; left: 20px; width: min(480px,calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto; background: white; border: 1px solid #a6bab5; border-radius: 20px; box-shadow: 0 12px 70px #10272c30; padding: 26px; z-index: 10000; }
  .consent-banner h2 { font-size: 1.4rem; }
  .consent-banner p { font-size: .84rem; color: var(--muted); }
  .consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
  .icon { width: 19px; height: 19px; }
}
@layer utilities {
  .flex { display: flex; }
  .flex-wrap { flex-wrap: wrap; }
  .items-center { align-items: center; }
  .gap-2 { gap: 8px; }
  .gap-4 { gap: 16px; }
  .mt-4 { margin-top: 16px; }
  .mt-6 { margin-top: 24px; }
  .mb-0 { margin-bottom: 0; }
  .text-sm { font-size: .85rem; }
  .text-muted { color: var(--muted); }
  .w-full { width: 100%; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}
@media (max-width: 1080px) {
  .hero-grid { gap: 32px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: .8rem; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-grid { gap: 24px; }
}
@media (max-width: 850px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 0; }
  .menu-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding: 18px 0 24px; flex-direction: column; align-items: flex-start; }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: .95rem; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px; gap: 36px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { max-width: 580px; width: 100%; justify-self: center; }
  .hero-map { height: 290px; }
  .detail-layout, .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1/-1; }
  .support-band { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 1.04rem; gap: 7px; }
  .brand-mark { width: 34px; height: 36px; }
  .hero h1 { font-size: clamp(2.45rem,11vw,3.5rem); }
  .hero-search { flex-wrap: wrap; }
  .hero-search input { flex-basis: 100%; }
  .hero-search .btn { width: 100%; }
  .hero-visual { padding: 16px; }
  .hero-city-links a { font-size: .77rem; }
  .hero-visual-heading { font-size: .65rem; }
  .stat-strip { gap: 16px; }
  .section { padding-block: 44px; }
  .card-grid { grid-template-columns: minmax(0,1fr); }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head > a { flex-shrink: 1; }
  .panel, .support-band { padding: 24px; }
  .support-band .btn { max-width: 100%; }
  .results-list .venue-card { display: flex; flex-direction: column; }
  .results-list .venue-image { height: 180px; }
  .results-list .image-caption, .results-list .card-body, .results-list .card-actions { width: 100%; }
  .results-list .card-body { border-left: 0; }
  .results-list .venue-facts { grid-template-columns: minmax(0,1fr); }
  .results-list .card-actions { padding: 0 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .detail-gallery-image { height: 245px; }
  .map-canvas { height: 380px; }
  .map-consent { padding: 26px 20px; }
  .copyright { flex-direction: column; gap: 5px; }
  .spec-table { font-size: .8rem; }
  .spec-table th { padding-right: 12px; }
}
@media (max-width: 380px) {
  .brand { font-size: .95rem; }
  .menu-toggle { padding-inline: 8px; font-size: .85rem; }
  .filters { grid-template-columns: 1fr; }
  .filter-search { grid-column: auto; }
  .segmented button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}