/* ═══════════ مكوّنات الصفحات — Luxury Nature، جوال أولاً ═══════════ */

/* ───────── البانر الرئيسي ───────── */

.hero { position: relative; overflow: hidden; isolation: isolate; }

/* صورة الشاليه بعرض الشاشة */
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: center/cover no-repeat;
  background-color: var(--olive);
}
/* بديل أنيق قبل رفع صورة */
.hero-media.no-img {
  background-image:
    radial-gradient(ellipse at 70% 15%, rgba(182, 154, 104, .3), transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(118, 90, 67, .45), transparent 58%),
    linear-gradient(160deg, #4a5f52, #3f5145 45%, #2f3d35);
}
/* الطبقة الشفافة فوق الصورة */
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31, 36, 31, .52), rgba(31, 36, 31, .34) 45%, rgba(31, 36, 31, .66));
}

.hero-inner { padding: 46px 16px 30px; text-align: center; position: relative; }
.hero h1 { color: #fff; font-size: 29px; margin-bottom: 10px; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.hero .lead {
  color: rgba(255, 255, 255, .88); font-size: 15px; max-width: 540px;
  margin: 0 auto 18px; text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}
.hero .btn-primary { border: 1px solid rgba(255, 255, 255, .24); }
.hero .btn-primary:hover { background: #fff; color: var(--olive); }

.hero-rule { width: 54px; height: 2px; background: var(--gold); border-radius: 2px; margin: 0 auto 16px; }

/* ───────── شريط العروض داخل البانر ───────── */

.hero-offers { margin-top: 20px; }
.hero-offers-title {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--beige); margin-bottom: 9px;
}
.hero-offers-strip { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.hero-offer {
  display: flex; align-items: center; gap: 12px; text-align: start;
  background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
  border: 1px solid rgba(216, 203, 184, .4);
  border-radius: var(--r); padding: 11px 14px;
  max-width: 330px; flex: 1 1 250px; min-width: 235px;
  transition: background .2s, border-color .2s, transform .15s;
}
.hero-offer:hover { background: rgba(255, 255, 255, .2); border-color: var(--beige); }
.hero-offer:active { transform: scale(.98); }
.hero-offer .pct { font-size: 25px; font-weight: 800; line-height: 1; color: #fff; flex: none; }
.hero-offer .pct small { font-size: 13px; font-weight: 700; }
.hero-offer b { display: block; font-size: 13.5px; color: #fff; line-height: 1.5; }
.hero-offer span { font-size: 11.5px; color: rgba(255, 255, 255, .72); }

/* ───────── صندوق البحث ───────── */

.search-wrap { position: relative; padding: 0 16px; margin-top: -26px; z-index: 2; }
.search-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-lg);
  max-width: 1148px; margin-inline: auto; text-align: start;
}
.search-box .field { margin-bottom: 10px; }
.search-grid { display: grid; gap: 10px; }

/* ───────── الغلاف / الصورة النائبة ───────── */

.cover {
  background: var(--surface-2) center/cover no-repeat;
  border-radius: var(--r-lg) var(--r-lg) 0 0; position: relative;
}
.cover-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    radial-gradient(ellipse at 60% 20%, rgba(182, 154, 104, .22), transparent 55%),
    linear-gradient(165deg, #4a5f52, #3f5145 55%, #35443b);
}
.cover-ph-txt { font-size: 12px; font-weight: 700; color: var(--beige); letter-spacing: .5px; }
.cover-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ───────── بطاقة النموذج ───────── */

.models-grid { display: grid; gap: 13px; }

.model-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm);
}
.model-body { padding: 15px; }
.model-body h3 { margin-bottom: 2px; color: var(--olive); }
html[data-theme='dark'] .model-body h3 { color: var(--text); }
.model-tagline { color: var(--text-2); font-size: 13px; margin-bottom: 11px; line-height: 1.65; }
.model-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.model-feats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: 12px;
}
.price { font-size: 20px; font-weight: 800; color: var(--wood); }
.price small { font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.price-weekend { font-size: 12px; color: var(--text-2); text-align: end; }

.next-slot {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500;
  background: var(--green-bg); color: var(--green);
  padding: 8px 11px; border-radius: var(--r-sm); margin-bottom: 12px;
}
.next-slot.none { background: var(--red-bg); color: var(--red); }

/* ───────── المعرض ───────── */

.gallery { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.gallery .cover { border-radius: 0; height: 230px; }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 0; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs img {
  width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none;
  border: 1px solid var(--line); cursor: pointer; transition: border-color .15s;
}
.gallery-thumbs img.on { border-color: var(--olive); border-width: 2px; }

/* ───────── أقسام التفاصيل ───────── */

.detail-sections { display: grid; gap: 10px; }
.detail-sec {
  display: flex; gap: 13px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 15px;
  position: relative;
}
.detail-sec::before {
  content: ''; position: absolute; top: 15px; inset-inline-start: 0;
  width: 3px; height: 24px; background: var(--olive); border-radius: 2px;
}
.detail-sec .ico { font-size: 22px; line-height: 1.2; flex: none; }
.detail-sec h4 { margin: 0 0 3px; font-size: 15px; color: var(--olive); }
html[data-theme='dark'] .detail-sec h4 { color: var(--text); }
.detail-sec p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.75; }

/* ───────── الإعلانات ───────── */

.ann {
  border-radius: var(--r); padding: 13px 15px; display: flex; gap: 11px;
  background: var(--surface); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--olive);
}
.ann .ico { font-size: 18px; line-height: 1.4; }
.ann h4 { margin: 0 0 3px; font-size: 14.5px; color: var(--text); }
.ann p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.ann-info { border-inline-start-color: var(--blue); }
.ann-success { border-inline-start-color: var(--green); }
.ann-warning { border-inline-start-color: var(--gold); }

