:root {
  --bg: #f5f2eb;
  --surface: #ffffff;
  --surface-2: #171717;
  --text: #171717;
  --muted: #666256;
  --line: rgba(23, 23, 23, 0.1);
  --accent: #b88647;
  --accent-dark: #936830;
  --shadow: 0 22px 60px rgba(22, 22, 22, 0.1);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(184, 134, 71, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f5ef 0%, #f3efe8 42%, #faf9f6 100%);
  line-height: 1.6;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  font-weight: 700;
}

h1, h2, h3 { font-family: Manrope, Inter, sans-serif; letter-spacing: -0.03em; }
h1 {
  margin: 0 0 30px;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: none;
}
h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.04; }
h3 { margin: 0 0 10px; font-size: 1.18rem; }
p { margin: 0 0 18px; color: var(--muted); }
.lead {
  font-size: 1.04rem;
  max-width: 56ch;
  margin-top: 6px;
  margin-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 245, 239, 0.84);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a {
  color: #3b382f;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 6px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  width: 46px; height: 46px; font-size: 1.2rem; cursor: pointer;
}

.hero-grid, .section-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero {
  padding-top: 58px;
  padding-bottom: 84px;
}
.hero-copy { padding-right: 24px; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 30px;
}
.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hero-notes div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
}
.hero-notes strong, .hero-notes span { display: block; }
.hero-notes strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.hero-notes span { color: #2e2d2b; font-weight: 600; font-size: 0.95rem; }
.hero-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 560px;
}
.hero-frame img, .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  width: min(82%, 340px);
  margin: -56px 0 0 auto;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(22,22,22,0.9);
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 45px rgba(0,0,0,0.24);
}
.hero-card span { display: block; color: rgba(255,255,255,0.66); margin-bottom: 8px; font-size: 0.9rem; }
.hero-card strong { font-size: 1.08rem; line-height: 1.3; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #d3a15c); color: #fff; }
.btn-secondary { background: transparent; border: 1px solid var(--line); }
.btn-block { width: 100%; }
.contact-form .btn { width: fit-content; min-width: 180px; }
.text-link { font-weight: 700; color: var(--text); position: relative; }
.text-link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent); }

.rounded-xl { border-radius: 28px; }
.shadow-xl { box-shadow: var(--shadow); }
.copy-block { max-width: 600px; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.about, .highlight-section { background: rgba(255,255,255,0.5); }
.about-grid { align-items: stretch; }
.about-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  max-height: 560px;
  object-fit: cover;
}

.services-heading { margin-bottom: 28px; }
.services-heading h2 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 4.6vw, 3.5rem);
  line-height: 1.02;
  font-weight: 800;
}
.card, .service-card, .contact-panel, .video-card, .projects-shell {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(23,23,23,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.services-grid {
  display: grid;
  gap: 20px;
}
.services-grid.six-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-card {
  padding: 28px;
  min-height: 100%;
}
.service-card span {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(184,134,71,0.12); color: var(--accent-dark); font-weight: 800; margin-bottom: 16px;
}

.projects-section {
  padding-top: 74px;
  padding-bottom: 74px;
}
.projects-shell {
  padding: 30px;
}
.projects-copy {
  max-width: 760px;
  margin-bottom: 28px;
}
.projects-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}
.carousel-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(23,23,23,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 30px rgba(22,22,22,0.08);
  font-size: 1.15rem;
  cursor: pointer;
}
.projects-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 32%);
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.project-card {
  display: grid;
  grid-template-rows: 240px 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(23,23,23,0.08);
  box-shadow: 0 18px 44px rgba(22, 22, 22, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  scroll-snap-align: start;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(22, 22, 22, 0.16);
}
.project-card-media {
  position: relative;
  overflow: hidden;
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(22,22,22,0.8);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}
.project-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-card-topline strong {
  color: #2f2b24;
  font-size: 0.8rem;
}
.project-card-body h3 {
  margin: 0;
  font-size: 1.35rem;
}
.project-card-body p {
  margin: 0;
}
.project-card-link {
  font-weight: 800;
  color: var(--text);
}

.site-header-solid {
  position: sticky;
}
.site-nav-static {
  display: flex;
}
.project-hero-section {
  padding-top: 54px;
  padding-bottom: 48px;
}
.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.project-cover-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(23,23,23,0.08);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.88);
}
.project-cover-card img {
  width: 100%;
  min-height: 460px;
  max-height: 620px;
  object-fit: cover;
}
.project-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.project-meta-strip div {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.project-meta-strip span,
.project-meta-strip strong {
  display: block;
}
.project-meta-strip span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.project-meta-strip strong {
  color: #2f2b24;
}
.project-gallery-section {
  padding-top: 24px;
}
.project-gallery-heading {
  margin-bottom: 28px;
}
.project-photo-wall {
  column-count: 3;
  column-gap: 18px;
}
.project-photo-wall-two-col {
  column-count: 2;
}
.project-photo-card {
  break-inside: avoid;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 44px rgba(22, 22, 22, 0.12);
}
.project-photo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.highlight-grid {
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
  gap: 56px;
}
.highlight-copy {
  padding: 12px 0;
}
.highlight-copy .check-list {
  max-width: 34rem;
}
.check-list { list-style: none; padding: 0; margin: 24px 0 28px; }
.check-list li { margin-bottom: 12px; padding-left: 28px; position: relative; color: #3b382f; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--accent-dark); font-size: 0.75rem;
}
.video-card { padding: 18px; align-self: center; }
.video-card video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  max-height: 560px;
  border-radius: 18px;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}
