/* ==========================================================================
   طبقة single — أنماط قوالب المفرد فوق redesign.css.
   تعتمد على أصناف redesign.css (.gs-hero .gs-infochips .gs-with-side
   .gs-sidecard .gs-panel .gs-section-head ...) ولا تكرّرها.
   ========================================================================== */

/* ===== الشريط العلوي: الهيرو + شرائح المعلومات ===== */
.gs-single-top { padding-top: 24px; }
.gs-single-chips { margin-bottom: 24px; }

/* هيرو المفرد: نص أوضح على تدرّج أغمق قليلاً */
.gs-hero--single,
.gs-loc-hero2,
.gs-partner-hero2 { min-height: 300px; }
.gs-hero__meta-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gs-hero__actions .gs-btn--ghost { background: rgba(255,255,255,.92); }
.gs-hero__actions .gs-fav-btn,
.gs-hero__actions .gs-favorite,
.gs-hero__actions button.gs-btn { }

/* ===== شبكة عمودين للمفرد (تعتمد .gs-with-side من redesign) ===== */
.gs-single-layout { padding-block: 8px 40px; align-items: start; }
.gs-single-main { min-width: 0; }
.gs-single-main > * { margin-bottom: 22px; }
.gs-single-side { align-self: start; position: sticky; top: 90px; min-width: 0; }
/* منع الفيض الأفقي من سلاسل طويلة (بريد/روابط) دون كسر الكلمات العربية حرفيًا */
.gs-single-side, .gs-single-main,
.gs-single-side .gs-sidecard, .gs-sidecard,
.gs-info-list__row, .gs-info-list__row dd { min-width: 0; overflow-wrap: anywhere; }
.gs-info-list__row dt { white-space: nowrap; flex-shrink: 0; }
.gs-single-side .gs-sidecard,
.gs-single-side .gs-side-card { margin-bottom: 18px; }
/* مواءمة البطاقات القديمة (social-links) مع gs-sidecard الجديدة */
.gs-single-side .gs-side-card { padding: 18px 20px; }
.gs-single-side .gs-side-card__title { font-size: 16px; font-weight: 800; }

/* ===== مقدمة + جسم المحتوى ===== */
.gs-single-lead .gs-lead { margin: 8px 0 0; font-size: 17px; color: var(--gs-text); line-height: 1.9; }
.gs-content-body { line-height: 1.95; }
.gs-content-body > *:first-child { margin-top: 0; }
.gs-content-body p { margin: 0 0 1em; }
.gs-content-body h2,
.gs-content-body h3 { position: relative; margin: 1.4em 0 .6em; padding-inline-start: 14px; font-weight: 800; }
.gs-content-body h2::before,
.gs-content-body h3::before { content: ""; position: absolute; inset-inline-start: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 4px; background: var(--gs-gold); }
.gs-content-body img { max-width: 100%; height: auto; border-radius: var(--gs-radius-sm); }

/* قوائم المعلومات داخل اللوحات (dl) — من main.css، نضبط الحواف فقط */
.gs-panel .gs-info-list { margin: 4px 0 0; }

/* ===== معرض الصور ===== */
.gs-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gs-gallery-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--gs-radius-sm); border: 1px solid var(--gs-border); transition: transform .16s ease; cursor: zoom-in; }
.gs-gallery-grid img:hover { transform: scale(1.03); }

/* ===== الفيديو المضمّن ===== */
.gs-video { position: relative; aspect-ratio: 16/9; border-radius: var(--gs-radius-sm); overflow: hidden; background: #000; }
.gs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== شريط الأدوات السفلي (طباعة/مشاركة/مفيد) ===== */
.gs-utilbar__group { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gs-utilbar__helpful { gap: 8px; }
.gs-utilbar .gs-share { display: inline-flex; align-items: center; gap: 8px; }
.gs-utilbar .gs-is-disabled { pointer-events: none; opacity: .8; }

/* ==========================================================================
   الشريك (single-gs_partner)
   ========================================================================== */

/* هيرو الشريك: نص + بطاقة شعار على الجانب */
.gs-partner-hero2__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gs-partner-hero2__body { min-width: 0; }
.gs-partner-hero2__cat { margin: 0 0 8px; color: #e7f0ea; font-size: 16px; font-weight: 600; }
.gs-partner-hero2__logo { flex: 0 0 auto; width: 150px; height: 150px; border-radius: var(--gs-radius); background: #fff; box-shadow: var(--gs-shadow-lg); display: flex; align-items: center; justify-content: center; padding: 14px; }
.gs-partner-hero2__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* التبويبات */
.gs-tabs { background: #fff; border: 1px solid var(--gs-border); border-radius: var(--gs-radius); box-shadow: var(--gs-shadow); padding: 4px 6px; margin-bottom: 22px; }
.gs-tabs__nav { display: flex; gap: 4px; flex-wrap: wrap; }
.gs-tab { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--gs-muted); }
.gs-tab:hover { color: var(--gs-green); background: var(--gs-cream-2); }
.gs-tab.is-active { color: #fff; background: var(--gs-green); }
.gs-tab.is-active:hover { color: #fff; background: var(--gs-green-dark); }
.gs-tabpanel { scroll-margin-top: 90px; }
.gs-anchor { display: block; height: 0; scroll-margin-top: 100px; }

/* الخدمات (شبكة بطاقات) — من main.css، نضبط المظهر لمطابقة المرجع */
.gs-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gs-service { display: flex; flex-direction: column; gap: 5px; padding: 16px; border: 1px solid var(--gs-border); border-radius: var(--gs-radius-sm); background: var(--gs-cream-2); }
.gs-service strong { font-size: 15px; }
.gs-service__price { color: var(--gs-green-dark); font-weight: 800; font-size: 14px; margin-top: 4px; }

/* الشريط السفلي الملتصق (CTA الشريك) */
.gs-partner-sticky { position: sticky; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--gs-border); box-shadow: 0 -6px 22px rgba(18,60,43,.08); padding: 12px 0; margin-top: 24px; }
.gs-partner-sticky__inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gs-partner-sticky__cta { margin-inline-start: auto; }

/* ==========================================================================
   المنطقة/المحافظة (taxonomy-gs_location)
   ========================================================================== */
.gs-loc-about { }
.gs-loc-about__body { line-height: 1.9; }
.gs-loc-section-block { margin-bottom: 30px; }

/* ==========================================================================
   متجاوب
   ========================================================================== */
@media (max-width: 1024px) {
  .gs-single-side { position: static; }
}
@media (max-width: 860px) {
  .gs-partner-hero2__inner { flex-direction: column; align-items: stretch; }
  .gs-partner-hero2__logo { width: 110px; height: 110px; align-self: flex-start; }
}
@media (max-width: 640px) {
  .gs-single-top { padding-top: 16px; }
  .gs-hero__actions { flex-wrap: wrap; }
  .gs-partner-sticky__inner { justify-content: stretch; }
  .gs-partner-sticky__cta { margin-inline-start: 0; flex: 1; }
  .gs-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ===== الطباعة ===== */
@media print {
  .gs-site-header, .gs-primary-nav, .gs-breadcrumbs, .gs-single-side,
  .gs-utilbar, .gs-partner-sticky, .gs-tabs, .gs-hero__actions,
  .gs-site-footer, .gs-related { display: none !important; }
  .gs-with-side, .gs-single-layout { grid-template-columns: 1fr !important; }
  .gs-hero::after { background: none !important; }
  .gs-hero__inner { color: #000; }
}
