/* ============================================================================
   Dunya Travel — Service detail pages (Visa · Accommodation · VIP)
   These pages now run on body.home-v2 (the site's premium theme layer), so they
   inherit the exact tokens, Cairo/Playfair fonts, cream background, premium
   header/footer/popup of the homepage, cities, transport and FAQ pages.
   This file only styles the page-specific components, using the hv- tokens so
   colours/typography match the rest of the site automatically. Scoped to
   body.sd-v2 and loaded AFTER style.css. No other page is affected.
   Accent = --hv-gold, deep green = --hv-green, body = --hv-body, bg = --hv-cream.
   ============================================================================ */

/* Section rhythm (matches homepage/cities premium spacing) */
body.sd-v2 .hub-intro,
body.sd-v2 .cities-hub-section,
body.sd-v2 .why-visit,
body.sd-v2 .city-page-section { padding: 92px 5%; border: none; background: transparent; }
body.sd-v2 .cities-hub-section.city-page-section { padding: 92px 5%; }
body.sd-v2 .container { max-width: 1320px; margin: 0 auto; }

/* ── Section headers / intro (eyebrow + Playfair heading + sub) ── */
body.sd-v2 .section-header { max-width: 760px; margin: 0 auto 46px; text-align: center; }
body.sd-v2 .section-header > p:first-child,
body.sd-v2 .hub-intro .label {
    color: var(--hv-gold-dark) !important; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.78rem; font-weight: 700; margin-bottom: 12px;
}
body.sd-v2 .section-header h2,
body.sd-v2 .hub-intro h2 {
    font-size: clamp(2rem, 3.4vw, 2.7rem) !important; color: var(--hv-ink) !important;
    line-height: 1.2; font-weight: 700; margin: 0 0 14px;
}
body.sd-v2 .section-header h2 span,
body.sd-v2 .hub-intro h2 span { color: var(--hv-green) !important; }
body.sd-v2 .section-header .desc,
body.sd-v2 .section-header > p.desc {
    color: var(--hv-body) !important; font-size: 1rem; line-height: 1.8; letter-spacing: 0;
    text-transform: none; max-width: 640px; margin: 0 auto; font-weight: 400;
}
body.sd-v2 .hub-intro .container { max-width: 820px; text-align: center; }
body.sd-v2 .hub-intro p { color: var(--hv-body); font-size: 1.05rem; line-height: 1.9; margin: 0 auto; max-width: 720px; }

/* ── 1 · HERO (identical structure/rhythm to the homepage hv-hero) ── */
body.sd-v2 .sd-hero { background: transparent; padding: 150px 5% 80px; }
body.sd-v2 .sd-hero-inner {
    max-width: 1320px; margin: 0 auto; display: grid;
    grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center;
}
body.sd-v2 .sd-hero-eyebrow {
    display: inline-block; color: var(--hv-gold-dark); text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px;
}
body.sd-v2 .sd-hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.14; color: var(--hv-ink);
    font-weight: 700; margin: 0 0 20px;
}
body.sd-v2 .sd-hero h1 span { color: var(--hv-green); }
body.sd-v2 .sd-hero-lead { font-size: 1.06rem; line-height: 1.9; color: var(--hv-body); max-width: 560px; margin: 0 0 32px; }
body.sd-v2 .sd-hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
body.sd-v2 .sd-hero-media { position: relative; }
body.sd-v2 .sd-hero-media img {
    width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 26px;
    box-shadow: var(--hv-shadow), 0 30px 60px rgba(14,59,44,0.16); display: block;
}

