/* =========================================================
   Real Estate Template v2 — تصميم عربي فخم RTL متجاوب
   لوحة الألوان: كحلي + ذهبي + أبيض
   ========================================================= */

:root {
  --navy: #0e2240;
  --navy-light: #16335c;
  --navy-dark: #081627;
  --gold: #c8a24a;
  --gold-light: #e0c074;
  --gold-dark: #a8842f;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1c2533;
  --muted: #6b7688;
  --border: #e6eaf0;
  --whatsapp: #25d366;
  --shadow: 0 8px 24px rgba(14, 34, 64, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 34, 64, 0.16);
  --radius: 16px;
  --font: "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===================== الأزرار ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(200, 162, 74, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 10px 26px rgba(200, 162, 74, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  width: 100%;
}

.btn-whatsapp:hover {
  background: #1faa52;
}

.btn-whatsapp svg,
.btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ===================== الهيدر ===================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(8, 22, 39, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.logo .logo-icon {
  color: var(--gold);
  font-size: 1.7rem;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: #dfe6f0;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-cta {
  padding: 9px 18px !important;
  font-size: 0.92rem;
}

/* ===================== الهيرو ===================== */
.hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 80px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(200, 162, 74, 0.18),
    transparent 55%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
  line-height: 1.3;
}

.hero h1 .accent {
  color: var(--gold-light);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== الفلاتر ===================== */
.filters {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  margin: -52px auto 0;
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1000px;
}

.filters input,
.filters select {
  flex: 1 1 200px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.97rem;
  background: #fff;
  color: var(--text);
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.15);
}

/* ===================== العناوين ===================== */
.section-title {
  font-size: 1.7rem;
  margin: 52px 0 8px;
  font-weight: 800;
  color: var(--navy);
  position: relative;
  padding-inline-start: 16px;
}

.section-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 28px;
  background: linear-gradient(var(--gold), var(--gold-dark));
  border-radius: 4px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 26px;
}

/* ===================== شبكة العقارات ===================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.property-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.property-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9eef5;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.property-card:hover .card-image img {
  transform: scale(1.07);
}

.card-badge {
  position: absolute;
  top: 13px;
  inset-inline-end: 13px;
  background: var(--navy);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
}

.card-location {
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-price {
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 1.28rem;
}

.card-meta {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1.12rem;
}

/* ===================== شريط المزايا التسويقي ===================== */
.perks {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 22px;
  margin: 10px 0 40px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.perk .perk-icon {
  font-size: 1.6rem;
  color: var(--gold-dark);
}

.perk strong {
  display: block;
  color: var(--navy);
}

.perk span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===================== قسم CTA ===================== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-dark));
  border-radius: var(--radius);
  padding: 44px 30px;
  text-align: center;
  color: #fff;
  margin: 40px 0 50px;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(200, 162, 74, 0.2),
    transparent 50%
  );
}

.cta-band h2,
.cta-band p,
.cta-band .hero-actions {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 22px;
}

/* ===================== نماذج باقة 799 ===================== */
.forms-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0 50px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.form-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.form-card p.form-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.93rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.15);
}

.payment-box {
  text-align: center;
  margin: 30px 0 50px;
  padding: 30px;
  background: var(--surface);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
}

.payment-box p {
  color: var(--muted);
  margin-bottom: 16px;
}

/* ===================== صفحة التفاصيل ===================== */
.breadcrumb {
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.property-detail {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: #e9eef5;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 9px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.gallery-thumbs img.active,
.gallery-thumbs img:hover {
  border-color: var(--gold);
}

.property-video {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.property-video video {
  width: 100%;
  display: block;
}

.detail-info {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 26px;
  align-self: start;
  position: sticky;
  top: 94px;
}

.detail-info h1 {
  font-size: 1.55rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.detail-info .location {
  color: var(--muted);
  margin-bottom: 16px;
}

.detail-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.detail-specs {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-specs li {
  background: var(--bg);
  border-radius: 11px;
  padding: 13px;
  text-align: center;
}

.detail-specs .spec-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.detail-specs .spec-value {
  font-weight: 700;
  color: var(--navy);
}

.detail-description {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 26px;
  margin-bottom: 30px;
}

.detail-description h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.detail-description p {
  color: #3a4453;
}

/* ===================== زر واتساب العائم ===================== */
.floating-whatsapp {
  position: fixed;
  inset-inline-start: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 200;
  transition: transform 0.2s;
  animation: floatPulse 2.4s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@keyframes floatPulse {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.85);
  }
}

/* ===================== الفوتر ===================== */
.site-footer {
  background: var(--navy-dark);
  color: #c4cfde;
  padding: 40px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 26px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: #9fb0c6;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--gold-light);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: #c4cfde;
  margin-bottom: 8px;
  font-size: 0.93rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  text-align: center;
  color: #8d9db4;
  font-size: 0.9rem;
}

/* ===================== التجاوب ===================== */
@media (max-width: 900px) {
  .property-detail {
    grid-template-columns: 1fr;
  }
  .detail-info {
    position: static;
  }
  .forms-section {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 56px 0 70px;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .nav-links {
    gap: 12px;
    font-size: 0.88rem;
  }
  .nav-links .nav-text {
    display: none;
  }
  .logo {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .filters {
    margin-top: -36px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    inset-inline-start: 16px;
    bottom: 16px;
  }
}