/* ───────── التقييمات ───────── */

.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--olive); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.review p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
.review-reply {
  margin-top: 11px; padding: 10px 13px; border-radius: var(--r-sm);
  background: var(--surface-2); border-inline-start: 2px solid var(--gold); font-size: 13px;
  color: var(--text-2);
}
.review-reply b { color: var(--wood); font-size: 12px; display: block; margin-bottom: 2px; }

.rating-big {
  display: flex; align-items: center; gap: 13px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px;
}
.rating-big .n { font-size: 36px; font-weight: 800; line-height: 1; color: var(--wood); }

/* ───────── التواصل والتذييل ───────── */

.contact-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .18s;
}
.contact-item:hover { border-color: var(--olive); }
.contact-item .ico {
  width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--beige-lt);
  display: grid; place-items: center; font-size: 17px; flex: none;
}
html[data-theme='dark'] .contact-item .ico { background: var(--surface-2); }
.contact-item b { display: block; font-size: 14px; }
.contact-item span { font-size: 12px; color: var(--text-2); }

.footer {
  background: var(--olive); color: rgba(255, 255, 255, .62);
  padding: 26px 0 92px; text-align: center; margin-top: 26px;
}
.footer img {
  width: 60px; margin: 0 auto 12px; background: #fff;
  border-radius: 50%; padding: 6px; overflow: hidden;
}
.footer .small { color: var(--beige); font-weight: 700; letter-spacing: .5px; }
.footer .tiny { color: rgba(255, 255, 255, .4); }

/* ───────── ملخص الحجز ───────── */

.summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 5px 0; color: var(--text-2); }
.summary-line b { color: var(--text); font-weight: 700; }
.summary-line.total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px;
  font-size: 16px; font-weight: 800;
}
.summary-line.total b { color: var(--wood); font-size: 19px; }
.summary-line.discount b { color: var(--green); }

.book-bar {
  position: sticky; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 12px 0 calc(12px + var(--safe-b));
  display: flex; align-items: center; gap: 11px;
  margin: 8px 0 0; width: auto;
}

