:root {
  --bg: #faf8f5;
  --bg-2: #f4efe6;
  --ink: #1c1612;
  --ink-2: #4e4337;
  --muted: #8b7f70;
  --gold: #c5a880;
  --gold-d: #a38258;
  --gold-l: #e6dcc8;
  --cream: #f2e7d5;
  --line: #e8ddc9;
  --shadow: 0 4px 20px rgba(60, 40, 20, 0.03), 0 12px 32px rgba(60, 40, 20, 0.05);
  --shadow-lg: 0 20px 50px rgba(60, 40, 20, 0.12), 0 4px 20px rgba(197, 168, 128, 0.1);
  --r: 16px;
  --gold-gradient: linear-gradient(135deg, #c5a880 0%, #a38258 100%);
  --gold-gradient-hover: linear-gradient(135deg, #a38258 0%, #856945 100%);
  --gold-glow: rgba(197, 168, 128, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(197, 168, 128, 0.18);
  --font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  --font-title: 'Tajawal', 'Cairo', sans-serif;
}

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

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-l);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.serif, h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.8rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(163, 130, 88, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-w {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.btn-w:hover {
  background: var(--gold-gradient);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--gold-glow);
}

/* ===== NAV (Frosted Glass Header) ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(60, 40, 20, 0.02);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
}

.brand svg {
  width: 32px;
  height: 40px;
  color: var(--gold-d);
  transition: transform 0.3s ease;
}

.brand:hover svg {
  transform: scale(1.05) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text b {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--ink);
}

.brand-text small {
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .93rem;
}

.nav-links a {
  padding: .55rem 1.1rem;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-links a:hover, .nav-links a.on {
  color: var(--gold-d);
  background: var(--bg-2);
}

.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: .65rem 1.3rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 4px 12px rgba(28, 22, 18, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold-gradient);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--gold-glow);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.25s;
}

.menu-btn:hover {
  color: var(--gold);
}

@media (max-width: 990px) {
  .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow-lg);
    gap: 0.5rem;
  }
  .nav-links.open {
    display: flex;
    animation: slideDownNav 0.3s ease forwards;
  }
  .nav-links a {
    padding: .85rem 1.2rem;
  }
  .menu-btn {
    display: block;
  }
  .nav-cta {
    display: none;
  }
  .brand-text small {
    display: none;
  }
}

@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO (Cinematic Hero Overlay & Entrance Animations) ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleBg {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.hero {
  position: relative;
  min-height: 90vh;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.65) 100%), url('img/hero-bg.jpg') center/cover;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  overflow: hidden;
  animation: scaleBg 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-in {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: .5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  font-size: .8rem;
  letter-spacing: .15em;
  font-weight: 700;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(28, 22, 18, 0.45);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  max-width: 660px;
  margin: 0 auto 2.2rem;
  opacity: .95;
  line-height: 1.85;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-cta {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTION GENERIC ===== */
section {
  padding: 6rem 0;
}

.sec-head {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 680px;
  margin-inline: auto;
}

.sec-kicker {
  color: var(--gold-d);
  font-size: .8rem;
  letter-spacing: .25em;
  font-weight: 700;
  margin-bottom: .9rem;
  text-transform: uppercase;
}

.sec-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  margin-bottom: 0.9rem;
  color: var(--ink);
}

.sec-head p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== ABOUT (Elevated Grid) ===== */
.about {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  aspect-ratio: 4/5;
  background: url('img/villa-01.jpg') center/cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.about h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 1.4rem;
}

.about p {
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about ul {
  list-style: none;
  margin: 1.8rem 0;
  display: grid;
  gap: .95rem;
}

.about li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.about li::before {
  content: "✦";
  color: var(--gold-d);
  font-size: 1.1rem;
  margin-top: .05rem;
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-img {
    aspect-ratio: 1.1/1;
  }
}

/* ===== STATS (Luxury Glowing Counter Section) ===== */
.stats {
  background: linear-gradient(135deg, #1c1612 0%, #120e0b 100%);
  color: #fff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

.stats::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat b {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

.stat span {
  font-size: .95rem;
  opacity: .8;
  letter-spacing: .05em;
  font-weight: 500;
  color: var(--gold-l);
}

@media (max-width: 680px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ===== PROJECTS (Modern Hover Scales) ===== */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.proj-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 490px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid rgba(197, 168, 128, 0.08);
}

.proj-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 168, 128, 0.3);
}

.proj-card .ph-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.proj-card .ph {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-card:hover .ph {
  transform: scale(1.06);
}

.proj-card .ph-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(28, 22, 18, 0.65) 100%);
  pointer-events: none;
}

.proj-card .badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(28, 22, 18, 0.85);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.proj-card .info {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proj-card h3 {
  font-size: 1.45rem;
  margin-bottom: .3rem;
  color: var(--ink);
}

.proj-card .unit-type {
  font-size: .88rem;
  font-weight: 800;
  color: var(--gold-d);
  margin-bottom: .7rem;
  text-transform: uppercase;
}

.proj-card .loc {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.proj-card .loc i {
  color: var(--gold-d);
}

.proj-card .feat {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.3rem;
}

.proj-card .feat span {
  background: #f9f6f0;
  color: var(--ink-2);
  padding: .35rem .8rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(197, 168, 128, 0.1);
}

.proj-card .feat span i {
  color: var(--gold-d);
  font-size: 0.85rem;
}

.proj-card .price {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-d);
  margin-top: auto;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.proj-card .price small {
  color: var(--muted);
  font-weight: 500;
  font-size: .82rem;
}

.proj-card .btn {
  align-self: flex-start;
  width: 100%;
  justify-content: center;
}

/* ===== FEATURES (Rich Texture Cards) ===== */
.feats {
  background: var(--bg-2);
}

.feats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.feat-card {
  background: #fff;
  padding: 2.5rem 1.8rem;
  border-radius: 18px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(197, 168, 128, 0.05);
}

.feat-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.feat-card .icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.12);
  color: var(--gold-d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 1.4rem;
  box-shadow: inset 0 2px 8px rgba(197,168,128,0.1);
  transition: transform 0.3s ease;
}

.feat-card:hover .icon {
  transform: scale(1.08) rotate(3deg);
}

.feat-card h4 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
  color: var(--ink);
}

.feat-card p {
  color: var(--ink-2);
  font-size: .93rem;
  line-height: 1.6;
}

/* ===== GALLERY ===== */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}

.gal-grid a {
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  border: 1px solid var(--glass-border);
}

.gal-grid a:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 780px) {
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== CTA STRIP ===== */
.cta-strip {
  background: linear-gradient(135deg, #c5a880 0%, #a38258 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-strip h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.cta-strip p {
  max-width: 580px;
  margin: 0 auto 2.2rem;
  opacity: .95;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: #120e0b;
  color: #c0b7aa;
  padding: 5rem 0 2rem;
  border-top: 2px solid rgba(197,168,128,0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #231d17;
}

.footer h5 {
  font-family: var(--font-title);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.3rem;
  font-weight: 800;
  border-right: 3px solid var(--gold);
  padding-right: 0.6rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: .8rem;
  font-size: .95rem;
}

.footer a {
  color: #c0b7aa;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: var(--gold);
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer-brand .brand svg {
  color: var(--gold);
}

.footer-brand p {
  font-size: .95rem;
  line-height: 1.8;
  color: #9c9284;
}

.social {
  display: flex;
  gap: .8rem;
  margin-top: 1.4rem;
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #231d17;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c0b7aa;
  font-size: 1rem;
  border: 1px solid rgba(197, 168, 128, 0.08);
  transition: all 0.3s ease;
}

.social a:hover {
  background: var(--gold-gradient);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.foot-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: .88rem;
  color: #6a6054;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

/* ===== WhatsApp Float & Mute Notifications ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float:hover {
  transform: scale(1.1) rotate(5deg);
  background: #20ba5a;
}

/* Bot Float Button */
.bot-float {
  position: fixed;
  bottom: 94px;
  left: 24px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  background: var(--gold-gradient);
  color: #120e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(197, 168, 128, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.bot-float:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 28px rgba(197, 168, 128, 0.55);
}

/* ===== PROJECT DETAIL PAGE (Premium Gallery & Inner Grids) ===== */
.proj-hero {
  position: relative;
  min-height: 65vh;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 100%), url('img/villa-04.jpg') center/cover;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 6rem 0 4rem;
}

.proj-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 0.8rem;
}

.proj-hero .loc {
  font-size: 1.1rem;
  opacity: .95;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proj-hero .loc i {
  color: var(--gold);
}

.proj-body {
  padding: 5rem 0;
  background: #fff;
}

.proj-grid2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.proj-grid2 h2 {
  font-size: 1.7rem;
  margin: 1.8rem 0 1rem;
  color: var(--ink);
  border-right: 4px solid var(--gold);
  padding-right: 0.8rem;
}

.proj-grid2 p {
  color: var(--ink-2);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.proj-grid2 .specs {
  background: var(--bg-2);
  padding: 2rem;
  border-radius: 18px;
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
}

.proj-grid2 .specs .row {
  display: flex;
  justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}

.proj-grid2 .specs .row:last-child {
  border-bottom: 0;
}

.proj-grid2 .specs .row b {
  color: var(--gold-d);
  font-family: var(--font-title);
  font-weight: 700;
}

.amen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 2.5rem;
}

.amen {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.4rem 1rem;
  border-radius: 14px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-2);
  transition: all 0.3s ease;
}

.amen:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.amen i {
  display: block;
  font-size: 1.8rem;
  color: var(--gold-d);
  margin-bottom: .6rem;
}

.distance-list {
  display: grid;
  gap: .8rem;
  margin: 1.5rem 0 2.5rem;
}

.distance-list .d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .95rem;
  transition: border-color 0.3s ease;
}

.distance-list .d:hover {
  border-color: var(--gold-l);
}

.distance-list .d b {
  color: var(--gold-d);
  font-family: var(--font-title);
  font-weight: 800;
}

@media (max-width: 880px) {
  .proj-grid2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ===== OTHER PORTFOLIO CARDS ===== */
.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.other-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.other-card > *:not(.other-img) {
  margin-left: 1.6rem;
  margin-right: 1.6rem;
}

.other-card > *:first-child:not(.other-img),
.other-card > .other-img + * {
  margin-top: 1.6rem;
}

.other-card > *:last-child {
  margin-bottom: 1.6rem;
}

.other-img {
  width: 100%;
  height: 190px;
  background: #eee center/cover no-repeat;
  flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.other-card:hover .other-img {
  transform: scale(1.05);
}

.other-card.sold .other-img {
  filter: grayscale(.6) brightness(.85);
}

.other-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 168, 128, 0.25);
}

.other-card.sold {
  background: linear-gradient(180deg, #f7f6f4, #eeeeea);
  border-color: #dcdcd6;
  opacity: .9;
}

.other-card.sold h4 {
  color: #7c7265;
}

.other-card.last {
  border-color: rgba(220, 38, 38, 0.25);
  background: linear-gradient(180deg, #fff, #fffbfb);
}

.other-card.last .other-status {
  background: #dc2626;
  box-shadow: 0 4px 10px rgba(220,38,38,0.25);
}

.other-card.available .other-status {
  background: #16a34a;
  box-shadow: 0 4px 10px rgba(22,163,74,0.25);
}

.other-status {
  display: inline-block;
  background: #888;
  color: #fff;
  font-size: .72rem;
  letter-spacing: .12em;
  font-weight: 700;
  padding: .4rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
  align-self: flex-start;
}

.other-card h4 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 .5rem;
  color: var(--ink);
}

.other-card p {
  color: var(--ink-2);
  font-size: .95rem;
  margin: 0 0 1.2rem;
  line-height: 1.6;
}

.other-card small {
  color: var(--ink-2);
  font-size: .8rem;
  display:block;
  margin-top: .5rem;
  font-weight: 600;
}

.other-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  overflow: hidden;
}

.other-bar > div {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.other-card.sold .other-bar > div {
  background: #999;
}

.other-card.last .other-bar > div {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

/* ===== UNIT CARDS (تفاصيل الوحدات) ===== */
.unit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem;
  margin: 1.5rem 0 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.unit-card:hover {
  border-color: rgba(197, 168, 128, 0.35);
}

.unit-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: var(--gold-gradient);
}

.unit-card-dark {
  background: linear-gradient(165deg, #16120e 0%, #2b2318 100%);
  color: #f7efe2;
  border-color: #2b2318;
}

.unit-card-dark:hover {
  border-color: rgba(197, 168, 128, 0.45);
}

.unit-card-dark::before {
  background: linear-gradient(180deg, #e6c89c, var(--gold));
}

.unit-card-dark .unit-h {
  color: #f2e7d5;
  border-bottom-color: rgba(197, 168, 128, 0.25);
}

.unit-card-dark .unit-list li {
  color: #e5dac9;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.unit-card-dark .unit-list li i {
  color: #e6c89c;
  background: rgba(197, 168, 128, 0.15);
}

.unit-card-dark .unit-specs {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.06);
}

.unit-card-dark .unit-specs span {
  color: #af9f88;
}

.unit-card-dark .unit-specs b {
  color: #fff;
}

.unit-card-dark .perk {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(197, 168, 128, 0.18);
}

.unit-card-dark .perk b {
  color: #fff;
}

.unit-card-dark .perk span {
  color: #af9f88;
}

.unit-card-dark .perk i {
  color: #e6c89c;
}

.unit-card-dark .unit-tag {
  background: rgba(197, 168, 128, 0.18);
  color: #f2e7d5;
  border: 1px solid rgba(197, 168, 128, 0.25);
}

.unit-card-dark .unit-sub {
  color: #b7a996;
}

.unit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.unit-card-dark .unit-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.unit-tag {
  display: inline-block;
  background: rgba(197, 168, 128, 0.12);
  color: var(--gold-d);
  font-size: .72rem;
  letter-spacing: .15em;
  font-weight: 700;
  padding: .4rem .9rem;
  border-radius: 50px;
  margin-bottom: .6rem;
  border: 1px solid rgba(197, 168, 128, 0.15);
}

.unit-title {
  font-size: 1.65rem;
  font-family: var(--font-title);
  font-weight: 900;
  margin: 0 0 .4rem;
  line-height: 1.25;
}

.unit-sub {
  font-size: .92rem;
  color: var(--ink-2);
}

.unit-area {
  flex-shrink: 0;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold-d);
  background: rgba(197, 168, 128, 0.1);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  min-width: 120px;
  border: 1px solid rgba(197, 168, 128, 0.12);
}

.unit-area small {
  display: block;
  font-size: .65rem;
  letter-spacing: .15em;
  font-weight: 700;
  color: var(--ink-2);
  margin-top: .4rem;
}

.unit-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.8rem;
}

.unit-specs > div {
  text-align: center;
  padding: .4rem;
  border-right: 1px dashed var(--line);
}

.unit-specs > div:last-child {
  border-right: 0;
}

.unit-specs span {
  display: block;
  font-size: .75rem;
  color: var(--ink-2);
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.unit-specs b {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 800;
}

.unit-h {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 1.8rem 0 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid rgba(197, 168, 128, 0.25);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.unit-h::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.unit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
  display: grid;
  gap: .65rem;
}

.unit-list li {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem .3rem;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
  color: var(--ink-2);
}

.unit-list li:last-child {
  border-bottom: 0;
}

.unit-list li i {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(197, 168, 128, 0.1);
  color: var(--gold-d);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.unit-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-top: .8rem;
}

.perk {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem .8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  transition: all 0.3s ease;
}

.perk:hover {
  border-color: rgba(197, 168, 128, 0.3);
}

.perk i {
  font-size: 1.5rem;
  color: var(--gold-d);
  margin-bottom: .2rem;
}

.perk b {
  font-size: .95rem;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 800;
}

.perk span {
  font-size: .8rem;
  color: var(--ink-2);
}

.perk-wide {
  grid-column: 1/-1;
  flex-direction: row;
  text-align: right;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 1.6rem;
}

.perk-wide i {
  font-size: 2rem;
  margin: 0;
}

.perk-wide b {
  font-size: 1.05rem;
  display: block;
  margin-bottom: .25rem;
}

.perk-wide span {
  font-size: .88rem;
  line-height: 1.65;
  display: block;
  text-align: right;
}

.perk-hl {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.15), rgba(197, 168, 128, 0.05));
  border-color: rgba(197, 168, 128, 0.4);
}

.unit-card-dark .perk-hl {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.2), rgba(197, 168, 128, 0.05));
  border-color: rgba(197, 168, 128, 0.45);
}

