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

:root {
  --gold: #c8973a;
  --gold-light: #e8b84b;
  --gold-dark: #a07020;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --dark3: #0f3460;
  --accent: #e94560;
  --text: #2c2c2c;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --green: #10b981;
  --red: #ef4444;
  --blue: #3b82f6;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ───────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(26,26,46,.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200,151,58,.15);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.8); font-size: .92rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--dark) !important; padding: 8px 20px; border-radius: 6px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--gold-light) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, var(--dark3) 100%);
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=60') center/cover no-repeat;
  opacity: .12;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block; background: rgba(200,151,58,.15); border: 1px solid rgba(200,151,58,.3);
  color: var(--gold); padding: 6px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.7); font-size: 1.15rem; margin-bottom: 40px; max-width: 540px; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--gold); }
.hero-stat .lbl { color: rgba(255,255,255,.6); font-size: .82rem; margin-top: 2px; }

/* ── Search Bar ───────────────────────────────────────── */
.search-bar {
  background: var(--white); border-radius: var(--radius);
  padding: 8px 8px 8px 20px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  flex-wrap: wrap;
}
.search-bar select, .search-bar input {
  border: none; outline: none; font: inherit; font-size: .92rem;
  color: var(--text); background: transparent; padding: 8px 0;
  flex: 1; min-width: 140px;
}
.search-bar select { border-right: 1px solid var(--border); padding-right: 12px; min-width: 120px; max-width: 140px; }
.search-bar button {
  background: var(--gold); color: var(--dark);
  padding: 10px 24px; border-radius: 8px; font-weight: 700; font-size: .9rem;
  transition: var(--transition); white-space: nowrap;
}
.search-bar button:hover { background: var(--gold-light); }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 80px 5%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.section-label {
  display: inline-block; color: var(--gold); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.section.dark-bg { background: var(--dark); }
.section.dark-bg h2, .section.dark-bg .section-label { color: var(--gold); }
.section.dark-bg h2 span { color: var(--white); }
.section.dark-bg p { color: rgba(255,255,255,.65); }

/* ── Grid ─────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

/* ── Property Card ────────────────────────────────────── */
.prop-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border);
}
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prop-img { position: relative; height: 220px; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.prop-card:hover .prop-img img { transform: scale(1.06); }
.prop-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--dark); color: var(--gold);
  padding: 4px 10px; border-radius: 4px; font-size: .75rem; font-weight: 700;
}
.prop-badge.sale { background: var(--gold); color: var(--dark); }
.prop-badge.rent { background: var(--dark3); color: var(--white); }
.prop-featured-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: white;
  padding: 3px 9px; border-radius: 4px; font-size: .72rem; font-weight: 700;
}
.prop-body { padding: 18px 20px 16px; }
.prop-type { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.prop-title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.prop-location { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.prop-location i { margin-right: 4px; }
.prop-price { font-size: 1.3rem; font-weight: 800; color: var(--gold-dark); margin-bottom: 12px; }
.prop-specs { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.prop-spec { display: flex; align-items: center; gap: 4px; }
.prop-spec svg, .prop-spec i { color: var(--gold); }
.prop-footer { padding: 0 20px 16px; }
.btn { display: inline-block; padding: 9px 20px; border-radius: 7px; font-weight: 600; font-size: .88rem; transition: var(--transition); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border: 1.5px solid var(--gold); color: var(--gold-dark); }
.btn-outline:hover { background: var(--gold); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark3); }
.btn-full { width: 100%; text-align: center; }

/* ── Type Cards ───────────────────────────────────────── */
.type-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  border: 1.5px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.type-card:hover { border-color: var(--gold); background: #fffdf7; transform: translateY(-3px); box-shadow: var(--shadow); }
.type-icon { font-size: 2.4rem; margin-bottom: 12px; }
.type-card h4 { margin-bottom: 4px; }
.type-card span { font-size: .82rem; color: var(--muted); }

/* ── Filters Sidebar ──────────────────────────────────── */
.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters-panel {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border); position: sticky; top: 90px;
}
.filter-section { margin-bottom: 22px; }
.filter-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 12px; border-radius: 20px; font-size: .8rem; font-weight: 500;
  border: 1.5px solid var(--border); cursor: pointer; transition: var(--transition);
  background: var(--white);
}
.chip.active, .chip:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.filter-input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .88rem; }
.filter-input:focus { outline: none; border-color: var(--gold); }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.results-count { font-size: .92rem; color: var(--muted); }
.results-sort select { border: 1.5px solid var(--border); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: .88rem; }

