/* ============================================================
   BLUE HORIZON REALTY — Main Stylesheet
   Pure Vanilla CSS | Grid + Flexbox | No Frameworks
   ============================================================ */

/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --primary-color:    #2e2058;
  --secondary-color:  #185565;
  --main-white:       #FCFBFC;
  --secondary-white:  #F5FEFD;
  --accent-gold:      #C9A84C;
  --dark-ink:         #0F0D1A;
  --text-body:        #3A3549;
  --text-muted:       #7A7690;
  --border-subtle:    rgba(46,32,88,0.12);
  --shadow-card:      0 4px 28px rgba(15,13,26,0.10);
  --shadow-elevated:  0 16px 56px rgba(15,13,26,0.18);
  --radius-card:      6px;
  --radius-btn:       3px;
  --header-height:    80px;
  --transition-smooth: all 0.35s cubic-bezier(0.25,0.8,0.25,1);
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Montserrat', Helvetica, sans-serif;
}

/* ── CSS Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--main-white);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utility Classes ────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-primary:hover {
  background: transparent;
  color: var(--primary-color);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary-color);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.gold-divider {
  width: 52px;
  height: 2px;
  background: var(--accent-gold);
  margin-bottom: 28px;
}


/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  padding: 0 40px;
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(15,13,26,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
}
.header-logo img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-btn);
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-chevron {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.nav-item:hover .nav-chevron,
.nav-item.nav-open .nav-chevron {
  transform: rotate(-135deg) translateY(-2px);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--dark-ink);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 32px 36px;
  min-width: 640px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.nav-item.nav-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
}

.mega-col-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-col ul li a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mega-col ul li a:hover { color: #fff; }
.mega-col ul li a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--secondary-color);
  flex-shrink: 0;
}

/* Simple dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--dark-ink);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.nav-item.nav-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  border-radius: 4px;
  transition: all 0.2s;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding-left: 22px;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.header-phone:hover { color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1500916434205-0c77489c6cf7?w=1800&q=85');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(15,13,26,0.72) 0%,
    rgba(46,32,88,0.55) 45%,
    rgba(24,85,101,0.4) 100%
  );
}

/* Subtle grid texture */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 69px,
    rgba(255,255,255,0.02) 69px,
    rgba(255,255,255,0.02) 70px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 69px,
    rgba(255,255,255,0.02) 69px,
    rgba(255,255,255,0.02) 70px
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 24px;
  animation: heroFadeUp 1.1s ease forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.82);
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin: 0 auto 48px;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Hero Search Widget */
.hero-search-widget {
  background: rgba(252,251,252,0.96);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 16px;
  align-items: end;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  width: 100%;
  max-width: 960px;
  animation: heroFadeUp 1.3s ease 0.2s forwards;
  opacity: 0;
}

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

.search-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
}

.search-field select,
.search-field input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark-ink);
  background: var(--main-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232e2058' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

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

.hero-search-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  height: 42px;
  align-self: end;
}
.hero-search-btn:hover {
  background: var(--secondary-color);
}

/* Hero Stats Bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(15,13,26,0.8);
  backdrop-filter: blur(12px);
  padding: 20px 40px;
}
.hero-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}


/* ============================================================
   FEATURED LISTINGS
   ============================================================ */
.listings-section {
  padding: 100px 0;
  background: var(--main-white);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}
.section-header-left { flex: 1; }

/* Tab Filter */
.listings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0;
}
.tab-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.tab-btn:hover { color: var(--primary-color); }
.tab-btn.active {
  color: var(--primary-color);
}
.tab-btn.active::after { transform: scaleX(1); }

/* Property Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Property Card */
.property-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.property-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  z-index: 1;
}
.badge-active { background: var(--secondary-color); color: #fff; }
.badge-sold   { background: #CC4444; color: #fff; }
.badge-new    { background: var(--accent-gold); color: var(--dark-ink); }
.badge-pending{ background: #E67E22; color: #fff; }

.card-save-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 16px;
  color: var(--text-muted);
  z-index: 1;
}
.card-save-btn:hover { background: #fff; color: #e74c3c; }
.card-save-btn.saved { color: #e74c3c; }

.card-body {
  padding: 22px 24px;
  border-top: 3px solid var(--secondary-color);
}

.card-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 6px;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
  line-height: 1.1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-address {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-address svg { flex-shrink: 0; }

.card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.card-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
}
.card-stat svg { color: var(--secondary-color); }

/* Loading skeleton — disabled (data loads inline, no skeleton needed) */
/* .skeleton { ... } */



/* ============================================================
   LIFESTYLE / CATEGORY SECTION
   ============================================================ */
.lifestyle-section {
  padding: 100px 0;
  background: var(--secondary-white);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  margin-top: 56px;
}
.lifestyle-grid .card-wide {
  grid-column: span 2;
}

.lifestyle-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  height: 280px;
}
.lifestyle-card.tall { height: 380px; }

.lifestyle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.lifestyle-card:hover img { transform: scale(1.07); }

.lifestyle-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,13,26,0.8) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background 0.4s ease;
}
.lifestyle-card:hover .lifestyle-card-overlay {
  background: linear-gradient(to top, rgba(46,32,88,0.85) 0%, rgba(46,32,88,0.25) 55%);
}

.lifestyle-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}
.lifestyle-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.lifestyle-card-count {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.lifestyle-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  margin-top: 12px;
  transition: var(--transition-smooth);
}
.lifestyle-card:hover .lifestyle-card-arrow {
  background: #fff;
  color: var(--primary-color);
  border-color: #fff;
}


