/* ==========================================================================
   Talk in Arabia — Restaurant-list article styles
   All selectors are scoped under .ra so they cannot leak into the rest of
   the theme, and so theme styles cannot leak in here.
   ========================================================================== */

.ra, .ra * { box-sizing: border-box; }

.ra {
    --ra-text: #111111;
    --ra-text-2: #4b5563;
    --ra-muted: #6b7280;
    --ra-bg: #fafafa;
    --ra-card: #ffffff;
    --ra-line: #e7e7e7;
    --ra-pink: #ED1E79;
    --ra-gold: #c9a227;
    --ra-gold-2: #e5c07b;
    --ra-red: #b91c1c;
    --ra-radius: 16px;
    --ra-shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --ra-shadow-md: 0 12px 32px rgba(15,23,42,.08);
    --ra-shadow-hov: 0 24px 60px rgba(201,162,39,.15);

    background: var(--ra-bg);
    color: var(--ra-text);
    font-family: 'Inter','Poppins',-apple-system,BlinkMacSystemFont,sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.ra a { color: inherit; }
.ra img { max-width: 100%; display: block; }

/* Container — used everywhere */
.ra .ra-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.ra .ra-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.ra .ra-hero .ra-wrap {
    width: 100%;
    padding-top: 80px;
    padding-bottom: 56px;
    position: relative;
    z-index: 1;
}
.ra .ra-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ra-gold-2);
    margin-bottom: 24px;
}
.ra .ra-eyebrow__line {
    width: 32px; height: 1px;
    background: var(--ra-gold-2);
    display: inline-block;
}
.ra .ra-h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    margin: 0 0 20px;
    max-width: 900px;
    letter-spacing: -.5px;
    color: #fff;
}
.ra .ra-lead-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    color: rgba(255,255,255,.85);
    max-width: 720px;
    margin: 0 0 32px;
    font-weight: 400;
}
.ra .ra-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ra .ra-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ra-pink), var(--ra-gold));
    color: #fff; font-weight: 700; font-family: 'Playfair Display', serif;
}
.ra .ra-byline__author { font-weight: 600; font-size: 14px; }
.ra .ra-byline__date {
    font-size: 12px; color: rgba(255,255,255,.65);
    text-transform: uppercase; letter-spacing: 1px;
}
.ra .ra-byline__share { display: flex; gap: 8px; margin-left: auto; }
.ra .ra-byline__share a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    transition: all .25s;
}
.ra .ra-byline__share a:hover {
    background: var(--ra-gold);
    color: var(--ra-text);
    transform: translateY(-2px);
}

/* ==========================================================================
   2. QUICK PICKS
   ========================================================================== */
.ra .ra-quickpicks {
    background: linear-gradient(180deg, #ffffff, #fafafa);
    padding: 56px 0;
    border-bottom: 1px solid var(--ra-line);
}
.ra .ra-section-h {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 28px;
    color: var(--ra-text);
}
.ra .ra-section-h em {
    font-style: italic;
    background: linear-gradient(135deg, var(--ra-gold), var(--ra-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.ra .ra-qp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ra .ra-qp {
    background: var(--ra-card);
    border-radius: var(--ra-radius);
    padding: 24px;
    border: 1px solid var(--ra-line);
    transition: all .3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.ra .ra-qp:hover {
    border-color: var(--ra-gold);
    transform: translateY(-3px);
    box-shadow: var(--ra-shadow-hov);
}
.ra .ra-qp__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ra-gold);
    margin-bottom: 8px;
    display: block;
}
.ra .ra-qp__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--ra-text);
    margin: 0 0 4px;
    line-height: 1.2;
}
.ra .ra-qp__sub { font-size: 13px; color: var(--ra-muted); margin: 0; }

/* ==========================================================================
   3. ARTICLE BODY (sticky TOC + main)
   ========================================================================== */
.ra .ra-body { padding: 64px 0 80px; }
.ra .ra-body__grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: flex-start;
}

/* Sticky TOC */
.ra .ra-toc {
    position: sticky;
    top: 32px;
    align-self: flex-start;
    min-width: 0;          /* prevents grid blow-out */
}
.ra .ra-toc__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ra-muted);
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ra-line);
}
.ra .ra-toc ul { list-style: none; padding: 0; margin: 0; }
.ra .ra-toc li { margin: 0; }
.ra .ra-toc a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--ra-muted);
    font-size: 14px;
    font-weight: 500;
    border-left: 2px solid transparent;
    margin-left: -16px;
    transition: all .2s;
}
.ra .ra-toc a:hover { color: var(--ra-text); }

/* Main content column */
.ra .ra-main {
    min-width: 0;          /* prevents grid blow-out */
}
.ra .ra-main p {
    color: var(--ra-text-2);
    margin: 0 0 1.4em;
    line-height: 1.75;
}
.ra .ra-lead {
    font-family: 'Playfair Display', serif;
    font-size: 22px !important;
    line-height: 1.55 !important;
    color: var(--ra-text) !important;
    font-weight: 600;
}

