/* =============================================
   ELITE ESTATES — MAIN STYLESHEET
   Version: 1.0

   TABLE OF CONTENTS:
   1. Google Fonts Import
   2. CSS Custom Properties (Variables)
   3. Reset & Base Styles
   4. Typography
   5. Utility Classes
   6. Layout & Container
   7. Header & Navigation
   8. Hero Section
   9. Property Search Bar
   10. Property Cards
   11. Featured Properties Section
   12. About Section
   13. Services Section
   14. Why Choose Us Section
   15. Testimonials Section
   16. CTA Section
   17. Properties Page
   18. Property Detail Page
   19. Contact Page
   20. About Page
   21. Footer
   22. Scroll Animations
   23. Page Loader
   24. Responsive — Tablet (≤1024px)
   25. Responsive — Mobile (≤768px)
   26. Responsive — Small Mobile (≤480px)
============================================= */

/* ============================================
   1. GOOGLE FONTS IMPORT
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   2. CSS CUSTOM PROPERTIES (VARIABLES)
   — Edit these to change the color scheme —
============================================= */
:root {
  /* Brand Colors */
  --primary:       #0A1628;   /* Deep Navy */
  --primary-mid:   #1B2B4B;   /* Medium Navy */
  --primary-light: #2A4470;   /* Light Navy */
  --gold:          #C9A96E;   /* Gold Accent */
  --gold-dark:     #A8834A;   /* Dark Gold */
  --gold-light:    #E8D5B0;   /* Light Gold */
  --gold-pale:     #FBF5E9;   /* Pale Gold Background */

  /* Neutral Colors */
  --white:      #FFFFFF;
  --off-white:  #FAFAF8;
  --gray-pale:  #F5F4F0;
  --gray-light: #EBEBEB;
  --gray:       #9CA3AF;
  --gray-mid:   #6B7280;
  --gray-dark:  #374151;
  --text:       #1A1A2E;
  --text-light: #4B5563;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py:       100px;
  --container-max:    1280px;
  --container-px:     clamp(16px, 4vw, 40px);

  /* Borders */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   30px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs:   0 1px 4px rgba(0,0,0,0.05);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow:      0 4px 30px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 40px rgba(0,0,0,0.12);
  --shadow-lg:   0 16px 60px rgba(0,0,0,0.16);
  --shadow-gold: 0 6px 24px rgba(201,169,110,0.35);

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.0, 0, 0.2, 1);
  --tr:        0.3s var(--ease);
  --tr-slow:   0.5s var(--ease);

  /* Navbar height */
  --nav-h: 76px;
}

/* ============================================
   3. RESET & BASE STYLES
============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--tr);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ============================================
   4. TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p {
  color: var(--text-light);
  line-height: 1.75;
}

/* ============================================
   5. UTILITY CLASSES
============================================= */

/* Section Label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Section Header */
.section-header {
  max-width: 640px;
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header.centered .section-label {
  justify-content: center;
}

.section-header.centered .section-label::before {
  display: none;
}

.section-header.centered .section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--tr);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn i {
  font-size: 0.85rem;
  transition: transform var(--tr);
}

.btn:hover i { transform: translateX(4px); }

.btn-primary {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-dark:hover {
  background: var(--primary-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.82rem;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-sale  { background: var(--gold);     color: var(--primary); }
.badge-rent  { background: var(--primary);  color: var(--white); }
.badge-new   { background: #10B981;         color: var(--white); }

/* Star rating */
.stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
  font-size: 0.85rem;
}

/* Divider */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-full);
  margin: 20px 0;
}

.divider.centered { margin: 20px auto; }

/* ============================================
   6. LAYOUT & CONTAINER
============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section { padding: var(--section-py) 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 120px 0; }

/* ============================================
   7. HEADER & NAVIGATION
============================================= */
#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--tr-slow), box-shadow var(--tr-slow), padding var(--tr-slow);
  padding: 0;
}

/* Transparent header (over hero) */
#header.transparent {
  background: transparent;
}