/* ── 2 · SERVICE CARD GRID (premium image-top cards, like the site's card grids) ── */
body.sd-v2 .cities-hub-grid {
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important; max-width: 1320px; margin: 0 auto;
}
body.sd-v2 .cities-hub-grid .hub-card,
body.sd-v2 .cities-hub-grid .hub-card:first-child {
    position: relative; min-height: 0 !important; grid-column: auto !important; grid-row: auto !important;
    display: flex !important; flex-direction: column; background: #FFFFFF !important;
    border: 1px solid var(--hv-line) !important; border-radius: 20px !important; overflow: hidden;
    box-shadow: 0 12px 30px rgba(14,59,44,0.07) !important; text-decoration: none;
    transition: transform .35s ease, box-shadow .35s ease;
}
body.sd-v2 .cities-hub-grid .hub-card:hover {
    transform: translateY(-7px); box-shadow: 0 24px 50px rgba(14,59,44,0.16) !important;
}
body.sd-v2 .hub-card-img {
    position: relative !important; inset: auto !important; width: 100%; height: auto !important;
    aspect-ratio: 16 / 10; background-size: cover; background-position: center; flex-shrink: 0;
    transform: none !important;
}
body.sd-v2 .hub-card::before { display: none !important; }
body.sd-v2 .hub-card-content {
    position: relative !important; inset: auto !important; padding: 24px 24px 26px !important;
    display: flex; flex-direction: column; gap: 9px; flex: 1; text-align: start; background: #FFFFFF;
}
body.sd-v2 .hub-card-eyebrow {
    color: var(--hv-gold-dark) !important; text-transform: uppercase; letter-spacing: 1.4px;
    font-size: 0.7rem; font-weight: 700; margin: 0;
}
body.sd-v2 .hub-card h3 { color: var(--hv-ink) !important; font-size: 1.2rem; font-weight: 700; margin: 0; line-height: 1.3; }
body.sd-v2 .hub-card .hub-card-sub { color: var(--hv-secondary); }
body.sd-v2 .hub-card-desc { color: var(--hv-body) !important; font-size: 0.9rem; line-height: 1.75; margin: 0; flex: 1; }
body.sd-v2 .hub-card-highlights { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.sd-v2 .hub-card-highlights li {
    color: var(--hv-ink); font-size: 0.85rem; line-height: 1.4; padding-inline-start: 24px; position: relative; font-weight: 600;
}
body.sd-v2 .hub-card-highlights li::before {
    content: ''; position: absolute; inset-inline-start: 2px; top: 0.4em; width: 11px; height: 6px;
    border-inline-start: 2px solid var(--hv-gold); border-bottom: 2px solid var(--hv-gold); transform: rotate(-45deg);
}
body.sd-v2 .hub-card-cta {
    margin-top: 8px; color: var(--hv-gold-dark) !important; background: none !important; padding: 0 !important;
    font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease;
}
body.sd-v2 .hub-card:hover .hub-card-cta { gap: 10px; background: none !important; transform: none !important; }
body.sd-v2 .hub-card-content .btn-secondary { margin-top: 16px; align-self: flex-start; }

/* ── 3 · ABOUT (text + image split) ── */
body.sd-v2 .city-about {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; max-width: 1320px; margin: 0 auto;
}
body.sd-v2 .city-about-text h2 { color: var(--hv-ink) !important; line-height: 1.2; font-weight: 700; }
body.sd-v2 .city-about-text h2 span { color: var(--hv-green) !important; }
body.sd-v2 .city-about-text p { color: var(--hv-body) !important; line-height: 1.9 !important; }
body.sd-v2 .city-about-text .hub-card-eyebrow { color: var(--hv-gold-dark) !important; }
body.sd-v2 .city-about-image img {
    width: 100%; border-radius: 24px; object-fit: cover; aspect-ratio: 4/3;
    box-shadow: 0 24px 50px rgba(14,59,44,0.16);
}

/* ── 4 · "WHAT WE HANDLE" feature grid (.experience-grid) ── */
body.sd-v2 .experience-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1320px; margin: 0 auto;
}
body.sd-v2 .experience-card {
    background: #FFFFFF; border: 1px solid var(--hv-line); border-radius: 18px; padding: 28px 26px;
    box-shadow: var(--hv-shadow); text-align: start; transition: transform .3s ease, box-shadow .3s ease;
}
body.sd-v2 .experience-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(14,59,44,0.12); }
body.sd-v2 .experience-icon { font-size: 1.9rem; margin-bottom: 12px; line-height: 1; }
body.sd-v2 .experience-card h4 { color: var(--hv-ink) !important; font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; }
body.sd-v2 .experience-card p { color: var(--hv-body) !important; font-size: 0.9rem; line-height: 1.75; margin: 0; }

