:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-pale: #f0dfa0;
  --gold-dark: #8a6a1e;
  --cream: #f5f0e8;
  --cream-dark: #ede4d0;
  --charcoal: #1a1614;
  --charcoal-mid: #2c2420;
  --charcoal-light: #3d3530;
  --warm-grey: #7a6e65;
  --text-dark: #1a1614;
  --text-mid: #4a3f38;
  --text-light: #8a7a70;
  --white: #fdfaf4;
  --border: rgba(201,168,76,0.3);
  --shadow: 0 8px 40px rgba(26,22,20,0.18);
  --shadow-heavy: 0 20px 80px rgba(26,22,20,0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', serif;
  background: var(--charcoal);
  color: var(--cream);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   LOADER
═══════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-crest {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--gold);
  animation: fadeInUp 1s ease forwards;
}
.loader-line {
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: expandLine 1.5s ease forwards;
}
.loader-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700;
  color: var(--cream);
  animation: fadeInUp 1s ease 0.3s forwards; opacity: 0;
  letter-spacing: 0.05em;
}
@keyframes expandLine { from { width: 0; } to { width: 200px; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════
   PAGES
═══════════════════════════════════════ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ═══════════════════════════════════════
   PUBLIC NAV
═══════════════════════════════════════ */
nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  background: rgba(26,22,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}
nav#main-nav.scrolled {
  height: 64px;
  background: rgba(26,22,20,0.98);
}
.nav-logo {
  display: flex; align-items: center; gap: 16px; cursor: pointer;
}
.nav-crest {
  width: 42px; height: 42px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 15px; font-weight: 700;
  color: var(--gold);
  position: relative;
}
.nav-crest::before, .nav-crest::after {
  content: '';
  position: absolute;
  border: 1px solid var(--gold);
  opacity: 0.4;
}
.nav-crest::before { inset: 3px; }
.nav-logo-text { line-height: 1.1; }
.nav-logo-text .brand {
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.15em; display: block;
}
.nav-logo-text .sub {
  font-family: 'Cormorant Garamond', serif; font-size: 11px;
  color: var(--warm-grey); letter-spacing: 0.25em; display: block;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 400;
  letter-spacing: 0.18em; color: var(--cream); text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-btn {
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--charcoal) !important;
  background: var(--gold);
  padding: 10px 22px; border: none; cursor: pointer;
  transition: all 0.3s ease !important;
}
.nav-btn:hover { background: var(--gold-light) !important; transform: none; }
.nav-btn::after { display: none !important; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  height: 100vh; min-height: 700px;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(26,22,20,0.85) 0%, rgba(44,36,32,0.7) 50%, rgba(26,22,20,0.9) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(201,168,76,0.03) 60px,
      rgba(201,168,76,0.03) 61px
    );
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23c9a84c' stroke-width='0.3' stroke-opacity='0.12'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 80px;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 400;
  letter-spacing: 0.5em; color: var(--gold);
  margin-bottom: 28px;
  animation: fadeInUp 1s ease 0.2s forwards; opacity: 0;
  display: flex; align-items: center; gap: 20px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block; width: 60px; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700; line-height: 1.0;
  color: var(--cream);
  margin-bottom: 12px;
  animation: fadeInUp 1s ease 0.4s forwards; opacity: 0;
}
.hero-title em {
  font-style: italic; color: var(--gold);
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300; color: var(--cream-dark);
  margin-bottom: 50px; line-height: 1.4;
  animation: fadeInUp 1s ease 0.6s forwards; opacity: 0;
}
.hero-actions {
  display: flex; gap: 20px; flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s forwards; opacity: 0;
}
.btn-primary {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; color: var(--charcoal);
  background: var(--gold);
  padding: 16px 36px; border: none; cursor: pointer;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold-light);
  transform: translateX(-100%); transition: transform 0.4s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-secondary {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; color: var(--gold);
  background: transparent;
  padding: 16px 36px; border: 1px solid var(--gold); cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(201,168,76,0.08);
  color: var(--gold-light); border-color: var(--gold-light);
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.3em;
  color: var(--warm-grey); cursor: pointer;
  animation: fadeInUp 1s ease 1.2s forwards; opacity: 0;
}
.hero-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}
.hero-stats {
  position: absolute; right: 80px; bottom: 80px;
  display: flex; gap: 40px;
  animation: fadeInUp 1s ease 1s forwards; opacity: 0;
}
.hero-stat {
  text-align: right;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; padding-right: 0; }