.video-card video::-webkit-media-controls { display: none !important; }

.contact-stack {
  display: grid;
  gap: 28px;
}
.contact-grid { align-items: start; }
.contact-top {
  align-items: stretch;
}
.contact-details {
  display: grid; gap: 16px; margin-top: 28px;
}
.contact-details div {
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.contact-details span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-dark); font-weight: 700; margin-bottom: 6px; }
.contact-details strong, .contact-details a { font-size: 1.02rem; font-weight: 600; }
.contact-panel {
  padding: 18px;
  display: grid;
  gap: 18px;
}
.contact-image-panel {
  min-height: 100%;
}
.contact-form-shell {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(23,23,23,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.contact-form-heading {
  max-width: 760px;
  margin-bottom: 20px;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-form {
  display: grid;
  gap: 14px;
  padding: 0;
}
.contact-form label { display: grid; gap: 8px; color: #2f2b24; font-size: 0.95rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid rgba(23,23,23,0.1); border-radius: 16px; padding: 14px 16px;
  font: inherit; background: rgba(255,255,255,0.85);
}
.contact-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: #efe9de;
  display: flex;
  justify-content: center;
}
.contact-image-wrap.portrait img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 620px;
  object-fit: cover;
}

.site-footer { padding: 22px 0 42px; }
.footer-wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.footer-wrap p { margin: 0; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .services-grid.six-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .hero-grid, .section-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; }
  .hero-frame { min-height: 520px; }
  .highlight-grid { gap: 28px; }
  .video-card video { min-height: 420px; max-height: none; }
  .project-hero-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-auto-columns: minmax(300px, 72%); }
  .about-media img { max-height: 520px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .project-photo-wall { column-count: 2; }
  .project-meta-strip { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute; top: calc(100% + 10px); right: 20px; left: 20px;
    display: none; flex-direction: column; align-items: flex-start;
    padding: 18px; border-radius: 20px; background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow); border: 1px solid rgba(23,23,23,0.08);
  }
  .site-nav.open { display: flex; }
  .brand-logo { height: 46px; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .hero-notes { grid-template-columns: 1fr; }
  .hero-frame { min-height: 440px; }
  .hero-card { width: calc(100% - 16px); margin-top: -34px; }
  .services-grid.six-up { grid-template-columns: 1fr; }
  .project-hero-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-auto-columns: 86%; }
  .projects-carousel-controls { justify-content: space-between; }
  .project-card { grid-template-rows: 220px 1fr; }
  .project-photo-wall,
  .project-photo-wall-two-col { column-count: 1; }
  .video-card video { min-height: 360px; }
  .projects-shell { padding: 22px; }
  .site-nav-static { display: none; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}
/* === projects refresh overrides === */
.hero-metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  background: #1f6fbe;
  color: #111;
  border-radius: 0;
  padding: 28px 36px 18px;
}
.hero-metrics-band div { min-height: 92px; }
.hero-metrics-band strong {
  display: block;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
}
.hero-metrics-band span {
  display: block;
  color: rgba(17,17,17,0.72);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}