@media (max-width: 768px) {
  .unit-card {
    padding: 1.5rem;
  }
  .unit-head {
    flex-direction: column;
    gap: 1rem;
  }
  .unit-area {
    align-self: flex-start;
    font-size: 2rem;
    padding: .8rem 1.1rem;
    min-width: auto;
  }
  .unit-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .unit-specs > div:nth-child(2) {
    border-right: 0;
  }
  .unit-specs > div:nth-child(-n+2) {
    border-bottom: 1px dashed var(--line);
    padding-bottom: .7rem;
    margin-bottom: .3rem;
  }
  .unit-perks {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== AD LANDING PAGE (Mountain View Premium Style) ===== */
.ad-page {
  background: #0f0f0f;
  color: #fff;
  min-height: 100vh;
}

.ad-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.95) 100%), url('img/villa-04.jpg') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  overflow: hidden;
}

.ad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.ad-top .brand svg {
  color: #fff;
}

.ad-top .brand b {
  color: #fff;
}

.ad-top .brand small {
  color: #c0b7aa;
}

.ad-top .badge {
  padding: .5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: .75rem;
  letter-spacing: .18em;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.05);
}

.ad-mid {
  text-align: center;
  max-width: 820px;
  margin: auto;
  padding: 3rem 0;
  animation: fadeInUp 1s ease forwards;
}

