:root {
  --bg: #ece8df;
  --surface: #f7f1e7;
  --surface-strong: #efe5d7;
  --ink: #0d1b2a;
  --ink-soft: #44515f;
  --ink-deep: #09131d;
  --muted: #d7dde3;
  --gold: #cfa86b;
  --gold-soft: #e9d6b0;
  --line: rgba(13, 27, 42, 0.12);
  --shadow: 0 24px 60px rgba(12, 27, 42, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(207, 168, 107, 0.12), transparent 36%),
    radial-gradient(circle at bottom right, rgba(12, 27, 42, 0.08), transparent 28%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 241, 231, 0.84);
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.header-inner,
.section,
.footer-grid,
.footer-bottom,
.page-hero,
.property-hero,
.admin-section,
.admin-auth,
.admin-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-mark img {
  height: 50px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-nav a:hover,
.text-link,
.property-action,
.admin-table-actions a { color: var(--gold); }
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.button:hover,
.header-cta:hover { transform: translateY(-1px); }
.header-cta,
.button-gold { background: var(--gold); color: #0c1621; }
.button-secondary {
  border-color: rgba(13, 27, 42, 0.16);
  background: rgba(247, 241, 231, 0.96);
  color: var(--ink);
}
.button-ghost { border-color: rgba(255,255,255,0.26); color: white; }

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(9, 19, 29, 0.96), rgba(12, 31, 49, 0.88)),
    url("../images/hero-architecture.svg") center/cover;
  color: white;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(207, 168, 107, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(12, 27, 42, 0.14), rgba(12, 27, 42, 0.58));
}
.hero-inner {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 102px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 48px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--gold);
}
.eyebrow span { color: rgba(255,255,255,0.7); }
.hero-brand {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy h1,
.page-hero-copy h1,
.property-summary h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.02;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 4.3vw, 3.9rem);
  max-width: 10ch;
}
.page-hero-copy p,
.story-copy p,
.contact-card p,
.property-summary p,
.property-detail-grid p {
  color: var(--ink-soft);
  max-width: 60ch;
}
.hero-text {
  margin: 20px 0 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.76);
  max-width: 50ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.hero-panel p, .hero-panel span { margin: 0 0 10px; color: rgba(255,255,255,0.7); }
.hero-panel strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.4;
  margin-bottom: 14px;
}
.hero-highlights {
  margin: 18px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 10px;
}
.hero-highlights li {
  color: rgba(255,255,255,0.78);
  padding-left: 18px;
  position: relative;
}
.hero-highlights li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.section { padding: 88px 0; }
.section-dark {
  background: var(--ink);
  color: white;
  width: 100%;
  padding-left: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  padding-right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
}
.section-intro {
  padding-top: 68px;
}
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2,
.story-copy h2,
.contact-card h2,
.admin-section h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.04;
}
.section-heading p { margin: 0; color: var(--ink-soft); }
.section-dark .section-heading p { color: rgba(255,255,255,0.72); }
.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 10px;
}
.intro-strip div,
.story-metrics,
.contact-card {
  padding: 30px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.intro-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.intro-strip span {
  color: var(--ink-soft);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.property-card {
  background: rgba(247, 241, 231, 0.92);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section-dark .property-card { background: rgba(255,255,255,0.08); box-shadow: none; }
.property-link { display: block; }
.property-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.property-card:hover .property-media img { transform: scale(1.04); }
.property-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 27, 42, 0.78);
  color: white;
  font-size: 0.78rem;
}
.property-body { padding: 22px; }
.property-price { margin: 0 0 8px; color: var(--gold); font-weight: 700; }
.property-price-large { font-size: 1.65rem; }
.property-body h3 { margin: 0 0 8px; font-size: 1.3rem; }
.property-location { color: var(--ink-soft); }
.property-specs,
.property-summary-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--ink-soft);
}
.section-dark .property-specs { color: rgba(255,255,255,0.74); }
.property-action { display: inline-block; margin-top: 16px; font-weight: 600; }

.section-story,
.property-detail-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.story-metrics div + div,
.faq-list details + details { border-top: 1px solid var(--line); }
.story-metrics div { padding: 18px 0; }
.story-metrics strong { display: block; margin-bottom: 8px; font-size: 1.25rem; }
.story-metrics span { color: var(--ink-soft); }
.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.region-list span {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(207, 168, 107, 0.16);
}
.section-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.feature-item {
  padding: 26px;
  border-top: 1px solid var(--line);
}
.feature-item h3 { margin: 0; font-size: 1.25rem; line-height: 1.45; }
.faq-list details {
  padding: 20px 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list p { color: var(--ink-soft); max-width: 70ch; }
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,0.78);
  margin-top: 24px;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.8fr));
  gap: 28px;
  align-items: start;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand,
