/* ============================================================
   MARTS — Premium Light Design System
   Colors extracted from company logo:
   - Champagne Gold   #D7B97D / #CBB165 (brand primary)
   - Periwinkle Blue  #9FAFD0 / #A5ADC0 (accent)
   - Ivory / White    #E9EBE7 / #FFFFFF (light backgrounds)
   ============================================================ */

:root {
  /* Brand palette */
  --gold: #C9A961;
  --gold-dark: #B3934A;
  --gold-light: #E7D5A8;
  --gold-soft: #F5EDD9;
  --blue: #8EA3C8;
  --blue-dark: #5E739E;
  --blue-soft: #E8EDF5;
  --ivory: #FAF9F5;
  --white: #FFFFFF;

  /* Text */
  --ink: #1E2A38;
  --ink-soft: #4A5666;
  --muted: #7A8494;
  --line: #E8E4D9;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(30, 42, 56, .06);
  --shadow-md: 0 6px 20px rgba(30, 42, 56, .08);
  --shadow-lg: 0 16px 48px rgba(30, 42, 56, .12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Layout */
  --container: 1240px;
  --header-h: 72px;

  /* Fonts */
  --font-en: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Poppins', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--gold-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(201, 169, 97, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201, 169, 97, .45); color: #fff; }
.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
}
.btn-outline:hover { background: var(--gold-soft); color: var(--gold-dark); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--blue-dark); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 14px; }

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; }
.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}
.logo-text span { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  transition: all .15s ease;
}
.nav a:hover, .nav a.active { color: var(--gold-dark); background: var(--gold-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 18px;
  position: relative;
  transition: all .15s ease;
  border: 1px solid var(--line);
  background: var(--white);
}
.icon-btn:hover { background: var(--gold-soft); color: var(--gold-dark); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--gold); color: #fff;
  border-radius: 9px; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  transition: all .15s ease;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold-dark); }
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--line);
  font-size: 20px; color: var(--ink);
  align-items: center; justify-content: center;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 200;
  padding: 24px;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav-close { align-self: flex-end; }

/* ============ Hero ============ */
.hero {
  position: relative;
  color: #fff;
  padding: 120px 0 180px;
  overflow: hidden;
  background:
    linear-gradient(rgba(18, 32, 52, .55), rgba(18, 32, 52, .62)),
    url('/assets/img/hero.jpg') center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--ivory));
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero p.subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.92);
  margin-bottom: 40px;
  font-weight: 300;
}

