/* ============================================================
   TEMPLE INDUSTRIAL — shared stylesheet
   Palette: ivory / soft lilac / charcoal  ·  Serif display type
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:      #FBFAF8;
  --white:      #FFFFFF;
  --lilac-50:   #F5F2F8;
  --lilac-100:  #EDE7F3;
  --lilac-200:  #E0D6EA;
  --lilac-400:  #B9A6CE;
  --lilac-600:  #8A6FA8;
  --lilac-800:  #5E4B78;
  --charcoal:   #2A2733;
  --muted:      #6E6878;
  --border:     #E8E4EE;
  --occupied:   #8B8694;
  --available:  #4E8A62;
  --available-bg: #EAF4EE;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--ivory); color: var(--charcoal); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- NAV ---------- */
nav {
  background: rgba(251,250,248,0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 3rem; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1000;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { width: 40px; height: 40px; }
.nav-wordmark { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal); line-height: 1.1; }
.nav-wordmark span { display: block; font-size: 0.62rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.3em; color: var(--lilac-600); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 0.4rem 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav-links a:hover { color: var(--lilac-800); }
.nav-links a.active { color: var(--charcoal); border-bottom-color: var(--lilac-600); }

/* ---------- HERO ---------- */
.hero { text-align: center; padding: 6rem 2rem 4.5rem; max-width: 880px; margin: 0 auto; }
.eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--lilac-600); margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.4rem); font-weight: 500; line-height: 1.1; color: var(--charcoal); margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--lilac-800); }
.hero-sub { font-size: 1.02rem; color: var(--muted); max-width: 620px; margin: 0 auto 1rem; }
.hero-joke { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--lilac-600); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.95rem 2.4rem; transition: all 0.2s; cursor: pointer; }
.btn-solid { background: var(--charcoal); color: var(--white); }
.btn-solid:hover { background: var(--lilac-800); }
.btn-outline { border: 1px solid var(--lilac-400); color: var(--lilac-800); }
.btn-outline:hover { background: var(--lilac-50); border-color: var(--lilac-600); }

/* ---------- STATS ---------- */
.stats-band { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 2.4rem 1rem; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: var(--charcoal); line-height: 1.1; }
.stat-value span { font-size: 1.2rem; color: var(--lilac-600); }
.stat-label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }

/* ---------- SECTIONS ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 5rem 2.5rem; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; color: var(--charcoal); margin-bottom: 0.6rem; }
.section-head p { color: var(--muted); font-size: 0.95rem; max-width: 560px; margin: 0 auto; }
.rule { width: 48px; height: 1px; background: var(--lilac-400); margin: 1.2rem auto 0; }

/* ---------- MAP ---------- */
#map { height: 520px; border: 1px solid var(--border); background: var(--lilac-50); z-index: 1; }
.map-legend { display: flex; gap: 2rem; justify-content: center; margin-top: 1.2rem; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.pin-marker { border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(42,39,51,0.35); }
.leaflet-popup-content-wrapper { border-radius: 2px; font-family: var(--font-body); }
.popup-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--charcoal); }
.popup-meta { font-size: 0.78rem; color: var(--muted); margin: 2px 0 6px; }
.popup-link { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac-600) !important; }

/* ---------- CARDS ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 8px 30px rgba(94,75,120,0.10); transform: translateY(-2px); }
.card-media { height: 190px; background: var(--lilac-100); position: relative; overflow: hidden; }
.card-media img, .card-media iframe { width: 100%; height: 100%; object-fit: cover; border: none; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--charcoal); line-height: 1.15; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin: 0.3rem 0 0.9rem; }
.card-specs { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.8rem; margin-top: auto; }
.card-specs strong { color: var(--charcoal); font-weight: 600; }

/* ---------- BADGES ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.3rem 0.7rem; width: fit-content; margin-bottom: 0.8rem; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.badge-available { background: var(--available-bg); color: var(--available); }
.badge-available::before { background: var(--available); }
.badge-occupied { background: var(--lilac-100); color: var(--lilac-800); }
.badge-occupied::before { background: var(--lilac-600); }
.badge-land { background: var(--available-bg); color: var(--available); }
.badge-land::before { background: var(--available); }

/* ---------- PROPERTY DETAIL (properties page) ---------- */
.prop { background: var(--white); border: 1px solid var(--border); margin-bottom: 2.5rem; overflow: hidden; }
.prop-split { display: grid; grid-template-columns: 1.1fr 1fr; }
.prop-media { position: relative; background: var(--lilac-100); min-height: 400px; }
.prop-media img, .prop-media iframe { width: 100%; height: 100%; object-fit: cover; border: none; position: absolute; inset: 0; }
.prop-body { padding: 2.4rem 2.6rem; display: flex; flex-direction: column; }
.prop-address { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--charcoal); line-height: 1.1; margin-bottom: 0.25rem; }
.prop-city { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4rem; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-left: 1px solid var(--border); margin-bottom: 1.4rem; }
.spec-item { padding: 0.65rem 0.9rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec-label { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.spec-value { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--charcoal); }

.prop-bullets { list-style: none; margin-bottom: 1.6rem; }
.prop-bullets li { font-size: 0.87rem; color: var(--muted); padding: 0.35rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.7rem; }
.prop-bullets li:last-child { border-bottom: none; }
.prop-bullets li::before { content: ''; width: 14px; height: 1px; background: var(--lilac-400); flex-shrink: 0; }

.highlight { background: var(--lilac-50); border-left: 2px solid var(--lilac-600); color: var(--lilac-800); font-size: 0.83rem; padding: 0.55rem 0.9rem; margin-bottom: 1.3rem; line-height: 1.5; }
.prop-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: auto; }