.footer-title {
  margin: 0 0 10px;
  color: white;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.footer-copy {
  max-width: 40ch;
}

.footer-grid p {
  margin: 0 0 10px;
}

.footer-grid a {
  color: rgba(255,255,255,0.78);
}

.footer-grid a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.56);
  font-size: 0.92rem;
}

.page-hero {
  padding: 110px 0 28px;
}
.page-hero-copy {
  padding: 32px 0;
  max-width: 760px;
}
.page-hero-copy p { color: var(--ink-soft); }

.property-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 32px;
  padding: 120px 0 40px;
}
.property-gallery-main img,
.thumb-button img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.property-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.thumb-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.property-summary {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.menu-toggle { display: none; }

.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.flash-stack-public { width: min(1180px, calc(100% - 32px)); margin: 0 auto 16px; }
.flash {
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--surface);
}
.flash-success { border-left: 4px solid #1d8f55; }
.flash-error { border-left: 4px solid #c03d3d; }

.admin-shell { background: #eef1f5; }
.admin-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.admin-sidebar {
  background: #0f1d2c;
  color: white;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.admin-brand {
  display: block;
  margin-bottom: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}
.admin-brand small {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}
.admin-nav { display: grid; gap: 12px; }
.admin-nav a,
.admin-logout button {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
.admin-logout { margin-top: auto; }
.admin-logout button {
  width: 100%;
  color: white;
  cursor: pointer;
}
.admin-content { padding: 36px 0; }
.admin-section-head,
.admin-filters,
.admin-stats,
.admin-form-grid,
.admin-gallery-grid {
  display: grid;
  gap: 18px;
}
.admin-section-head {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 28px;
}
.admin-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.admin-stats article,
.admin-table-wrap,
.admin-auth-card,
.admin-gallery-item {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(18, 28, 45, 0.08);
}
.admin-stats article {
  padding: 26px;
}
.admin-stats strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}
.admin-stats span { color: var(--ink-soft); }
.admin-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}
.admin-table-wrap { overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
}
.admin-table-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.admin-table-actions form { margin: 0; }
.admin-table-actions button {
  border: 0;
  background: transparent;
  color: #c03d3d;
  cursor: pointer;
}
.admin-auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.admin-auth-card {
  width: min(460px, 100%);
  padding: 34px;
}
.admin-form,
.admin-form label,
.admin-form-wide {
  display: grid;
  gap: 14px;
}
.admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-filters select {
  width: 100%;
  border: 1px solid #d7dde3;
  border-radius: 14px;
  padding: 14px 16px;
  background: white;
}
.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.checkbox-field input { width: auto; }
.admin-gallery { margin-top: 34px; }
.admin-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-gallery-item { overflow: hidden; }
.admin-gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.admin-gallery-actions {
  display: flex;
  gap: 10px;
  padding: 14px;
  flex-wrap: wrap;
}
.admin-gallery-actions button,
.admin-cover-badge {
  border: 1px solid #d7dde3;
  padding: 10px 12px;
  border-radius: 999px;
  background: white;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
[data-reveal].reveal-immediate,
.hero [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-inner,
  .property-hero,
  .section-story,
  .property-detail-grid,
  .contact-grid,
  .admin-layout,
  .admin-section-head,
  .admin-filters,
  .admin-stats,
  .section-features,
  .admin-gallery-grid {
    grid-template-columns: 1fr;
  }

  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: flex-start;
  }

  .admin-layout { min-height: auto; }
  .admin-sidebar { gap: 18px; }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    border: 0;
    background: transparent;
  }
  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
  }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
  }
  .site-nav.is-open { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 720px) {
  .header-inner,
  .section,
  .footer-grid,
  .footer-bottom,
  .page-hero,
  .property-hero,
  .admin-section,
  .admin-auth,
  .admin-content {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 88px 20px 36px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10.5vw, 3rem);
    max-width: 9ch;
  }

  .hero-brand {
    font-size: 1.35rem;
  }

  .brand-mark img {
    height: 44px;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading h2,
  .story-copy h2,
  .contact-card h2,
  .admin-section h1 {
    font-size: clamp(1.75rem, 9vw, 2.6rem);
  }

  .property-grid,
  .section-features,
  .property-thumbs,
  .admin-form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .property-body,
  .story-metrics,
  .contact-card,
  .intro-strip div {
    padding: 22px;
  }

  .final-cta {
    align-items: flex-start;
  }

  .final-cta,
  .footer-bottom {
    flex-direction: column;
  }
}