/* Scrolled / solid header */
#header.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

/* Pages without hero get solid header immediately */
#header.solid {
  background: var(--primary);
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
  position: relative;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 30px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

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

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-xs);
  transition: var(--tr);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--tr);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Nav CTA */
.nav-cta {
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: var(--tr);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: var(--primary);
  padding: 20px var(--container-px) 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--tr);
  z-index: 999;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav .nav-link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-nav .nav-link::after { display: none; }

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

/* ============================================
   8. HERO SECTION
============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80');
  /* EDIT: Replace with your own hero background image */
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(27, 43, 75, 0.72) 60%,
    rgba(10, 22, 40, 0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-text { max-width: 740px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.4);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
}

.hero-label i { font-size: 0.7rem; }

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero h1 .highlight {
  color: var(--gold);
  font-style: italic;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 540px;
}

.stat-item {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
  animation: bounceDown 2s infinite;
}

.hero-scroll i { font-size: 1.1rem; }

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   9. PROPERTY SEARCH BAR
============================================= */
.search-section {
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 10;
}

.search-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 40px;
  margin-top: -70px;
  position: relative;
  border: 1px solid var(--gray-light);
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.search-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.search-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-pale);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.search-tab {
  padding: 7px 20px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-mid);
  cursor: pointer;
  transition: var(--tr);
  border: none;
  background: none;
}

.search-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

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

.search-field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-field .field-inner {
  position: relative;
}

.search-field .field-inner i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 0.85rem;
  pointer-events: none;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 13px 14px 13px 38px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--tr);
  appearance: none;
  -webkit-appearance: none;
}

.search-field input::placeholder { color: var(--gray); }

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.search-field select {
  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='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--tr);
  white-space: nowrap;
  height: 50px;
}

.search-btn:hover {
  background: var(--primary-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   10. PROPERTY CARDS
============================================= */
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--tr-slow);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Property Image */
.property-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-light);
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.property-card:hover .property-img img {
  transform: scale(1.06);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.property-fav {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--tr);
  border: none;
  color: var(--gray);
  font-size: 0.85rem;
}

.property-fav:hover {
  background: var(--white);
  color: #EF4444;
  transform: scale(1.1);
}

.property-fav.active {
  color: #EF4444;
  background: var(--white);
}

/* Property Body */
.property-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.property-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.property-price span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray-mid);
  margin-left: 4px;
}

.property-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

.property-location i { color: var(--gold); font-size: 0.8rem; }

.property-desc {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.property-specs {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-mid);
  font-weight: 500;
}

.spec-item i {
  color: var(--gold);
  font-size: 0.8rem;
}

.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.agent-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-mini img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-mini span {
  font-size: 0.78rem;
  color: var(--gray-mid);
}

/* ============================================
   11. FEATURED PROPERTIES SECTION
============================================= */
.featured-properties {
  background: var(--gray-pale);
}

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

.properties-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.section-footer {
  text-align: center;
  margin-top: 50px;
}

/* ============================================
   12. ABOUT SECTION
============================================= */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-gold);
  text-align: center;
}

.about-img-badge .big-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: block;
}

.about-img-badge .big-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.8;
}

.about-content { }

.about-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 36px;
}

.about-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.about-list-item i {
  width: 32px;
  height: 32px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* About Page Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--tr-slow);
  text-align: center;
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.team-img {
  aspect-ratio: 1;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.team-card:hover .team-img img { transform: scale(1.05); }

.team-body {
  padding: 22px;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.team-socials a {
  width: 32px;
  height: 32px;
  background: var(--gray-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: 0.8rem;
  transition: var(--tr);
}

.team-socials a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   13. SERVICES SECTION
============================================= */
.services-section { background: var(--gray-pale); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--tr-slow);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-dark);
  margin-bottom: 24px;
  transition: var(--tr);
}

.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--primary);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  transition: var(--tr);
}

.service-link i { font-size: 0.75rem; transition: transform var(--tr); }
.service-link:hover { color: var(--gold); }
.service-link:hover i { transform: translateX(4px); }

