@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=DM+Sans:wght@300;400;500&display=swap');

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --primary-brown:   #9e7a4a;
  --dark-brown:      #3a2a12;
  --light-beige:     #f5f0e8;
  --hover-brown:     #7d5c34;
  --light-gold:      #e8c97a;
  --black-overlay:   rgba(15, 10, 5, 0.52);
  --white-color:     #ffffff;
  --gray-color:      #8a8680;

  --cream:           #faf7f2;
  --warm-white:      #fffef9;
  --border-subtle:   rgba(158, 122, 74, 0.14);
  --border-mid:      rgba(158, 122, 74, 0.28);
  --gold-shimmer:    #c9a55a;
  --text-muted:      #7a6b58;

  --font-display:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'DM Sans', 'Segoe UI', sans-serif;

  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       30px;

  --shadow-card:     0 2px 24px rgba(60, 40, 10, 0.08), 0 1px 4px rgba(60, 40, 10, 0.04);
  --shadow-hover:    0 12px 48px rgba(60, 40, 10, 0.16), 0 4px 12px rgba(60, 40, 10, 0.08);
  --shadow-deep:     0 24px 80px rgba(30, 18, 4, 0.22);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--light-beige);
  color: var(--dark-brown);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light-beige); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-brown); }

/* ═══════════════════════════════════════════════
   SELECTION
═══════════════════════════════════════════════ */
::selection {
  background: rgba(158, 122, 74, 0.22);
  color: var(--dark-brown);
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
header {
  background: rgba(255, 254, 249, 0.95);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  color: var(--primary-brown);
  padding: 0 2.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.4s var(--ease-in-out);
}

header:hover {
  box-shadow: 0 4px 32px rgba(60, 40, 10, 0.06);
}

header h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dark-brown);
  line-height: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1.5px solid var(--border-mid);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.logo img:hover {
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 6px 20px rgba(158, 122, 74, 0.25);
}

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  position: relative;
  transition: color 0.25s, background 0.25s;
}

nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: rgba(158, 122, 74, 0.1);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s, transform 0.25s var(--ease-out-expo);
}

nav a:hover,
nav a:focus {
  color: var(--primary-brown);
  outline: none;
}

nav a:hover::before,
nav a:focus::before {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
    /* ── Hero wraps welcome + search as a single full-screen block ── */
    .hero-section {
      min-height: 100vh;
      justify-content: flex-end;
      padding-bottom: 80px;
    }

    /* Welcome text positioned toward centre-top of hero */
    .hero-section .welcome-section {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding-top: 120px;
    }

    /* Scroll-down cue */
    .scroll-cue {
      position: absolute;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      z-index: 2;
      opacity: 0.7;
      animation: bounce 2.2s ease-in-out infinite;
    }

    .scroll-cue span {
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(255,254,249,0.7);
      font-family: var(--font-body);
    }

    .scroll-cue svg {
      width: 20px;
      height: 20px;
      stroke: rgba(255,254,249,0.55);
    }

    @keyframes bounce {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50%       { transform: translateX(-50%) translateY(7px); }
    }

    /* Property card inner wrapper (body) – used in JS-rendered cards */
    .property-card .img-wrap {
      height: 220px;
      overflow: hidden;
    }

    /* Stats bar between hero and property list */
    .stats-bar {
      background: var(--warm-white);
      border-top: 1px solid var(--border-subtle);
      border-bottom: 1px solid var(--border-subtle);
    }

    .stats-bar-inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 28px 2rem;
      display: flex;
      justify-content: center;
      gap: 0;
      flex-wrap: wrap;
    }

    .stat-item {
      flex: 1 1 180px;
      text-align: center;
      padding: 0 32px;
      border-right: 1px solid var(--border-subtle);
    }

    .stat-item:last-child {
      border-right: none;
    }

    .stat-item .num {
      font-family: var(--font-display);
      font-size: 2.4rem;
      font-weight: 600;
      color: var(--primary-brown);
      line-height: 1;
      display: block;
    }

    .stat-item .lbl {
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-top: 6px;
      display: block;
      font-weight: 400;
    }

    /* Section heading helper */
    .section-heading {
      text-align: center;
      padding: 64px 24px 40px;
    }

    .section-heading h2 {
      font-family: var(--font-display);
      font-size: clamp(1.8rem, 3.5vw, 2.8rem);
      font-weight: 300;
      color: var(--dark-brown);
      line-height: 1.15;
    }

    .section-heading .eyebrow {
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--primary-brown);
      font-weight: 500;
      margin-bottom: 10px;
      display: block;
    }

    .section-heading .rule {
      display: block;
      width: 40px;
      height: 2px;
      background: var(--primary-brown);
      border-radius: 99px;
      margin: 18px auto 0;
    }

    /* Featured label on property cards */
    .featured-badge {
      position: absolute;
      top: 14px;
      left: 14px;
      background: var(--dark-brown);
      color: var(--light-gold);
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 5px 12px;
      border-radius: 99px;
      z-index: 2;
    }

    /* Testimonial / trust strip */
    .trust-strip {
      background: var(--light-beige);
      padding: 48px 24px;
      text-align: center;
      border-top: 1px solid var(--border-subtle);
      border-bottom: 1px solid var(--border-subtle);
    }

    .trust-strip p {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 300;
      font-style: italic;
      color: var(--dark-brown);
      max-width: 640px;
      margin: 0 auto 14px;
      line-height: 1.5;
    }

    .trust-strip cite {
      font-size: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      font-style: normal;
    }

    @media (max-width: 767px) {
      .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px 20px;
      }
      .stat-item:last-child { border-bottom: none; }
      .hero-section { padding-bottom: 60px; }
      .hero-section .welcome-section { padding-top: 90px; }
    }
    
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white-color);
  overflow: hidden;
  padding: 60px 24px;
}