/* ============================================================
   REGIONS SECTION
   ============================================================ */
.regions-section {
  padding: 100px 0;
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
}
.regions-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,85,101,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.regions-section .section-label { color: var(--accent-gold); }
.regions-section .section-title { color: #fff; }
.regions-section .section-subtitle { color: rgba(255,255,255,0.62); }

.regions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.region-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  height: 320px;
  transition: var(--transition-smooth);
}
.region-card:hover { transform: translateY(-5px); }

.region-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(0.8);
}
.region-card:hover img {
  transform: scale(1.08);
  filter: saturate(1);
}

.region-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,32,88,0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.region-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.region-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
}
.region-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.region-card:hover::after { transform: scaleX(1); }


/* ============================================================
   VALUE PROPOSITION / WHY BHR
   ============================================================ */
.why-section {
  padding: 100px 0;
  background: var(--main-white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}

.why-visual {
  position: relative;
}
.why-image-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
}
.why-image-accent {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 52%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  border: 6px solid var(--main-white);
  box-shadow: var(--shadow-elevated);
}
.why-badge {
  position: absolute;
  top: 32px;
  left: -32px;
  background: var(--primary-color);
  color: #fff;
  padding: 22px 24px;
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}
.why-badge-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-gold);
}
.why-badge-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.why-feature {
  display: flex;
  gap: 14px;
}
.why-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--secondary-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary-color);
  font-size: 18px;
  border: 1px solid var(--border-subtle);
}
.why-feature-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}
.why-feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ============================================================
   AGENT SLIDER
   ============================================================ */
.agents-section {
  padding: 100px 0;
  background: var(--secondary-white);
  overflow: hidden;
}

.slider-container {
  position: relative;
  margin-top: 56px;
}

.agents-slider {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1);
  will-change: transform;
}

.agent-card {
  flex-shrink: 0;
  width: calc(25% - 18px);
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }

.agent-photo-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.agent-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}
.agent-card:hover .agent-photo-wrap img { transform: scale(1.04); }

.agent-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,32,88,0.75) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  gap: 10px;
}
.agent-card:hover .agent-photo-overlay { opacity: 1; }
.agent-social-link {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.agent-social-link:hover { background: #fff; color: var(--primary-color); }

.agent-body {
  padding: 20px 22px;
  border-top: 3px solid var(--secondary-color);
}
.agent-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-ink);
  margin-bottom: 3px;
}
.agent-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 12px;
}
.agent-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agent-contact-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  transition: gap 0.2s;
}
.agent-contact-link:hover { gap: 10px; }

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  justify-content: center;
}
.slider-btn {
  width: 46px;
  height: 46px;
  background: #fff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 16px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}
.slider-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}
.slider-dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 100px 0;
  background: var(--dark-ink);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 40px;
  font-family: var(--font-display);
  font-size: 280px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.testimonials-section .section-label { color: var(--accent-gold); }
