:root {
  --map-beige: var(--neutral-050);
  --map-cream: #fff;
  --map-ink: var(--neutral-950);
  --map-muted: #686d6a;
  --map-line: rgba(114, 42, 53, 0.14);
  --map-burgundy: #722a35;
  --map-burgundy-dark: #571d26;
}

.property-map-page { color: var(--map-ink); background: var(--map-beige); }
.asset-map-main { overflow: clip; }

.asset-map-hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  max-height: none;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.asset-map-hero > img,
.asset-map-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.asset-map-hero > img {
  z-index: -4;
  object-fit: cover;
  transform: scale(1.08);
  animation: asset-map-hero-settle 1.8s cubic-bezier(0.22, 1, 0.36, 1) 1.35s both;
  will-change: transform;
}

.asset-map-hero__overlay {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.78) 0%, rgba(9, 9, 8, 0.35) 52%, rgba(9, 9, 8, 0.16) 100%),
    linear-gradient(0deg, rgba(9, 9, 8, 0.76) 0%, transparent 48%);
}

.asset-map-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(6rem, 10vw, 9rem);
}

.asset-map-hero__content { max-width: 960px; }

.asset-map-hero__content > span {
  display: block;
  color: #d8aeb4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.asset-map-hero h1.font-serif {
  margin: 1.15rem 0 1.5rem;
  font-family: "Engravers MT", Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 4.2rem) !important;
  font-weight: 400;
  font-variation-settings: normal;
  line-height: 1.06;
  letter-spacing: 0.005em;
}

.asset-map-hero h1.font-serif em { font-style: normal; font-weight: 400; font-variation-settings: normal; }

.asset-map-hero__content p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.asset-map-hero__stats {
  position: absolute;
  right: 12px;
  bottom: clamp(5.5rem, 8vw, 7rem);
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
}