/* ── Property Detail ──────────────────────────────────── */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; height: 440px; margin-bottom: 32px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.detail-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 24px 0; }
.spec-box { background: var(--bg); border-radius: 10px; padding: 14px; text-align: center; border: 1px solid var(--border); }
.spec-box .spec-val { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.spec-box .spec-key { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.amenities-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.amenity-tag { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: .82rem; }
.contact-card { background: var(--dark); color: var(--white); border-radius: var(--radius); padding: 28px; position: sticky; top: 88px; }
.contact-card h3 { color: var(--gold); margin-bottom: 4px; }
.contact-card p { font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-bottom: 10px; padding: 10px 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; color: var(--white); font: inherit; font-size: .88rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.35); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 80px; }
.wa-btn { background: #25d366; color: white; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 8px; font-weight: 700; transition: var(--transition); margin-top: 8px; }
.wa-btn:hover { background: #1bba58; }

/* ── Stats Bar ────────────────────────────────────────── */
.stats-bar { background: var(--gold); padding: 28px 5%; }
.stats-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; max-width: 1100px; margin: auto; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 2.2rem; font-weight: 800; color: var(--dark); }
.stat-item .lbl { font-size: .85rem; color: rgba(26,26,46,.65); font-weight: 500; margin-top: 2px; }

/* ── Why Us ───────────────────────────────────────────── */
.why-card { background: rgba(255,255,255,.04); border: 1px solid rgba(200,151,58,.15); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: var(--transition); }
.why-card:hover { background: rgba(200,151,58,.08); border-color: rgba(200,151,58,.4); }
.why-icon { font-size: 2.5rem; margin-bottom: 14px; }
.why-card h3 { color: var(--white); margin-bottom: 8px; }
.why-card p { font-size: .88rem; color: rgba(255,255,255,.6); }

/* ── Testimonials ─────────────────────────────────────── */
.testi-card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.testi-stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }
.testi-text { font-size: .95rem; color: var(--muted); font-style: italic; margin-bottom: 18px; line-height: 1.7; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-name { font-weight: 700; font-size: .92rem; }
.testi-role { font-size: .78rem; color: var(--muted); }

/* ── Contact Page ─────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-icon { width: 46px; height: 46px; background: rgba(200,151,58,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.big-form input, .big-form textarea, .big-form select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 9px; font: inherit; font-size: .92rem; margin-bottom: 14px;
}
.big-form input:focus, .big-form textarea:focus, .big-form select:focus { outline: none; border-color: var(--gold); }
.big-form textarea { min-height: 120px; resize: vertical; }

/* ── Footer ───────────────────────────────────────────── */
footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 60px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 12px; font-size: .88rem; line-height: 1.7; }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.footer-logo span { color: var(--gold); }
footer h5 { color: var(--white); font-size: .9rem; margin-bottom: 14px; }
footer ul li { margin-bottom: 8px; }
footer ul li a { font-size: .88rem; transition: var(--transition); }
footer ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.social-icons { display: flex; gap: 12px; }
.social-icon { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: .9rem; }
.social-icon:hover { background: var(--gold); color: var(--dark); }

/* ── Pagination ───────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .88rem; font-weight: 600; transition: var(--transition); cursor: pointer; background: var(--white); }
.page-btn:hover, .page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ── Toast ────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--dark); color: var(--white);
  padding: 12px 20px; border-radius: 8px; font-size: .9rem;
  border-left: 3px solid var(--gold);
  transform: translateX(120%); transition: .3s ease;
  max-width: 280px;
}
.toast.show { transform: translateX(0); }

/* ── Page Header ──────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 110px 5% 50px;
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,.6); margin-top: 8px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark2); padding: 20px; flex-direction: column; gap: 14px; border-bottom: 1px solid rgba(200,151,58,.15); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery-thumbs { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-bar select { max-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
}
