:root {
  --ink: #171717;
  --ink-2: #57534e;
  --paper: #f8f5eb;
  --paper-2: #efe8d8;
  --paper-3: #e1d8c2;
  --gold: #b8890e;
  --gold-soft: #f8ebc8;
  --green: #1d6b44;
  --green-soft: #e0f5eb;
  --red: #a23c3c;
  --red-soft: #fbeaea;
  --background: #fcfbf7;
  --overlay: rgba(248, 245, 235, 0.9);
  --overlay-light: rgba(255,255,255,0.88);
  --shadow: 0 12px 30px rgba(23, 23, 23, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--background) 0%, var(--paper) 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--overlay);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--paper-3);
}
.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.brand-text { color: var(--ink); }
.brand strong { color: var(--gold); }
.nav-links { display: flex; gap: 1.2rem; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  color: white;
}
.btn-outline {
  border-color: var(--paper-3);
  color: var(--ink);
  background: white;
}

.page-shell { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.hero-section {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-copy h1 span { color: var(--gold); }
.hero-copy p { font-size: 1.03rem; color: var(--ink-2); max-width: 600px; margin-bottom: 1.3rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: currentColor; display: inline-block;
}
.hero-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.2rem; }
.stat-pill {
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow);
}
.hero-card {
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.hero-card-body { padding: 1.1rem; }
.hero-card h3 { margin-bottom: 0.7rem; font-size: 1.05rem; }
.hero-card p { color: var(--ink-2); }
.section { padding: 2rem 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { font-size: 1.4rem; letter-spacing: -0.02em; }
.text-link { color: var(--green); font-weight: 600; }
.feature-grid, .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feature-card, .listing-card, .detail-card, .contact-card {
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-card { padding: 1.1rem; }
.feature-card .icon { font-size: 1.4rem; margin-bottom: 0.6rem; }
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { color: var(--ink-2); font-size: 0.95rem; }
.listing-card .thumb { background: linear-gradient(135deg, var(--paper-2), var(--gold-soft)); height: 220px; overflow: hidden; }
.listing-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card .body { padding: 1rem; }
.listing-card .media-flag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.listing-card .price { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem; }
.listing-card .title { font-weight: 600; margin-bottom: 0.25rem; }
.listing-card .meta { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 1rem; }
.listing-card .tag { display: inline-block; padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 0.77rem; font-weight: 700; }

.filter-bar {
  padding: 1rem;
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.filter-btn {
  background: var(--paper);
  border: 1px solid var(--paper-3);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.filter-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.page-title { margin-bottom: 1rem; }
.page-title h1 { font-size: 2rem; letter-spacing: -0.02em; }
.page-title p { color: var(--ink-2); max-width: 700px; }
.detail-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
.detail-card .thumb { background: linear-gradient(135deg, var(--paper-2), var(--gold-soft)); overflow: hidden; }
.detail-card .thumb img { width: 100%; height: 320px; object-fit: cover; display: block; }
.detail-card .body, .detail-card .sidebar { padding: 1.2rem; }
.gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 1.5rem;
}
.gallery-slides {
  position: relative;
  min-height: 340px;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.gallery-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}
.gallery-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: var(--overlay-light);
  color: var(--ink);
  font-size: 1.75rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  padding: 0.95rem 1rem 1.1rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  padding: 0;
  background: white;
  overflow: hidden;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  opacity: 0.7;
  cursor: pointer;
}
.gallery-thumb.active {
  border-color: var(--ink);
  opacity: 1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-card .body h1 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.detail-card .meta { color: var(--ink-2); margin-bottom: 1rem; }
.detail-card .specs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.spec-chip {
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}
.detail-card .section-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin: 1rem 0 0.4rem; }
.detail-card ul { padding-left: 1.1rem; color: var(--ink-2); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}
.property-video-wrap {
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  overflow: hidden;
  background: white;
}
.property-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  min-height: 220px;
  background: #111;
  display: block;
}
.property-video-label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-2);
  padding: 0.55rem 0.7rem;
}
.checkout-card { padding: 1.2rem; }
.checkout-card .price { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.checkout-card .status { margin-bottom: 1rem; }
.checkout-card .status.available { color: var(--green); font-weight: 600; }
.checkout-card .status.sold { color: var(--red); font-weight: 600; }
.contact-card { padding: 1.2rem; }
.form-group { margin-bottom: 0.9rem; }
label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
input, textarea { width: 100%; border: 1px solid var(--paper-3); border-radius: 12px; padding: 0.75rem 0.85rem; font: inherit; background: var(--paper); }
textarea { min-height: 110px; resize: vertical; }
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.form-feedback {
  min-height: 1.3rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.form-feedback.success { color: var(--green); }
.form-feedback.warning { color: var(--gold); }
.form-feedback.error { color: var(--red); }
.site-footer { border-top: 1px solid var(--paper-3); padding: 1.4rem 1.25rem 2rem; margin-top: 2rem; color: var(--ink-2); }
.site-footer .footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer .footer-credit { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); opacity: 0.8; margin-top: 0.25rem; }
.site-footer .footer-admin-link { color: var(--green); font-weight: 600; }
.site-footer .footer-admin-link:hover { text-decoration: underline; }

.admin-page .page-title p { max-width: 780px; }
.admin-enquiry-card h3 { margin-bottom: 0.45rem; }
.admin-enquiry-card p { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 0.2rem; }

@media (max-width: 800px) {
  .hero-section, .detail-layout { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(248, 245, 235, 0.98);
    border-bottom: 1px solid var(--paper-3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.35rem 0; }
  .nav-toggle { display: inline-flex; }
  .hero-section { padding-top: 2.4rem; }
  .gallery { margin-bottom: 1rem; }
  .gallery-slides {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .gallery-slide img { height: 100%; }
  .gallery-thumbs { gap: 0.55rem; }
  .gallery-thumb {
    width: 64px;
    height: 64px;
  }
  .detail-card .body { padding: 1rem; }
  .detail-card .section-title { margin: 0.85rem 0 0.4rem; }
  .video-grid { grid-template-columns: 1fr; }
  .property-video {
    min-height: 0;
    max-height: 60svh;
  }
  .property-video-label { padding: 0.45rem 0.65rem; }
  .checkout-card { padding: 1rem; }
  .listing-card, .feature-card, .detail-card, .contact-card {
    animation: fade-up 0.45s ease both;
  }
}

@media (max-width: 480px) {
  .page-shell { padding: 1.25rem 0.8rem 3rem; }
  .gallery-controls { padding: 0 0.55rem; }
  .gallery-controls button {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  .gallery-thumbs {
    padding: 0.7rem 0.7rem 0.8rem;
    gap: 0.45rem;
  }
  .gallery-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }
  .detail-card .body h1 { font-size: 1.35rem; }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy, .hero-card, .section, .page-title, .detail-card, .contact-card {
  animation: float-in 0.55s ease both;
}
