:root {
  --navy: #17233f;
  --navy-2: #263454;
  --gold: #cbb588;
  --gold-deep: #ae9058;
  --cream: #f5f0e7;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #17233f;
  --muted: #667085;
  --line: rgba(23, 35, 63, .13);
  --green: #1e756b;
  --shadow: 0 22px 58px rgba(23, 35, 63, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(20px, 4vw, 64px);
  background: rgba(251, 250, 247, .9);
  border-bottom: 1px solid rgba(23, 35, 63, .08);
  backdrop-filter: blur(16px);
}
.brand { display: block; height: 56px; }
.brand img { display: block; width: auto; height: 100%; object-fit: contain; }
.top-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease;
}
.top-contact:hover { transform: translateY(-2px); background: var(--navy-2); }

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  gap: 50px;
  padding: clamp(68px, 9vw, 128px) clamp(22px, 7vw, 112px);
  color: var(--white);
  background:
    radial-gradient(circle at 76% 48%, rgba(203, 181, 136, .2), transparent 24%),
    linear-gradient(135deg, #101a31 0%, #1a294a 60%, #24375d 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -180px;
  bottom: -230px;
  border: 1px solid rgba(203, 181, 136, .3);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(203, 181, 136, .04), 0 0 0 104px rgba(203, 181, 136, .025);
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.7vw, 96px);
  line-height: .93;
  letter-spacing: -.045em;
  font-weight: 500;
}
h1 em { color: var(--gold); font-weight: 500; }
.hero-lead { max-width: 640px; color: rgba(255,255,255,.75); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-stats span {
  min-width: 126px;
  padding: 14px 18px;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  font-size: 13px;
}
.hero-stats strong { color: var(--white); display: block; margin-bottom: 2px; font-family: Georgia, serif; font-size: 24px; }
.hero-orbit {
  position: relative;
  z-index: 2;
  width: min(34vw, 460px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: inset 0 0 0 54px rgba(255,255,255,.02), inset 0 0 0 108px rgba(255,255,255,.018);
}
.orbit-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 32px 32px 32px 4px;
  background: var(--gold);
  box-shadow: 0 26px 70px rgba(0,0,0,.25);
}
.orbit-mark span { transform: rotate(-45deg); color: var(--navy); font-family: Georgia, serif; font-size: 34px; }
.orbit-label { position: absolute; padding: 8px 13px; color: var(--white); background: rgba(14,25,48,.8); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: 12px; font-weight: 700; }
.orbit-a { left: -3%; top: 25%; }
.orbit-b { right: -8%; top: 18%; }
.orbit-c { right: 2%; bottom: 15%; }

.explore, .compare { padding: clamp(72px, 8vw, 112px) clamp(18px, 4.5vw, 72px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 auto 28px; max-width: 1500px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 500; }
.locate-btn {
  padding: 11px 16px;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}
.locate-btn:hover { border-color: var(--navy); }
.zone-tabs { display: flex; gap: 8px; max-width: 1500px; margin: 0 auto 16px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.zone-tabs::-webkit-scrollbar { display: none; }
.zone-tab {
  flex: none;
  padding: 11px 17px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}
.zone-tab.is-active { color: var(--white); background: var(--navy); border-color: var(--navy); }

.map-shell {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  max-width: 1500px;
  height: min(74vh, 790px);
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.property-panel { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--line); }
.panel-intro { display: flex; justify-content: space-between; gap: 12px; padding: 20px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.panel-intro span:first-child { color: var(--navy); }
.property-list { overflow-y: auto; padding: 8px; }
.property-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  text-align: left;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
}
.property-item:hover { background: var(--cream); }
.property-item.is-active { background: var(--navy); color: var(--white); }
.property-index { width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); background: var(--gold); border-radius: 13px 13px 13px 3px; font-family: Georgia, serif; font-weight: 700; }
.property-meta { min-width: 0; }
.property-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.property-meta small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.property-item.is-active .property-meta small { color: rgba(255,255,255,.65); }
.property-arrow { font-size: 18px; }
.map-wrap { position: relative; min-width: 0; }
#map { width: 100%; height: 100%; background: #dce4e8; }
.map-legend, .map-filters { position: absolute; z-index: 500; display: flex; align-items: center; gap: 12px; padding: 10px 13px; background: rgba(255,255,255,.92); border: 1px solid rgba(23,35,63,.1); border-radius: 14px; box-shadow: 0 8px 28px rgba(23,35,63,.12); backdrop-filter: blur(10px); }
.map-legend { left: 14px; bottom: 14px; font-size: 11px; font-weight: 750; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.property-dot { background: var(--navy); box-shadow: 0 0 0 3px var(--gold); }
.station-dot { background: var(--green); }
.poi-dot { background: var(--gold-deep); }
.map-filters { top: 14px; right: 14px; gap: 6px; }
.map-filter { padding: 8px 11px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 800; }
.map-filter.is-active { color: var(--navy); background: var(--cream); border-color: var(--line); }

.leaflet-control-zoom { border: 0 !important; box-shadow: 0 8px 25px rgba(23,35,63,.18) !important; }
.leaflet-control-zoom a { color: var(--navy) !important; }
.leaflet-control-attribution { font-size: 9px !important; }
.custom-marker { background: transparent; border: 0; }
.pin {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 7px;
  color: var(--white);
  box-shadow: 0 5px 15px rgba(23,35,63,.3);
}
.pin span { transform: rotate(-45deg); font-size: 12px; font-weight: 850; }
.pin-property { background: var(--navy); box-shadow: 0 0 0 3px var(--gold), 0 7px 18px rgba(23,35,63,.3); }
.pin-station { width: 30px; height: 30px; background: var(--green); }
.pin-poi { width: 28px; height: 28px; background: var(--gold-deep); }
.simple-popup h4 { margin: 0 0 5px; color: var(--navy); font-size: 14px; }
.simple-popup p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.detail-card {
  position: absolute;
  z-index: 600;
  top: 20px;
  right: 20px;
  width: min(390px, calc(100% - 380px));
  max-height: calc(100% - 40px);
  overflow-y: auto;
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(23,35,63,.1);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(23,35,63,.25);
  backdrop-filter: blur(18px);
  transition: .25s ease;
}
.detail-card.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.detail-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--navy); background: var(--cream); border: 0; border-radius: 50%; cursor: pointer; font-size: 22px; }
.detail-kicker { margin: 0 40px 8px 0; color: var(--gold-deep); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.detail-card h3 { margin: 0 38px 5px 0; font-family: Georgia, serif; font-size: 29px; line-height: 1.05; }
.detail-type { color: var(--muted); font-size: 13px; }
.detail-data { margin: 20px 0; border-top: 1px solid var(--line); }
.detail-data div { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-data dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.detail-data dd { margin: 0; color: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.45; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.feature-tags span { padding: 7px 9px; color: var(--navy); background: var(--cream); border-radius: 999px; font-size: 11px; font-weight: 750; }
.detail-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 22px; }
.primary-action, .secondary-action { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 14px; border-radius: 12px; text-decoration: none; font-size: 12px; font-weight: 850; }
.primary-action { color: var(--white); background: var(--navy); }
.secondary-action { color: var(--navy); border: 1px solid var(--line); }

.compare { color: var(--white); background: var(--navy); }
.compare-heading { align-items: start; }
.compare-heading > p { max-width: 410px; color: rgba(255,255,255,.58); line-height: 1.6; }
.zone-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; max-width: 1500px; margin: 0 auto; }
.zone-card { position: relative; min-height: 400px; overflow: hidden; padding: clamp(25px, 3vw, 42px); background: #202f4e; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; }
.zone-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -130px; bottom: -120px; border: 1px solid rgba(203,181,136,.28); border-radius: 50%; box-shadow: 0 0 0 40px rgba(203,181,136,.035), 0 0 0 80px rgba(203,181,136,.025); }
.albano-card { background: linear-gradient(140deg, #263858, #182641); }
.gandolfo-card { background: linear-gradient(140deg, #2d4762, #172943); }
.marino-card { background: linear-gradient(140deg, #3a4054, #202a45); }
.zone-number { position: absolute; top: 20px; right: 24px; color: rgba(203,181,136,.35); font-family: Georgia, serif; font-size: 56px; }
.zone-card h3 { max-width: 320px; margin-bottom: 18px; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.zone-card > p:not(.eyebrow) { max-width: 410px; color: rgba(255,255,255,.65); line-height: 1.65; }
.zone-card ul { margin: 25px 0 36px; padding: 0; list-style: none; }
.zone-card li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.82); font-size: 13px; }
.zone-jump { position: absolute; z-index: 2; left: clamp(25px, 3vw, 42px); bottom: 30px; color: var(--gold); background: transparent; border: 0; padding: 0; cursor: pointer; font-size: 13px; font-weight: 850; }
.zone-jump span { margin-left: 6px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; max-width: 1500px; margin: 72px auto 0; padding-top: 24px; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--gold); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr .65fr; }
  .hero-orbit { width: 340px; }
  .map-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .detail-card { width: min(350px, calc(100% - 320px)); }
  .zone-grid { grid-template-columns: 1fr 1fr; }
  .zone-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .topbar { height: 66px; padding: 8px 16px; }
  .brand { height: 45px; }
  .top-contact { padding: 10px 13px; font-size: 12px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 52px; padding: 70px 22px 80px; }
  .hero-copy { text-align: left; }
  .hero-orbit { width: min(86vw, 370px); }
  .orbit-b { right: -2%; }
  .hero-stats { gap: 8px; }
  .hero-stats span { min-width: calc(33.33% - 6px); padding: 11px 12px; font-size: 11px; }
  .explore, .compare { padding: 68px 14px; }
  .section-heading { align-items: start; }
  .locate-btn { margin-top: 4px; white-space: nowrap; }
  .map-shell { display: block; height: 760px; min-height: 0; overflow: visible; border-radius: 20px; }
  .property-panel { position: absolute; z-index: 550; left: 0; right: 0; bottom: 0; height: 205px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; }
  .panel-intro { padding: 12px 14px; }
  .property-list { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 9px 10px 14px; scroll-snap-type: x proximity; }
  .property-item { flex: 0 0 250px; grid-template-columns: 38px 1fr 16px; padding: 11px; scroll-snap-align: start; background: var(--cream); }
  .property-index { width: 36px; height: 36px; }
  .map-wrap { height: 555px; border-radius: 20px 20px 0 0; overflow: hidden; }
  .map-legend { left: 8px; bottom: 9px; gap: 8px; padding: 8px 10px; }
  .map-filters { top: 9px; right: 8px; }
  .detail-card { position: fixed; z-index: 1200; top: auto; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; max-height: 76vh; padding: 24px; transform: translateY(30px); border-radius: 24px; }
  .detail-card.is-visible { transform: translateY(0); }
  .zone-grid { grid-template-columns: 1fr; }
  .zone-card:first-child { grid-column: auto; }
  .compare-heading { display: block; }
  .compare-heading > p { margin-top: 18px; }
  footer { flex-direction: column; }
}

@media (max-width: 430px) {
  h1 { font-size: 49px; }
  .hero-stats span { min-width: 100%; display: flex; align-items: center; gap: 8px; }
  .hero-stats strong { display: inline; margin: 0; }
  .section-heading h2 { font-size: 39px; }
  .map-shell { height: 730px; }
  .map-wrap { height: 525px; }
  .map-legend span { font-size: 0; }
  .map-legend .legend-dot { width: 11px; height: 11px; }
  .detail-data div { grid-template-columns: 90px 1fr; }
  .zone-card { min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