.ad-mid .kicker {
  font-size: .85rem;
  letter-spacing: .4em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.ad-mid h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-family: var(--font-title);
  font-weight: 900;
  margin-bottom: .8rem;
  text-shadow: 0 8px 40px rgba(0,0,0,0.45);
  line-height: 1.2;
}

.ad-mid h1 .en {
  display: block;
  font-size: .38em;
  letter-spacing: .3em;
  font-weight: 500;
  color: #c0b7aa;
  margin-top: .6rem;
}

.ad-mid .pill {
  display: inline-block;
  background: rgba(28, 22, 18, 0.45);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 1.3rem 1.8rem;
  border-radius: 18px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1rem;
  margin: 1.5rem 0;
  line-height: 1.8;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 720px;
  width: 100%;
}

.pill-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pill-label {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-l);
  white-space: nowrap;
}

.pill-sep {
  width: 1px;
  height: 1em;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.pill-val {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.pill-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: .8rem 0;
}

.ad-bot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  color: #fff;
  align-items: end;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.ad-bot .left {
  font-family: var(--font-title);
  letter-spacing: .15em;
  font-size: .88rem;
  opacity: .9;
  line-height: 1.7;
}

.ad-bot .right {
  text-align: left;
}

.ad-bot .right .lbl {
  font-size: .8rem;
  opacity: .8;
  margin-bottom: 0.4rem;
  letter-spacing: .15em;
}

.ad-bot .right .price {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  line-height: 1;
}

.ad-bot .right .price small {
  font-size: .38em;
  font-weight: 600;
  color: #c0b7aa;
  display: block;
  margin-top: .5rem;
  letter-spacing: .1em;
}

@media (max-width: 680px) {
  .ad-bot {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.8rem;
  }
  .ad-bot .right {
    text-align: center;
  }
}

.ad-section {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ad-section h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1.8rem;
  color: #fff;
  border-right: 4px solid var(--gold);
  padding-right: 1.1rem;
}

.ad-section p {
  color: #c0b7aa;
  font-size: 1.05rem;
  line-height: 1.95;
  max-width: 800px;
}

.ad-feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ad-feat {
  background: #18140f;
  border: 1px solid rgba(197, 168, 128, 0.15);
  padding: 1.8rem 1.2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.ad-feat:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.ad-feat .icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.12);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.ad-feat h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .4rem;
}