/* ============================================
   14. WHY CHOOSE US SECTION
============================================= */
.why-us-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.why-us-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.why-us-content .section-label { color: var(--gold-light); }
.why-us-content .section-label::before { background: var(--gold-light); }

.why-us-content h2 { color: var(--white); }
.why-us-content p  { color: rgba(255,255,255,0.65); }

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.feature-body h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--font-body);
}

.feature-body p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

/* Why Us Numbers */
.why-us-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-num-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: var(--tr);
}

.why-num-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,169,110,0.3);
}

.why-num-value {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.why-num-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   15. TESTIMONIALS SECTION
============================================= */
.testimonials-section { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-light);
  transition: var(--tr-slow);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--gold);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
}

.author-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  display: block;
}

.author-role {
  font-size: 0.78rem;
  color: var(--gray-mid);
}

/* ============================================
   16. CTA SECTION
============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content { position: relative; }

.cta-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   17. PROPERTIES PAGE
============================================= */
.page-hero {
  background: var(--primary);
  padding: calc(var(--nav-h) + 50px) 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: 0.1;
}

.page-hero .container { position: relative; }

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.65); max-width: 500px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: var(--tr);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb i { font-size: 0.6rem; }

/* Properties Filter Bar */
.properties-page { background: var(--gray-pale); }

.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 20px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.filter-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-select {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-select select {
  padding: 10px 34px 10px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  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='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: var(--tr);
  min-width: 150px;
}

.filter-select select:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-meta {
  font-size: 0.85rem;
  color: var(--gray-mid);
  white-space: nowrap;
}

.filter-meta strong { color: var(--text); }

/* Properties layout */
.properties-content {
  padding: 40px 0 80px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-mid);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ============================================
   18. PROPERTY DETAIL PAGE
============================================= */
.property-detail-page { background: var(--white); }

.detail-container {
  padding: 50px 0 80px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* Gallery */
.gallery-wrap { border-radius: var(--radius-lg); overflow: hidden; }

.gallery-main {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-light);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--tr-slow);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.gallery-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.7;
  transition: var(--tr);
  border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr);
}

.gallery-thumb:hover img { transform: scale(1.05); }

/* Detail info */
.detail-info {
  margin-top: 36px;
}

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.detail-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.detail-title {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-mid);
  font-size: 0.95rem;
}

.detail-location i { color: var(--gold); }

.detail-specs {
  display: flex;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  margin: 24px 0;
  flex-wrap: wrap;
}

.detail-spec {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.detail-spec i {
  color: var(--gold);
  font-size: 0.95rem;
}

.detail-spec span { font-weight: 400; color: var(--gray-mid); margin-left: 2px; }

.detail-section { margin-top: 32px; }

.detail-section h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-pale);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--text-light);
}

.amenity-item i {
  color: var(--gold-dark);
  font-size: 0.8rem;
}

/* Sidebar */
.detail-sidebar { }

.agent-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  margin-bottom: 28px;
  text-align: center;
}

.agent-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--gold-light);
}

.agent-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.agent-role {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.agent-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.agent-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--text-light);
}

.agent-contact-item i { color: var(--gold-dark); }

/* Inquiry Form */
.inquiry-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.inquiry-card h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* ============================================
   19. CONTACT PAGE
============================================= */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--gray-pale);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-light);
  transition: var(--tr);
}

.contact-card:hover {
  border-color: var(--gold-light);
  background: var(--gold-pale);
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  background: var(--gold-pale);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-body);
}

.contact-card p {
  font-size: 0.87rem;
  line-height: 1.55;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
}

.contact-form-wrap h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.contact-form-wrap > p {
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-dark);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--tr);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.form-group textarea { min-height: 130px; }

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  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='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px;
  color: #10B981;
}

.form-success i { font-size: 2rem; margin-bottom: 12px; }

/* Map placeholder */
.map-section { background: var(--gray-pale); }

.map-placeholder {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-overlay-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--primary);
}

