/* =====================================================================
   City2Day — أدلة السفر (/guides و /guides/{slug})
   يعتمد على متغيرات site.css: --primary --accent --ink --muted --bg-alt --border --radius-* --shadow-*
   ===================================================================== */

.guide-page { background: var(--bg-alt); color: var(--text); }

/* ---------- فهرس الأدلة ---------- */
.guides-hero {
    background: var(--gradient-dark);
    color: #fff;
    padding: clamp(44px, 7vw, 80px) 0 clamp(52px, 8vw, 96px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.guides-hero::after {
    content: ""; position: absolute; inset: auto -10% -60% -10%; height: 70%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(30,165,240,.35), transparent 70%);
    pointer-events: none;
}
.guides-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; letter-spacing: .2px; opacity: .85; margin-bottom: 10px; }
.guides-hero h1 { font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 10px; }
.guides-lead { max-width: 640px; margin: 0 auto; opacity: .9; line-height: 1.9; }

.guides-filters {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin: -24px auto 28px; position: relative; z-index: 2;
}
.guides-pill {
    background: #fff; color: var(--ink); border: 1px solid var(--border);
    border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .92rem;
    box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.guides-pill:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--primary); }
.guides-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.guides-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-bottom: 36px;
}
.guide-tile {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; color: var(--text); box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.guide-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(var(--accent-rgb), .5); color: var(--text); }
.guide-tile-media {
    aspect-ratio: 16 / 9; background: var(--gradient) center/cover no-repeat; position: relative;
}
.guide-tile-cat {
    position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255,255,255,.92); color: var(--primary);
    font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.guide-tile-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-tile-body h2 { font-size: 1.08rem; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.6; }
.guide-tile-body p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.8; flex: 1; }
.guide-tile-more { color: var(--primary); font-weight: 700; font-size: .9rem; }
.guide-tile:hover .guide-tile-more i { transform: translateX(-3px); }
.guide-tile-more i { display: inline-block; transition: transform .2s var(--ease); }

.guides-empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.guides-empty i { font-size: 2.6rem; color: #9fb3c8; }

.guides-cta, .guide-cta-band {
    background: var(--gradient); color: #fff; border-radius: var(--radius-lg);
    padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    box-shadow: var(--shadow-primary); margin-bottom: 8px;
}
.guides-cta h2, .guide-cta-band h2 { color: #fff; font-weight: 800; }
.guides-cta .btn-outline-light:hover, .guide-cta-band .btn-outline-light:hover { color: var(--primary); }

/* ---------- صفحة الدليل ---------- */
.guide-hero {
    position: relative; color: #fff; background: var(--gradient-dark) center/cover no-repeat;
    padding: clamp(40px, 7vw, 84px) 0 clamp(64px, 9vw, 110px); isolation: isolate;
}
.guide-hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(15,31,92,.55) 0%, rgba(15,31,92,.82) 100%);
}
.guide-hero-inner { max-width: 900px; }
.guide-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 14px; opacity: .9; }
.guide-crumbs a { color: #fff; font-weight: 700; }
.guide-crumbs a:hover { text-decoration: underline; }
.guide-crumbs i { font-size: .7rem; opacity: .7; }
.guide-hero h1 { font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.45; margin: 0 0 12px; }
.guide-lead { font-size: 1.05rem; line-height: 1.9; opacity: .92; margin: 0 0 16px; max-width: 760px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; opacity: .9; }
.guide-meta i { margin-inline-end: 4px; color: var(--accent); }

.guide-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px;
    margin-top: -44px; position: relative; z-index: 1; margin-bottom: 40px;
}
@media (max-width: 991px) { .guide-layout { grid-template-columns: 1fr; margin-top: -32px; } }

.guide-article {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: clamp(22px, 4vw, 42px);
}

/* جسم المقال — الوكيل يكتب HTML بسيط: h2/h3/p/ul/ol/table/blockquote/img/a */
.guide-body { font-size: 1.04rem; line-height: 2; color: #2f3b4a; }
.guide-body > :first-child { margin-top: 0; }
.guide-body h2 {
    font-size: 1.35rem; font-weight: 800; color: var(--primary); margin: 34px 0 12px;
    padding-inline-start: 14px; border-inline-start: 4px solid var(--accent); line-height: 1.5; scroll-margin-top: 90px;
}
.guide-body h3 { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin: 24px 0 8px; }
.guide-body p { margin: 0 0 14px; }
.guide-body ul, .guide-body ol { padding-inline-start: 26px; margin: 0 0 16px; }
.guide-body li { margin-bottom: 6px; }
.guide-body li::marker { color: var(--accent); font-weight: 800; }
.guide-body a { color: var(--primary); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .5); text-underline-offset: 3px; }
.guide-body a:hover { text-decoration-color: var(--primary); }
.guide-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 6px 0 16px; }
.guide-body blockquote {
    background: var(--tint); border-inline-start: 4px solid var(--primary); border-radius: var(--radius-sm);
    padding: 14px 18px; margin: 0 0 18px; color: var(--ink); font-weight: 700;
}
.guide-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .95rem; display: block; overflow-x: auto; }
.guide-body th, .guide-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: start; vertical-align: top; }
.guide-body th { background: var(--tint); color: var(--ink); font-weight: 800; }
.guide-body hr { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }
/* صندوق تنبيه اختياري: <div class="tip">…</div> */
.guide-body .tip { background: #fff8e6; border: 1px solid #f6d99a; border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; }
/* قسم الأسئلة الشائعة: <div class="faq"><h3>س</h3><p>ج</p></div> */
.guide-body .faq { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px 18px; margin: 0 0 18px; background: #fbfdff; }
.guide-body .faq h3 { font-size: 1.02rem; margin: 14px 0 6px; }

.guide-cta-band { margin-top: 34px; margin-bottom: 0; }

.guide-aside { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 992px) { .guide-aside { position: sticky; top: 20px; align-self: start; } }
.guide-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 20px 22px;
}
.guide-card-cta { border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(180deg, #fff, var(--tint)); }
.guide-card-title { font-weight: 800; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.guide-card-title i { color: var(--primary); }
.guide-trust { color: var(--muted); }
.guide-trust i { color: #16a34a; }

.guide-toc { padding-inline-start: 20px; margin: 0; font-size: .92rem; }
.guide-toc li { margin-bottom: 6px; }
.guide-toc a { color: var(--text); font-weight: 600; }
.guide-toc a:hover, .guide-toc a.active { color: var(--primary); font-weight: 800; }

.guide-related { display: block; padding: 10px 0; border-top: 1px solid var(--border-soft); color: var(--text); }
.guide-related:first-of-type { border-top: 0; }
.guide-related:hover .guide-related-title { color: var(--primary); }
.guide-related-cat { display: block; font-size: .75rem; color: var(--muted); font-weight: 700; }
.guide-related-title { display: block; font-weight: 700; line-height: 1.6; transition: color .2s; }

@media (prefers-reduced-motion: reduce) {
    .guide-tile, .guides-pill, .guide-tile-more i { transition: none; }
    .guide-tile:hover { transform: none; }
}
