/* ===========================
   ELITE STAYS — LIGHT LUXURY UI
   Version: v1000 (Mobile Optimized)
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Core palette (Light Luxury) */
  --bg: #f6f1eb;
  --bg-2: #efe7df;
  --surface: #ffffff;
  --surface-2: rgba(255,255,255,0.75);

  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --line: rgba(0,0,0,0.08);

  --gold: #b07a22;        /* Rich gold */
  --gold-2: #d1a052;      /* Softer gold */
  --gold-soft: rgba(176, 122, 34, 0.12);

  --shadow: 0 24px 70px rgba(0,0,0,0.12);
  --shadow-soft: 0 16px 40px rgba(0,0,0,0.10);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --container: 1200px;

  /* Backwards-compatible aliases */
  --bg-dark: #050505;
  --card-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0,0,0,0.08);
  --glass-blur: blur(16px);

  --gold-primary: var(--gold);
  --dark: #1a1a1a;
  --dark-grey: #444;
  --silver: #eaeaea;
  
  --glass-white: rgba(245, 245, 245, 0.65);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: radial-gradient(1200px 500px at 50% 0%, var(--bg-2), var(--bg));
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* =========================================
   NAVBAR (Original Fallbacks)
   ========================================= */
/* ... (Previous styles kept for history/fallback, active styles are at bottom) ... */

.navbar {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 18px 0;
}

.navbar-inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.nav-links {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
}

.nav-link {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  padding: 10px 10px;
  position: relative;
  transition: 0.25s;
}

.nav-link:hover { color: #fff; }

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: var(--gold-2);
  border-radius: 999px;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  color: #fff;
  transition: 0.2s;
}

.icon-btn:hover { transform: translateY(-1px); }

.btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--gold);
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: none;
}

.btn--gold:hover { filter: brightness(1.05); }

/* =========================================
   HERO
   ========================================= */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 550px at 30% 30%, rgba(0,0,0,0.25), rgba(0,0,0,0.65)),
    linear-gradient(to bottom, rgba(0,0,0,0.30), rgba(0,0,0,0.60)),
    url('hero-cape-town.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.05);
}

.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.00) 55%, rgba(246,241,235,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding-top: 130px; /* Adjusted for mobile/desktop spacing */
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-2);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.7rem, 4.8vw, 4.6rem);
  line-height: 1.05;
  color: #fff;
  font-weight: 500;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--gold-2);
  font-style: normal;
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* =========================================
   SEARCH BAR
   ========================================= */
.search-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
  padding: 12px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr auto;
  gap: 10px;
  align-items: center;
}

.search-group {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  text-align: left;
}

.label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(0,0,0,0.55);
  font-weight: 800;
}

.input-ghost {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.input-ghost::placeholder {
  color: rgba(0,0,0,0.40);
  font-weight: 600;
}

.btn-search {
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
}

.btn-search:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* =========================================
   STATS
   ========================================= */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 46px;
  margin-top: 26px;
  padding-top: 18px;
}

.stat-val {
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,0.92);
  font-size: 1.55rem;
}

.stat-lbl {
  color: rgba(255,255,255,0.70);
  font-size: 0.82rem;
  margin-top: 4px;
  letter-spacing: 0.7px;
}

/* =========================================
   SECTIONS & GRID
   ========================================= */
.section { padding: 90px 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
}

.kicker {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 760px;
  line-height: 1.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card, .property-card {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  transition: 0.25s ease;
  position: relative;
}

.card:hover, .property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.14);
}

.card-img, .property-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body, .property-body {
  padding: 14px 14px 16px;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(176,122,34,0.90);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.06);
  display: grid;
  place-items: center;
  color: rgba(0,0,0,0.75);
  transition: 0.2s;
}

.heart-btn:hover { transform: translateY(-1px); }

.property-location {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  line-height: 1.35;
  margin-top: 6px;
  color: var(--text);
}

.property-meta {
  margin-top: 10px;
  color: rgba(0,0,0,0.55);
  font-size: 0.9rem;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.property-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(0,0,0,0.60);
  font-weight: 800;
}

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter-wrap {
  border-radius: 22px;
  background: radial-gradient(900px 380px at 30% 30%, rgba(176,122,34,0.12), rgba(255,255,255,0.85));
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
  padding: 56px 18px;
  text-align: center;
}

.newsletter-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.newsletter-sub {
  color: rgba(0,0,0,0.55);
  max-width: 720px;
  margin: 0 auto 22px;
  line-height: 1.8;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.input-pill {
  height: 52px;
  width: min(420px, 90vw);
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.88);
  padding: 0 18px;
  outline: none;
  font-weight: 700;
}

