/* Shared map chrome — Munnings Construction preview */
:root {
  --navy: #063A5E;
  --navy-dark: #031D2F;
  --navy-hover: #052E4B;
  --gold: #F8DA00;
  --gold-hover: #C6AE00;
  --logo-yellow: #FAE925;
  --ink: #4A4A4A;
  --mist: #EEF2F5;
  --water: #B4C9D1;
  --white: #fff;
  --radius: 14px;
  --ease: cubic-bezier(.22, .82, .2, 1);
  --header-h: 76px;
  --toolbar-h: 64px;
  --font: Lato, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--mist);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}
.skip-link {
  position: absolute; left: .75rem; top: -3rem; z-index: 80;
  background: var(--gold); color: #111; padding: .5rem .8rem; font-weight: 700;
  border-radius: 4px;
}
.skip-link:focus { top: .75rem; }
.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;
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1.15rem; min-height: var(--header-h);
  background: var(--white); border-bottom: 3px solid var(--gold);
  z-index: 20; flex: 0 0 auto;
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; min-width: 0; }
.logo { height: 46px; width: auto; display: block; }
.eyebrow { margin: 0; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #7c6d00; }
.brand-text h1 { margin: .1rem 0 0; font-size: 1.25rem; font-weight: 900; line-height: 1.15; }
.all-variants {
  font-size: .82rem; font-weight: 700; color: var(--navy); text-decoration: none;
  border: 1px solid #d5dde3; border-radius: 999px; padding: .4rem .85rem; white-space: nowrap;
}
.all-variants:hover, .all-variants:focus { background: var(--navy); color: #fff; outline: none; }

.toolbar {
  display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap;
  padding: .55rem 1.15rem; background: var(--white); border-bottom: 1px solid #e4eaee;
  z-index: 15; flex: 0 0 auto;
}
.filters { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 auto; }
.chip {
  appearance: none; border: 1px solid #c5d0d8; background: #fff; color: var(--navy);
  font: 700 .8rem/1 var(--font); letter-spacing: .02em; padding: .45rem .8rem;
  border-radius: 999px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.chip:hover { border-color: var(--navy); }
.chip:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pin-count { margin: 0; font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap; }

.stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
#map { flex: 1 1 auto; min-width: 0; height: 100%; }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* Markers */
.mk, .cl {
  border: 0; padding: 0; background: transparent; cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
  filter: drop-shadow(0 3px 6px rgba(6,58,94,.28));
}
.mk { width: 32px; height: 40px; }
.cl {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 900 .85rem/40px var(--font);
  text-align: center; transform-origin: 50% 50%;
  box-shadow: 0 0 0 3px var(--gold), 0 4px 10px rgba(6,58,94,.3);
}
.mk.is-enter, .cl.is-enter { animation: pop-in .4s var(--ease); }
.mk.is-exit, .cl.is-exit { opacity: 0; transform: scale(.35); pointer-events: none; }
.mk.is-hover { transform: scale(1.12); z-index: 4; }
.mk.is-active, .mk.is-active.is-hover { transform: scale(1.18); z-index: 5; }
.mk:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.cl:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(.4) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Panel / card */
.panel {
  position: absolute; z-index: 30; background: #fff; color: var(--navy);
  box-shadow: 0 18px 50px rgba(6,58,94,.22); overflow: auto;
  display: flex; flex-direction: column;
}
.panel[hidden], .panel-backdrop[hidden], .project-list[hidden] { display: none !important; }
.panel-close {
  position: absolute; top: .55rem; right: .55rem; z-index: 4;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.5rem; line-height: 1;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.panel-close:hover, .panel-close:focus { background: var(--gold); outline: none; }
.sheet-handle { display: none; }

.carousel { position: relative; background: #0b2a40; aspect-ratio: 4 / 3; flex: 0 0 auto; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform .4s var(--ease); }
.slide { min-width: 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(-45deg, #0b2a40, #0b2a40 12px, #0e3550 12px, #0e3550 24px);
  color: #dce3e8; font-size: .85rem; padding: 1.5rem; border: 2px dashed rgba(248,218,0,.45);
}
.placeholder span { max-width: 14rem; line-height: 1.4; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.3rem;
  cursor: pointer; z-index: 2;
}
.carousel-nav.prev { left: .55rem; }
.carousel-nav.next { right: .55rem; }
.carousel-nav:hover, .carousel-nav:focus { background: var(--gold); outline: none; }
.carousel-nav[hidden] { display: none; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: .55rem; display: flex; justify-content: center; gap: .35rem; z-index: 2; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.5); cursor: pointer;
}
.dot[aria-selected="true"] { background: var(--gold); transform: scale(1.2); }

.panel-body { padding: 1rem 1.15rem 1.25rem; }
.panel-industry {
  margin: 0 0 .3rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: #7c6d00;
}
.panel-body h2 { margin: 0 0 .5rem; font-size: 1.2rem; line-height: 1.25; font-weight: 900; }
.panel-approx { margin: 0 0 .75rem; font-size: .8rem; color: #6b7a84; }
.panel-meta { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: .35rem .85rem; font-size: .9rem; }
.panel-meta dt { font-weight: 700; color: var(--navy); }
.panel-meta dd { margin: 0; color: var(--ink); }
.btn-gold {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--gold); color: #111; font: 700 .9rem/1 var(--font);
  text-decoration: none; padding: .75rem 1.15rem; border-radius: 20px;
  transition: background .25s ease, padding-right .3s var(--ease);
}
.btn-gold:hover, .btn-gold:focus { background: var(--gold-hover); padding-right: 1.45rem; outline: none; }

.panel-backdrop {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgba(3,29,47,.35); z-index: 25; cursor: pointer;
}

/* List (variation C, also usable) */
.project-list {
  width: min(360px, 42vw); flex: 0 0 auto; overflow: auto;
  background: #fff; border-right: 1px solid #e4eaee;
}
.list-item {
  display: grid; grid-template-columns: 72px 1fr; gap: .7rem; align-items: center;
  width: 100%; text-align: left; border: 0; border-bottom: 1px solid #eef2f5;
  background: #fff; padding: .7rem .85rem; cursor: pointer; font: inherit; color: inherit;
  transition: background .2s ease;
}
.list-item:hover, .list-item:focus, .list-item.is-hover { background: #f7f4e0; outline: none; }
.list-item.is-hover:not(.is-active) { box-shadow: inset 3px 0 0 #e6d36a; }
.list-item.is-active { background: #f3f1d8; box-shadow: inset 3px 0 0 var(--gold); }
.list-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--navy); }
.list-thumb.ph { display: flex; align-items: center; justify-content: center; color: #dce3e8; font-size: .65rem; }
.list-item h3 { margin: 0 0 .2rem; font-size: .88rem; font-weight: 700; line-height: 1.25; }
.list-item .meta { margin: 0; font-size: .72rem; color: #6b7a84; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }

@media (max-width: 800px) {
  .brand-text h1 { font-size: 1.05rem; }
  .logo { height: 38px; }
  .all-variants { display: none; }
  .stage { flex-direction: column; }
  .project-list { width: 100%; max-height: 34%; border-right: 0; border-bottom: 1px solid #e4eaee; }
  .panel.sheet {
    left: 0; right: 0; bottom: 0; top: auto; width: 100%;
    max-height: min(82vh, 640px); border-radius: 16px 16px 0 0;
  }
  .sheet-handle {
    display: block; width: 40px; height: 4px; border-radius: 2px;
    background: #c5d0d8; margin: .55rem auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mk.is-enter, .cl.is-enter { animation: none; }
}