.stat-num {
  font-family: 'Playfair Display', serif; font-size: 32px;
  color: var(--gold); font-weight: 700; line-height: 1;
}
.stat-label {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.2em;
  color: var(--warm-grey); margin-top: 4px;
}

/* ═══════════════════════════════════════
   DIVIDERS & ORNAMENTS
═══════════════════════════════════════ */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin: 20px 0;
  color: var(--gold); font-size: 18px;
}
.ornament-line {
  flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament-line.rev {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-divider {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ═══════════════════════════════════════
   SECTIONS GENERAL
═══════════════════════════════════════ */
.section {
  padding: 100px 80px;
}
.section-eyebrow {
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 400;
  letter-spacing: 0.5em; color: var(--gold);
  text-align: center; margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 58px); font-weight: 700;
  color: var(--cream); text-align: center;
  line-height: 1.1; margin-bottom: 60px;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ═══════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════ */
#services { background: var(--charcoal-mid); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  margin-top: 60px;
}
.service-card {
  background: var(--charcoal);
  padding: 50px 40px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
  border-top: 2px solid transparent;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.4s ease;
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); }
.service-icon {
  font-size: 32px; margin-bottom: 24px; line-height: 1;
}
.service-num {
  position: absolute; top: 30px; right: 30px;
  font-family: 'Playfair Display', serif; font-size: 60px;
  color: rgba(201,168,76,0.06); font-weight: 900;
  line-height: 1; user-select: none;
}
.service-name {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--gold);
  margin-bottom: 16px;
}
.service-desc {
  font-family: 'Cormorant Garamond', serif; font-size: 16px;
  color: var(--warm-grey); line-height: 1.7;
}

