:root {
  --brand-primary: #34A8E5;
  --brand-dark:    #145f8f;
  --brand-sand:    #EDE8DF;
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Open Sans', Arial, sans-serif;
  --nav-h:         64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font-body); color: #1a1a1a; background: #fff; }
img  { display: block; max-width: 100%; }


/* ── Hero ── */
.dl-hero {
  height: calc(var(--hero-h, 100svh) - 130px);
  min-height: 380px; position: relative; overflow: hidden; background: #111;
}
.dl-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  filter: brightness(0.82);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}
.dl-hero__content {
  position: relative; z-index: 2; height: 100%; align-items: flex-start;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 80px 64px;
}
.dl-hero__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.35em;
  text-transform: uppercase; color: #fff; margin-bottom: 14px; background: rgba(0,0,0,0.35); padding: 4px 12px; border-radius: 4px; display: inline-block;
}
.dl-hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 300; color: #fff; line-height: 0.95; margin-bottom: 24px;
}
.dl-hero__facts { display: flex; gap: 16px; flex-wrap: wrap; }
.dl-hero__fact {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 8px;
  padding: 10px 18px; font-size: 13px; color: #fff; font-weight: 500;
}
.dl-hero__fact span { color: var(--brand-primary); font-weight: 700; }

/* ── Stats Strip ── */
.dl-stats {
  height: 130px; background: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.dl-stat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  padding: 0 16px; border-right: 1px solid rgba(255,255,255,0.12);
}
.dl-stat:last-child { border-right: none; }
.dl-stat__icon  { font-size: 20px; }
.dl-stat__value { font-size: 20px; font-weight: 700; color: #fff; font-family: var(--font-display); }
.dl-stat__label { font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }

/* ── Eye-Catchers Grid ── */
.dl-eyecatcher {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 340px;
}
.dl-ec-item {
  position: relative; overflow: hidden; cursor: default;
}
.dl-ec-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  filter: brightness(0.72);
}
@media (hover: hover) and (pointer: fine) {
  .dl-ec-item:hover img { transform: scale(1.06); filter: brightness(0.55); }
}
.dl-ec-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff;
}
.dl-ec-label strong {
  display: block; font-family: var(--font-display);
  font-size: 22px; font-weight: 300; letter-spacing: 0.04em;
}
.dl-ec-label span {
  font-size: 11px; color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ── Intro ── */
.dl-intro {
  max-width: 760px; margin: 64px auto; padding: 0 40px; text-align: center;
}
.dl-intro__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--brand-primary); margin-bottom: 20px;
}
.dl-intro h2 {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; color: #1a2940; line-height: 1.15; margin-bottom: 24px;
}
.dl-intro p {
  font-size: 16px; color: #4a5568; line-height: 1.8;
}

/* ── Map Section ── */
.dl-map-section {
  background: #EDE8DF;
  padding: 0 0 32px;
}
.dl-map-header {
  text-align: center; padding: 32px 40px 24px;
}
.dl-map-header h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300; color: #1a2940; margin-bottom: 12px;
}
.dl-map-header p {
  font-size: 14px; color: #718096; max-width: 500px; margin: 0 auto;
}

/* Category filter */
.dl-map-filters {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 24px; padding: 0 40px;
}
.dl-filter-btn {
  padding: 8px 20px; border-radius: 24px; border: 1.5px solid #ddd;
  background: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; cursor: pointer; transition: all 0.2s;
  color: #64748b;
}
.dl-filter-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.dl-filter-btn.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