/* ───────── صفحة الدخول ───────── */

.auth-page {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 20px 16px;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(182, 154, 104, .2), transparent 55%),
    linear-gradient(160deg, #4a5f52, #3f5145 50%, #2f3d35);
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 26px 20px; box-shadow: var(--sh-lg);
}
.auth-card img.logo { width: 78px; margin: 0 auto 14px; border-radius: 50%; background: #fff; }

/* زر بهيئة رابط + إخفاء بصري مع بقاء النص لقارئ الشاشة */
.btn-link {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--wood); text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { opacity: .75; }
.btn-link:disabled { color: var(--text-3); text-decoration: none; cursor: default; opacity: .7; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ───────── بطاقة الحجز ───────── */

.bk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.bk-top {
  padding: 13px 15px; display: flex; align-items: center; justify-content: space-between;
  gap: 9px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.bk-ref { font-family: ui-monospace, monospace; font-size: 12.5px; font-weight: 700; color: var(--wood); }
.bk-body { padding: 15px; }
.bk-dates { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bk-date { flex: 1; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 6px; }
.bk-date span { display: block; font-size: 10.5px; color: var(--text-2); font-weight: 500; }
.bk-date b { font-size: 13.5px; }
.bk-arrow { color: var(--olive); font-size: 16px; }

/* ───────── الأقسام القابلة للطي ───────── */

.fold {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s;
}
.fold[open] { border-color: var(--olive); }
.fold-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer; list-style: none; transition: background .18s;
}
.fold-head::-webkit-details-marker { display: none; }
.fold-head:hover { background: var(--surface-2); }
.fold-head h2 { font-size: 19px; margin: 0; color: var(--olive); }
html[data-theme='dark'] .fold-head h2 { color: var(--text); }
.fold-head p { margin: 2px 0 0; }
.fold-head .eyebrow { margin-bottom: 2px; }
.fold-ico {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; line-height: 1;
  background: var(--beige-lt); color: var(--wood);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), background .2s, color .2s;
}
html[data-theme='dark'] .fold-ico { background: var(--surface-2); color: var(--gold); }
.fold[open] .fold-ico { transform: rotate(180deg); background: var(--olive); color: #fff; }
.fold-body { padding: 14px 16px 16px; border-top: 1px solid var(--line); animation: foldIn .26s ease-out; }
@keyframes foldIn { from { opacity: 0; transform: translateY(-6px); } }

/* ═══════════ صفحة النموذج ═══════════ */

.model-stack {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; max-width: 860px; margin-inline: auto;
  min-width: 0;
}
.model-stack > * { min-width: 0; max-width: 100%; }
.model-stack > section { margin: 0; }
.model-head h1 { font-size: 22px; margin: 4px 0 3px; color: var(--olive); }
html[data-theme='dark'] .model-head h1 { color: var(--text); }

.spec-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 14px 0; padding: 12px 0; border-block: 1px solid var(--line);
}
.spec { text-align: center; }
.spec .ico { display: block; font-size: 17px; line-height: 1.5; }
.spec b { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--olive); }
html[data-theme='dark'] .spec b { color: var(--text); }
.spec .lb { display: block; font-size: 10.5px; color: var(--text-2); }

.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.feat-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; color: var(--text-2); line-height: 1.7;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.feat-item:last-child { border-bottom: 0; }
.feat-item::before {
  content: '✦'; color: var(--olive); font-size: 11px; flex: none; line-height: 1.9;
}

#bookCard .cal-grid, #bookCard .cal-dows, #bookCard .cal-head,
#bookCard .cal-legend, #bookCard .summary, #bookCard .field-row,
#bookCard .field, #bookCard .book-bar { max-width: 480px; margin-inline: auto; }
#bookCard .cal-legend { justify-content: center; }

/* ═══════════ لوحة الإدارة ═══════════ */

.adm-shell { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.adm-main { flex: 1; padding: 16px 0 96px; }

.adm-top {
  position: sticky; top: 0; z-index: 60; height: 56px;
  background: var(--olive); color: #fff;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
}
.adm-top .title { font-weight: 700; font-size: 16px; color: #fff; }
.adm-top .icon-btn {
  background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff;
}
.adm-top .icon-btn:hover { background: rgba(255, 255, 255, .22); }

.adm-nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 65;
  background: var(--olive-dk);
  display: flex; overflow-x: auto; padding: 6px 6px calc(6px + var(--safe-b));
  gap: 2px; scrollbar-width: none;
}
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav button {
  flex: none; min-width: 66px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 8px; border-radius: 8px; color: rgba(255, 255, 255, .62);
  font-size: 10px; font-weight: 500; position: relative; transition: .15s;
}
.adm-nav button .ico { font-size: 17px; line-height: 1; }
.adm-nav button:hover { color: #fff; }
.adm-nav button.on { color: var(--charcoal); background: var(--beige); font-weight: 700; }
.adm-nav button .pip {
  position: absolute; top: 3px; inset-inline-end: 10px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--gold); color: #fff; font-size: 9px; display: grid; place-items: center;
}

.panel { display: none; }
.panel.on { display: block; animation: fadeUp .22s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
.adm-card > h3 { font-size: 15px; margin-bottom: 11px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--olive); }
html[data-theme='dark'] .adm-card > h3 { color: var(--text); }

.list-item { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow b { display: block; font-size: 14px; }
.list-item .grow span { font-size: 12px; color: var(--text-2); }

.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
.filters .input, .filters .select { padding: 9px 12px; font-size: 13.5px; border-radius: 8px; }

.adm-cal .cal-day { cursor: pointer; font-size: 12.5px; }
.adm-cal .cal-day em { font-size: 8.5px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }

/* ═══════════ من 560 بكسل ═══════════ */

@media (min-width: 560px) {
  .spec-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
}

/* ═══════════ من 640 بكسل ═══════════ */

@media (min-width: 640px) {
  .hero-inner { padding: 72px 16px 44px; }
  .hero h1 { font-size: 38px; }
  .search-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .cover { height: 330px; }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ═══════════ من 900 بكسل ═══════════ */

@media (min-width: 900px) {
  .hero-inner { padding: 104px 16px 62px; }
  .hero h1 { font-size: 46px; }
  .hero .lead { font-size: 16.5px; }
  .search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-wrap { margin-top: -34px; }
  .models-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .model-stack { gap: 20px; }
  .model-head h1 { font-size: 27px; }
  .model-gallery .gallery .cover { height: 400px; }

  .adm-shell { flex-direction: row; }
  .adm-nav {
    position: sticky; top: 0; inset: auto; height: 100dvh; width: 218px; flex: none;
    flex-direction: column; overflow-y: auto; padding: 16px 10px; gap: 3px;
  }
  .adm-nav button {
    flex-direction: row; justify-content: flex-start; gap: 10px; width: 100%;
    min-width: 0; font-size: 13.5px; padding: 10px 12px;
  }
  .adm-nav button .ico { font-size: 16px; }
  .adm-nav button .pip { position: static; margin-inline-start: auto; }
  .adm-body { flex: 1; min-width: 0; }
  .adm-main { padding: 22px 26px 40px; }
  .adm-top { padding: 0 26px; }
  .two-col-adm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
}

/* ───────── شعار المقام داخل البانر ───────── */

.hero-logo {
  width: 180px; height: auto; object-fit: contain;
  margin: 0 auto 14px; padding: 0; background: none;
  border-radius: 0; box-shadow: none;
  filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
  animation: logoIn .7s cubic-bezier(.2, .8, .3, 1);
}
@keyframes logoIn { from { opacity: 0; transform: translateY(-10px) scale(.9); } }

@media (min-width: 640px) { .hero-logo { width: 225px; margin-bottom: 16px; } }
@media (min-width: 900px) { .hero-logo { width: 265px; margin-bottom: 18px; } }

/* معاينة الشعار في لوحة الإدارة */
.logo-prev {
  width: 84px; height: 84px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 50%; overflow: hidden;
  object-fit: contain; flex: none;
}

/* ───────── شعار المقام في الهيدر ─────────
   الصورة شفافة وتحوي الاسم، فتُعرض كاملة بلا قصّ ولا نص مكرر بجانبها */

.brand { display: flex; align-items: center; height: 100%; }
.brand-logo {
  height: 50px; width: auto; max-width: none; object-fit: contain;
  transition: opacity .18s, transform .18s;
}
.brand:hover .brand-logo { opacity: .82; }
.brand:active .brand-logo { transform: scale(.96); }

.brand-logo-sm { height: 40px; filter: brightness(0) invert(1); }

@media (min-width: 640px) { .brand-logo { height: 58px; } }
@media (min-width: 900px) { .brand-logo { height: 66px; } }

/* الشعار داخل التذييل الأخضر: بلا دائرة بيضاء لأنه مفرّغ */
.footer img {
  width: 116px; height: auto; padding: 0; background: none;
  border-radius: 0; margin: 0 auto 10px;
  filter: brightness(0) invert(1) opacity(.9); /* أبيض بالكامل ليظهر على الأخضر */
}

/* ═══════════ حاويات التقويم على الجوال ═══════════
   تقليل الحواشي ليأخذ التقويم عرضاً أكبر */

@media (max-width: 520px) {
  .fold-body { padding: 12px 10px 14px; }
  #bookCard.card-pad { padding: 14px 10px; }
  #bookCard .cal-grid, #bookCard .cal-dows, #bookCard .cal-head,
  #bookCard .cal-legend { max-width: none; }
  #bookCard .summary, #bookCard .field-row, #bookCard .field { max-width: none; }
  .fold-head { padding: 13px 12px; }
  .fold-head h2 { font-size: 17px; }
}

/* ═══════════ بيانات المستأجر والتأمين والشروط ═══════════ */

.renter-box {
  margin-top: 14px; padding: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r);
}
.renter-box h4 { margin: 0 0 2px; font-size: 14.5px; color: var(--olive); }
html[data-theme='dark'] .renter-box h4 { color: var(--text); }
.renter-box .field:last-child { margin-bottom: 0; }

.deposit-box {
  margin-top: 12px; padding: 13px 14px;
  background: var(--beige-lt); border: 1px solid var(--gold-line);
  border-radius: var(--r);
}
html[data-theme='dark'] .deposit-box { background: var(--surface-2); }
.deposit-box .dep-amount { color: var(--wood); font-size: 17px; }
.deposit-box p { color: var(--text-2); }

.agree-box {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; padding: 12px 13px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); cursor: pointer; font-size: 13.5px;
  line-height: 1.7; transition: border-color .18s, background .18s;
}
.agree-box:hover { border-color: var(--olive); }
.agree-box:has(input:checked) { border-color: var(--olive); background: var(--green-bg); }
.agree-box input[type='checkbox'] {
  width: 20px; height: 20px; flex: none; margin-top: 2px;
  accent-color: var(--olive); cursor: pointer;
}
.link-terms {
  color: var(--olive); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
html[data-theme='dark'] .link-terms { color: var(--gold); }

/* نص الشروط داخل النافذة */
.doc-text {
  white-space: pre-line; font-size: 13.5px; line-height: 2;
  color: var(--text-2); max-height: 58vh; overflow-y: auto;
  padding: 14px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r);
}

/* أسطر التأمين في ملخص السعر */
.summary-line.deposit b { color: var(--wood); }
.summary-line.grand {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px;
  font-size: 15px; font-weight: 800;
}
.summary-line.grand b { color: var(--olive); font-size: 18px; }
html[data-theme='dark'] .summary-line.grand b { color: var(--gold); }

/* حقول الإعدادات الطويلة */
#p-settings .textarea { min-height: 150px; line-height: 1.9; }
