*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --olive:        #3e3419;
  --cream:        #f5f0e8;
  --warm-white:   #faf8f4;
  --accent:       #c8a96e;
  --accent-light: #e8d9b8;
  --available:    #4a7c59;
  --text-dark:    #2a2410;
  --text-mid:     #6b5f3e;
  --text-light:   #a89870;
}

body {
  background: var(--warm-white);
  font-family: 'Jost', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background 0.4s, padding 0.4s;
}

nav.scrolled {
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(8px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--accent-light);
}

.nav-logo { text-decoration: none; }
.nav-logo img { height: 36px; display: block; }
nav.scrolled .logo-light { display: none; }
nav.scrolled .logo-dark  { display: block !important; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s;
}

nav.scrolled .nav-links a { color: var(--text-mid); }
.nav-links a:hover { color: var(--accent) !important; }

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--olive);
  background-image: url('vid_placeholder.png');
  background-size: cover;
  background-position: center;
}

.hero-video { position: absolute; inset: 0; pointer-events: none; }

.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh; height: 56.25vw;
  min-width: 100%; min-height: 100%;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,24,8,0.35) 0%, rgba(30,24,8,0.5) 60%, rgba(30,24,8,0.75) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: white; padding: 2rem;
  animation: heroFade 1.2s ease both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 3rem;
}

.hero-cta {
  display: inline-block; padding: 1rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.6); color: white;
  text-decoration: none; font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.hero-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--olive); }

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.5); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; animation: bounce 2s infinite;
}

.scroll-hint::after {
  content: ''; display: block; width: 1px; height: 40px; background: rgba(255,255,255,0.3);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── LOTS SECTION ── */
#lots { background: var(--warm-white); }

.section-label {
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}

.lots-header {
  padding: 5rem 3rem 3rem;
  border-bottom: 1px solid var(--accent-light);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}

.lots-header-left h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0.06em;
  color: var(--olive); line-height: 1.1;
}

.lots-header-left p {
  margin-top: 0.75rem; font-size: 0.8rem;
  color: var(--text-mid); line-height: 1.8; max-width: 480px;
}

.lots-header-right { text-align: right; flex-shrink: 0; }
.stat { margin-bottom: 1rem; }

.stat-value {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem;
  font-weight: 300; color: var(--olive); line-height: 1;
}

.stat-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); }

/* ── MAP LAYOUT ── */
.map-layout { display: flex; height: 85vh; min-height: 500px; }

.map-panel {
  flex: 1; position: relative; overflow: hidden;
  background: var(--cream); cursor: grab; touch-action: none;
}

.map-panel:active { cursor: grabbing; }

#map-viewport { display: none; }

#lot-map { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }

#lot-map .st0 { display: none; }
#Base { pointer-events: none; }

.lot { cursor: pointer; }

.lot polygon, .lot path { transition: fill 0.22s; }

.lot-stage1 .st5 { fill: rgba(74,124,89,0.35); }
.lot-stage1:hover .st5 { fill: rgba(74,124,89,0.6); }
.has-selection .lot-stage1 .st5 { fill: rgba(74,124,89,0.35); }
.has-selection .lot-stage1:hover .st5 { fill: rgba(74,124,89,0.55); }
.has-selection .lot-stage1.selected .st5 { fill: rgba(74,124,89,0.55); }

.lot-label {
  font-family: Montserrat-Regular, Montserrat, sans-serif;
  font-size: 25px;
  font-weight: 500;
  fill: rgba(255,255,255,0.9);
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 4px;
}

/* ── ZOOM CONTROLS ── */
.zoom-controls {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  display: flex; flex-direction: column; gap: 2px; z-index: 10;
}

.zoom-btn {
  width: 36px; height: 36px;
  background: rgba(250,248,244,0.92); backdrop-filter: blur(6px);
  border: 1px solid var(--accent-light); color: var(--olive);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; line-height: 1;
}