.hero-section .background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero-section:hover .background-video {
  transform: scale(1);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 12, 4, 0.3) 0%, rgba(20, 12, 4, 0.6) 60%, rgba(20, 12, 4, 0.75) 100%);
  z-index: -1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--light-beige), transparent);
  z-index: 0;
}

.hero-section h2,
.hero-section p,
.hero-section form {
  position: relative;
  z-index: 1;
}

.hero-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  animation: heroReveal 1.2s var(--ease-out-expo) both;
}

.hero-section p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 600px;
  opacity: 0.9;
  margin-bottom: 32px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
  animation: heroReveal 1.2s 0.15s var(--ease-out-expo) both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   SEARCH FORM
═══════════════════════════════════════════════ */
.search-form {
  background: rgba(255, 254, 249, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  display: flex;
  gap: 10px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(30, 18, 4, 0.18), 0 2px 8px rgba(30, 18, 4, 0.08);
  flex-wrap: wrap;
  align-items: center;
  animation: heroReveal 1.2s 0.3s var(--ease-out-expo) both;
}

select,
input[type="text"],
input[type="number"] {
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--warm-white);
  color: var(--dark-brown);
  flex: 1;
  min-width: 140px;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e7a4a' 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;
}

select:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 3px rgba(158, 122, 74, 0.12);
}

button {
  padding: 12px 28px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary-brown);
  color: var(--white-color);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s var(--ease-out-expo), box-shadow 0.25s;
  white-space: nowrap;
  outline: none;
}

button:hover,
button:focus {
  background: var(--hover-brown);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(158, 122, 74, 0.35);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ═══════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════ */
main {
  background: var(--cream);
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  margin: 32px auto;
  max-width: 1280px;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.04);
}

/* ═══════════════════════════════════════════════
   PROPERTY LIST
═══════════════════════════════════════════════ */
.property-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   PROPERTY CARD
═══════════════════════════════════════════════ */
.property-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.property-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(201, 165, 90, 0.2), transparent 60%) border-box;
  /*-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;*/
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}

.property-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-mid);
}

.property-card:hover::before {
  opacity: 1;
}

.property-card .img-wrap {
  overflow: hidden;
  position: relative;
  height: 220px;
}