.ad-feat p {
  color: #9c9284;
  font-size: .88rem;
  margin: 0;
  line-height: 1.6;
}

.ad-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: 2.5rem;
}

.ad-gallery div {
  aspect-ratio: 1.1/1;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.4s ease;
}

.ad-gallery div:hover {
  transform: scale(1.02);
}

@media (max-width: 680px) {
  .ad-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ad-cta {
  background: #fff;
  color: var(--ink);
  padding: 5rem 1.5rem;
  text-align: center;
}

.ad-cta h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: .9rem;
}

.ad-cta p {
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 auto 2.2rem;
  font-size: 1.05rem;
}

.ad-form {
  max-width: 540px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  text-align: right;
}

.ad-form input, .ad-form select, .ad-form textarea {
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: .98rem;
  background: #fff;
  transition: border-color 0.3s ease;
}

.ad-form input:focus, .ad-form select:focus, .ad-form textarea:focus {
  outline: 0;
  border-color: var(--gold);
}

.ad-form button {
  margin-top: .5rem;
}

/* ===== RIMAL TABLE & GRID ===== */
.units-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
  margin-top: 1.5rem;
}

.units-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 750px;
}

.units-table th {
  background: #1c1612;
  color: #f2e7d5;
  padding: 1rem 1.2rem;
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.units-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  transition: background-color 0.2s ease;
}