/* ═══════════════════════════════════════
   PROPERTIES SECTION
═══════════════════════════════════════ */
#properties { background: var(--charcoal); }
.filter-bar {
  display: flex; gap: 4px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 60px;
}
.filter-btn {
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 400;
  letter-spacing: 0.2em; color: var(--warm-grey);
  background: transparent; border: 1px solid rgba(201,168,76,0.2);
  padding: 10px 24px; cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
  color: var(--charcoal); background: var(--gold);
  border-color: var(--gold);
}
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2px;
}
.prop-card {
  background: var(--charcoal-mid);
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.prop-card:hover { transform: translateY(-6px); }
.prop-card:hover .prop-img-overlay { opacity: 1; }
.prop-img {
  width: 100%; height: 260px; object-fit: cover;
  display: block; transition: transform 0.6s ease;
  background: var(--charcoal-light);
  position: relative;
}
.prop-card:hover .prop-img { transform: scale(1.05); }
.prop-img-wrap {
  position: relative; overflow: hidden; height: 260px;
  background: var(--charcoal-light);
}
.prop-img-placeholder {
  width: 100%; height: 260px;
  background: linear-gradient(135deg, var(--charcoal-light) 0%, var(--charcoal-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s ease;
}
.prop-card:hover .prop-img-placeholder { transform: scale(1.05); }
.prop-placeholder-icon { font-size: 48px; opacity: 0.2; }
.prop-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,22,20,0.9) 0%, transparent 50%);
  opacity: 0.5; transition: opacity 0.4s ease;
}
.prop-badge {
  position: absolute; top: 20px; left: 20px;
  font-family: 'Cinzel', serif; font-size: 9px; font-weight: 600;
  letter-spacing: 0.2em; padding: 6px 14px;
}
.badge-sale { background: var(--gold); color: var(--charcoal); }
.badge-rent { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.badge-sold { background: rgba(120,50,50,0.9); color: #ffcccc; }
.badge-custom { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid var(--border); }
.prop-info {
  padding: 28px 28px 32px;
}
.prop-type {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.3em;
  color: var(--gold); margin-bottom: 8px;
}
.prop-name {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  color: var(--cream); margin-bottom: 8px; line-height: 1.2;
}
.prop-location {
  font-family: 'Cormorant Garamond', serif; font-size: 14px;
  color: var(--warm-grey); margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px;
}
.prop-details {
  display: flex; gap: 20px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.prop-detail {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.1em;
  color: var(--warm-grey); display: flex; align-items: center; gap: 6px;
}
.prop-detail span { color: var(--cream-dark); }
.prop-price {
  font-family: 'Playfair Display', serif; font-size: 26px;
  color: var(--gold); font-weight: 700;
}
.prop-price-sub {
  font-family: 'Cormorant Garamond', serif; font-size: 13px;
  color: var(--warm-grey);
}
.prop-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.prop-enquire {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.2em;
  color: var(--gold); background: transparent; border: 1px solid var(--border);
  padding: 9px 18px; cursor: pointer; transition: all 0.3s ease;
}
.prop-enquire:hover { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.no-listings {
  grid-column: 1/-1; text-align: center;
  padding: 80px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; color: var(--warm-grey);
}

/* ═══════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════ */
#about {
  background: var(--charcoal-mid);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 0;
}
.about-visual {
  position: relative; overflow: hidden; min-height: 600px;
  background: var(--charcoal-light);
}
.about-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(201,168,76,0.08) 39px, rgba(201,168,76,0.08) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(201,168,76,0.08) 39px, rgba(201,168,76,0.08) 40px);
}
.about-monogram {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif; font-size: 180px;
  color: rgba(201,168,76,0.08); font-weight: 900; font-style: italic;
  white-space: nowrap; user-select: none;
}
.about-badge {
  position: absolute; bottom: 40px; right: -1px;
  background: var(--gold);
  padding: 30px 36px;
  font-family: 'Cinzel', serif;
}
.about-badge-num {
  font-size: 48px; color: var(--charcoal); font-weight: 900; line-height: 1;
}
.about-badge-text {
  font-size: 10px; letter-spacing: 0.2em; color: var(--charcoal-mid); margin-top: 4px;
}
.about-content {
  padding: 100px 80px; display: flex; flex-direction: column; justify-content: center;
}
.about-content .section-title { text-align: left; }
.about-content .section-eyebrow { text-align: left; }
.about-text {
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
  color: var(--warm-grey); line-height: 1.8; margin-bottom: 40px;
}
.about-text strong { color: var(--cream); font-weight: 600; }
.about-pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 40px;
}
.about-pillar {
  padding: 20px 0; border-top: 1px solid var(--border);
}
.pillar-title {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 8px;
}
.pillar-desc {
  font-family: 'Cormorant Garamond', serif; font-size: 15px;
  color: var(--warm-grey); line-height: 1.5;
}

/* ═══════════════════════════════════════
   CONTACT / ANFRAGE
═══════════════════════════════════════ */
#contact { background: var(--charcoal); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  margin-top: 60px;
}
.contact-info h3 {
  font-family: 'Playfair Display', serif; font-size: 28px;
  color: var(--cream); margin-bottom: 20px;
}
.contact-info p {
  font-family: 'Cormorant Garamond', serif; font-size: 17px;
  color: var(--warm-grey); line-height: 1.7; margin-bottom: 40px;
}
.contact-details { list-style: none; }
.contact-details li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--cream-dark);
}
.contact-details li:last-child { border-bottom: none; }
.cd-icon { color: var(--gold); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.cd-label { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.2em; color: var(--warm-grey); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.25em;
  color: var(--gold);
}
.form-group input, .form-group select, .form-group textarea {
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 14px 18px;
  font-family: 'Cormorant Garamond', serif; font-size: 16px;
  outline: none; transition: border-color 0.3s;
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold);
}
.form-group select option { background: var(--charcoal-mid); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; color: var(--charcoal);
  background: var(--gold); border: none; cursor: pointer;
  padding: 18px 40px; transition: all 0.3s ease;
  align-self: flex-start; margin-top: 8px;
}
.form-submit:hover { background: var(--gold-light); }
.form-success {
  display: none; text-align: center; padding: 40px;
  font-family: 'Cormorant Garamond', serif; font-size: 22px;
  color: var(--gold);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--charcoal-mid);
  border-top: 1px solid var(--border);
  padding: 60px 80px 30px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand .brand-name {
  font-family: 'Cinzel', serif; font-size: 20px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.1em; margin-bottom: 6px;
}
.footer-brand .brand-tag {
  font-family: 'Cormorant Garamond', serif; font-size: 13px;
  color: var(--warm-grey); letter-spacing: 0.15em; font-style: italic;
  margin-bottom: 20px;
}
.footer-brand p {
  font-family: 'Cormorant Garamond', serif; font-size: 15px;
  color: var(--warm-grey); line-height: 1.7;
}
.footer-col h4 {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-family: 'Cormorant Garamond', serif; font-size: 15px;
  color: var(--warm-grey); text-decoration: none; transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-family: 'Cormorant Garamond', serif; font-size: 13px;
  color: var(--warm-grey); font-style: italic;
}
.footer-admin-link {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.2em;
  color: rgba(201,168,76,0.3); text-decoration: none; cursor: pointer;
  transition: color 0.3s;
}
.footer-admin-link:hover { color: var(--gold); }