/* ── 5 · WHY grid (.why-visit-grid / .why-feature) — alt cream section ── */
body.sd-v2 .why-visit { background: var(--hv-cream2) !important; }
body.sd-v2 .why-visit-grid {
    display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important;
    max-width: 1320px; margin: 0 auto;
}
body.sd-v2 .why-feature {
    background: #FFFFFF; border: 1px solid var(--hv-line); border-radius: 18px; padding: 28px 24px;
    box-shadow: var(--hv-shadow); text-align: start; transition: transform .3s ease, box-shadow .3s ease;
}
body.sd-v2 .why-feature:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(14,59,44,0.12); }
body.sd-v2 .why-icon { font-size: 1.8rem; margin-bottom: 10px; line-height: 1; }
body.sd-v2 .why-feature h4 { color: var(--hv-ink) !important; font-size: 1.06rem; font-weight: 700; margin: 0 0 8px; }
body.sd-v2 .why-feature p { color: var(--hv-body) !important; font-size: 0.88rem; line-height: 1.75; margin: 0; }

/* ── Professional line icons (replace legacy emoji) ──────────────────────────
   Used by .experience-icon and .why-icon across Accommodation / Visa / VIP /
   Guides. Reserved gold accent, hairline stroke — matches the Transport & B2B
   icon language (Feather-style 24×24 currentColor strokes). */
body.sd-v2 .experience-icon, body.sd-v2 .why-icon { display: flex; }
body.sd-v2[dir="rtl"] .experience-icon, body.sd-v2[dir="rtl"] .why-icon { justify-content: flex-start; }
body.sd-v2 .experience-icon svg, body.sd-v2 .why-icon svg {
    width: 34px; height: 34px; stroke: var(--hv-gold); fill: none;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block;
}

