/* =========================================================
   Cairo Select Homes — luxury design system
   ========================================================= */

:root {
  --bg: #F8F5EF;
  --bg-alt: #EFE7DC;
  --bg-dark: #1C1C1C;
  --text: #1C1C1C;
  --text-soft: #6F6A63;
  --gold: #B08A57;
  --gold-soft: #C9A77A;
  --border: #DED6C9;
  --border-soft: #E8E1D4;
  --white: #FFFFFF;

  --serif: "Cormorant Garamond", "El Messiri", "Markazi Text", Georgia, serif;
  --sans: "Inter", "Tajawal", "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif-ar: "El Messiri", "Markazi Text", "Cormorant Garamond", Georgia, serif;
  --sans-ar: "Tajawal", "Cairo", "Inter", sans-serif;

  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 10vw, 7rem);
  --radius: 6px;
  --shadow-soft: 0 20px 60px -30px rgba(28, 28, 28, 0.18);
  --shadow-card: 0 12px 40px -20px rgba(28, 28, 28, 0.15);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--white); }

/* ---------- Typography ---------- */

h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 500; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.lede {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 56ch;
  line-height: 1.7;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: var(--section) 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-head .lede { margin: 1rem auto 0; }

.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(248, 245, 239, 0.6);
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}

.btn-arrow::after {
  content: "→";
  font-size: 0.95rem;
  letter-spacing: 0;
  transition: transform 0.4s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.85rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  background: #000;
  border: 1px solid rgba(176, 138, 87, 0.35);
  transition: border-color 0.3s var(--ease);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand:hover .brand-mark { border-color: var(--gold); }
.site-header.scrolled .brand-mark,
.site-header.solid .brand-mark { width: 48px; height: 48px; }

.footer-logo {
  display: block;
  width: 140px;
  height: 140px;
  background: var(--bg-dark);
  border: 1px solid rgba(248,245,239,0.1);
  margin-bottom: 1.5rem;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: inherit;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.site-header.scrolled .nav-links,
.site-header.solid .nav-links { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--white) !important; }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 90;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; color: var(--text) !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--bg);
  overflow: hidden;
  padding: 7rem 0 6rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,15,15,0.78) 0%,
      rgba(15,15,15,0.42) 28%,
      rgba(15,15,15,0.55) 65%,
      rgba(0,0,0,0.92) 100%),
    linear-gradient(270deg,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0) 55%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: fadeUp 1.4s var(--ease) 0.3s both;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: var(--bg);
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero p {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(248, 245, 239, 0.92);
  margin-bottom: 2.5rem;
  max-width: 56ch;
  line-height: 1.85;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: var(--gold);
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding: 9rem 0 4rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
.page-hero .lede { margin-top: 1rem; }

/* ---------- Property cards ---------- */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.properties-grid.single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.property-card .img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.property-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.property-card:hover .img-wrap img { transform: scale(1.05); }

.property-card .tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(28,28,28,0.85);
  color: var(--bg);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.property-card .body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-card .meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}
.property-card .meta span:not(:last-child)::after {
  content: "·";
  margin-left: 0.75rem;
  color: var(--gold);
}

.property-card h3 { margin-bottom: 0.5rem; }

.property-card .desc {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.property-card .specs {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.property-card .specs strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.property-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.property-card .price {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
}
.property-card .price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
  font-weight: 500;
}

.property-card .actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.property-card .view-link {
  flex: 1;
  text-align: center;
  padding: 0.85rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s var(--ease);
}
.property-card .view-link:hover { background: var(--gold); }

.property-card .wa-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.property-card .wa-btn:hover {
  border-color: #25D366;
  background: #25D366;
}
.property-card .wa-btn:hover svg { fill: var(--white); }
.property-card .wa-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
  transition: fill 0.3s var(--ease);
}

/* ---------- Brand / lifestyle section ---------- */

.brand-section {
  background: var(--bg-alt);
}
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.brand-grid .brand-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--text);
}
.brand-grid .brand-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-grid .brand-copy h2 { margin-bottom: 1.5rem; }
.brand-grid .brand-copy p {
  color: var(--text-soft);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}
.brand-grid .stat-row {
  display: flex;
  gap: 2.5rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brand-grid .stat strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  display: block;
  color: var(--gold);
  line-height: 1;
}
.brand-grid .stat span {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.5rem;
  display: block;
}

@media (max-width: 760px) {
  .brand-grid { grid-template-columns: 1fr; }
  .brand-grid .brand-img { aspect-ratio: 3 / 2; }
}

/* ---------- Why us cards ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.why-card {
  padding: 2.25rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border-soft);
  transition: all 0.4s var(--ease);
}
.why-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.why-card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.why-card h4 { margin-bottom: 0.75rem; font-family: var(--serif); }
.why-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--text);
  color: var(--bg);
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) var(--pad);
}
.cta-banner h2 {
  color: var(--bg);
  font-weight: 300;
  margin-bottom: 1.25rem;
}
.cta-banner p {
  color: rgba(248,245,239,0.75);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}
.cta-banner .divider { background: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: rgba(248,245,239,0.7);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-grid h5 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.85rem; }
.footer-grid a {
  font-size: 0.92rem;
  transition: color 0.3s var(--ease);
}
.footer-grid a:hover { color: var(--gold-soft); }
.footer-grid .brand-name { color: var(--bg); }
.footer-grid .brand-text { color: var(--bg); }
.footer-grid p {
  font-size: 0.92rem;
  margin-top: 1.25rem;
  line-height: 1.7;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(248,245,239,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px -8px rgba(37, 211, 102, 0.65);
}
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Property detail page ---------- */

