:root {
  --bg-void: #070909;
  --bg-deep: #0c1015;
  --bg-card: #111820;
  --gold: #c9a84c;
  --gold-light: #e0c06e;
  --text-primary: #eee8de;
  --text-secondary: #7a8fa8;
  --text-muted: #526579;
  --border-subtle: rgba(201, 168, 76, 0.18);
  --border-card: rgba(255, 255, 255, 0.06);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: Barlow, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1280px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; font-family: var(--font-body); background: var(--bg-void); color: var(--text-primary); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.navbar {
  position: sticky; top: 0; z-index: 1000; min-height: 82px; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7, 9, 9, 0.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-logo, .logo-row { display: flex; align-items: center; gap: .875rem; flex-shrink: 0; }
.nav-logo img, .logo-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav-logo-name, .logo-name { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.nav-logo-name span, .logo-name span { display: block; margin-top: 1px; color: var(--gold); font-size: .63rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav-links a { color: rgba(238,232,222,.68); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { margin-left: .25rem; padding: .5rem 1.25rem; border: 1px solid var(--gold); color: var(--gold) !important; border-radius: 2px; }
.nav-cta:hover { background: var(--gold); color: var(--bg-void) !important; }
.nav-call { display: inline-flex; align-items: center; gap: .55rem; margin-left: 1.5rem; padding: .55rem 1rem; background: var(--gold); color: var(--bg-void); border-radius: 2px; font-size: .8rem; font-weight: 700; }
.nav-call:hover { background: var(--gold-light); }
.nav-call-icon { width: 1rem; height: 1rem; fill: currentColor; }
.nav-hamburger { display: none; flex-direction: column; gap: 6px; padding: 4px; background: transparent; border: 0; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--text-primary); }
.nav-drawer { display: none; position: fixed; inset: 0; z-index: 999; }
.nav-drawer.is-open { display: block; }
.nav-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.68); }
.nav-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(300px,85vw); padding: 6rem 2rem 2rem; display: flex; flex-direction: column; gap: 1rem; background: var(--bg-deep); border-left: 1px solid var(--border-subtle); }
.nav-drawer-panel > a:not(.nav-drawer-cta) { padding: .75rem 0; border-bottom: 1px solid var(--border-card); color: var(--text-secondary); text-transform: uppercase; letter-spacing: .08em; }
.nav-drawer-cta { margin-top: 1rem; padding: .8rem 1rem; text-align: center; background: var(--gold); color: var(--bg-void); font-weight: 700; text-transform: uppercase; }

main { max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem 4rem; }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.eyebrow { margin: 0 0 .25rem; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2.75rem,6vw,5rem); font-weight: 400; letter-spacing: .02em; line-height: .95; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: end; gap: .6rem; }
.project-meta span { padding: .4rem .65rem; border: 1px solid var(--border-subtle); background: rgba(201,168,76,.08); color: var(--text-secondary); border-radius: 2px; font-size: .8rem; }
.project-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .75rem; position: relative; }
.share-map { min-height: 36px; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid var(--gold); border-radius: 2px; background: transparent; color: var(--gold); cursor: pointer; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .18s ease,color .18s ease; }
.share-map:hover, .share-map:focus-visible, .share-map.is-copied { background: var(--gold); color: var(--bg-void); }
.share-map:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.share-map svg { width: 15px; height: 15px; fill: currentColor; }
.share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.map-shell { position: relative; min-height: 70vh; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-subtle); box-shadow: 0 24px 80px rgba(0,0,0,.38); }
#map { width: 100%; height: 70vh; min-height: 520px; background: #151b20; }
.map-status { position: absolute; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; gap: .75rem; background: rgba(7,9,9,.84); color: var(--text-secondary); transition: opacity .3s ease; }
.map-status.is-hidden { opacity: 0; pointer-events: none; }
.map-status.is-error { color: #f1b5a8; }
.spinner { width: 19px; height: 19px; border: 2px solid rgba(201,168,76,.28); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-tools { position: absolute; right: 4.25rem; top: .65rem; z-index: 700; display: grid; grid-template-columns: auto 110px 42px; align-items: center; gap: .65rem; padding: .65rem .8rem; background: rgba(7,9,9,.9); border: 1px solid var(--border-subtle); border-radius: 2px; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.map-tools label, .map-tools output { font-size: .78rem; color: var(--text-secondary); }
.map-tools input { accent-color: var(--gold); }
.map-tools .plan-toggle { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.map-tools .plan-toggle input { accent-color: #ff2bd6; margin: 0; }
.map-tools #plan-opacity { accent-color: #ff2bd6; }
.map-tools .plan-source { grid-column: 1 / -1; margin: 0; font-size: .68rem; color: var(--text-secondary); opacity: .75; }
.map-note { margin: .75rem 0 0; color: var(--text-muted); font-size: .85rem; }
.leaflet-control-zoom a { background: var(--bg-deep) !important; color: var(--gold) !important; border-color: var(--border-subtle) !important; }
.leaflet-control-attribution { background: rgba(7,9,9,.78) !important; color: var(--text-muted) !important; }
.leaflet-control-attribution a { color: var(--gold) !important; }

.footer { padding: 5rem 2rem 2.5rem; background: var(--bg-deep); border-top: 1px solid var(--border-subtle); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2.25fr 1fr 1fr 1.25fr; gap: 3.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-card); }
.footer-brand p { max-width: 280px; margin-top: 1rem; color: var(--text-secondary); font-size: .875rem; line-height: 1.75; }
.footer h2 { margin: 0 0 1.375rem; color: var(--text-primary); font-family: var(--font-body); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer-links, .footer-contacts { display: flex; flex-direction: column; gap: .75rem; }
.footer-links a, .footer-contacts, .footer-contacts a { color: var(--text-secondary); font-size: .875rem; }
.footer a:hover { color: var(--gold); }
.social-row { display: flex; gap: .625rem; margin-top: 1.25rem; }
.social-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.footer-bottom { max-width: var(--max-width); margin: 2.5rem auto 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-bottom p { margin: .15rem 0; color: var(--text-muted); font-size: .78rem; }
.footer-credit { display: flex; align-items: center; gap: .625rem; color: var(--text-muted); font-size: .78rem; }
.footer-credit img { width: auto; height: 34px; }

@media (max-width: 1024px) {
  .nav-links { gap: 1rem; }
  .nav-call { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .nav-call-number { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .navbar { min-height: 74px; padding: .875rem 1.25rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-call { margin-left: auto; margin-right: 1rem; }
  main { padding: 2.25rem 1rem 3rem; }
  .map-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .project-actions { justify-content: start; }
  .project-meta { justify-content: start; }
  #map { min-height: 500px; height: 68vh; }
  /* bottom: 4rem keeps the panel clear of Leaflet's scale bar and credits line, which sit above it */
  .map-tools { left: 1rem; right: 1rem; top: auto; bottom: 4rem; grid-template-columns: auto 1fr 42px; }
  .footer { padding: 4rem 1.25rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: start; }
}
@media (max-width: 480px) {
  .nav-logo-name { display: none; }
  h1 { font-size: 3rem; }
  .project-meta span { font-size: .72rem; }
}