.property-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.property-card:hover img {
  transform: scale(1.08);
}

.property-card .img-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 254, 249, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary-brown);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-mid);
}

.property-card .card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 6px;
  line-height: 1.2;
}

.property-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 300;
  line-height: 1.5;
}

.property-card .price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-brown);
  margin: 10px 0 16px;
  letter-spacing: -0.01em;
}

.property-card .divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 14px 0;
}

.property-card .meta-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.property-card .meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.next-img-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: rgba(255, 254, 249, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-mid);
  color: var(--dark-brown);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.next-img-btn:hover {
  background: var(--white-color);
  transform: translateY(-50%) scale(1.1);
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.property-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: transparent;
  color: var(--primary-brown);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  margin-top: auto;
}

.property-button::after {
  content: '→';
  transition: transform 0.25s var(--ease-out-expo);
}

.property-button:hover,
.property-button:focus {
  background: var(--primary-brown);
  color: var(--white-color);
  border-color: var(--primary-brown);
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(158, 122, 74, 0.3);
  outline: none;
}

.property-button:hover::after {
  transform: translateX(4px);
}

.property-button:disabled {
  background: var(--light-beige);
  color: var(--gray-color);
  border-color: var(--border-subtle);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.view-more-container {
  text-align: center;
  margin: 48px 0 32px;
}

.view-more-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: var(--dark-brown);
  color: var(--white-color);
  text-decoration: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.view-more-button:hover,
.view-more-button:focus {
  background: var(--hover-brown);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(60, 40, 10, 0.25);
  outline: none;
}

/* ═══════════════════════════════════════════════
   PROPERTY DETAIL
═══════════════════════════════════════════════ */
.property-detail-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.image-section {
  flex: 2;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 14px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  border-radius: var(--radius-lg);
}

.image-section::-webkit-scrollbar { height: 4px; }
.image-section::-webkit-scrollbar-track { background: var(--border-subtle); border-radius: 99px; }
.image-section::-webkit-scrollbar-thumb { background: var(--primary-brown); border-radius: 99px; }

.image-section img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 100%;
  max-width: 480px;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out-expo);
  cursor: zoom-in;
}

.image-section img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.info-section {
  flex: 1;
  position: sticky;
  top: 100px;
}

.info-section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 6px;
  line-height: 1.15;
}

.info-section .price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-brown);
  margin-bottom: 24px;
  display: block;
}

.info-section p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 300;
  line-height: 1.6;
}

.info-section .feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.info-section .feature-item {
  background: var(--light-beige);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
}

.info-section .feature-item .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-color);
  margin-bottom: 4px;
}

.info-section .feature-item .value {
  font-weight: 500;
  color: var(--dark-brown);
  font-size: 15px;
}

/* ═══════════════════════════════════════════════
   FORM SECTION
═══════════════════════════════════════════════ */
.form-section {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.form-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--warm-white);
  color: var(--dark-brown);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  resize: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 3px rgba(158, 122, 74, 0.1);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-section button {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 13px 32px;
  font-size: 14px;
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════
   MAP WRAPPER
═══════════════════════════════════════════════ */
.map-wrapper {
  max-width: 1000px;
  margin: 48px auto;
  padding: 28px;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.map-wrapper h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-brown);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.01em;
}

.map-wrapper iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--light-beige);
  transition: box-shadow 0.3s;
}

.map-wrapper iframe:hover {
  box-shadow: 0 8px 32px rgba(60, 40, 10, 0.1);
}

/* ═══════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════ */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1100px;
  margin: 40px auto;
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.contact-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact-info {
  padding: 60px 52px;
  background: var(--dark-brown);
  color: rgba(255, 254, 249, 0.9);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(201, 165, 90, 0.08);
  pointer-events: none;
}

.contact-info::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(201, 165, 90, 0.06);
  pointer-events: none;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--light-gold);
  margin-bottom: 28px;
  line-height: 1.15;
  position: relative;
}