.gallery {
  padding: 7rem 0 3rem;
  background: var(--bg);
}
.gallery-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.gallery-main .hero-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-alt);
}
.gallery-main .hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-main .hero-img:hover img { transform: scale(1.03); }
.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}
.gallery-side .side-img {
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-alt);
}
.gallery-side .side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-side .side-img:hover img { transform: scale(1.03); }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.gallery-thumbs .thumb {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-alt);
  position: relative;
}
.gallery-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.gallery-thumbs .thumb:hover img { transform: scale(1.06); opacity: 0.92; }
.gallery-thumbs .more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,28,28,0.65);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  .gallery-main { grid-template-columns: 1fr; }
  .gallery-side { grid-template-rows: auto auto; grid-template-columns: 1fr 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}

.property-detail {
  padding: 3rem 0 var(--section);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.detail-main h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.detail-main .location {
  color: var(--text-soft);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-spec-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.detail-spec-row .spec {
  text-align: center;
  padding: 0.5rem 0.25rem;
}
.detail-spec-row .spec strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}
.detail-spec-row .spec span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.detail-section { margin-bottom: 2.5rem; }
.detail-section h3 {
  font-family: var(--serif);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.detail-section h3::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.detail-section p {
  color: var(--text-soft);
  margin-bottom: 1rem;
  line-height: 1.85;
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
}
.feature-list li {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  align-items: flex-start;
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ---------- Sticky aside ---------- */

.detail-aside {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
}
.detail-aside .price-block {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.detail-aside .price-label {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.detail-aside .price {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}
.detail-aside .price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: normal;
  text-transform: none;
  margin-top: 0.5rem;
  font-weight: 400;
}
.detail-aside .btn { width: 100%; justify-content: center; margin-bottom: 0.75rem; }
.detail-aside .wa-aside {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #25D366;
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.detail-aside .wa-aside:hover { background: #1da851; }
.detail-aside .wa-aside svg { width: 16px; height: 16px; fill: currentColor; }

.detail-aside .agent-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

/* ---------- Booking form ---------- */

.booking {
  background: var(--bg-alt);
  padding: var(--section) 0;
}
.booking-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
}
.booking-card .section-head { margin-bottom: 2.5rem; }
.booking-card form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.booking-card .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.95rem 1rem;
  border-radius: 2px;
  transition: border-color 0.3s var(--ease);
  font-size: 0.95rem;
  color: var(--text);
  width: 100%;
  font-family: var(--sans);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { min-height: 110px; resize: vertical; }

.booking-card .submit-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}
.booking-card button[type="submit"] {
  min-width: 280px;
  justify-content: center;
}
.booking-card .privacy {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
  max-width: 50ch;
}

@media (max-width: 580px) {
  .booking-card form { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  object-fit: contain;
  animation: fadeIn 0.4s var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox .close,
.lightbox .nav-arrow {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--bg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s var(--ease);
  font-size: 1.2rem;
}
.lightbox .close:hover,
.lightbox .nav-arrow:hover { background: rgba(255,255,255,0.18); }
.lightbox .close { top: 1.5rem; right: 1.5rem; }
.lightbox .prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
}

@media (max-width: 600px) {
  .lightbox .prev { left: 0.5rem; }
  .lightbox .next { right: 0.5rem; }
}

/* ---------- Filters bar ---------- */

.filters {
  background: var(--white);
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.filters .field label { margin-bottom: 0.4rem; }
.filters select,
.filters input {
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
}

/* ---------- Empty states / messages ---------- */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--border);
  background: var(--white);
}
.empty-state h3 { margin-bottom: 1rem; }
.empty-state p { color: var(--text-soft); margin-bottom: 2rem; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Arabic / RTL typography ---------- */

[lang="ar"], .ar-text {
  direction: rtl;
  text-align: right;
  font-family: var(--sans-ar);
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.85;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4,
.ar-text h1, .ar-text h2, .ar-text h3, .ar-text h4,
.ar-heading {
  font-family: var(--serif-ar);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.35;
}
.ar-text p, [lang="ar"] p {
  line-height: 1.95;
}
.section-head [lang="ar"], .section-head.ar-text {
  text-align: center;
}
.hero [lang="ar"], .hero .ar-text {
  text-align: right;
}
.cta-banner [lang="ar"], .cta-banner.ar-text {
  text-align: center;
}
[lang="ar"] .feature-list,
.ar-text .feature-list {
  direction: rtl;
}
[lang="ar"] .feature-list li::before,
.ar-text .feature-list li::before {
  margin-top: 11px;
}
.eyebrow.ar-text { letter-spacing: 0.18em; font-size: 0.78rem; }

/* keep brand wordmark and prices in LTR */
.brand, .price, .price small, .property-card .meta,
.detail-spec-row .spec, .property-card .specs,
.brand-name, .brand-tag {
  direction: ltr;
  text-align: center;
}
.property-card .specs { text-align: left; }
.property-card .meta { text-align: left; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 6rem;
  right: 1.75rem;
  background: var(--text);
  color: var(--bg);
  padding: 1rem 1.5rem;
  border-radius: 2px;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  z-index: 60;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--ease);
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