/* Search bar */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  text-align: left;
  max-width: 920px;
  margin: 0 auto;
}
html[lang="ar"] .search-bar { text-align: right; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.search-tab {
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  background: var(--ivory);
  transition: all .15s ease;
}
.search-tab.active { background: var(--gold-soft); color: var(--gold-dark); }
.search-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-input-wrap {
  flex: 1 1 260px;
  position: relative;
}
.search-input-wrap svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
}
html[lang="ar"] .search-input-wrap svg { left: auto; right: 14px; }
.search-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
  background: var(--ivory);
}
html[lang="ar"] .search-input { padding: 14px 44px 14px 14px; }
.search-input:focus { border-color: var(--gold); background: var(--white); }
.search-quick-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
}
.filter-chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ============ Section headers ============ */
.section { padding: 72px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 32px;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.section-head p { color: var(--muted); margin-top: 6px; }
.section-head .link-all {
  color: var(--gold-dark); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.section-head .link-all:hover { gap: 10px; }

/* ============ Cards ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gold-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.95);
  color: var(--gold-dark);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
html[lang="ar"] .card-badge { left: auto; right: 12px; }
.card-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
html[lang="ar"] .card-actions { right: auto; left: 12px; }
.card-action {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: all .15s ease;
}
.card-action:hover { color: var(--gold-dark); background: var(--gold-soft); }
.card-action.active { color: #fff; background: var(--gold); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-dev {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.card-dev img { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; }
.card-title { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.card-area { color: var(--muted); font-size: 14px; }
.card-specs {
  display: flex; gap: 18px;
  color: var(--ink-soft); font-size: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.card-spec { display: flex; align-items: center; gap: 6px; }
.card-spec b { color: var(--ink); font-weight: 700; }
.card-price-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
}
.card-monthly { color: var(--muted); font-size: 12px; }
.card-price { font-size: 20px; font-weight: 700; color: var(--ink); }
.card-price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.card-footer {
  display: flex; gap: 8px; margin-top: auto;
}
.card-footer .btn { flex: 1; padding: 10px 16px; font-size: 14px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px; font-weight: 600;
}

/* ============ Quick links ============ */
.quick-links { margin-top: -100px; position: relative; z-index: 5; }
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.quick-link {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  transition: all .2s ease;
  color: var(--ink);
}
.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  color: var(--ink);
}
.quick-link .ql-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.quick-link span { font-weight: 600; font-size: 14px; }

/* ============ Promo cards ============ */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex; align-items: flex-end;
  color: #fff;
  padding: 28px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.promo-card.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.promo-card h3 { font-size: 24px; margin-bottom: 6px; }
.promo-card p { color: rgba(255,255,255,.9); font-size: 14px; margin-bottom: 12px; }
.promo-card .btn { background: rgba(255,255,255,.95); color: var(--ink); }
.promo-card .btn:hover { background: #fff; }
.promo-emoji {
  position: absolute; top: 20px; right: 24px;
  font-size: 48px; opacity: .9;
}
html[lang="ar"] .promo-emoji { right: auto; left: 24px; }

/* ============ Carousel ============ */
.carousel { position: relative; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav {
  position: absolute; top: -64px;
  display: flex; gap: 8px;
}
html[lang="ltr"] .carousel-nav { right: 0; }
html[lang="rtl"] .carousel-nav { left: 0; }
.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all .15s ease;
}
.carousel-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Area card */
.area-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  color: #fff;
  display: flex; align-items: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(18,32,52,.8));
}
.area-card::before {
  content: '';
  position: absolute; inset: 0;
  /* Removed the solid blue gradient here: with a stacking context active it paints ABOVE the card's
     background image and hid the photos. The blue fallback now lives inside the card's inline background
     (bottom layer), below the image, so cards without an image still get a colored surface. */
  background: transparent;
  z-index: -1;
}
.area-card h3 { font-size: 20px; }
.area-card p { color: rgba(255,255,255,.85); font-size: 13px; }

/* ============ App CTA ============ */
.app-cta {
  background: linear-gradient(135deg, var(--gold-soft), var(--blue-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.app-cta h2 { font-size: 28px; color: var(--ink); margin-bottom: 8px; }
.app-cta p { color: var(--ink-soft); max-width: 460px; }
.qr-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.qr-box img { width: 140px; height: 140px; margin-bottom: 8px; }
.qr-box span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ============ Lead form ============ */
.lead-section { background: var(--white); border-top: 1px solid var(--line); }
.lead-wrap {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px;
  align-items: center;
}
.lead-info h2 { font-size: 30px; margin-bottom: 12px; }
.lead-info p { color: var(--muted); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--ivory);
  outline: none;
  transition: border-color .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold); background: var(--white);
}
.form-field textarea { min-height: 90px; resize: vertical; }
.form-success {
  display: none;
  grid-column: 1 / -1;
  background: #eef8ee;
  border: 1px solid #bfe4c3;
  color: #2e7d32;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  color: #c8d0da;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: .02em;
}
.footer a { color: #c8d0da; display: block; padding: 6px 0; font-size: 14px; }
.footer a:hover { color: var(--gold); }
.footer-brand img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  transition: all .15s ease;
}
.socials a:hover { background: var(--gold); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px;
  color: #8b95a3;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #8b95a3; font-size: 13px; }

/* ============ Filter sidebar (search page) ============ */
.search-page {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0 72px;
}
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.filter-group-head h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.filter-group-head .reset {
  font-size: 12px; color: var(--blue-dark);
  font-weight: 600;
}
.filter-group-head .reset:hover { color: var(--gold-dark); }
.check-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 0;
}
.check-item input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--gold);
  cursor: pointer;
}
.num-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.num-btn {
  min-width: 40px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .15s ease;
  background: var(--white);
}
.num-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.num-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.range-inputs {
  display: flex; align-items: center; gap: 8px;
}
.range-inputs input {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px; font-family: inherit;
  color: var(--ink);
  background: var(--ivory);
  outline: none;
}
.range-inputs input:focus { border-color: var(--gold); background: var(--white); }
.range-inputs span { color: var(--muted); }
.filters-actions { padding-top: 16px; }
.see-more { font-size: 13px; color: var(--blue-dark); font-weight: 600; margin-top: 6px; }
.see-more:hover { color: var(--gold-dark); }