.contact-info p {
  font-size: 15px;
  color: rgba(255, 254, 249, 0.7);
  margin-bottom: 14px;
  font-weight: 300;
  line-height: 1.65;
  position: relative;
}

.contact-info a {
  color: var(--light-gold);
  text-decoration: none;
  transition: color 0.25s, opacity 0.25s;
}

.contact-info a:hover {
  color: var(--white-color);
}

.contact-map {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.contact-map h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 20px;
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.location-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.location-buttons button {
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-xl);
  background: transparent;
  color: var(--primary-brown);
  border: 1.5px solid var(--border-mid);
  box-shadow: none;
}

.location-buttons button:hover {
  background: var(--primary-brown);
  color: var(--white-color);
  border-color: var(--primary-brown);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(158, 122, 74, 0.3);
}

.contact-form {
  padding: 48px 52px;
  border-top: 1px solid var(--border-subtle);
  background: var(--warm-white);
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 20px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--dark-brown);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 3px rgba(158, 122, 74, 0.1);
  background: var(--warm-white);
}

.contact-form button {
  padding: 14px 36px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════
   LOADING
═══════════════════════════════════════════════ */
#loading {
  text-align: center;
  font-size: 15px;
  padding: 3rem;
  color: var(--gray-color);
  font-weight: 300;
  letter-spacing: 0.04em;
}

#loading::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--primary-brown);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--dark-brown);
  color: rgba(255, 254, 249, 0.55);
  text-align: center;
  padding: 36px 24px;
  margin-top: 60px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-brown);
  border-radius: 99px;
}

footer a {
  color: var(--light-gold);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--white-color);
}

/* ═══════════════════════════════════════════════
   HOME — WELCOME SECTION
═══════════════════════════════════════════════ */
.welcome-section {
  text-align: center;
  padding: 80px 24px;
  position: relative;
}

.welcome-section::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--primary-brown);
  margin: 0 auto 28px;
  border-radius: 99px;
}

.welcome-section h2 {
  font-family: var(--font-display);
  color: var(--dark-brown);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.welcome-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   HOME — WHY CHOOSE
═══════════════════════════════════════════════ */
.why-choose-section {
  padding: 80px 24px;
  background: var(--dark-brown);
  position: relative;
  overflow: hidden;
}

.why-choose-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(201, 165, 90, 0.05);
  pointer-events: none;
}

.why-choose-section h2 {
  text-align: center;
  font-family: var(--font-display);
  color: var(--light-gold);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 56px;
  position: relative;
}

.why-choose-section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--primary-brown);
  margin: 18px auto 0;
}

.why-choose-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  flex: 1 1 260px;
  max-width: 320px;
  background: rgba(255, 254, 249, 0.04);
  border: 1px solid rgba(255, 254, 249, 0.1);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: background 0.35s, border-color 0.35s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 165, 90, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.why-card:hover {
  background: rgba(255, 254, 249, 0.07);
  border-color: rgba(201, 165, 90, 0.35);
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card .icon {
  font-size: 32px;
  margin-bottom: 18px;
  display: block;
}

.why-card h3 {
  font-family: var(--font-display);
  color: rgba(255, 254, 249, 0.92);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 12px;
  position: relative;
}

.why-card p {
  color: rgba(255, 254, 249, 0.5);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  position: relative;
}

/* ═══════════════════════════════════════════════
   HOME — CALL TO ACTION
═══════════════════════════════════════════════ */
.call-to-action {
  background: linear-gradient(135deg, var(--primary-brown) 0%, var(--gold-shimmer) 100%);
  color: var(--white-color);
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.call-to-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.call-to-action h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 18px;
  position: relative;
  letter-spacing: -0.01em;
}

.call-to-action p {
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 36px;
  opacity: 0.88;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
}

.call-to-action a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white-color);
  color: var(--primary-brown);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  position: relative;
}

.call-to-action a:hover,
.call-to-action a:focus {
  background: var(--dark-brown);
  color: var(--white-color);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(20, 12, 4, 0.3);
  outline: none;
}

