/* KeysGrove — editorial architectural-brochure styling */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #15140f;
  --ink-70: rgba(21, 20, 15, 0.7);
  --ink-45: rgba(21, 20, 15, 0.45);
  --stone: #ece6d8;
  --parchment: #faf8f3;
  --rust: #a2431f;
  --rust-dark: #832f13;
  --brass: #a3823f;
  --line: rgba(21, 20, 15, 0.14);
  --line-strong: rgba(21, 20, 15, 0.28);
  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--parchment);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark .keys { color: var(--ink); }
.wordmark .grove { color: var(--rust); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-70);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--rust);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
}

.lang-toggle button {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  min-height: 32px;
  cursor: pointer;
  color: var(--ink-70);
}

.lang-toggle button + button {
  border-left: 1px solid var(--line-strong);
}

.lang-toggle button.active {
  background: var(--rust);
  color: var(--parchment);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 48px 0 32px;
  color: var(--ink-70);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand .wordmark { display: inline-block; margin-bottom: 8px; }
.footer-note { max-width: 420px; }

.newsletter-signup {
  margin-top: 16px;
  max-width: 320px;
}

.newsletter-signup label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.newsletter-signup input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  background: var(--parchment);
  font: inherit;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  padding: 6px 0;
}

.social-links a:hover {
  color: var(--rust);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}

/* ---------- Map view (Part R2) ---------- */

.map-view {
  height: 480px;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--parchment);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--rust); border-color: var(--rust); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover { background: var(--ink); color: var(--parchment); }

.btn-rust { background: var(--rust); border-color: var(--rust); }
.btn-rust:hover { background: var(--rust-dark); border-color: var(--rust-dark); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.78rem; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-70);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.response-time-badge {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-70);
  border-left: 2px solid var(--brass);
  padding-left: 10px;
}

.hero-art { width: 100%; }

.hero-art svg { width: 100%; height: auto; overflow: visible; }

.hero-art path,
.hero-art polyline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-art .river { stroke: var(--rust); }

.hero-art.draw path,
.hero-art.draw polyline {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-line 2.4s ease forwards;
}

.hero-art.draw .river { animation-delay: 0.3s; }
.hero-art.draw .expressway { animation-delay: 0.15s; }

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art.draw path,
  .hero-art.draw polyline {
    animation: none;
    stroke-dashoffset: 0;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Stat strip ---------- */

.stat-strip {
  border-bottom: 1px solid var(--line);
  background: var(--stone);
}

.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
}

.stat-strip-5 .wrap {
  grid-template-columns: repeat(5, 1fr);
}

.stat {
  padding: 32px 24px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--rust);
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-70);
  margin-top: 4px;
}

/* ---------- Section headings ---------- */

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--ink-70); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Spotlight (ultra-luxury) ---------- */

.spotlight {
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.spotlight-media {
  background: linear-gradient(135deg, var(--ink) 0%, #3a3627 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.spotlight-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 14px;
}

.spotlight-media-caption {
  color: var(--parchment);
  font-size: 0.85rem;
  opacity: 0.85;
}

.spotlight-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

.spotlight-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
  font-size: 0.85rem;
  color: var(--ink-70);
}

.spotlight-meta strong { color: var(--ink); display: block; font-size: 1rem; }

/* ---------- Chips ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  border: 1px solid var(--line-strong);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover,
.chip.active {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}

/* ---------- Project grid & cards ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  background: var(--parchment);
  display: flex;
  flex-direction: column;
}

.card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--stone), #ddd4bd);
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.card-type-tag {
  margin: 16px;
  background: var(--parchment);
  border: 1px solid var(--line-strong);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 { font-size: 1.2rem; margin-bottom: 6px; }

.card-locality {
  font-size: 0.85rem;
  color: var(--ink-70);
  margin-bottom: 14px;
}

.card-developer {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--rust);
  margin-bottom: 4px;
}

.card-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-45);
  margin-bottom: 16px;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  color: var(--ink-70);
}

/* ---------- Homepage slider (Part A) ---------- */

.slider-wrap { position: relative; }

.project-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.slider-item {
  position: relative;
  flex: 0 0 320px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--parchment);
}

.slider-item .project-card { height: 100%; }