.units-table tr:last-child td {
  border-bottom: 0;
}

.units-table tr:hover td {
  background: #fbf9f6;
}

.units-table tr.sold-row td {
  background: #fdf6f6;
  color: #bfa9a9;
  text-decoration: line-through;
  text-decoration-color: #f3c2c2;
}

.units-table tr.sold-row .badge-sold {
  text-decoration: none;
  display: inline-block;
}

.badge-sold {
  background: #b91c1c;
  color: #fff;
  padding: .35rem .85rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(185,28,28,0.2);
}

.price-cell {
  color: var(--gold-d);
  font-weight: 800;
  white-space: nowrap;
  font-family: var(--font-title);
  font-size: 1.05rem;
}

.btn-wa-sm {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #25d366;
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(37,211,102,0.2);
  transition: all 0.3s ease;
}

.btn-wa-sm:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.rimal-feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.rf {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: .95rem;
  transition: all 0.3s ease;
}

.rf:hover {
  border-color: rgba(197,168,128,0.3);
  box-shadow: var(--shadow);
}

.rf i {
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.rimal-warranty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.rw {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.4rem 1.1rem;
  text-align: center;
  transition: border-color 0.3s;
}

.rw:hover {
  border-color: rgba(197, 168, 128, 0.35);
}

.rw-yr {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-title);
}

