:root {
  --bg: #f5f0e8;
  --fg: #1a1a1a;
  --accent: #c9a84c;
  --green: #1a2e1a;
  --muted: #7a7268;
  --border: #d8d0c4;
  --white: #ffffff;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
  position: relative;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px 80px 64px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--green);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding-right: 40px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 40px;
  align-self: center;
}

/* How */
.how {
  padding: 120px 72px;
  background: var(--green);
  color: var(--bg);
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--bg);
  max-width: 520px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 72px;
}

.flow {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 200px;
  border: 1px solid rgba(245, 240, 232, 0.2);
  padding: 36px 32px;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.6;
}

.flow-arrow {
  color: var(--accent);
  flex-shrink: 0;
}

/* Principles */
.principles {
  padding: 0;
  background: var(--bg);
}

.principles-inner {
  padding: 120px 72px;
  max-width: 1100px;
}

.principles-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.principles-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 72px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.principle {
  padding: 48px 48px 48px 0;
  border-bottom: 1px solid var(--border);
}

.principle:nth-child(even) {
  padding-left: 48px;
  padding-right: 0;
  border-left: 1px solid var(--border);
}

.principle-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.principle h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}

.principle p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Manifesto */
.manifesto {
  background: var(--green);
  padding: 120px 72px;
  color: var(--bg);
}

.manifesto-quote {
  margin-bottom: 48px;
}

.manifesto-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--bg);
  line-height: 1.4;
  max-width: 760px;
}

.manifesto-body p {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.7);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Closing */
.closing {
  background: var(--bg);
  padding: 120px 72px;
  text-align: center;
}

.closing-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.closing-inner p {
  font-size: 1rem;
  color: var(--muted);
}

/* Footer */
.footer {
  background: var(--green);
  padding: 48px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.5);
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.35);
}

/* ── Listing Page ───────────────────────────────────────────────── */
.gallery { background: var(--green); }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 55vh;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main { grid-row: 1 / 3; }

.gallery-placeholder {
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 240, 232, 0.4);
  font-size: 1rem;
}

.listing-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  min-height: 60vh;
}

.listing-main {
  padding: 72px 64px 72px 72px;
  border-right: 1px solid var(--border);
}

.listing-header { margin-bottom: 40px; }

.listing-address {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.listing-location {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.listing-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.listing-specs { margin-bottom: 40px; }

.specs-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.spec-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-value { font-weight: 500; color: var(--fg); }

.listing-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 40px;
}

.listing-description p { white-space: pre-wrap; }

.listing-features h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.features-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.features-list li {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--fg);
}

/* Sidebar CTA */
.listing-sidebar {
  padding: 72px 48px;
  background: var(--bg);
}

.lead-form-card {
  position: sticky;
  top: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
}

.lead-form-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}

.lead-form-card > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.lead-form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field .optional { font-weight: 400; color: var(--muted); text-transform: none; }

.field input,
.field textarea,
.field select {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 6px;
  transition: border-color 0.15s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
  border: none;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
  text-align: center;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.form-status { font-size: 0.85rem; text-align: center; padding: 8px; border-radius: 4px; }
.form-status.success { background: #e8f5e9; color: #2e7d32; }
.form-status.error { background: #ffebee; color: #c62828; }

/* ── Admin ───────────────────────────────────────────────────────── */
.admin-wrap, .edit-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 48px;
}

.admin-header, .edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.admin-title, .edit-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

.view-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.alert { padding: 16px 20px; border-radius: 6px; margin-bottom: 24px; }
.alert-error { background: #ffebee; border: 1px solid #ef9a9a; color: #c62828; }
.alert p { margin: 0; font-size: 0.9rem; }

.listing-table { width: 100%; border-collapse: collapse; }
.listing-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
}
.listing-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}
.listing-table tr:hover td { background: rgba(201, 168, 76, 0.04); }

.status-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.status-published { background: #e8f5e9; color: #2e7d32; }
.status-draft { background: #fff8e1; color: #f57f17; }
.status-archived { background: #f5f5f5; color: var(--muted); }

.action-links { display: flex; gap: 12px; align-items: center; }
.action-links a { color: var(--green); font-size: 0.85rem; font-weight: 500; }
.link-btn {
  background: none;
  border: none;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.link-danger { color: #c62828; }

/* Admin form */
form { display: flex; flex-direction: column; gap: 32px; }

.form-section {
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 8px;
}

.form-section legend {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted);
  padding: 0 8px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row:last-child, .form-row-2:last-child, .form-row-3:last-child { margin-bottom: 0; }

.form-section .field input,
.form-section .field textarea,
.form-section .field select {
  width: 100%;
}

.form-section .field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-copy-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--accent);
  border-radius: 6px;
  margin-bottom: 20px;
}

.ai-copy-bar span { font-size: 0.85rem; color: var(--muted); }

.btn-ai {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: opacity 0.15s;
}
.btn-ai:hover { opacity: 0.85; }
.btn-ai:disabled { opacity: 0.5; cursor: not-allowed; }

.form-actions { display: flex; gap: 16px; }

/* Responsive */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image-wrap { height: 55vw; }
  .hero-img-overlay { background: linear-gradient(to top, var(--bg) 40%, transparent 100%); }
  .hero-content { padding: 40px 24px; }
  .hero-headline { font-size: 2.4rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
  .how { padding: 80px 24px; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
  .principles-inner { padding: 80px 24px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { border-bottom: 1px solid var(--border); padding: 40px 0; }
  .principle:nth-child(even) { border-left: none; padding-left: 0; }
  .manifesto { padding: 80px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 40px 24px; flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Listing page */
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery-main { grid-row: auto; }
  .gallery-img { height: 55vw; }
  .listing-layout { grid-template-columns: 1fr; }
  .listing-main { padding: 40px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .listing-sidebar { padding: 40px 24px; }
  .lead-form-card { position: static; }
  .specs-table { grid-template-columns: 1fr; }

  /* Admin */
  .admin-wrap, .edit-wrap { padding: 40px 24px; }
  .form-row, .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .listing-table { font-size: 0.8rem; }
}