:root {
  --teal: #14453d;
  --teal-dark: #0d332d;
  --gold: #c9a227;
  --copper: #b06a3b;
  --coral: #e07856;
  --sand: #f6f2ea;
  --card: #ffffff;
  --ink: #1f2a28;
  --muted: #6b7673;
  --wa: #1faa55;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 69, 61, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Cairo", system-ui, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.7;
}

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

.container { width: min(1120px, 92%); margin-inline: auto; }

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border: none; border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.wa-icon { width: 20px; height: 20px; fill: currentColor; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 69, 61, .12);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.brand-logo { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; }
.brand-name { font-size: 1.35rem; font-weight: 900; line-height: 1.1; }
.brand-name small { display: block; font-size: .65rem; letter-spacing: 3px; color: var(--copper); }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.main-nav a:hover { color: var(--copper); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,51,45,.82), rgba(13,51,45,.55)), url("photos/hero.jpg") center/cover;
}
.hero-content { position: relative; padding: 96px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.hero .accent { color: var(--gold); }
.hero-sub { margin: 12px auto 28px; max-width: 560px; font-size: 1.1rem; opacity: .95; }

.search-bar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,.96); padding: 12px; border-radius: 18px;
  max-width: 820px; margin-inline: auto; box-shadow: var(--shadow);
}
.search-bar select, .search-bar input {
  flex: 1 1 160px; padding: 12px 14px; border: 1px solid #e2dccf; border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.search-bar .btn { flex: 0 0 auto; }

.hero-stats { display: flex; gap: 36px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; color: var(--gold); }
.hero-stats span { font-size: .9rem; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
h2 { font-size: 1.8rem; font-weight: 800; color: var(--teal); }

/* ---------- Listings ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-photo img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 4px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff;
}
.badge.sale { background: var(--copper); }
.badge.rent { background: var(--teal); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-price { font-size: 1.25rem; font-weight: 800; color: var(--copper); }
.card-price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.card-title { font-size: 1.05rem; font-weight: 700; }
.card-loc { font-size: .9rem; color: var(--muted); }
.card-specs { display: flex; gap: 14px; font-size: .88rem; color: var(--muted); border-top: 1px solid #eee6d8; padding-top: 10px; margin-top: auto; }
.card-details { font-size: .82rem; line-height: 1.7; color: var(--muted); margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; gap: 8px; margin-top: 10px; }
.card-actions .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: .9rem; }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal); }

.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); background: #fff; border-radius: var(--radius); }

/* ---------- Why ---------- */
.why h2 { text-align: center; margin-bottom: 32px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-card { background: #fff; border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); text-align: center; }
.why-num {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center;
}
.why-card h3 { color: var(--teal); margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: var(--teal); color: #fff; border-radius: 24px; padding: 48px;
  box-shadow: var(--shadow);
}
.contact-text h2 { color: #fff; margin-bottom: 12px; }
.contact-text p { opacity: .92; margin-bottom: 22px; }
.lead-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; }
.lead-form h3 { color: var(--teal); margin-bottom: 16px; }
.lead-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.lead-form input, .lead-form select, .lead-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 14px;
  border: 1px solid #e2dccf; border-radius: 12px; font-family: inherit; font-size: 1rem;
}
.lead-form .btn { margin-top: 6px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #e9e4d8; padding: 40px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand .brand-logo { border-radius: 10px; }
.footer-brand .muted { color: #b9c4bd; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { color: var(--gold); text-decoration: none; font-weight: 600; }
.copyright { text-align: center; margin-top: 24px; font-size: .85rem; color: #9fb0a7; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 60;
  width: 56px; height: 56px; padding: 0; border-radius: 50%;
  justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.fab .wa-icon { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-cta { margin-inline-start: auto; padding: 9px 16px; font-size: .9rem; }
  .hero-content { padding: 64px 0 52px; }
  .contact-card { grid-template-columns: 1fr; padding: 28px 20px; }
  .section { padding: 44px 0; }
}