/* Fixed info panel inside map */
.dl-map-frame {
  position: relative;
}
.dl-info-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none; /* overlay itself is click-through */
}
.dl-info-panel-overlay.visible { display: block; }
.dl-info-panel {
  position: fixed;
  top: 120px;
  right: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  width: 320px;
  max-width: calc(100vw - 40px);
  max-height: 75vh;
  overflow-y: auto;
  pointer-events: auto;
  cursor: default;
  user-select: none;
}
.dl-info-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 6px;
  cursor: grab;
  background: #f8fafc;
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid #e2e8f0;
}
.dl-info-panel__header:active { cursor: grabbing; }
.dl-info-panel__drag-hint {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.05em;
}
.dl-info-panel__close {
  width: 26px; height: 26px; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer;
  font-size: 14px; color: #64748b; line-height: 26px;
  text-align: center; flex-shrink: 0;
}
.dl-info-panel__close:hover { background: #e2e8f0; color: #1a2940; }
.dl-info-panel__inner { padding: 14px; }

/* Map frame */
.dl-map-frame {
  margin: 0 40px;
  border-radius: 16px;
  overflow: hidden;
  max-width: calc(100% - 80px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  border: 3px solid #fff;
  position: relative;
  height: 520px;
}
#dl-map {
  height: 100%;
  width: 100%;
}

/* Custom Leaflet popup */
.dl-popup {
  min-width: 280px; max-width: 300px;
}
.dl-popup img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: 8px; margin-bottom: 12px;
  margin-left: -1px; margin-right: -1px; width: calc(100% + 2px);
}
.dl-popup-cat {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 5px;
}
.dl-popup-name {
  font-size: 18px; font-weight: 600; color: #1a2940; margin-bottom: 7px;
  font-family: 'Cormorant Garamond', serif; line-height: 1.2;
}
.dl-popup-desc {
  font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 10px;
}
.dl-popup-dist {
  display: flex; gap: 14px; margin-bottom: 12px;
}
.dl-popup-dist span {
  font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 4px;
}
.dl-popup-route-status {
  font-size: 11px; color: #94a3b8; text-align: center;
  margin-bottom: 8px; min-height: 16px;
}
.dl-popup-btn {
  display: block; text-align: center;
  background: var(--brand-primary); color: #fff !important; text-decoration: none;
  border-radius: 8px; padding: 10px 16px; font-size: 13px; font-weight: 600;
  transition: background 0.2s; border: none; cursor: pointer; width: 100%;
}
.dl-popup-btn:hover { background: var(--brand-dark); color: #fff !important; }
.dl-popup-btn:disabled {
  background: #cbd5e0; cursor: default;
}

/* Streetview button in popup */
.dl-popup-sv-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px; margin: 0 0 10px;
  background: #1a2940; color: #fff; border: none;
  border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
.dl-popup-sv-btn:hover { background: #0f1a2b; }

/* Streetview fullscreen modal */
.dl-sv-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 10000;
  flex-direction: column;
}
.dl-sv-modal.visible { display: flex; }
.dl-sv-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #1a2940;
}
.dl-sv-modal-title {
  color: #fff; font-size: 14px; font-weight: 600;
}
.dl-sv-modal-close {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.dl-sv-modal-close:hover { background: rgba(255,255,255,0.3); }
.dl-sv-modal iframe {
  flex: 1; width: 100%; border: 0;
}

/* Share overlay */
.dl-share-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 9999;
  align-items: center; justify-content: center;
}
.dl-share-overlay.visible { display: flex; }
.dl-share-box {
  background: #fff; border-radius: 16px; padding: 28px 32px;
  max-width: 340px; width: 90%; box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  text-align: center;
}
.dl-share-box h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 22px;
  color: #1a2940; margin-bottom: 6px;
}
.dl-share-box p {
  font-size: 13px; color: #718096; margin-bottom: 20px; line-height: 1.5;
}
.dl-share-options {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px;
}
.dl-share-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; text-decoration: none;
  font-size: 14px; font-weight: 600; transition: opacity 0.2s;
}
.dl-share-opt:hover { opacity: 0.85; }
.dl-share-opt--maps  { background: #e8f5e9; color: #1a7c34; }
.dl-share-opt--wa    { background: #e7fbe8; color: #1a7c34; }
.dl-share-opt--sms   { background: #e8f4fd; color: #1a5fa0; }
.dl-share-opt--email { background: #f3f0ff; color: #5b21b6; }
.dl-share-close {
  font-size: 13px; color: #94a3b8; cursor: pointer; text-decoration: underline;
  background: none; border: none;
}

/* House marker */
.dl-house-icon {
  background: var(--brand-dark); border: 3px solid #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Legend */
.dl-map-legend {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; margin-top: 12px; padding: 0 40px;
}
.dl-legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #64748b; letter-spacing: 0.05em;
}
.dl-legend-dot {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ── CTA ── */
.dl-cta {
  background: var(--brand-dark); padding: 32px 40px;
  text-align: center; display: flex; align-items: center;
  justify-content: center; gap: 40px; flex-wrap: wrap;
}
.dl-cta h2 {
  font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300; color: #fff; margin: 0;
}
.dl-cta p { display: none; }
.dl-cta-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.dl-cta-btn {
  padding: 14px 32px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.2s; border: none;
}
.dl-cta-btn--primary {
  background: var(--brand-primary); color: #fff;
}
.dl-cta-btn--primary:hover { background: #2596d1; }
.dl-cta-btn--outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.dl-cta-btn--outline:hover { border-color: #fff; }

/* ── Leaflet overrides ── */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 14px !important;
  font-family: 'Open Sans', sans-serif;
}
.leaflet-popup-tip-container { display: none; }
.dl-custom-popup .leaflet-popup-close-button {
  top: 8px !important; right: 10px !important;
  width: 26px !important; height: 26px !important;
  font-size: 18px !important; color: #64748b !important;
  background: #f1f5f9 !important; border-radius: 50% !important;
  line-height: 26px !important; text-align: center !important;
}
.dl-custom-popup .leaflet-popup-close-button:hover {
  background: #e2e8f0 !important; color: #1a2940 !important;
}


@media (max-width: 900px) {
  .dl-map-frame { margin: 0 16px !important; max-width: calc(100% - 32px) !important; }
  .dl-info-panel { width: calc(100vw - 40px); max-width: 300px; }
  .dl-eyecatcher { grid-template-columns: 1fr 1fr; height: auto; }
  .dl-ec-item { height: 200px; }
  .dl-stats { flex-wrap: wrap; height: auto; padding: 24px 16px; gap: 16px; }
  .dl-stat { border-right: none; min-width: 120px; }
  .dl-map-frame { margin: 0 16px; }
  .dl-hero__content { padding: 0 32px 48px; }
  .ob-sub-nav { padding: 0 20px; }
  .ob-sub-nav__links { display: none; }
}