/* ═══════════════════════════════════════════════
   NEWS SECTION
═══════════════════════════════════════════════ */
.news-section {
  padding: 64px 24px;
  background: var(--light-beige);
}

.news-section h2 {
  font-family: var(--font-display);
  color: var(--dark-brown);
  margin-bottom: 48px;
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  position: relative;
}

.news-section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary-brown);
  margin: 18px auto 0;
  border-radius: 99px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.news-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary-brown);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s, border-color 0.25s;
}

.news-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--hover-brown);
}

.news-images {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.news-images::-webkit-scrollbar { height: 4px; }
.news-images::-webkit-scrollbar-thumb { background: var(--primary-brown); border-radius: 99px; }
.news-images::-webkit-scrollbar-track { background: var(--border-subtle); }

.news-images img,
.news-images video {
  flex: 0 0 auto;
  width: 380px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  transition: transform 0.35s var(--ease-out-expo);
}

.news-images img:hover {
  transform: scale(1.02);
}

.news-card h3 {
  font-family: var(--font-display);
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-brown);
  line-height: 1.25;
}

.news-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--gray-color);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.property-card,
.news-card,
.why-card {
  animation: fadeUp 0.6s var(--ease-out-expo) both;
}

.property-card:nth-child(1) { animation-delay: 0.05s; }
.property-card:nth-child(2) { animation-delay: 0.10s; }
.property-card:nth-child(3) { animation-delay: 0.15s; }
.property-card:nth-child(4) { animation-delay: 0.20s; }
.property-card:nth-child(5) { animation-delay: 0.25s; }
.property-card:nth-child(6) { animation-delay: 0.30s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .property-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    padding: 1.5rem;
  }
}

@media (max-width: 991px) {
  header {
    height: auto;
    padding: 16px 20px;
    flex-direction: column;
    gap: 14px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section {
    min-height: 70vh;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 92%;
    padding: 18px;
  }

  select,
  input[type="text"],
  input[type="number"] {
    width: 100%;
    min-width: unset;
  }

  button { margin-top: 4px; }

  .property-detail-layout {
    flex-direction: column;
    padding: 0 16px;
  }

  .info-section {
    position: static;
  }

  .image-section img {
    height: 280px;
  }

  .contact-top {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 48px 36px;
  }

  .contact-map {
    padding: 32px 36px;
  }

  .contact-form {
    padding: 36px;
  }

  .why-choose-cards {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  header h1 { font-size: 1.5rem; }
  .logo img { width: 44px; height: 44px; }

  nav { flex-direction: row; gap: 4px; }
  nav a { font-size: 12px; padding: 6px 12px; }

  .hero-section h2 { font-size: 2rem; }
  .hero-section p { font-size: 0.95rem; }

  .property-list {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 16px;
  }

  .property-card .card-body { padding: 16px 18px 18px; }

  .property-detail-layout { gap: 20px; }
  .image-section img { height: 220px; }
  .info-section h2 { font-size: 1.7rem; }

  .contact-info { padding: 36px 28px; }
  .contact-map { padding: 28px; }
  .contact-form { padding: 28px; }

  main { padding: 24px 16px; margin: 16px auto; }
  footer { padding: 28px 16px; margin-top: 40px; }

  .welcome-section { padding: 56px 20px; }
  .why-choose-section { padding: 56px 20px; }
  .call-to-action { padding: 56px 20px; }
  .news-section { padding: 48px 16px; }
  .news-card { padding: 22px 20px; }
  .news-images img, .news-images video { width: 100%; height: 180px; }
}

@media (max-width: 575px) {
  header h1 { font-size: 1.3rem; }
  .logo img { width: 38px; height: 38px; }
  nav a { font-size: 11px; padding: 5px 10px; }

  .hero-section h2 { font-size: 1.65rem; }
  .hero-section p { font-size: 0.88rem; }

  .why-card { flex: 1 1 100%; max-width: 100%; }
  .call-to-action a { padding: 13px 28px; }

  .contact-info { padding: 28px 20px; }
  .contact-map { padding: 20px; }
  .contact-form { padding: 20px; }
}