.map-overlay-badge i { color: var(--gold); }

/* ============================================
   20. ABOUT PAGE
============================================= */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.mission-icon {
  width: 64px;
  height: 64px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--gold-dark);
}

/* ============================================
   21. FOOTER
============================================= */
.footer {
  background: var(--primary);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--tr);
}

.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i { font-size: 0.6rem; color: var(--gold); opacity: 0.6; }

.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.footer-bottom {
  padding: 22px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  transition: var(--tr);
}

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* ============================================
   22. SCROLL ANIMATIONS
   — Elements fade up when they enter the viewport —
============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }
.fade-up-delay-6 { transition-delay: 0.6s; }

.fade-in {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.fade-in.visible { opacity: 1; }

/* ============================================
   23. PAGE LOADER
============================================= */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-mark {
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.92); opacity: 0.8; }
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--gold);
  border-radius: var(--radius-full);
  animation: load 1s ease forwards;
}

@keyframes load {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============================================
   24. RESPONSIVE — TABLET (≤1024px)
============================================= */
@media (max-width: 1024px) {
  :root {
    --section-py: 70px;
  }

  /* Nav */
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  /* Hero */
  .hero h1 { font-size: 2.8rem; }

  /* Search */
  .search-wrapper { padding: 28px 24px; }
  .search-form {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .search-btn { width: 100%; grid-column: 1 / -1; justify-content: center; }

  /* Grids */
  .properties-grid          { grid-template-columns: repeat(2, 1fr); }
  .properties-grid.cols-4   { grid-template-columns: repeat(2, 1fr); }
  .about-grid               { grid-template-columns: 1fr; gap: 50px; }
  .about-img-wrap           { max-width: 500px; }
  .about-img-badge          { right: 0; }
  .services-grid            { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid              { grid-template-columns: 1fr; gap: 50px; }
  .features-list            { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid        { grid-template-columns: repeat(2, 1fr); }
  .team-grid                { grid-template-columns: repeat(2, 1fr); }
  .footer-grid              { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Detail page */
  .detail-grid              { grid-template-columns: 1fr; }
  .inquiry-card             { position: static; }
  .contact-grid             { grid-template-columns: 1fr; gap: 40px; }
  .mission-grid             { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   25. RESPONSIVE — MOBILE (≤768px)
============================================= */
@media (max-width: 768px) {
  :root {
    --section-py: 56px;
  }

  /* Search */
  .search-wrapper { margin-top: -40px; padding: 24px 20px; }
  .search-form { grid-template-columns: 1fr; }
  .search-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Grids */
  .properties-grid        { grid-template-columns: 1fr; }
  .services-grid          { grid-template-columns: 1fr; }
  .testimonials-grid      { grid-template-columns: 1fr; }
  .why-us-numbers         { grid-template-columns: 1fr; }
  .features-list          { grid-template-columns: 1fr; }
  .amenities-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-grid            { grid-template-columns: 1fr; gap: 32px; }
  .gallery-thumbs         { grid-template-columns: repeat(3, 1fr); }
  .team-grid              { grid-template-columns: repeat(2, 1fr); }
  .mission-grid           { grid-template-columns: 1fr; }
  .form-row               { grid-template-columns: 1fr; }
  .contact-form-wrap      { padding: 28px 20px; }

  /* Hero */
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }

  /* Hero CTA */
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* CTA */
  .cta-buttons { flex-direction: column; align-items: center; }

  /* Filter bar */
  .filter-bar .container { flex-direction: column; align-items: flex-start; }
  .filter-controls { width: 100%; }
  .filter-controls .filter-select { flex: 1; }
  .filter-controls .filter-select select { width: 100%; }

  /* Detail */
  .detail-top { flex-direction: column; }
  .detail-specs { gap: 16px; }

  /* Footer */
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* ============================================
   26. RESPONSIVE — SMALL MOBILE (≤480px)
============================================= */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .search-tabs { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: 1fr; }
  .hero-label { font-size: 0.68rem; }
}