/* ── 6 · FAQ (.faq-list / .faq-item) ── */
body.sd-v2 .faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
body.sd-v2 .faq-item { background: #FFFFFF; border: 1px solid var(--hv-line) !important; border-radius: 14px; overflow: hidden; }
body.sd-v2 .faq-item summary {
    padding: 19px 22px; font-size: 0.98rem; font-weight: 700; color: var(--hv-ink); cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; line-height: 1.5;
}
body.sd-v2 .faq-item summary::-webkit-details-marker { display: none; }
body.sd-v2 .faq-item summary::after {
    content: '+'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(14,59,44,0.08); color: var(--hv-green); display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; transition: transform .3s, background .3s, color .3s;
}
body.sd-v2 .faq-item[open] summary::after { background: var(--hv-gold); color: #fff; transform: rotate(45deg); }
body.sd-v2 .faq-body { padding: 0 22px 20px; color: var(--hv-body); font-size: 0.92rem; line-height: 1.85; }

/* ── 7 · FINAL CTA (.hub-cta — premium deep-green closing banner) ── */
body.sd-v2 .hub-cta { padding: 0 5% 100px; background: transparent; }
body.sd-v2 .hub-cta-inner {
    position: relative; max-width: 1320px; margin: 0 auto; border-radius: 26px; overflow: hidden;
    background: var(--hv-green-deep); padding: 76px 8%; text-align: center; box-shadow: var(--hv-shadow);
}
body.sd-v2 .hub-cta-inner .hub-card-eyebrow { color: var(--hv-gold) !important; }
body.sd-v2 .hub-cta-inner h2 { color: #FFFDF8 !important; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.2; margin: 0 0 14px; font-weight: 700; }
body.sd-v2 .hub-cta-inner h2 span { color: var(--hv-gold) !important; }
body.sd-v2 .hub-cta-inner p { color: rgba(246,241,231,0.88) !important; font-size: 1.04rem; line-height: 1.8; max-width: 640px; margin: 0 auto; }
body.sd-v2 .hub-cta-inner .btn-secondary { border-color: rgba(246,241,231,0.55) !important; color: #F6F1E7 !important; }
body.sd-v2 .hub-cta-inner .btn-secondary:hover { background: rgba(246,241,231,0.12) !important; border-color: var(--hv-gold) !important; color: #fff !important; }

/* ── 8 · Convert legacy dark "#05120b" bands to the premium alt-cream section ── */
body.sd-v2 .city-page-section[style*="05120b"] {
    background: var(--hv-cream2) !important;
    border-top: 1px solid var(--hv-line) !important; border-bottom: 1px solid var(--hv-line) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    body.sd-v2 .sd-hero { padding: 120px 5% 56px; }
    body.sd-v2 .sd-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    body.sd-v2 .sd-hero-media { max-width: 620px; margin: 0 auto; width: 100%; }
    body.sd-v2 .cities-hub-grid { grid-template-columns: repeat(2, 1fr) !important; }
    /* 2-col tablet: centre a lone final card (5 cards → 2+2+1) instead of
       leaving it stuck to the left with an empty cell beside it. */
    body.sd-v2 .cities-hub-grid > .hub-card:last-child:nth-child(odd) {
        grid-column: 1 / -1; justify-self: center; width: 100%; max-width: calc(50% - 12px);
    }
    body.sd-v2 .experience-grid { grid-template-columns: repeat(2, 1fr); }
    body.sd-v2 .why-visit-grid { grid-template-columns: repeat(2, 1fr) !important; }
    body.sd-v2 .city-about { grid-template-columns: 1fr; gap: 32px; }
    body.sd-v2 .city-about-image { max-width: 620px; margin: 0 auto; }
}

/* ── Phones (≤600px): compact, image-first hero, 2-col grids, less scrolling ── */
@media (max-width: 600px) {
    body.sd-v2 .hub-intro,
    body.sd-v2 .cities-hub-section,
    body.sd-v2 .why-visit,
    body.sd-v2 .city-page-section { padding: 50px 5%; }
    body.sd-v2 .section-header { margin-bottom: 26px; }

    /* Hero → image first, tighter rhythm (clears fixed navbar) */
    body.sd-v2 .sd-hero { padding: 24px 5% 32px; }
    body.sd-v2 .sd-hero-inner { gap: 22px; }
    body.sd-v2 .sd-hero-media { order: -1; }
    body.sd-v2 .sd-hero-media img { aspect-ratio: 16 / 11; border-radius: 18px; }
    body.sd-v2 .sd-hero-eyebrow { margin-bottom: 10px; font-size: 0.72rem; }
    body.sd-v2 .sd-hero h1 { margin-bottom: 12px; }
    body.sd-v2 .sd-hero-lead { font-size: 0.96rem; line-height: 1.7; margin-bottom: 20px; }
    body.sd-v2 .sd-hero-cta { gap: 10px; }
    body.sd-v2 .sd-hero-cta .btn-primary, body.sd-v2 .sd-hero-cta .btn-secondary { width: 100%; }

    /* Service cards → 2 per row, compact. grid-auto-rows:1fr forces every row to
       the tallest row's height so all cards are equal height (no masonry / no
       collapse to content height); align-items:stretch keeps them filling the row. */
    body.sd-v2 .cities-hub-grid {
        grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important;
        grid-auto-rows: 1fr !important; align-items: stretch !important;
    }
    /* ── CARD CONSISTENCY (mobile only) ──────────────────────────────────────
       style.css has a legacy `@media (max-width:640px)` block for .cities-hub-grid
       (lines ~4345-4422) that, with !important AND high specificity, gives these
       pages an INCONSISTENT phone layout: the first card is a dense "feature" card
       showing a description, while every other card hides its description and gets a
       LARGER title and a full-width button CTA — so card 1 looks nothing like cards
       2-5. To neutralise it we must out-specify those selectors, so every rule below
       mirrors the legacy `.cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid)`
       structure (plus body.sd-v2) and uses !important. Result: EVERY service card —
       first and rest — uses one uniform image-top layout: image · eyebrow · 2-line
       title · 3-line description · CTA, with matching region heights and CTAs on one
       baseline. Clamping is purely visual (full text stays in the DOM); only
       tablet/desktop remain untouched. */

    /* Fixed image height (not aspect-ratio) so a definite row height doesn't feed
       back into the card's width and overflow the 2-col track. Heights stay uniform. */
    body.sd-v2 .cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid) .hub-card .hub-card-img {
        aspect-ratio: auto !important; height: 104px !important;
    }
    /* Same shape for first and non-first cards (kill legacy aspect-ratio/min-height) */
    body.sd-v2 .cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid) .hub-card {
        aspect-ratio: auto !important; min-height: 0 !important;
    }
    /* Uniform content padding (legacy used different padding per card) */
    body.sd-v2 .cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid) .hub-card .hub-card-content {
        padding: 13px 13px 15px !important; gap: 6px !important;
    }
    /* Same eyebrow size on every card */
    body.sd-v2 .cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid) .hub-card .hub-card-eyebrow {
        font-size: 0.58rem !important; letter-spacing: 0.8px !important; margin-bottom: 0 !important;
    }
    /* Title: same size on every card, reserve 2 lines so descriptions all start level */
    body.sd-v2 .cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid) .hub-card h3 {
        font-size: 0.88rem !important; line-height: 1.3 !important; margin-bottom: 0 !important;
        min-height: 2.3rem;
        display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    }
    /* Description: shown on EVERY card (legacy hid it on non-first cards), clamped to
       a uniform 3 lines and a fixed min-height so every description block is the same
       height. flex:none removes the variable grow that created the random mid-card gaps. */
    body.sd-v2 .cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid) .hub-card .hub-card-desc {
        display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 3 !important;
        overflow: hidden !important; flex: none !important; margin: 0 !important;
        font-size: 0.7rem !important; line-height: 1.5 !important; min-height: 3.15rem !important;
    }
    /* Highlights stay hidden uniformly on phones (legacy already hides them on all cards) */
    body.sd-v2 .cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid) .hub-card .hub-card-highlights {
        display: none !important;
    }
    /* CTA: identical gold text-link on every card, pinned just below the description */
    body.sd-v2 .cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid) .hub-card .hub-card-cta {
        align-self: flex-start !important; width: auto !important; min-height: 0 !important;
        padding: 0 !important; margin-top: 6px !important; border: none !important;
        font-size: 0.72rem !important; justify-content: flex-start !important;
    }
    /* Accommodation cards use a .btn-secondary as their CTA → full-width, uniform */
    body.sd-v2 .cities-hub-grid:not(.tp-vehicle-grid):not(.tp-train-grid) .hub-card .hub-card-content .btn-secondary {
        align-self: stretch !important; width: 100% !important; margin-top: 8px !important;
        font-size: 0.72rem !important; padding: 9px 14px !important; min-height: 0 !important;
        text-align: center; justify-content: center;
    }

    /* "What we handle" → 2 per row, equal-height */
    body.sd-v2 .experience-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-rows: 1fr; align-items: stretch; }
    body.sd-v2 .experience-card { padding: 15px 13px; border-radius: 13px; }
    body.sd-v2 .experience-icon { font-size: 1.5rem; margin-bottom: 8px; }
    body.sd-v2 .experience-card h4 {
        font-size: 0.82rem; line-height: 1.3; margin-bottom: 5px; min-height: 2.13rem;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    }
    body.sd-v2 .experience-card p {
        font-size: 0.68rem; line-height: 1.5; min-height: 4.08rem;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
    }

    /* Why → 2 per row, equal-height */
    body.sd-v2 .why-visit-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; grid-auto-rows: 1fr !important; align-items: stretch !important; }
    body.sd-v2 .why-feature { padding: 15px 13px; border-radius: 13px; }
    body.sd-v2 .why-icon { font-size: 1.5rem; }
    body.sd-v2 .experience-icon svg, body.sd-v2 .why-icon svg { width: 28px; height: 28px; }
    body.sd-v2 .why-feature h4 {
        font-size: 0.82rem; line-height: 1.3; min-height: 2.13rem;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    }
    body.sd-v2 .why-feature p {
        font-size: 0.68rem; line-height: 1.5; min-height: 4.08rem;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
    }

    /* Let cards shrink to their grid track. Grid items default to min-width:auto,
       and the aspect-ratio card image forces a min-content width that otherwise
       overflows the 2-col track unevenly. min-width:0 keeps every card = track width. */
    body.sd-v2 .cities-hub-grid > .hub-card,
    body.sd-v2 .experience-grid > .experience-card,
    body.sd-v2 .why-visit-grid > .why-feature { min-width: 0; width: 100% !important; }

    /* Odd card counts: centre a lone final card (same width as the others)
       instead of leaving it stuck to one side with an empty column beside it */
    body.sd-v2 .cities-hub-grid > .hub-card:last-child:nth-child(odd),
    body.sd-v2 .experience-grid > :last-child:nth-child(odd),
    body.sd-v2 .why-visit-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1 !important; justify-self: center; width: 100%; max-width: calc(50% - 5px);
    }

    /* FAQ + CTA compact */
    body.sd-v2 .faq-item summary { padding: 14px 16px; font-size: 0.9rem; }
    body.sd-v2 .faq-body { padding: 0 16px 16px; font-size: 0.86rem; }
    body.sd-v2 .hub-cta { padding: 0 5% 56px; }
    body.sd-v2 .hub-cta-inner { padding: 50px 7%; border-radius: 20px; }
    body.sd-v2 .hub-cta-inner .btn-primary, body.sd-v2 .hub-cta-inner .btn-secondary { width: 100%; }
}