.rw-lbl {
  font-size: .88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: .4rem;
}

.rimal-location {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.rl {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  transition: all 0.3s ease;
}

.rl:hover {
  border-color: rgba(197, 168, 128, 0.35);
  box-shadow: var(--shadow);
}

.rl > i {
  color: var(--gold);
  font-size: 1.35rem;
  flex-shrink: 0;
  width: 26px;
  text-align: center;
}

.rl > div {
  display: flex;
  flex-direction: column;
}

.rl b {
  font-size: 1rem;
  font-weight: 700;
}

.rl span {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .15rem;
}

/* ===== ACCORDION (شقق الرمال) ===== */
.uc-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.uc-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.uc-card.uc-sold {
  border-color: #f2e2e2;
  background: #fffafa;
}

.uc-card.open {
  box-shadow: 0 12px 36px rgba(197, 168, 128, 0.15);
  border-color: var(--gold);
}

.uc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
}

.uc-id {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-d);
  min-width: 46px;
}

.uc-sold .uc-id {
  color: #caa5a5;
}

.uc-summary {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: 1;
  flex-wrap: wrap;
}

.uc-area {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}

.uc-floor {
  font-size: .82rem;
  color: var(--muted);
  background: var(--bg-2);
  padding: .2rem .7rem;
  border-radius: 6px;
  font-weight: 600;
}

.uc-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-d);
  margin-right: auto;
  font-family: var(--font-title);
}

.uc-badge-sold {
  font-size: .8rem;
  font-weight: 700;
  background: #fee2e2;
  color: #b91c1c;
  padding: .25rem .75rem;
  border-radius: 6px;
  margin-right: auto;
}

.uc-arrow {
  color: var(--muted);
  transition: transform 0.3s ease;
  margin-right: auto;
  font-size: .9rem;
}

.uc-card.open .uc-arrow {
  transform: rotate(180deg);
  color: var(--gold);
}