.top-pick-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
}

.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--parchment);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.slider-btn:hover { background: var(--ink); color: var(--parchment); }

/* ---------- Type-suggestion hint (admin, Part A) ---------- */

.type-hint {
  font-size: 0.78rem;
  color: var(--ink-45);
  margin-top: 4px;
}

/* ---------- Office cards (Contact Us, Part D7) ---------- */

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.office-card {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.office-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.office-card-primary {
  border-top: 3px solid var(--brass);
}

.office-primary-tag {
  position: absolute;
  top: -1px;
  right: 0;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
}

.office-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 10px;
}

.office-label {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.office-address {
  color: var(--ink-70);
  font-size: 0.92rem;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.office-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.office-phone, .office-email {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.office-phone:hover, .office-email:hover { color: var(--rust); }

/* ---------- Appearance tab (admin, Part D) ---------- */

.appearance-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.color-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 10px 14px;
}

.color-field input[type="color"] {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  cursor: pointer;
}

.color-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-70);
}

.appearance-preview {
  border: 1px dashed var(--line-strong);
  padding: 32px;
  margin-bottom: 24px;
  background: var(--parchment);
}

.appearance-preview h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.appearance-preview p {
  font-family: var(--font-body);
  color: var(--ink-70);
  margin: 0;
}

/* ---------- WhatsApp floating button (Part G) ---------- */

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.whatsapp-fab:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab:hover { transform: none; }
}

/* ---------- EMI calculator (project detail, Part G) ---------- */

.emi-calculator {
  border: 1px solid var(--line-strong);
  padding: 24px;
  margin-top: 24px;
}

.emi-calculator .field { margin-bottom: 16px; }

.emi-calculator input[type="range"] {
  width: 100%;
}

.emi-result {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 8px;
}

.emi-result .emi-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--rust);
}

/* ---------- Video embed (project detail, Part A) ---------- */

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  margin-bottom: 24px;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Construction timeline (Part L1) ---------- */

.construction-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.construction-update {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
}

.construction-update-photo {
  width: 96px;
  height: 72px;
  background-size: cover;
  background-position: center;
  background-color: var(--stone);
}

.construction-update-date {
  font-size: 0.8rem;
  color: var(--ink-70);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

/* ---------- Trust badge (Part L3) ---------- */

.trust-badge {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brass);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: var(--ink-70);
}

/* ---------- Locality scores (Part P3) ---------- */

.locality-scores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.locality-score-row {
  display: grid;
  grid-template-columns: 110px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.locality-score-label {
  font-size: 0.85rem;
  text-transform: capitalize;
  color: var(--ink-70);
}

.locality-score-bar {
  height: 8px;
  background: var(--stone);
}

.locality-score-fill {
  height: 100%;
  background: var(--brass);
}

.locality-score-value {
  font-size: 0.8rem;
  color: var(--ink-70);
  text-align: right;
}

/* ---------- Why buy section ---------- */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.reason {
  border-top: 3px solid var(--rust);
  padding-top: 16px;
}

.reason-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink-45);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Forms ---------- */

.form-panel {
  background: var(--stone);
  padding: 40px;
  border: 1px solid var(--line-strong);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-70);
}

input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: var(--parchment);
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--rust);
}

textarea { resize: vertical; min-height: 90px; }

.form-msg {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-msg.success { color: #2f6e3a; }
.form-msg.error { color: var(--rust); }

.global-write-notice {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brass);
  background: var(--stone);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--ink);
  max-width: 70ch;
}

/* ---------- Filter bar (listing page) ---------- */

.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--stone);
  border: 1px solid var(--line-strong);
  margin-bottom: 40px;
  align-items: flex-end;
}

.filter-bar .field { min-width: 180px; }
.filter-bar .field.search { flex: 1; min-width: 220px; }

.results-count {
  margin-bottom: 24px;
  color: var(--ink-70);
  font-size: 0.9rem;
}

/* ---------- Project detail ---------- */

.detail-hero {
  padding: 48px 0 0;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  margin-bottom: 40px;
}

.detail-gallery .main-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--stone), #ddd4bd);
  background-size: cover;
  background-position: center;
}