.projects-shell-wide {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.projects-copy { margin-bottom: 24px; }
.projects-copy h2 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
.projects-slider-wrap {
  position: relative;
}
.projects-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 46vw);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 36px;
}
.projects-grid::-webkit-scrollbar { display: none; }
.projects-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.94);
}
.projects-arrow.left { left: 10px; }
.projects-arrow.right { right: 10px; }
.project-card {
  scroll-snap-align: start;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  grid-template-rows: minmax(420px, 30vw) auto;
}
.project-card:hover { transform: none; box-shadow: none; }
.project-card-media {
  border-radius: 0;
  overflow: hidden;
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.project-card:hover .project-card-media img { transform: scale(1.02); }
.project-card-body.simple {
  padding: 16px 0 0;
  gap: 4px;
}
.project-card-body.simple h3 {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.project-card-body.simple p {
  margin: 0;
  color: #2b2b2b;
  font-size: 1rem;
}
.project-card-badge,
.project-card-topline,
.project-card-link { display: none !important; }
.project-meta-strip-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-photo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}
.project-photo-card.center-image {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.project-photo-card.center-image img {
  object-position: left center;
  margin: 0;
}
.project-photo-card.center-image-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.project-photo-card.center-image-center img {
  width: auto;
  max-width: 100%;
  object-position: center center;
  margin: 0 auto;
}
@media (max-width: 1080px) {
  .hero-metrics-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-auto-columns: 72vw; padding: 0 20px; }
  .project-card { grid-template-rows: minmax(340px, 48vw) auto; }
}
@media (max-width: 760px) {
  .hero-metrics-band {
    grid-template-columns: 1fr;
    padding: 24px 20px 16px;
  }
  .projects-grid {
    grid-auto-columns: 86vw;
    padding: 0 16px;
  }
  .projects-arrow {
    width: 42px;
    height: 42px;
    top: 38%;
  }
  .project-card { grid-template-rows: minmax(280px, 58vw) auto; }
  .project-card-body.simple h3 { font-size: 1.25rem; }
}


/* === project map module === */
.project-map-section {
  padding-top: 78px;
  padding-bottom: 84px;
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(245,242,235,0.74));
}
.project-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: 500px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(23,23,23,0.08);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}
.project-map-canvas {
  min-height: 500px;
  height: 500px;
  width: 100%;
  background: #e8e0d2;
}
.project-map-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid rgba(23,23,23,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,247,241,0.94));
}
.map-panel-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project-map-panel h3 {
  margin-bottom: 10px;
  font-size: 1.7rem;
}
.project-map-panel p {
  margin-bottom: 22px;
}
.project-map-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 6px;
}
.project-map-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(23,23,23,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.project-map-item:hover,
.project-map-item.active {
  transform: translateY(-2px);
  border-color: rgba(184,134,71,0.42);
  background: rgba(184,134,71,0.08);
}
.project-map-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}
.project-map-item strong {
  display: block;
  color: #24221d;
  line-height: 1.25;
  margin-bottom: 4px;
}
.project-map-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.project-popup h4 {
  margin: 0 0 4px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1rem;
}
.project-popup p {
  margin: 0 0 10px;
  color: #5b554a;
}
.project-popup a {
  display: inline-flex;
  color: var(--accent-dark);
  font-weight: 800;
}
.leaflet-container {
  font-family: Inter, system-ui, sans-serif;
}
.leaflet-popup-content-wrapper {
  border-radius: 16px;
}
.project-map-marker {
  width: 30px !important;
  height: 30px !important;
  margin-left: -15px !important;
  margin-top: -15px !important;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 3px solid #fff;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(22,22,22,0.22);
}
@media (max-width: 1080px) {
  .project-map-shell { grid-template-columns: 1fr; }
  .project-map-panel { border-left: 0; border-top: 1px solid rgba(23,23,23,0.08); }
  .project-map-list { max-height: 360px; }
}
@media (max-width: 760px) {
  .project-map-canvas { min-height: 360px; height: 360px; }
  .project-map-shell { min-height: 0; border-radius: 24px; }
  .project-map-panel { padding: 22px; }
}