/* ═══════════════════════════════════════
   MODAL / PROPERTY DETAIL
═══════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(26,22,20,0.9); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 40px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  max-width: 800px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
}
.modal-close {
  position: sticky; top: 0; right: 0;
  display: flex; justify-content: flex-end;
  padding: 16px 20px;
  background: var(--charcoal-mid);
  z-index: 10;
}
.modal-close-btn {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.2em;
  color: var(--warm-grey); background: none; border: none; cursor: pointer;
  transition: color 0.3s;
}
.modal-close-btn:hover { color: var(--gold); }
.modal-content { padding: 0 40px 40px; }
.modal-gallery {
  height: 320px; background: var(--charcoal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; opacity: 0.2; margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.modal-gallery img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.modal-badge-row {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.modal-title {
  font-family: 'Playfair Display', serif; font-size: 36px;
  color: var(--cream); font-weight: 700; margin-bottom: 8px;
}
.modal-location {
  font-family: 'Cormorant Garamond', serif; font-size: 16px;
  color: var(--warm-grey); margin-bottom: 24px;
}
.modal-price-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.modal-price { font-family: 'Playfair Display', serif; font-size: 38px; color: var(--gold); font-weight: 700; }
.modal-price-note { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: var(--warm-grey); }
.modal-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px;
}
.modal-spec {
  background: var(--charcoal); padding: 16px 20px;
  border-top: 2px solid var(--gold);
}
.modal-spec-label { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.2em; color: var(--warm-grey); margin-bottom: 6px; }
.modal-spec-val { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--cream); font-weight: 700; }
.modal-desc {
  font-family: 'Cormorant Garamond', serif; font-size: 17px;
  color: var(--warm-grey); line-height: 1.8; margin-bottom: 32px;
}
.modal-enquire {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; color: var(--charcoal);
  background: var(--gold); border: none; cursor: pointer;
  padding: 16px 40px; transition: all 0.3s ease;
}
.modal-enquire:hover { background: var(--gold-light); }

/* ═══════════════════════════════════════
   ██████████  ADMIN PANEL  ██████████
═══════════════════════════════════════ */
#admin-page { background: #0f0e0d; display: none; }
#admin-page.active { display: flex; }

.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: #181410;
  border-right: 1px solid rgba(201,168,76,0.15);
  display: flex; flex-direction: column;
  min-height: 100vh; position: fixed; left: 0; top: 0;
  z-index: 100;
}
.admin-logo {
  padding: 28px 28px 24px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.admin-logo .brand {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.1em;
}
.admin-logo .sub {
  font-family: 'Cormorant Garamond', serif; font-size: 11px;
  color: var(--warm-grey); letter-spacing: 0.2em; margin-top: 3px;
}
.admin-nav { flex: 1; padding: 20px 0; }
.admin-nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.15em;
  color: var(--warm-grey); transition: all 0.3s;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.admin-nav-item:hover {
  color: var(--gold); background: rgba(201,168,76,0.05);
}
.admin-nav-item.active {
  color: var(--gold); background: rgba(201,168,76,0.08);
  border-left-color: var(--gold);
}
.admin-nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.admin-nav-separator {
  height: 1px; background: rgba(201,168,76,0.1); margin: 8px 28px;
}
.admin-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(201,168,76,0.15);
  font-family: 'Cormorant Garamond', serif; font-size: 13px;
  color: var(--warm-grey);
}
.admin-logout-btn {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.15em;
  color: var(--warm-grey); background: none; border: 1px solid rgba(201,168,76,0.2);
  padding: 8px 16px; cursor: pointer; margin-top: 8px;
  width: 100%; transition: all 0.3s;
}
.admin-logout-btn:hover { color: var(--gold); border-color: var(--gold); }