.btn-pill {
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 900;
  cursor: pointer;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #2b2622;
  color: rgba(255,255,255,0.82);
  margin-top: 70px;
}

.footer .container {
  padding: 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 22px;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,0.92);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.footer a {
  color: rgba(255,255,255,0.78);
  transition: 0.2s;
}

.footer a:hover { color: #fff; }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  color: #fff;
}

.reveal { opacity: 0; transform: translateY(10px); transition: 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================
   ULTRA-ELITE FLOATING MINIMALIST NAV
   (The active Desktop Design)
   ========================================= */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 24px 0; 
  pointer-events: none; 
}

.navbar-inner {
  pointer-events: auto; 
  width: fit-content; 
  min-width: 900px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(176, 122, 34, 0.2); 
  border-radius: 100px; 
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    inset 0 0 15px rgba(255, 255, 255, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 44px;
  width: auto;
  border-radius: 50%;
  border: 2px solid #b07a22;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand:hover img {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(26, 26, 26, 0.5) !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.is-active {
  color: #b07a22 !important;
  transform: translateY(-1px);
}

.btn--gold {
  background: #b07a22; 
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn--gold:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(176, 122, 34, 0.4);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03); 
  border: 1px solid rgba(0, 0, 0, 0.08); 
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: rgba(26, 26, 26, 0.7); 
  transition: all 0.3s ease;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(176, 122, 34, 0.1); 
  border-color: rgba(176, 122, 34, 0.2);
  color: #b07a22; 
  transform: translateY(-1px);
}

/* =========================================
   MOBILE OPTIMIZATION v1000
   ========================================= */

/* Default Hidden Hamburger (shows on mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: 0.3s ease-in-out;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 0; }

/* Hamburger Active State */
.hamburger.active .hamburger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .navbar-inner { min-width: auto; width: 95%; }
}

@media (max-width: 900px) {
  /* Reset Desktop Floating Pill for Mobile */
  .navbar {
    padding: 10px 0;
    pointer-events: auto;
  }
  
  .navbar-inner {
    width: calc(100% - 32px);
    border-radius: 16px;
    padding: 12px 18px;
    gap: 0;
    min-width: 0;
    justify-content: space-between;
  }

  /* Reveal Hamburger */
  .hamburger { display: block; }
  
  /* Full Screen Mobile Menu */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(246, 241, 235, 0.98); /* Theme bg color */
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Active Menu State */
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Mobile Link Styling */
  .nav-links .nav-link {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--text) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .nav-links .nav-link.is-active {
    color: var(--gold) !important;
  }

  .nav-actions {
    display: none; /* Hide desktop actions or move them inside .nav-links if desired */
  }

  /* Search & Hero Adjustments */
  .search-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .stats-row { display: none; }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-sub {
    font-size: 1rem;
    padding: 0 16px;
  }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .newsletter-title {
    font-size: 1.8rem;
  }
  
  .input-pill {
    width: 100%;
  }
  
  .btn-pill {
    width: 100%;
  }
}

/* FIX: Force mobile menu buttons to be visible */
.mobile-actions .btn {
    color: #1a1a1a !important;       /* Dark text */
    border: 1px solid #ddd !important; /* Visible border */
    background: #fff !important;     /* White background */
}

/* Keep the Gold Button looking Gold */
.mobile-actions .btn--gold {
    background: #b07a22 !important;  /* Gold background */
    color: #fff !important;          /* White text */
    border: none !important;
}

@media (max-width: 560px) {
  /* Force 2 columns and reduce the gap slightly for mobile screens */
  .grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
  
  /* Make card text slightly smaller to fit the narrower columns nicely */
  .property-title { font-size: 0.95rem; }
  .price { font-size: 0.95rem; }
  .property-meta { font-size: 0.8rem; gap: 8px; }
  .card-img, .property-img { height: 160px; } /* Slightly shorter images */

  .footer-grid { grid-template-columns: 1fr; }
  
  .newsletter-title {
    font-size: 1.8rem;
  }
  
  .input-pill {
    width: 100%;
  }
  
  .btn-pill {
    width: 100%;
  }
}

.cta-section {
        /* Starts gold, deepens, then fades to the dark footer color */
        background: linear-gradient(to bottom, #b07a22 0%, #8b6119 40%, #2b2622 100%);
        padding: 80px 0;
        text-align: center;
        color: #fff;
    }
    
    .footer {
  background: #2b2622;
  color: rgba(255,255,255,0.82);
  margin-top: 0; /* Removed the gap to connect the gradient */
}

.btn--black {
  background: #1a1a1a !important; /* Solid dark black/grey */
  color: #ffffff !important;      /* White text */
  border: none !important;
  backdrop-filter: none;
}

.btn--black:hover {
  background: #000000 !important; /* Deep black on hover */
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}