/* Eberhardt card: info above, wide landscape gallery below */
#eberhardt .prop-split { display: flex; flex-direction: column-reverse; }
#eberhardt .prop-media { min-height: unset; height: auto; aspect-ratio: 16 / 9; border-top: 1px solid var(--border); }
#eberhardt .spec-grid { grid-template-columns: repeat(4, 1fr); }
#eberhardt .prop-actions { flex-direction: row; flex-wrap: wrap; }
#eberhardt .prop-actions .btn { flex: 1; min-width: 240px; }
@media (max-width: 820px) {
  #eberhardt .spec-grid { grid-template-columns: 1fr 1fr; }
}

/* media toggles & gallery controls */
.media-toggles { position: absolute; top: 12px; left: 12px; display: flex; gap: 5px; z-index: 10; }
.media-toggle-btn { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 11px; cursor: pointer; border: 1px solid rgba(255,255,255,0.5); transition: all 0.15s; }
.media-toggle-btn.active { background: var(--lilac-600); color: #fff; border-color: var(--lilac-600); }
.media-toggle-btn.inactive { background: rgba(42,39,51,0.55); color: rgba(255,255,255,0.8); }
.gallery-prev, .gallery-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(42,39,51,0.5); color: #fff; border: none; cursor: pointer; width: 36px; height: 36px; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-prev:hover, .gallery-next:hover { background: var(--lilac-600); }
.gallery-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; transition: background 0.15s; }
.gallery-dot.active { background: var(--lilac-600); }
.plan-notice { position: absolute; bottom: 0; left: 0; right: 0; z-index: 9; background: rgba(94,75,120,0.9); padding: 8px 14px; font-size: 0.76rem; color: rgba(255,255,255,0.92); line-height: 1.4; }

/* park photo + hover overlay */
.park-photo { position: relative; }
.park-photo img { width: 100%; height: auto; display: block; }
.park-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.park-overlay polygon { fill: rgba(138,111,168,0); stroke: none; cursor: pointer; pointer-events: all; }
.park-dot { fill: #8A6FA8; stroke: #FFFFFF; stroke-width: 9; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.park-dot.hot { opacity: 1; animation: dot-pulse 1.1s ease-in-out infinite; }
@keyframes dot-pulse {
  0%, 100% { stroke-width: 9; }
  50% { stroke-width: 18; }
}
.park-hint { font-size: 0.74rem; color: var(--muted); padding: 0.55rem 1rem; border-top: 1px solid var(--border); background: var(--lilac-50); }
.park-map-small { width: 100%; height: 320px; border: none; border-top: 1px solid var(--border); display: block; }
.park-table tbody tr { transition: background 0.15s; }
.park-table tbody tr.hot { background: var(--lilac-100); }

/* park table */
.park-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; margin-bottom: 1.4rem; }
.park-table th { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--lilac-200); }
.park-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--charcoal); }
.park-table td:last-child, .park-table th:last-child { text-align: right; }
.park-table tr:last-child td { border-bottom: none; font-weight: 600; }

/* ---------- PERSON / HEADSHOT ---------- */
.person-card { text-align: center; max-width: 320px; margin: 0 auto; }
.person-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin: 0 auto 1rem; border: 3px solid var(--lilac-200); box-shadow: 0 10px 30px rgba(94,75,120,0.16); }
.person-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--charcoal); }
.person-role { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lilac-600); margin-top: 0.25rem; }

/* ---------- CTA / CONTACT ---------- */
.cta-band { background: var(--lilac-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; padding: 4.5rem 2rem; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 500; margin-bottom: 0.8rem; }
.cta-band p { color: var(--muted); font-size: 0.95rem; max-width: 540px; margin: 0 auto 1.8rem; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; max-width: 820px; margin: 0 auto; }
.contact-card { background: var(--white); border: 1px solid var(--border); padding: 1.6rem 1.5rem; text-align: center; }
.contact-card-label { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lilac-600); margin-bottom: 0.5rem; }
.contact-card-value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--charcoal); }
.contact-card-value a:hover { color: var(--lilac-800); }
.contact-card-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- FOOTER ---------- */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 2.2rem 3rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer-note { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; opacity: 0.7; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .prop-split { grid-template-columns: 1fr; }
  .prop-media { min-height: 280px; height: 300px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; height: 66px; }
  .nav-links { gap: 1.2rem; }
  .nav-wordmark { font-size: 1.05rem; }
  .nav-logo img { width: 32px; height: 32px; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section { padding: 3rem 1.25rem; }
  .prop-body { padding: 1.6rem 1.4rem; }
  #map { height: 380px; }
  footer { flex-direction: column; text-align: center; }
}