/* Section heading — KEEP NUMBER + TITLE TIGHT TOGETHER */
.ra .ra-section { padding-top: 48px; }
.ra .ra-section-head {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;   /* explicit, don't let theme override */
    gap: 18px;
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--ra-text);
    text-align: left;
}
.ra .ra-section-head > div {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.ra .ra-section-num {
    flex: 0 0 auto;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--ra-gold);
    line-height: 1;
    margin: 0;
}
.ra .ra-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--ra-text);
    line-height: 1.1;
}
.ra .ra-section-sub {
    font-size: 13px;
    color: var(--ra-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
}

/* ==========================================================================
   4. RESTAURANT CARD
   ========================================================================== */
.ra .ra-card {
    background: var(--ra-card);
    border-radius: var(--ra-radius);
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--ra-line);
    box-shadow: var(--ra-shadow-sm);
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
    display: grid;
    grid-template-columns: 320px 1fr;
}
.ra .ra-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ra-shadow-hov);
    border-color: var(--ra-gold);
}

/* Card image — designed empty state if no <img> uploaded */
.ra .ra-card__media {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(201,162,39,.18), transparent 55%),
        linear-gradient(135deg, #1a0a1a, #0a0a0a 70%);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ra .ra-card__media::after {
    /* Decorative letterform when no image is loaded */
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 80%, rgba(185,28,28,.15), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.ra .ra-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    position: relative; z-index: 1;
    transition: transform .6s ease;
}
.ra .ra-card:hover .ra-card__media img { transform: scale(1.05); }

.ra .ra-card__rank {
    position: absolute;
    top: 14px; left: 14px;
    width: 44px; height: 44px;
    background: var(--ra-card);
    color: var(--ra-text);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 18px;
    box-shadow: var(--ra-shadow-md);
    z-index: 2;
}
.ra .ra-card__cat {
    position: absolute;
    bottom: 14px; left: 14px;
    background: rgba(0,0,0,.7);
    color: var(--ra-gold-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 2;
}

.ra .ra-card__body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ra .ra-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 6px;
}
.ra .ra-card__name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: var(--ra-text);
}
.ra .ra-card__price {
    background: linear-gradient(135deg, var(--ra-gold), var(--ra-gold-2));
    color: var(--ra-text);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(201,162,39,.3);
    align-self: flex-start;
}
.ra .ra-card__loc {
    font-size: 13px;
    color: var(--ra-muted);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.ra .ra-card__loc::before { content: '📍'; font-size: 14px; }

.ra .ra-card__desc {
    font-size: 15px;
    color: var(--ra-text-2);
    line-height: 1.65;
    margin: 0 0 14px;
}
.ra .ra-card__sig {
    font-size: 13px;
    color: var(--ra-text);
    background: linear-gradient(135deg, rgba(201,162,39,.06), rgba(185,28,28,.04));
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 3px solid var(--ra-gold);
    margin-bottom: 16px;
    line-height: 1.55;
}
.ra .ra-card__sig strong {
    color: var(--ra-red);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
}
.ra .ra-card__tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 18px;
}
.ra .ra-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--ra-text);
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* CTA row — hide if it has no anchors (template only outputs it when at least one URL set) */
.ra .ra-card__cta {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}
.ra .ra-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    transition: all .25s;
    border: 1px solid transparent;
    cursor: pointer;
}
.ra .ra-btn--primary { background: var(--ra-text); color: #fff; }
.ra .ra-btn--primary:hover {
    background: var(--ra-red);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(185,28,28,.3);
}
.ra .ra-btn--ghost {
    background: transparent;
    color: var(--ra-text);
    border-color: var(--ra-line);
}
.ra .ra-btn--ghost:hover {
    border-color: var(--ra-text);
    background: var(--ra-text);
    color: #fff;
}

/* ==========================================================================
   5. COMPARISON
   ========================================================================== */
.ra .ra-compare {
    background: linear-gradient(135deg, #fafafa, #fff);
    border-radius: var(--ra-radius);
    padding: 32px;
    margin: 48px 0;
    border: 1px solid var(--ra-line);
}
.ra .ra-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ra .ra-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ra-muted);
    border-bottom: 2px solid var(--ra-text);
    background: rgba(201,162,39,.04);
}
.ra .ra-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ra-line);
    color: var(--ra-text-2);
}
.ra .ra-table td:first-child { font-weight: 700; color: var(--ra-text); }
.ra .ra-table tr:hover td { background: rgba(201,162,39,.04); }

/* ==========================================================================
   6. FAQ
   ========================================================================== */