.testimonials-section .section-title { color: #fff; }

.testimonials-slider-wrap {
  margin-top: 56px;
  position: relative;
}
.testimonials-slider {
  display: grid;
  grid-template-columns: 1fr;
}
.testimonial-slide {
  display: none;
  animation: fadeIn 0.6s ease;
}
.testimonial-slide.active { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.testimonial-quote-wrap { }
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  color: var(--accent-gold);
  font-size: 18px;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  margin-bottom: 32px;
}
.testimonial-client {
  display: flex;
  align-items: center;
  gap: 16px;
}
.client-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
}
.client-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.client-detail {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.testimonial-property-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.testimonial-property-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.testimonial-property-body {
  padding: 20px 24px;
}
.testimonial-property-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.testimonial-property-addr {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}


/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 80px 40px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1444723121867-7a241cacace9?w=1600&q=60') center/cover;
  opacity: 0.08;
}
.cta-band-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 560px;
}
.cta-band-actions { display: flex; gap: 16px; flex-shrink: 0; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-ink);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 0;
}

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {}
.footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.8;
  max-width: 300px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.footer-address {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.footer-social-link:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.footer-col {}
.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-legal { display: flex; gap: 20px; }


/* ============================================================
   NEWSLETTER MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,13,26,0.75);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-modal {
  background: var(--main-white);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1);
  position: relative;
  max-height: 90vh;
}
.modal-backdrop.active .newsletter-modal {
  transform: scale(1) translateY(0);
}

.modal-visual {
  background: linear-gradient(160deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.modal-visual::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border: 40px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.modal-visual-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.modal-visual-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 12px;
  line-height: 1.7;
}
.modal-perks { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.modal-perk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.modal-perk-check {
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-body {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 8px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
  line-height: 1.3;
}
.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.modal-input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark-ink);
  background: var(--main-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.modal-input:focus { outline: none; border-color: var(--secondary-color); }
.modal-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 16px;
}
.modal-submit:hover { background: var(--secondary-color); }
.modal-dismiss {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-dismiss:hover { color: var(--primary-color); }

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-body);
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
}
.modal-close-btn:hover { background: var(--primary-color); color: #fff; }


/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mobile-nav-drawer {
  position: absolute;
  top: 0; right: 0;
  width: 320px;
  height: 100%;
  background: var(--dark-ink);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1);
  overflow-y: auto;
  padding: 80px 28px 40px;
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav.open .mobile-nav-drawer  { transform: translateX(0); }
.mobile-nav.open { pointer-events: all; }

.mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: #fff; }

.mobile-subnav {
  padding: 8px 0 16px 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.mobile-subnav.open { display: flex; }
.mobile-subnav a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.mobile-subnav a:hover { color: rgba(255,255,255,0.9); }

.mobile-nav-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(46,32,88,0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition-smooth);
  z-index: 2000;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--secondary-color); transform: translateY(-3px); }


/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .site-header { padding: 0 28px; }

  .hero-search-widget {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-search-widget .search-field:nth-child(4),
  .hero-search-widget .search-field:nth-child(5) {
    display: none;
  }

  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .lifestyle-grid { grid-template-columns: repeat(2, 1fr); }
  .lifestyle-grid .card-wide { grid-column: span 1; }

  .regions-grid { grid-template-columns: repeat(3, 1fr); }

  .why-grid { grid-template-columns: 1fr; gap: 60px; }
  .why-visual { order: -1; }
  .why-image-accent { right: 0; }

  .agent-card { width: calc(33.33% - 16px); }

  .testimonial-slide.active { grid-template-columns: 1fr; }
  .testimonial-property-card { display: none; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
}


/* ============================================================
   RESPONSIVE — PHONE (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --header-height: 68px; }
  .container { padding: 0 18px; }

  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 14px; }
  .hero-search-widget {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 12px;
  }
  .hero-search-widget .search-field:nth-child(n+3) { display: none; }
  .hero-search-btn { grid-column: span 2; }
  .hero-stats-inner { gap: 16px; }
  .stat-divider { display: none; }

  .listings-section,
  .lifestyle-section,
  .regions-section,
  .why-section,
  .agents-section,
  .testimonials-section { padding: 64px 0; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .properties-grid { grid-template-columns: 1fr; }

  .lifestyle-grid { grid-template-columns: 1fr; gap: 16px; }
  .lifestyle-card.tall { height: 280px; }

  .regions-grid { grid-template-columns: repeat(2, 1fr); }
  .region-card { height: 220px; }

  .why-badge { left: 0; }
  .why-image-accent { display: none; }
  .why-features { grid-template-columns: 1fr; }

  .agent-card { width: calc(80vw - 36px); }

  .cta-band { padding: 60px 18px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }

  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .newsletter-modal {
    grid-template-columns: 1fr;
    margin: 16px;
  }
  .modal-visual { display: none; }

  .scroll-top-btn { bottom: 20px; right: 20px; }
}

/* ============================================================
   SEARCH BAND — standalone section below hero
   ============================================================ */
.search-band {
  background: var(--secondary-white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
}
.search-band .container {
  padding-top: 0;
  padding-bottom: 0;
}
.search-band .hero-search-widget {
  opacity: 1;
  animation: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  max-width: 100%;
  padding: 24px 0;
  border-bottom: 2px solid var(--border-subtle);
}
.search-band .hero-search-widget .search-field label {
  color: var(--primary-color);
}
.search-band .hero-search-widget .search-field select {
  border-color: var(--border-subtle);
  background-color: var(--secondary-white);
}
.search-band .hero-search-widget .search-field select:focus {
  border-color: var(--secondary-color);
  background-color: #fff;
}