/* ===== Arabic / RTL polish for Visa · Accommodation · VIP (phones only).
   Mirrors the B2B RTL tuning. Gated ≤600 so desktop/tablet are untouched.
   The equal-height clamped card bodies are deliberately left as-is to
   preserve the uniform card heights established earlier. ===== */
@media (max-width: 600px) {
    body.sd-v2[dir="rtl"] .hub-card-eyebrow,
    body.sd-v2[dir="rtl"] .section-header > p:first-child,
    body.sd-v2[dir="rtl"] .hub-intro .label,
    body.sd-v2[dir="rtl"] .sd-hero-eyebrow { letter-spacing: 0; }
    body.sd-v2[dir="rtl"] .hub-card h3,
    body.sd-v2[dir="rtl"] .experience-card h4,
    body.sd-v2[dir="rtl"] .why-feature h4 { line-height: 1.5; }
}

/* ===== Desktop (>992px): centre an incomplete final row of service cards.
   These pages have 5 cards in a 3-column grid, which leaves 2 cards in the
   last row stuck to the left with an empty cell on the right. Switching to
   flex + justify-content:center on desktop keeps 3 equal cards per row and
   automatically centres the trailing card(s). Scoped to >992px so the tablet
   (2-col) and phone (2-col) grid layouts are completely untouched. ===== */
@media (min-width: 993px) {
    body.sd-v2 .cities-hub-grid {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 24px !important;
    }
    body.sd-v2 .cities-hub-grid > .hub-card {
        flex: 0 0 calc((100% - 48px) / 3); /* 3 per row, two 24px gaps */
        width: calc((100% - 48px) / 3) !important;
        max-width: calc((100% - 48px) / 3);
    }
}