.admin-main {
  margin-left: 260px; flex: 1;
  display: flex; flex-direction: column; min-height: 100vh;
  width: calc(100% - 260px);
}
.admin-topbar {
  padding: 20px 40px;
  background: #181410;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  display: flex; justify-content: space-between; align-items: center;
}
.admin-topbar-title {
  font-family: 'Playfair Display', serif; font-size: 22px;
  color: var(--cream);
}
.admin-topbar-actions { display: flex; gap: 12px; }
.admin-btn {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.15em;
  padding: 10px 22px; cursor: pointer; transition: all 0.3s; border: none;
}
.admin-btn-primary { background: var(--gold); color: var(--charcoal); }
.admin-btn-primary:hover { background: var(--gold-light); }
.admin-btn-outline {
  background: transparent; color: var(--gold);
  border: 1px solid var(--border) !important;
  border: none;
}
.admin-btn-outline:hover { background: rgba(201,168,76,0.1); }
.admin-btn-danger { background: rgba(180,50,50,0.8); color: #ffcccc; }
.admin-btn-danger:hover { background: rgba(180,50,50,1); }
.admin-btn-sm { padding: 7px 14px; font-size: 8px; }

.admin-content { padding: 36px 40px; flex: 1; }

/* Admin tabs content */
.admin-tab { display: none; }
.admin-tab.active { display: block; }

/* Stats row */
.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 36px;
}
.astat {
  background: #181410; border: 1px solid rgba(201,168,76,0.15);
  padding: 24px 28px; position: relative; overflow: hidden;
}
.astat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
}
.astat-num {
  font-family: 'Playfair Display', serif; font-size: 36px;
  color: var(--gold); font-weight: 700; line-height: 1;
}
.astat-label {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.15em;
  color: var(--warm-grey); margin-top: 6px;
}

/* Admin Table */
.admin-table-wrap {
  background: #181410; border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
}
.admin-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  display: flex; justify-content: space-between; align-items: center;
}
.admin-table-title {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.2em;
  color: var(--gold);
}
.admin-table {
  width: 100%; border-collapse: collapse;
}
.admin-table th {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.2em;
  color: var(--warm-grey); padding: 14px 20px; text-align: left;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  background: rgba(0,0,0,0.2);
}
.admin-table td {
  padding: 14px 20px;
  font-family: 'Cormorant Garamond', serif; font-size: 15px;
  color: var(--cream-dark);
  border-bottom: 1px solid rgba(201,168,76,0.06);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(201,168,76,0.03); }