.uc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.uc-card.open .uc-body {
  max-height: 320px;
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.uc-row {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: .7rem;
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.uc-row i {
  color: var(--gold-d);
  margin-top: .2rem;
  flex-shrink: 0;
  width: 16px;
}

.uc-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .85rem;
  background: #25d366;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(37,211,102,0.2);
  transition: all 0.3s ease;
}

.uc-wa-btn:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

/* ===== CONTACT ===== */
.contact-wrap {
  padding: 6rem 0;
  background: var(--bg-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  background: #120e0b;
  color: #fff;
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(197, 168, 128, 0.15);
}

.contact-info h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: .8rem;
}

.contact-info p {
  color: #c0b7aa;
  margin-bottom: 2.2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.ci-row {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}

.ci-row .ci-ic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ci-row b {
  display: block;
  color: #fff;
  font-family: var(--font-title);
  margin-bottom: .3rem;
  font-size: 1rem;
}

.ci-row span {
  color: #c0b7aa;
  font-size: .95rem;
}

.contact-form {
  background: #fff;
  padding: 3rem;
  border-radius: 20px;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(197, 168, 128, 0.05);
}

.contact-form h3 {
  font-size: 1.45rem;
  margin-bottom: .5rem;
  color: var(--ink);
}

.contact-form input, .contact-form select, .contact-form textarea {
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: .98rem;
  background: var(--bg);
  transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 0;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.12);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  margin-top: .5rem;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-info {
    padding: 2rem;
  }
  .contact-form {
    padding: 2rem;
  }
}

.flash {
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.flash.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ===== LUXURY CHAT INTERFACE (VIP CONCIERGE) ===== */
[data-theme="dark"] {
  --chat-bg: #0f0f0f;
  --chat-panel: rgba(24, 20, 16, 0.65);
  --chat-line: rgba(197, 168, 128, 0.15);
  --chat-text: #f7efe2;
  --chat-bubble-bot: rgba(35, 30, 24, 0.85);
  --chat-bubble-border: rgba(197, 168, 128, 0.22);
}

[data-theme="light"] {
  --chat-bg: #faf8f5;
  --chat-panel: rgba(255, 255, 255, 0.75);
  --chat-line: rgba(197, 168, 128, 0.2);
  --chat-text: #1c1612;
  --chat-bubble-bot: rgba(255, 255, 255, 0.9);
  --chat-bubble-border: rgba(197, 168, 128, 0.18);
}

/* Applied in chat.php */
.chat-page {
  background: var(--chat-bg) !important;
  color: var(--chat-text) !important;
}

#chat-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 520px;
  margin: 0 auto;
  background: var(--chat-bg);
  box-shadow: 0 0 60px rgba(0,0,0,0.15);
  border-left: 1px solid var(--chat-line);
  border-right: 1px solid var(--chat-line);
}

.chat-hdr {
  background: var(--chat-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--chat-line);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  position: relative;
  z-index: 10;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #120e0b;
  box-shadow: 0 4px 12px var(--gold-glow);
}

.chat-name {
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-title);
  color: var(--chat-text);
}

.chat-status {
  font-size: .72rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .2rem;
  font-weight: 700;
}

.chat-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-welcome {
  background: var(--chat-panel);
  border: 1px solid var(--chat-bubble-border);
  border-radius: 20px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.chat-welcome-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.chat-welcome h2 {
  font-size: 1.1rem;
  color: var(--gold-d);
  margin-bottom: .4rem;
}

.chat-welcome p {
  font-size: .88rem;
  opacity: 0.85;
  line-height: 1.65;
}

.chat-bubble-bot {
  background: var(--chat-bubble-bot);
  border: 1px solid var(--chat-bubble-border);
  border-top-right-radius: 4px !important;
  color: var(--chat-text);
  box-shadow: var(--shadow);
}

.chat-bubble-user {
  background: var(--gold-gradient);
  color: #120e0b;
  font-weight: 600;
  border-top-left-radius: 4px !important;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.chat-suggs-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .5rem 1.2rem;
  background: var(--chat-bg);
}

.chat-sugg-chip {
  background: transparent;
  border: 1.5px solid var(--gold-l);
  color: var(--gold-d);
  border-radius: 50px;
  padding: .45rem 1rem;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chat-sugg-chip:hover {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--gold-glow);
}

.chat-ftr {
  background: var(--chat-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--chat-line);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: flex-end;
  gap: .8rem;
  z-index: 10;
}

.chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.05);
  border: 1.5px solid var(--chat-line);
  border-radius: 24px;
  padding: .75rem 1.2rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--chat-text);
  resize: none;
  min-height: 44px;
  max-height: 120px;
  outline: none;
  line-height: 1.5;
  transition: border-color 0.25s, background-color 0.25s;
}

.chat-input:focus {
  border-color: var(--gold);
  background: rgba(0,0,0,0.02);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #120e0b;
  box-shadow: 0 4px 12px var(--gold-glow);
  transition: all 0.3s ease;
}

.chat-send-btn:disabled {
  opacity: .4;
  cursor: default;
  box-shadow: none;
}

.chat-send-btn:not(:disabled):hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(197, 168, 128, 0.5);
}