/* Search results header */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.results-bar h1 { font-size: 26px; font-weight: 700; color: var(--ink); }
.results-bar .count { color: var(--muted); font-size: 14px; font-weight: 500; }
.results-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { color: var(--ink-soft); font-weight: 600; }

/* Map view */
.map-view { display: none; }
.map-view.show { display: block; }
#map-placeholder {
  height: 460px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--blue-soft);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--blue-dark);
  text-align: center; padding: 24px;
}

/* ============ Property detail ============ */
.property-hero {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0 40px;
}
.property-hero img { width: 100%; height: 100%; object-fit: cover; }
.property-detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
  align-items: start;
}
.detail-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
}
.detail-section h2 { font-size: 20px; margin-bottom: 16px; color: var(--ink); }
.detail-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.detail-area { color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.spec-box {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.spec-box .spec-icon { font-size: 22px; margin-bottom: 6px; color: var(--gold-dark); }
.spec-box b { display: block; font-size: 18px; color: var(--ink); }
.spec-box span { font-size: 13px; color: var(--muted); }
.sticky-box { position: sticky; top: calc(var(--header-h) + 16px); }
.price-box {
  background: linear-gradient(135deg, var(--gold-soft), var(--white));
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 28px;
}
.price-box .price-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.price-box .price-big { font-size: 34px; font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.price-box .price-big small { font-size: 16px; color: var(--muted); }
.price-box .monthly { color: var(--gold-dark); font-weight: 600; font-size: 15px; }
.amenity-list { display: flex; flex-wrap: wrap; gap: 10px; }
.amenity-item {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.contact-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 16px;
}
.contact-box h3 { font-size: 18px; margin-bottom: 14px; }
.contact-box .form-field { margin-bottom: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin: 24px 0 0; }
.back-link:hover { color: var(--gold-dark); }

/* ============ Static pages ============ */
.page-hero {
  padding: 72px 0 40px;
  text-align: center;
}
.page-hero h1 { font-size: 40px; font-weight: 700; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 12px auto 0; }
.page-body { padding: 0 0 72px; }
.page-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.page-card h2 { font-size: 22px; margin-bottom: 12px; }
.page-card p { color: var(--ink-soft); margin-bottom: 12px; }
.page-card ul { list-style: disc; padding-left: 20px; color: var(--ink-soft); margin-bottom: 12px; }
html[lang="ar"] .page-card ul { padding-left: 0; padding-right: 20px; }

/* ============ Admin ============ */
.admin-login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--blue-soft));
  padding: 24px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.login-card img { height: 56px; margin: 0 auto 16px; }
.login-card h1 { font-size: 24px; margin-bottom: 6px; }
.login-card p { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.login-card .form-field { text-align: left; margin-bottom: 16px; }
html[lang="ar"] .login-card .form-field { text-align: right; }
.login-error {
  background: #fdeaea;
  border: 1px solid #f5b9b9;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  margin-bottom: 16px;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
  background: var(--ivory);
}
.admin-sidebar {
  width: 250px;
  background: var(--ink);
  color: #c8d0da;
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .logo-wrap {
  padding: 0 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 16px;
}
.admin-sidebar .logo-wrap img { height: 40px; filter: brightness(0) invert(1); }
.admin-sidebar a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  color: #aeb8c6;
  font-size: 14px; font-weight: 500;
  transition: all .15s ease;
}
.admin-sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar a.active { background: var(--gold); color: var(--ink); }
.admin-main { flex: 1; padding: 32px; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.admin-topbar h1 { font-size: 26px; font-weight: 700; }
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.stat-card b { font-size: 28px; display: block; color: var(--gold-dark); }
.stat-card span { font-size: 13px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
html[lang="ar"] .table th { text-align: right; }
.table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}
.table tr:hover td { background: var(--ivory); }
.table .actions { display: flex; gap: 6px; }
.row-btn {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all .15s ease;
}
.row-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.row-btn.danger { color: #c62828; border-color: #f5b9b9; }
.row-btn.danger:hover { background: #fdeaea; }
.badge-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-active { background: #eef8ee; color: #2e7d32; }
.badge-sold { background: #fdeaea; color: #c62828; }
.badge-draft { background: var(--blue-soft); color: var(--blue-dark); }

/* Admin form */
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form .full { grid-column: 1 / -1; }
.admin-form .form-field label { font-weight: 600; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 300;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #2e7d32; }

/* ============ Utilities ============ */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600; font-size: 14px;
  background: var(--white);
}
.pagination .active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Photo page-hero */
.page-hero.has-img {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
}
.page-hero.has-img::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(18, 32, 52, .55), rgba(18, 32, 52, .65));
}
.page-hero.has-img > * { position: relative; z-index: 1; }
.page-hero.has-img h1 { color: #fff; }
.page-hero.has-img p { color: rgba(255,255,255,.9); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: flex; }
  .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .search-page { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .property-detail-grid { grid-template-columns: 1fr; }
  .sticky-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lead-wrap { grid-template-columns: 1fr; gap: 24px; }
  .admin-sidebar { width: 72px; }
  .admin-sidebar .logo-wrap { padding: 0 0 16px; text-align: center; }
  .admin-sidebar a span { display: none; }
  .admin-sidebar a { justify-content: center; padding: 14px 0; }
}

/* Tablet (iPad portrait/landscape, small tablets) */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero { padding: 96px 0 150px; }
  .hero h1 { font-size: 40px; }
  .hero p.subtitle { font-size: 17px; }
  .page-hero.has-img { padding: 88px 0 68px; }
  .page-hero h1 { font-size: 34px; }
  .section { padding: 56px 0; }
  .search-bar { padding: 14px; }
  .services-cta { padding: 36px 28px; }
}
/* Mobile: compact header so logo never clips (fixes cut "M") */
/* Mobile: common phones (320-430px) fixes */
@media (max-width: 640px) {
  .lang-switch .lang-label { display: none; }
  .socials { gap: 8px; flex-wrap: wrap; }
  .socials a { width: 36px; height: 36px; }
  .footer-grid > * { min-width: 0; }
}
html, body { overflow-x: hidden; }
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .logo { gap: 8px; }
  .logo img { height: 36px; }
  .logo-text { font-size: 19px; letter-spacing: .03em; white-space: nowrap; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .lang-switch { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 400px) {
  .header-phone { display: none; }
}
/* Mobile: common phones (320-430px) fixes */
@media (max-width: 640px) {
  .lang-switch .lang-label { display: none; }
  .socials { gap: 8px; flex-wrap: wrap; }
  .socials a { width: 36px; height: 36px; }
  .footer-grid > * { min-width: 0; }
}
html, body { overflow-x: hidden; }
@media (max-width: 640px) {
  .hero { padding: 80px 0 140px; }
  .page-hero.has-img { padding: 80px 0 64px; border-radius: 0; }
  .hero h1 { font-size: 32px; }
  .carousel-track { grid-auto-columns: 85%; }
  .promo-grid { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .app-cta { padding: 32px; }
  .section { padding: 48px 0; }
  .admin-main { padding: 20px; }
  .admin-form { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