/* Critical Leaflet layout CSS fallback: keeps map tiles/layers positioned correctly even if CDN CSS is delayed or blocked. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}
.leaflet-container {
  overflow: hidden;
  background: #ddd;
  outline-offset: 1px;
}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}
.leaflet-tile {
  filter: inherit;
  visibility: hidden;
}
.leaflet-tile-loaded {
  visibility: inherit;
}
.leaflet-zoom-animated {
  transform-origin: 0 0;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}
.leaflet-container .leaflet-overlay-pane svg {
  max-width: none !important;
  max-height: none !important;
}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  width: auto;
  padding: 0;
}
.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-control-zoom {
  border: 2px solid rgba(0,0,0,0.2);
  background: #fff;
  border-radius: 4px;
}
.leaflet-control-zoom a {
  display: block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  color: #000;
  background: #fff;
}


/* Stable illustrated project map: no external tile dependency, no blank map gaps. */
.project-map-canvas {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  height: 430px;
  background: #dfe7dc;
}
.static-project-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 42% 48%, rgba(255,255,255,0.82) 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(217,224,209,0.95), rgba(241,235,220,0.95));
}
.static-project-map::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(80,90,75,0.08);
  border-radius: 42% 58% 48% 52%;
  background: rgba(255,255,255,0.28);
}
.map-water {
  position: absolute;
  background: linear-gradient(135deg, rgba(126,177,190,0.58), rgba(165,205,214,0.38));
  filter: blur(0.2px);
}
.water-north { left: -8%; top: -16%; width: 58%; height: 34%; border-radius: 0 0 70% 40%; transform: rotate(-5deg); }
.water-south { right: -14%; bottom: -18%; width: 72%; height: 36%; border-radius: 70% 0 0 0; transform: rotate(7deg); }
.map-road {
  position: absolute;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(150,140,120,0.16);
}
.road-1 { left: 12%; top: 50%; width: 76%; transform: rotate(-14deg); }
.road-2 { left: 30%; top: 18%; width: 7px; height: 70%; transform: rotate(18deg); }
.road-3 { left: 18%; top: 68%; width: 54%; transform: rotate(8deg); }
.map-label {
  position: absolute;
  color: rgba(36,34,29,0.52);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.label-vancouver { left: 25%; top: 42%; }
.label-burnaby { left: 54%; top: 30%; }
.label-richmond { left: 51%; top: 78%; }
.label-coquitlam { left: 70%; top: 20%; }
.map-cluster-note {
  position: absolute;
  left: 26px;
  bottom: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: #5b554a;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.static-map-marker {
  position: absolute;
  z-index: 5;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  margin-top: -16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 3px solid #fff;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(22,22,22,0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.static-map-marker:hover,
.static-map-marker.active {
  transform: scale(1.16);
  box-shadow: 0 14px 32px rgba(184,134,71,0.38);
}
@media (max-width: 760px) {
  .project-map-canvas { min-height: 340px; height: 340px; }
  .map-cluster-note { left: 16px; bottom: 16px; }
}


/* Final project map layout fix: keep the left map and right list the same height. */
.project-map-shell {
  height: 500px;
  min-height: 500px;
  align-items: stretch;
}
.project-map-canvas {
  height: 100% !important;
  min-height: 500px !important;
  align-self: stretch;
}
.static-project-map {
  height: 100%;
}
.project-map-panel {
  height: 500px;
  overflow: hidden;
}
.project-map-list {
  min-height: 0;
  overflow-y: auto;
}
@media (max-width: 1080px) {
  .project-map-shell {
    height: auto;
    min-height: 0;
  }
  .project-map-panel {
    height: auto;
    max-height: 460px;
  }
}
@media (max-width: 760px) {
  .project-map-canvas {
    min-height: 360px !important;
    height: 360px !important;
  }
}


/* Restored real map final fit: keep Leaflet map filling the fixed-height module. */
.project-map-canvas .leaflet-container,
#project-map-canvas.leaflet-container {
  height: 100% !important;
  min-height: 500px !important;
}
@media (max-width: 760px) {
  .project-map-canvas .leaflet-container,
  #project-map-canvas.leaflet-container {
    min-height: 360px !important;
  }
}


/* Marker click feedback before opening the project page. */
.project-map-marker.clicked {
  animation: projectMarkerClick 0.85s ease both;
  z-index: 999 !important;
}
@keyframes projectMarkerClick {
  0% { transform: scale(1); box-shadow: 0 10px 24px rgba(22,22,22,0.22); }
  35% { transform: scale(1.45); box-shadow: 0 0 0 12px rgba(184,134,71,0.22), 0 18px 34px rgba(184,134,71,0.38); }
  100% { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(184,134,71,0.12), 0 14px 28px rgba(22,22,22,0.24); }
}