.ra .ra-faq { padding: 32px 0; }
.ra .ra-faq details {
    background: var(--ra-card);
    border: 1px solid var(--ra-line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all .25s;
}
.ra .ra-faq details[open] {
    border-color: var(--ra-gold);
    box-shadow: var(--ra-shadow-sm);
}
.ra .ra-faq summary {
    cursor: pointer;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 16px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ra-text);
}
.ra .ra-faq summary::-webkit-details-marker { display: none; }
.ra .ra-faq summary::after {
    content: '+';
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--ra-gold);
    transition: transform .25s;
}
.ra .ra-faq details[open] summary::after { transform: rotate(45deg); }
.ra .ra-faq p {
    padding: 0 24px 22px;
    color: var(--ra-text-2);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   7. FINAL CTA
   ========================================================================== */
.ra .ra-finalcta {
    text-align: center;
    padding: 64px 24px;
    background: linear-gradient(135deg, #fafafa, #fff);
    border-radius: var(--ra-radius);
    margin-top: 48px;
}
.ra .ra-finalcta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
}
.ra .ra-finalcta p {
    color: var(--ra-text-2);
    max-width: 520px;
    margin: 0 auto 28px;
}
.ra .ra-finalcta__btns {
    display: flex; gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .ra .ra-body__grid { grid-template-columns: 1fr; gap: 32px; }
    .ra .ra-toc {
        position: static;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--ra-line);
    }
    .ra .ra-toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
    .ra .ra-toc a {
        padding: 6px 12px;
        border: 1px solid var(--ra-line);
        border-radius: 999px;
        margin-left: 0;
    }
    .ra .ra-qp-grid { grid-template-columns: repeat(2, 1fr); }
    .ra .ra-card { grid-template-columns: 240px 1fr; }
}
@media (max-width: 700px) {
    .ra .ra-hero { min-height: 460px; }
    .ra .ra-hero .ra-wrap { padding-top: 60px; padding-bottom: 40px; }
    .ra .ra-byline__share { width: 100%; margin-left: 0; }
    .ra .ra-qp-grid { grid-template-columns: 1fr; }
    .ra .ra-card { grid-template-columns: 1fr; }
    .ra .ra-card__media { min-height: 220px; aspect-ratio: 16/10; }
    .ra .ra-section-head { flex-wrap: wrap; gap: 12px; }
    .ra .ra-card__cta { flex-direction: column; }
    .ra .ra-btn { justify-content: center; width: 100%; }
}

/* ==========================================================================
   9. EDITORIAL BODY (non-restaurant articles)
   Used when single-tia_article.php renders the_content() inside the .ra
   shell. Single-column, full-width layout — no sidebar TOC.
   ========================================================================== */
.ra .ra-body--full {
    padding: 0;
    background: var(--ra-bg);
}
.ra .ra-body__solo {
    /* Full-bleed: no max-width, no inner padding — so Elementor templates
     * placed in the_content() render edge-to-edge */
    display: block !important;
    grid-template-columns: none !important;
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    padding: 0;
}
.ra .ra-main--full {
    width: 100%;
    min-width: 0;
}
.ra .ra--editorial .ra-prose {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
/* Related + final CTA still constrain themselves to a readable width */
.ra--editorial .ra-related,
.ra--editorial .ra-finalcta {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
@media (max-width: 700px) {
    .ra--editorial .ra-related,
    .ra--editorial .ra-finalcta { padding-left: 16px; padding-right: 16px; }
}

.ra .ra-prose {
    font-size: 18px;
    line-height: 1.8;
    color: var(--ra-text);
}
.ra .ra-prose > * + * { margin-top: 1.1em; }
.ra .ra-prose p { margin: 0; }
.ra .ra-prose h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: .4em;
    color: var(--ra-text);
}
.ra .ra-prose h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.25;
    margin-top: 1.6em;
    margin-bottom: .3em;
    color: var(--ra-text);
}
.ra .ra-prose h4 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 1.4em;
}
.ra .ra-prose ul,
.ra .ra-prose ol {
    padding-left: 1.4em;
}
.ra .ra-prose li + li { margin-top: .35em; }
.ra .ra-prose a {
    color: var(--ra-pink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ra .ra-prose a:hover { color: var(--ra-gold); }
.ra .ra-prose blockquote {
    border-left: 4px solid var(--ra-gold);
    padding: 8px 24px;
    margin: 1.6em 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: var(--ra-text-2);
}
.ra .ra-prose img {
    border-radius: var(--ra-radius);
    margin: 1.4em 0;
    box-shadow: var(--ra-shadow-md);
}
.ra .ra-prose figure { margin: 1.4em 0; }
.ra .ra-prose figcaption {
    font-size: 14px;
    color: var(--ra-muted);
    text-align: center;
    margin-top: 8px;
}
.ra .ra-prose code {
    background: #f3f4f6;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: .9em;
}
.ra .ra-prose hr {
    border: 0;
    border-top: 1px solid var(--ra-line);
    margin: 2em 0;
}

/* Related articles grid (editorial branch) */
.ra .ra-related .tia-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}
@media (max-width: 900px) {
    .ra .ra-related .tia-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ra .ra-related .tia-related-grid { grid-template-columns: 1fr; }
}

/* Gallery in editorial branch */
.ra .tia-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.ra .tia-gallery-grid__item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--ra-radius);
    box-shadow: var(--ra-shadow-sm);
}
@media (max-width: 700px) {
    .ra .tia-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