.detail-gallery .side-imgs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.detail-gallery .side-imgs div {
  background: linear-gradient(135deg, var(--stone), #ddd4bd);
  background-size: cover;
  background-position: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  align-items: start;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tagline { font-size: 1.1rem; color: var(--ink-70); margin-bottom: 24px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
}

.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 14px 0; font-size: 0.95rem; }
.spec-table td:first-child {
  color: var(--ink-70);
  width: 40%;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }

.pill {
  border: 1px solid var(--line-strong);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.amenity-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.amenity-list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.92rem;
}

.amenity-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--rust);
}

.enquiry-sticky { position: sticky; top: 96px; }

/* ---------- Admin ---------- */

.admin-shell { min-height: 100vh; }

.admin-login {
  max-width: 380px;
  margin: 96px auto;
  padding: 40px;
  border: 1px solid var(--line-strong);
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.tabs { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }

.tab-btn {
  padding: 12px 22px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--ink-70);
}

.tab-btn.active { color: var(--ink); border-bottom-color: var(--rust); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th, .admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-70);
}

.status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
}

.status-tag.published { border-color: #2f6e3a; color: #2f6e3a; }
.status-tag.unpublished { border-color: var(--ink-45); color: var(--ink-45); }

.row-actions { display: flex; gap: 8px; }
.row-actions button {
  background: none;
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.row-actions button:hover { border-color: var(--ink); }
.row-actions button.danger:hover { border-color: var(--rust); color: var(--rust); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; }
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .spotlight { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .detail-layout { grid-template-columns: 1fr; }
  .enquiry-sticky { position: static; }
  .detail-gallery { grid-template-columns: 1fr; }
  .amenity-list { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header .wrap { height: 64px; }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .project-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .stat-strip .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { flex-direction: column; }
  .slider-item { flex-basis: 82vw; }
  .office-grid { grid-template-columns: 1fr; }
  .construction-update { grid-template-columns: 1fr; }
  .construction-update-photo { width: 100%; height: 140px; }
  .map-view { height: 320px; }
}

/* ---------- Inbox ---------- */

.inbox-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 480px;
  overflow: hidden;
}

.inbox-list {
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.inbox-conv {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s ease;
}
.inbox-conv:hover { background: var(--stone); }
.inbox-conv.active { background: var(--stone); }
.inbox-conv-name { font-weight: 600; font-size: 0.9rem; }
.inbox-conv-preview { font-size: 0.82rem; color: var(--ink-70); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-conv-time { font-size: 0.78rem; color: var(--ink-45); float: right; }
.inbox-unread .inbox-conv-name::after { content: '●'; color: var(--rust); font-size: 0.55rem; vertical-align: middle; margin-left: 6px; }

.inbox-thread {
  display: flex;
  flex-direction: column;
}

.inbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inbox-msg {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.inbox-msg.outbound { align-self: flex-end; background: var(--rust); color: #fff; }
.inbox-msg.inbound { align-self: flex-start; background: var(--stone); }
.inbox-msg-meta { font-size: 0.75rem; opacity: 0.7; margin-top: 4px; }

.inbox-compose {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
}
.inbox-compose textarea {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: none;
}
.inbox-compose textarea:focus { outline: 2px solid var(--rust); border-color: transparent; }

/* ---------- Calendar ---------- */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cal-header {
  padding: 6px 4px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-45);
  background: var(--stone);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cal-day {
  min-height: 80px;
  padding: 6px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  cursor: default;
}
.cal-day.has-leads { cursor: pointer; background: #fdf6f0; }
.cal-day.has-leads:hover { background: #fbeedd; }
.cal-day.today .cal-day-num { background: var(--rust); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.cal-day.other-month { background: var(--parchment); opacity: 0.5; }

.cal-day-num { font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.cal-lead-chip { font-size: 0.72rem; background: var(--rust); color: #fff; border-radius: 2px; padding: 1px 5px; margin: 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cal-lead-chip.more { background: var(--ink-45); }

@media (max-width: 720px) {
  .inbox-layout { grid-template-columns: 1fr; }
  .inbox-list { border-right: none; border-bottom: 1px solid var(--line); max-height: 200px; }
  .calendar-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cal-day { min-height: 52px; padding: 4px; }
  .cal-lead-chip { display: none; }
}
