/* قالب لاند بيج — شاليهات واستراحات (RTL، موبايل أولًا)
   اللون --accent يُضبط لكل عميل من داخل index.html */

:root {
  --accent: #0f766e;            /* يُستبدل inline لكل عميل */
  --ink: #1c1917;
  --ink-soft: #57534e;
  --bg: #faf9f7;
  --bg-alt: #f1ece4;
  --card: #ffffff;
  --line: #e7e0d6;
  --whatsapp: #15803d;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(28, 25, 23, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  /* مساحة لشريط التواصل الثابت بالجوال */
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

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

/* ═══════════ شريط النموذج التجريبي ═══════════ */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fbbf24;
  color: #451a03;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-bottom: 2px solid #b45309;
}

/* ═══════════ Hero ═══════════ */
.hero { position: relative; }

.hero-img {
  width: 100%;
  height: min(72vh, 560px);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 28px;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.82) 0%, rgba(12, 10, 9, 0.35) 45%, rgba(12, 10, 9, 0) 75%);
  color: #fff;
}

.hero h1 {
  font-size: clamp(1.9rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
}

.tagline {
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 500;
  opacity: 0.95;
}

.location-line {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ═══════════ الأزرار ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:active { transform: scale(0.97); }
.btn:hover { filter: brightness(1.06); }

.btn svg { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; }

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

.btn-call { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }

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

/* ═══════════ الأقسام ═══════════ */
.section {
  padding: 44px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
}

.section-alt > * { max-width: 960px; margin-inline: auto; }

.section h2 {
  text-align: center;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.section h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin: 10px auto 22px;
}

.section-cta { text-align: center; margin-top: 22px; }

/* ═══════════ معرض الصور ═══════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* مؤشر التكبير يظهر فقط عندما يعمل اللايت بوكس فعلًا (JS + دعم dialog) */
.has-lightbox .gallery-grid img { cursor: zoom-in; }

.has-lightbox .gallery-grid img:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ═══════════ المرافق ═══════════ */
.amenities-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.amenities-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-weight: 500;
}

.amenity-icon { font-size: 1.35rem; }

/* ═══════════ الأسعار ═══════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.price-card h3 { font-size: 1.05rem; font-weight: 700; }

.price-days { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 8px; }

.price-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.price-value span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.price-card-featured {
  border: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--card));
}

.pricing-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 14px;
}

/* بطاقة «الأسعار عند التواصل» — عند غياب أسعار منشورة */
.pricing-grid-single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-inline: auto;
}

/* ═══════════ شريط «الحجوزات مكتملة» ═══════════ */
.fully-booked-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 560px;
  margin: 26px auto 0;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}

.fully-booked-banner[hidden] { display: none; }

/* ═══════════ صفحة سياسة الخصوصية ═══════════ */

/* صفحة السياسة ما فيها شريط CTA ثابت — ألغِ المساحة المحجوزة له في body */
.policy-body { padding-bottom: 0; }

.policy-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 20px 50px;
}

.policy-page h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.policy-updated {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 26px;
}

.policy-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin: 26px 0 8px;
}

.policy-page p { margin-bottom: 10px; }

.policy-page ul {
  margin: 0 0 10px;
  padding-inline-start: 22px;
}

.policy-page li { margin-bottom: 6px; }

.policy-page p a,
.policy-page li a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}

.policy-back {
  display: inline-block;
  margin-top: 30px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  margin-top: 6px;
  font-size: 0.82rem;
}

.footer-links a { color: #d6d3d1; text-decoration: underline; }

/* ═══════════ الأوقات ═══════════ */
.times-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 520px;
  margin-inline: auto;
}

.time-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-label { color: var(--ink-soft); font-size: 0.9rem; }

.time-value { font-size: 1.25rem; font-weight: 800; color: var(--accent); }

.times-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 14px;
}

/* ═══════════ الخريطة ═══════════ */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ═══════════ التواصل والسوشال ═══════════ */
.contact-phone {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.contact-phone a { color: var(--accent); font-weight: 800; text-decoration: none; }

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-pill {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.12s ease;
}

.social-pill:active { transform: scale(0.96); }

.social-snap { background: #d4b106; color: #451a03; }
.social-insta { background: #c13584; }
.social-tiktok { background: #1c1917; }

/* ═══════════ الفوتر ═══════════ */
.footer {
  background: var(--ink);
  color: #e7e5e4;
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name { font-weight: 700; }

.footer-cr, .footer-copy { font-size: 0.82rem; color: #a8a29e; }

/* ═══════════ شريط التواصل الثابت (جوال) ═══════════ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(28, 25, 23, 0.1);
}

.sticky-cta .btn { padding: 12px 10px; font-size: 0.95rem; }

/* ═══════════ اللايت بوكس ═══════════ */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 90vh;
  overscroll-behavior: contain;
}

.lightbox::backdrop { background: rgba(12, 10, 9, 0.88); }

.lightbox img {
  max-width: 94vw;
  max-height: 84vh;
  border-radius: 10px;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  inset-inline-start: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ═══════════ شاشات أوسع ═══════════ */
@media (min-width: 768px) {
  body { padding-bottom: 0; }

  .sticky-cta { display: none; }

  .hero-img { height: min(80vh, 640px); }

  .hero-overlay { padding: 40px 48px; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }

  .amenities-grid { grid-template-columns: repeat(4, 1fr); }

  .pricing-grid { max-width: 640px; margin-inline: auto; }

  .map-wrap iframe { height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .social-pill { transition: none; }
}