.admin-status-badge {
  display: inline-block; padding: 3px 10px;
  font-family: 'Cinzel', serif; font-size: 8px; letter-spacing: 0.15em;
}
.status-active { background: rgba(60,180,80,0.15); color: #7fffa0; }
.status-sold { background: rgba(180,60,60,0.15); color: #ffaaaa; }
.status-rented { background: rgba(60,120,200,0.15); color: #aaccff; }
.status-draft { background: rgba(201,168,76,0.1); color: var(--gold); }
.status-custom { background: rgba(150,80,200,0.15); color: #ddaaff; }
.table-actions { display: flex; gap: 8px; }
.empty-table {
  text-align: center; padding: 60px;
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
  color: var(--warm-grey);
}

/* Admin Form / Modal */
.admin-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.admin-modal-overlay.open { display: flex; }
.admin-modal {
  background: #181410; border: 1px solid rgba(201,168,76,0.2);
  max-width: 700px; width: 100%; max-height: 90vh;
  overflow-y: auto;
}
.admin-modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: #181410; z-index: 10;
}
.admin-modal-title {
  font-family: 'Playfair Display', serif; font-size: 22px; color: var(--cream);
}
.admin-modal-close {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.15em;
  color: var(--warm-grey); background: none; border: none; cursor: pointer;
}
.admin-modal-body { padding: 28px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form-full { grid-column: 1 / -1; }
.admin-form-group { display: flex; flex-direction: column; gap: 8px; }
.admin-form-group label {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.2em;
  color: var(--gold);
}
.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  background: #0f0e0d;
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--cream);
  padding: 12px 16px;
  font-family: 'Cormorant Garamond', serif; font-size: 15px;
  outline: none; transition: border-color 0.3s; width: 100%;
}
.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus { border-color: var(--gold); }
.admin-form-group select option { background: #181410; }
.admin-form-group textarea { resize: vertical; min-height: 90px; }
.admin-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(201,168,76,0.15);
  display: flex; justify-content: flex-end; gap: 12px;
}

/* Image upload area */
.img-upload-area {
  border: 2px dashed rgba(201,168,76,0.3);
  padding: 40px; text-align: center;
  cursor: pointer; transition: all 0.3s;
  font-family: 'Cormorant Garamond', serif; font-size: 16px;
  color: var(--warm-grey);
}
.img-upload-area:hover { border-color: var(--gold); color: var(--gold); }
.img-upload-area input { display: none; }
.img-preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.img-preview {
  height: 80px; background: #0f0e0d;
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; position: relative; overflow: hidden;
  cursor: pointer;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-remove {
  position: absolute; top: 2px; right: 4px;
  background: rgba(180,50,50,0.8); color: white;
  border: none; cursor: pointer; font-size: 12px; padding: 1px 5px;
  line-height: 1;
}

/* Admin Login */
.admin-login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #0f0e0d;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 60px,
    rgba(201,168,76,0.03) 60px, rgba(201,168,76,0.03) 61px
  );
}
.admin-login-box {
  width: 420px;
  background: #181410;
  border: 1px solid rgba(201,168,76,0.2);
  padding: 48px;
}
.admin-login-crest {
  text-align: center; margin-bottom: 32px;
}
.admin-login-crest .big {
  font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.1em;
}
.admin-login-crest .small {
  font-family: 'Cormorant Garamond', serif; font-size: 13px;
  color: var(--warm-grey); letter-spacing: 0.2em; font-style: italic;
  margin-top: 4px;
}
.admin-login-err {
  background: rgba(180,50,50,0.2); border: 1px solid rgba(180,50,50,0.5);
  color: #ffaaaa; padding: 12px 16px; margin-bottom: 20px;
  font-family: 'Cormorant Garamond', serif; font-size: 15px;
  display: none;
}
.admin-login-err.show { display: block; }
.admin-login-submit {
  width: 100%;
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; color: var(--charcoal);
  background: var(--gold); border: none; cursor: pointer;
  padding: 16px; margin-top: 8px;
  transition: background 0.3s;
}
.admin-login-submit:hover { background: var(--gold-light); }

/* Rich text hint */
.form-hint {
  font-family: 'Cormorant Garamond', serif; font-size: 12px;
  color: var(--warm-grey); margin-top: 2px;
}

/* Anfragen section */
.anfrage-card {
  background: #181410; border: 1px solid rgba(201,168,76,0.15);
  padding: 24px 28px; margin-bottom: 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px;
  align-items: start;
}
.anfrage-meta {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.15em;
  color: var(--warm-grey); margin-bottom: 8px;
}
.anfrage-name {
  font-family: 'Playfair Display', serif; font-size: 18px;
  color: var(--cream); margin-bottom: 4px;
}
.anfrage-details {
  font-family: 'Cormorant Garamond', serif; font-size: 15px;
  color: var(--warm-grey); line-height: 1.5;
}
.anfrage-msg {
  font-family: 'Cormorant Garamond', serif; font-size: 15px;
  color: var(--cream-dark); margin-top: 10px; font-style: italic;
  padding-left: 16px; border-left: 2px solid var(--gold);
}
.anfrage-actions { display: flex; flex-direction: column; gap: 8px; }

/* Toast */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
  background: var(--charcoal-mid); border-left: 3px solid var(--gold);
  padding: 16px 24px;
  font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--cream);
  transform: translateX(200%); transition: transform 0.4s ease;
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #7fffa0; }
.toast.error { border-left-color: #ffaaaa; }

/* Responsive basics */
@media (max-width: 900px) {
  nav#main-nav { padding: 0 24px; }
  .hero-content { padding: 0 24px; }
  .hero-stats { right: 24px; gap: 20px; }
  .section { padding: 70px 24px; }
  #about { grid-template-columns: 1fr; }
  .about-visual { min-height: 300px; }
  .about-content { padding: 60px 24px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; width: 100%; }
}

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }