/* ══════════════════════════════════════════════════════
   CREATE YOUR MAP — website CSS
   Style: clean minimal (Linear/Notion)
   Font: Bricolage Grotesque + DM Mono
══════════════════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}

:root {
  --blue:        #2563EB;
  --blue-hover:  #1D4ED8;
  --blue-soft:   #EFF6FF;
  --blue-mid:    #BFDBFE;
  --green:       #16A34A;
  --ink:         #0F172A;
  --ink-2:       #334155;
  --ink-3:       #64748B;
  --ink-4:       #94A3B8;
  --border:      #E2E8F0;
  --border-2:    #CBD5E1;
  --surface:     #FFFFFF;
  --surface-2:   #F8FAFC;
  --surface-3:   #F1F5F9;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
  --font:        'Bricolage Grotesque', sans-serif;
  --mono:        'DM Mono', monospace;
  --nav-h:       56px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--ink); background: var(--surface); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center; gap: 0; padding: 0 24px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink); flex-shrink: 0;
}
.nav-logo img { width: 26px; height: 26px; border-radius: 6px; }
.nav-sep { width: 1px; height: 18px; background: var(--border); margin: 0 20px; flex-shrink: 0; }
.nav-links { display: flex; gap: 2px; }
.nav-link {
  padding: 5px 11px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  transition: all .12s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--surface-3); }
.nav-spacer { flex: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: var(--radius-sm);
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 600;
  transition: background .12s, transform .12s;
}
.nav-cta:hover { background: var(--blue-hover); transform: translateY(-1px); }

/* ── FIXED RIGHT STRIP ──────────────────────────────────── */
.try-strip {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 300; writing-mode: vertical-rl;
  background: var(--blue); color: #fff;
  padding: 18px 11px; border-radius: var(--radius) 0 0 var(--radius);
  font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  box-shadow: -3px 0 20px rgba(37,99,235,.22);
  transition: padding-right .15s, background .12s;
  display: flex; align-items: center; gap: 8px;
}
.try-strip:hover { padding-right: 16px; background: var(--blue-hover); }
.try-strip-icon { writing-mode: horizontal-tb; font-size: 13px; }
@media(max-width:640px){ .try-strip { display: none; } }

/* ── SHARED COMPONENTS ──────────────────────────────────── */
.label-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-h2 {
  font-size: clamp(26px, 2.8vw, 38px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.1; color: var(--ink);
  margin-bottom: 14px;
}
.section-lead {
  font-size: 16px; color: var(--ink-3); line-height: 1.65;
  max-width: 520px; font-weight: 400;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none; transition: all .12s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.28); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue-mid); color: var(--blue); background: var(--blue-soft); }
.btn-lg { padding: 12px 24px; font-size: 14px; border-radius: var(--radius); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 12px; color: var(--ink-3);
}
.footer-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); }
.footer-brand img { width: 20px; height: 20px; border-radius: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; text-decoration: none; }
.footer-links a { color: var(--ink-3); transition: color .12s; }
.footer-links a:hover { color: var(--ink); }
@media(max-width:640px){
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}




/* ── Mobile nav ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 11px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-2);
  margin-left: auto;
  transition: background .15s;
}
.nav-hamburger:hover { background: var(--surface-3,#F1F5F9); }
/* hb-bars and hb-x spans for animated icon */
.nav-hamburger .hb-bars { display:inline-block; }
.nav-hamburger .hb-x    { display:none; }
.nav-hamburger.open .hb-bars { display:none; }
.nav-hamburger.open .hb-x    { display:inline-block; }
.nav-mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 400; opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.nav-mobile-overlay.open { opacity: 1; visibility: visible; }
.nav-mobile-drawer {
  position: fixed; top: 0; right: 0;
  width: 260px; height: 100%;
  background: #fff; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  z-index: 401; transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.nav-mobile-overlay.open .nav-mobile-drawer { transform: translateX(0); }
.nav-mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-3);
  margin-bottom: 8px;
  line-height: 1;
}
.nav-mobile-link {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-link:hover { color: var(--blue); }
.nav-mobile-cta {
  display: block;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-cta   { display: none !important; }
  .nav-hamburger { display: block !important; }
}

/* ══════════════════════════════════════════════════════
   MAP LANDING PAGE — per-map SEO pages (/map/<id>)
══════════════════════════════════════════════════════ */
.mp-wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.mp-crumbs { font-size: 12px; color: var(--ink-4); padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mp-crumbs a { color: var(--ink-3); }
.mp-crumbs a:hover { color: var(--blue); text-decoration: underline; }
.mp-crumbs span[aria-current] { color: var(--ink-2); font-weight: 600; }

.mp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 28px 0 48px; }
.mp-hero h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 14px; }
.mp-lead { font-size: 16px; color: var(--ink-3); line-height: 1.7; margin-bottom: 12px; }
.mp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.mp-chip { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
           background: var(--surface-3); color: var(--ink-2); padding: 5px 11px; border-radius: 20px; }
.mp-chip.is-blue { background: var(--blue-soft); color: var(--blue); }
.mp-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Preview frame — fixed aspect ratio reserves space so lazy render causes no layout shift */
.mp-frame { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2);
            overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.mp-frame svg { display: block; width: 100%; height: auto; }
.mp-frame .mp-skel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
                     color: var(--ink-4); font-size: 12px; font-family: var(--mono); gap: 8px; }
.mp-frame.is-ready .mp-skel { display: none; }
.mp-frame path { fill: #DCE6F5; stroke: #fff; stroke-width: .5; vector-effect: non-scaling-stroke; transition: fill .12s; }
.mp-frame path:hover { fill: var(--blue); }

.mp-section { padding: 44px 0; border-top: 1px solid var(--border); }
.mp-section h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.6px; margin-bottom: 10px; }
.mp-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.mp-section p { font-size: 15px; color: var(--ink-3); line-height: 1.75; max-width: 720px; }
.mp-section p + p { margin-top: 12px; }

.mp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; counter-reset: s; }
.mp-step { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.mp-step::before { counter-increment: s; content: counter(s);
                   display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
                   border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.mp-step p { font-size: 13px; line-height: 1.65; }

.mp-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 22px; }
.mp-use { border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius); padding: 16px 18px; }
.mp-use p { font-size: 13px; line-height: 1.6; }

/* Region list — the unique, crawlable content on every map page */
.mp-regions { columns: 4; column-gap: 26px; margin-top: 22px; font-size: 13px; }
.mp-regions li { break-inside: avoid; padding: 4px 0; color: var(--ink-2); list-style: none;
                 border-bottom: 1px solid var(--surface-3); }
.mp-regions li span { color: var(--ink-4); font-family: var(--mono); font-size: 11px; }
.mp-more { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

.mp-faq { margin-top: 22px; max-width: 780px; }
.mp-faq details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); }
.mp-faq summary { padding: 14px 18px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.mp-faq summary::-webkit-details-marker { display: none; }
.mp-faq summary::after { content: '+'; color: var(--ink-4); font-weight: 400; font-size: 18px; line-height: 1; }
.mp-faq details[open] summary::after { content: '\2212'; }
.mp-faq .mp-answer { padding: 0 18px 16px; font-size: 14px; color: var(--ink-3); line-height: 1.7; }

.mp-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; margin-top: 22px; }
.mp-rel { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; transition: all .15s; display: block; }
.mp-rel:hover { border-color: var(--blue-mid); background: var(--blue-soft); transform: translateY(-1px); }
.mp-rel-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.mp-rel-desc { font-size: 11px; color: var(--ink-4); font-family: var(--mono); margin-top: 3px; }

.mp-final { text-align: center; padding: 56px 24px 72px; border-top: 1px solid var(--border); }
.mp-final h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 10px; }
.mp-final p { font-size: 15px; color: var(--ink-3); margin: 0 auto 22px; max-width: 520px; }

@media (max-width: 900px) { .mp-regions { columns: 3; } }
@media (max-width: 860px) {
  .mp-hero { grid-template-columns: 1fr; gap: 28px; padding: 20px 0 36px; }
  .mp-hero .mp-frame { order: -1; }
}
@media (max-width: 620px) {
  .mp-wrap { padding: 0 20px; }
  .mp-regions { columns: 2; font-size: 12.5px; }
  .mp-section { padding: 34px 0; }
}