.asset-map-hero__stats > div {
  min-width: 145px;
  padding: 1rem 1.25rem 0;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.asset-map-hero__stats strong,
.asset-map-hero__stats span { display: block; }
.asset-map-hero__stats strong { font-family: var(--font-sans); font-size: 2.8rem; font-weight: 280; font-variation-settings: "wght" 280; }
.asset-map-hero__stats span { color: rgba(255, 255, 255, 0.64); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

.asset-map-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.asset-map-hero__scroll i { transition: transform 0.22s ease; }
.asset-map-hero__scroll:hover i { transform: translateY(4px); }

.asset-map-hero__credit {
  position: absolute;
  right: 12px;
  bottom: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  text-decoration: none;
}

.asset-map-hero__credit:hover { color: #fff; }

.asset-map-hero__content > span,
.asset-map-hero__content h1,
.asset-map-hero__content p,
.asset-map-hero__stats,
.asset-map-hero__scroll,
.asset-map-hero__credit {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

body.property-map-page.is-home-ready .asset-map-hero__content > span,
body.property-map-page.is-home-ready .asset-map-hero__content h1,
body.property-map-page.is-home-ready .asset-map-hero__content p,
body.property-map-page.is-home-ready .asset-map-hero__stats,
body.property-map-page.is-home-ready .asset-map-hero__scroll,
body.property-map-page.is-home-ready .asset-map-hero__credit {
  opacity: 1;
  transform: translateY(0);
}

body.property-map-page.is-home-ready .asset-map-hero__content > span { transition-delay: 0.16s; }
body.property-map-page.is-home-ready .asset-map-hero__content h1 { transition-delay: 0.24s; }
body.property-map-page.is-home-ready .asset-map-hero__content p { transition-delay: 0.34s; }
body.property-map-page.is-home-ready .asset-map-hero__stats { transition-delay: 0.44s; }
body.property-map-page.is-home-ready .asset-map-hero__scroll,
body.property-map-page.is-home-ready .asset-map-hero__credit { transition-delay: 0.58s; }

@keyframes asset-map-hero-settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.asset-map-page {
  min-height: 100vh;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 8rem);
  background: var(--map-beige);
}

.asset-map-toolbar {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(280px, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--map-line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(22, 24, 21, 0.08);
}

.asset-map-toolbar > label {
  display: flex;
  align-items: center;
  padding: 0 0.45rem;
  color: var(--map-burgundy);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.asset-map-search {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1rem;
  background: var(--neutral-050);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.asset-map-search i { color: var(--map-muted); }

.asset-map-search:focus-within {
  background: #fff;
  border-color: var(--map-burgundy);
  box-shadow: 0 0 0 0.2rem rgba(114, 42, 53, 0.12);
}

.asset-map-search input {
  width: 100%;
  min-height: 52px;
  padding: 0;
  color: var(--map-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.96rem;
}

.asset-map-search input::placeholder { color: var(--neutral-600); }

.asset-map-toolbar__actions { display: flex; gap: 0.6rem; }

.asset-map-toolbar__actions button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1.1rem;
  color: var(--map-ink);
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.asset-map-toolbar__actions button:hover,
.asset-map-toolbar__actions button:focus-visible {
  color: var(--map-burgundy);
  border-color: rgba(114, 42, 53, 0.35);
  transform: translateY(-2px);
}

.asset-map-toolbar__actions button:last-child {
  color: #fff;
  background: var(--map-burgundy);
  border-color: var(--map-burgundy);
  box-shadow: 0 10px 22px rgba(87, 29, 38, 0.2);
}

.asset-map-toolbar__actions button:last-child:hover,
.asset-map-toolbar__actions button:last-child:focus-visible {
  color: #fff;
  background: var(--map-burgundy-dark);
  border-color: var(--map-burgundy-dark);
}

.asset-map-layout {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.asset-map-sidebar,
.asset-map-canvas-wrap {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 24px;
  box-shadow: 0 20px 52px rgba(22, 24, 21, 0.09);
}

.asset-map-sidebar { min-height: 720px; }

.asset-map-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 104px;
  padding: 1.35rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 58%),
    var(--map-burgundy);
}

.asset-map-sidebar-head span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.asset-map-sidebar-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.asset-map-sidebar-head > strong {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.asset-map-regions {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.95rem 1rem;
  background: var(--neutral-050);
  border-bottom: 1px solid var(--map-line);
  scrollbar-width: thin;
}

.asset-map-region-btn {
  padding: 0.52rem 0.78rem;
  color: var(--map-ink);
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.asset-map-region-btn:hover,
.asset-map-region-btn:focus-visible {
  color: var(--map-burgundy);
  border-color: rgba(114, 42, 53, 0.34);
}

.asset-map-region-btn.is-active,
.asset-map-region-btn.is-active:hover,
.asset-map-region-btn.is-active:focus-visible {
  color: #fff;
  background: var(--map-burgundy);
  border-color: var(--map-burgundy);
}

.asset-map-list-scroll {
  height: 552px;
  overflow: auto;
  padding: 1rem;
  scrollbar-color: rgba(114, 42, 53, 0.3) transparent;
  scrollbar-width: thin;
}

.asset-map-region-group + .asset-map-region-group { margin-top: 1rem; }

.asset-map-region-title {
  position: sticky;
  top: -1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.25rem 0.65rem;
  color: var(--map-burgundy);
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.asset-map-property {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.9rem;
  width: 100%;
  padding: 0.65rem;
  color: var(--map-ink);
  background: linear-gradient(135deg, #fff 0%, var(--neutral-050) 100%);
  border: 1px solid var(--map-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(22, 24, 21, 0.055);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.asset-map-property + .asset-map-property { margin-top: 0.75rem; }

.asset-map-property:hover,
.asset-map-property.is-active {
  background: #fff;
  border-color: var(--map-burgundy);
  box-shadow: 0 14px 30px rgba(87, 29, 38, 0.12);
  transform: translateY(-2px);
}

.asset-map-property.is-active {
  box-shadow:
    inset 4px 0 0 var(--map-burgundy),
    0 14px 30px rgba(87, 29, 38, 0.12);
}

.asset-map-property-cover,
.asset-map-property-cover-fallback {
  width: 104px;
  height: 108px;
  background: var(--neutral-200);
  border-bottom: 3px solid var(--map-burgundy);
  border-radius: 12px;
}

.asset-map-property-cover { object-fit: cover; }

.asset-map-property-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--map-muted);
}

.asset-map-property-body {
  min-width: 0;
  padding: 0.12rem 0;
}

.asset-map-property-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--map-ink);
  font-size: 0.92rem;
  font-weight: 650 !important;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.asset-map-property-meta {
  overflow: hidden;
  font-size: 0.64rem !important;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-map-property-price {
  color: var(--map-burgundy);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.asset-map-property-facts { margin-top: 0.12rem; }

.asset-map-property-facts.property-card-badges .badge {
  padding: 0.3rem 0.44rem;
  font-size: 0.61rem;
}

.asset-map-canvas-wrap { position: relative; min-height: 720px; }
.asset-map-canvas { width: 100%; height: 720px; }

.asset-map-empty {
  position: absolute;
  inset: 1rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--map-ink);
  background: rgba(245, 246, 245, 0.94);
  border: 1px solid var(--map-line);
  border-radius: 18px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.asset-map-empty > i {
  margin-bottom: 1rem;
  color: var(--map-burgundy);
  font-size: 2rem;
}

.asset-map-pin {
  position: relative;
  width: 36px;
  height: 36px;
  background: var(--map-burgundy);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.3);
  transform: rotate(-45deg);
}

.asset-map-pin::after {
  position: absolute;
  inset: 8px;
  content: '';
  background: #fff;
  border-radius: 50%;
}

.asset-map-popup { width: 260px; }

.asset-map-popup-cover {
  width: 100%;
  height: 140px;
  margin-bottom: 0.85rem;
  object-fit: cover;
  background: var(--neutral-200);
  border-bottom: 4px solid var(--map-burgundy);
  border-radius: 12px;
}

.asset-map-popup-title.property-card-title { font-size: 1.04rem; }
.asset-map-popup .property-price { font-size: 0.96rem; }
.asset-map-popup .property-card-location { font-size: 0.65rem !important; }

.asset-map-popup-facts.property-card-badges .badge {
  padding: 0.34rem 0.48rem;
  font-size: 0.63rem;
}

.asset-map-popup-cta.property-card-cta {
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.72rem;
  border-radius: 10px;
}

.asset-map-popup-cta.property-card-cta:visited,
.asset-map-popup-cta.property-card-cta:hover,
.asset-map-popup-cta.property-card-cta:focus-visible {
  color: #fff;
}

.asset-map-footer-note {
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(280px, 0.65fr) minmax(220px, 0.3fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 58%),
    var(--map-burgundy);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(87, 29, 38, 0.18);
}

.asset-map-footer-note > span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.asset-map-footer-note p { margin: 0; color: rgba(255, 255, 255, 0.72); }

.asset-map-footer-note a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.asset-map-footer-note a i { transition: transform 0.22s ease; }
.asset-map-footer-note a:hover i { transform: translate(3px, -3px); }

.property-map-page .leaflet-container { font-family: var(--font-sans); }
.property-map-page .leaflet-tile-pane { filter: saturate(0.72) contrast(0.96) brightness(1.02); }
.property-map-page .leaflet-popup-content { margin: 14px; }

.property-map-page .leaflet-popup-content-wrapper {
  border: 1px solid var(--map-line);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(22, 24, 21, 0.2);
}

.property-map-page .leaflet-popup-tip {
  border-right: 1px solid var(--map-line);
  border-bottom: 1px solid var(--map-line);
}

.property-map-page .leaflet-bar {
  overflow: hidden;
  border: 1px solid var(--map-line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(22, 24, 21, 0.14);
}

.property-map-page .leaflet-bar a {
  color: var(--map-burgundy);
  border-color: var(--map-line);
}

.property-map-page .leaflet-bar a:hover,
.property-map-page .leaflet-bar a:focus {
  color: #fff;
  background: var(--map-burgundy);
}

[data-editorial-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease var(--editorial-reveal-delay, 0ms), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--editorial-reveal-delay, 0ms);
}

[data-editorial-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .asset-map-hero__stats { position: static; margin-top: 3rem; align-self: flex-start; }
  .asset-map-hero__stats > div:first-child { border-left: 0; padding-left: 0; }

  .asset-map-toolbar { grid-template-columns: 1fr auto; }
  .asset-map-toolbar > label { grid-column: 1 / -1; }

  .asset-map-layout { grid-template-columns: 1fr; }
  .asset-map-canvas-wrap { order: 1; min-height: 58vh; }
  .asset-map-sidebar { order: 2; min-height: auto; }
  .asset-map-canvas { height: 58vh; min-height: 440px; }
  .asset-map-list-scroll { height: auto; max-height: 620px; }

  .asset-map-footer-note { grid-template-columns: 1fr 1fr; }
  .asset-map-footer-note > span { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .asset-map-hero,
  .asset-map-hero__inner {
    height: 100svh;
    min-height: 680px;
    max-height: none;
  }

  .asset-map-hero__overlay {
    background: linear-gradient(0deg, rgba(9, 9, 8, 0.84) 0%, rgba(9, 9, 8, 0.3) 80%, rgba(9, 9, 8, 0.18) 100%);
  }

  .asset-map-hero h1.font-serif { font-size: clamp(1.65rem, 7vw, 2.25rem) !important; line-height: 1.12; letter-spacing: 0; }
  .asset-map-hero__stats > div { min-width: 112px; padding-right: 0.75rem; padding-left: 0.75rem; }
  .asset-map-hero__stats strong { font-size: 2.25rem; }
  .asset-map-hero__credit { right: 1rem; bottom: 1.25rem; max-width: 130px; text-align: right; }
  .asset-map-hero__scroll { left: 1rem; bottom: 1.25rem; }

  .asset-map-toolbar { grid-template-columns: 1fr; padding: 0.8rem; border-radius: 20px; }
  .asset-map-toolbar > label { grid-column: auto; }
  .asset-map-toolbar__actions { min-height: 52px; }
  .asset-map-toolbar__actions button { flex: 1; }

  .asset-map-sidebar,
  .asset-map-canvas-wrap,
  .asset-map-footer-note { border-radius: 20px; }

  .asset-map-canvas { min-height: 420px; }

  .asset-map-property { grid-template-columns: 88px minmax(0, 1fr); gap: 0.75rem; }
  .asset-map-property-cover,
  .asset-map-property-cover-fallback { width: 88px; height: 96px; }

  .asset-map-footer-note { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  [data-editorial-reveal] { opacity: 1; transform: none; transition: none; }
  .asset-map-hero > img { animation: none; transform: none; }
  .asset-map-hero__content > span,
  .asset-map-hero__content h1,
  .asset-map-hero__content p,
  .asset-map-hero__stats,
  .asset-map-hero__scroll,
  .asset-map-hero__credit { opacity: 1; transform: none; transition: none; }
  .asset-map-property,
  .asset-map-region-btn,
  .asset-map-toolbar__actions button,
  .asset-map-hero__scroll i,
  .asset-map-footer-note a i { transition: none; }
}