.zoom-btn:hover { background: var(--accent-light); }

/* ── MAP LEGEND ── */
.map-legend {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 1.25rem;
  background: rgba(250,248,244,0.92); backdrop-filter: blur(6px);
  border: 1px solid var(--accent-light);
  padding: 0.55rem 1.1rem; font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mid);
  z-index: 10; white-space: nowrap; pointer-events: none;
}

.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.sw-available { background: rgba(74,124,89,0.35); border: 1.5px solid #4a7c59; }
.sw-selected  { background: rgba(200,169,110,0.85); border: 1.5px solid #c8a96e; }
.sw-future    { background: rgba(62,52,25,0.18); border: 1.5px solid rgba(62,52,25,0.4); }

/* ── DETAIL PANEL ── */
.detail-panel {
  width: 300px; min-width: 260px;
  border-left: 1px solid var(--accent-light);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  background: var(--warm-white); overflow-y: auto;
}

.detail-panel-label {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 2rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--accent-light);
}

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; text-align: center; gap: 1rem; color: var(--text-light);
}

.empty-icon {
  width: 44px; height: 44px; border: 1px solid var(--accent-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem;
}

.empty-state p { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.9; }

.lot-detail { display: none; flex-direction: column; flex: 1; animation: fadeUp 0.3s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lot-detail.active { display: flex; }

.lot-num { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 300; line-height: 1; color: var(--olive); }
.lot-addr { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); margin-top: 0.25rem; margin-bottom: 2rem; }
.detail-divider { height: 1px; background: var(--accent-light); margin-bottom: 1.5rem; }
.detail-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.65rem 0; border-bottom: 1px solid #ede7d8; }
.detail-row .lbl { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); }
.detail-row .val { font-size: 0.82rem; font-weight: 500; color: var(--text-dark); }
.detail-row .val.avail { color: var(--available); }

.enquire-btn { display: block; margin-top: auto; padding-top: 2rem; }

.enquire-btn a {
  display: block; padding: 0.9rem 1.5rem; background: var(--olive);
  color: var(--cream); text-align: center; text-decoration: none;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; transition: background 0.2s;
}

.enquire-btn a:hover { background: var(--accent); color: var(--olive); }

.back-link {
  display: inline-block; margin-top: 1rem; font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light);
  cursor: pointer; transition: color 0.2s; background: none; border: none;
  padding: 0; font-family: 'Jost', sans-serif; text-decoration: none;
}

.back-link:hover { color: var(--olive); }

/* ── BROCHURE ── */
.brochure {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--olive);
  background-image: url('DJI_20260426070027_0191_D.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.brochure-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,24,8,0.55);
}

.brochure-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

.brochure-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.brochure-content p {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.brochure-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.6);
  color: white;
  background: none;
  font-family: 'Jost', sans-serif;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.brochure-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--olive);
}

/* ── MODAL ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,24,8,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--warm-white);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--olive); }

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1.15;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.modal-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 1.75rem;
}

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}

.form-field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--accent-light);
  background: white;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus { border-color: var(--accent); }
.form-field input::placeholder { color: var(--text-light); }

.form-submit {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem;
  background: var(--olive);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--accent); color: var(--olive); }

.form-note {
  font-size: 0.65rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* ── FOOTER ── */
footer {
  background: var(--olive); color: rgba(255,255,255,0.5);
  padding: 3rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}

.footer-logo { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.4rem; letter-spacing: 0.18em; text-transform: uppercase; color: white; }
footer p { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }
footer a { color: var(--accent); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav, nav.scrolled { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .lots-header { flex-direction: column; align-items: flex-start; padding: 3rem 1.5rem 2rem; }
  .lots-header-right { text-align: left; }
  .map-layout { flex-direction: column; height: auto; }
  .map-panel { height: 65vw; min-height: 300px; }
  .detail-panel { width: 100%; border-left: none; border-top: 1px solid var(--accent-light); min-height: 280px; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}