/* Halal Travel section styles.
   Shared by the hub and every generated country page, so the per-page HTML
   only has to carry an --accent colour. Everything else is inherited. */

:root {
    --halal-ink: #1e293b;
    --halal-muted: #64748b;
    --halal-line: #e2e8f0;
}

/* ---------- Hero ---------- */
.halal-hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: 120px 0 60px;
    color: #fff;
}
.halal-hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
    margin-bottom: 16px;
}
.halal-hero .eyebrow a { color: #fff; text-decoration: none; }
.halal-hero .eyebrow a:hover { text-decoration: underline; }
.halal-hero h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 14px; }
.halal-hero h1 .flag { margin-right: 10px; }
.halal-hero p.lede { font-size: 1.1rem; opacity: 0.92; max-width: 760px; }
.halal-hero .last-updated { font-size: 13px; opacity: 0.72; margin-top: 10px; }

.hero-photo {
    margin-top: 30px; border-radius: 12px; overflow: hidden;
    max-width: 840px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.hero-photo img { width: 100%; height: 300px; object-fit: cover; display: block; }

/* ---------- Tabs ---------- */
.halal-tabs {
    display: flex; gap: 0; background: #1e293b;
    border-radius: 12px 12px 0 0; overflow-x: auto;
}
.halal-tab {
    padding: 14px 16px; cursor: pointer; white-space: nowrap;
    color: #94a3b8; font-weight: 600; border: none; background: none;
    font-size: 14px; transition: all 0.2s;
}
.halal-tab:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.05); }
.halal-tab.active {
    color: #fff; border-bottom: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.08);
}
.halal-tabs::-webkit-scrollbar { height: 4px; }
.halal-tabs::-webkit-scrollbar-track { background: #1e293b; }
.halal-tabs::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }

.tab-content { display: none; padding: 40px 0; }
.tab-content.active { display: block; }

/* Without JS every panel stays visible, so the page is still complete for
   crawlers and for anyone who lands with scripting disabled. */
.no-js .tab-content { display: block; }
.no-js .halal-tabs { display: none; }

/* ---------- Section furniture ---------- */
.section-title {
    font-size: 1.6rem; color: var(--halal-ink);
    margin: 0 0 6px; line-height: 1.3;
}
.section-subtitle { color: var(--halal-muted); margin: 0 0 24px; font-size: 15px; }
.subsection-title {
    font-size: 1.15rem; color: var(--halal-ink);
    margin: 36px 0 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--halal-line);
}

.info-box {
    background: #f8fafc; border-left: 4px solid var(--accent);
    padding: 16px 18px; border-radius: 0 8px 8px 0;
    margin: 20px 0; font-size: 14px; line-height: 1.7; color: #334155;
}
.info-box i { color: var(--accent); margin-right: 6px; }
.info-box.warn { border-left-color: #d97706; background: #fffbeb; }
.info-box.warn i { color: #d97706; }

/* ---------- Quick facts ---------- */
/* Each destination lists exactly six quick facts, so the column count is set
   explicitly rather than left to auto-fit - two tidy rows of three beats a row
   of four and an orphaned pair. */
.fact-grid {
    display: grid; gap: 16px; margin: 24px 0;
    grid-template-columns: 1fr;
}
@media (min-width: 560px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .fact-grid { grid-template-columns: repeat(3, 1fr); } }

/* The hub has four headline numbers and wants them on one line. */
.fact-grid.hub-stats { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.fact-card {
    background: #fff; border: 1px solid var(--halal-line); border-radius: 12px;
    padding: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.fact-card .label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--halal-muted); font-weight: 700;
}
.fact-card .value {
    font-size: 1.25rem; font-weight: 700; line-height: 1.3;
    color: var(--accent); margin: 6px 0 4px;
}
.fact-card .desc { font-size: 13px; color: var(--halal-muted); line-height: 1.5; }

/* ---------- Reason cards ---------- */
.reason-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px; margin: 24px 0;
}
.reason-card {
    background: #fff; border: 1px solid var(--halal-line);
    border-radius: 12px; padding: 20px;
}
.reason-card h3 {
    font-size: 15px; color: var(--halal-ink); margin: 0 0 8px;
    display: flex; align-items: center; gap: 9px;
}
.reason-card h3 i { color: var(--accent); }
.reason-card p { font-size: 14px; color: #475569; line-height: 1.65; margin: 0; }

/* ---------- Itinerary ---------- */
.itinerary { margin: 24px 0; }
.day {
    display: grid; grid-template-columns: 82px 1fr; gap: 20px;
    padding: 24px 0; border-bottom: 1px solid var(--halal-line);
}
.day:last-child { border-bottom: none; }
.day-badge {
    background: var(--accent); color: #fff; border-radius: 12px;
    text-align: center; padding: 12px 8px; align-self: start;
}
.day-badge .n { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.day-badge .l {
    display: block; font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.8px; opacity: 0.85; margin-top: 4px;
}
.day-body h3 { font-size: 1.05rem; color: var(--halal-ink); margin: 0 0 4px; }
.day-body .where { font-size: 13px; color: var(--halal-muted); margin: 0 0 14px; }
.slot { display: flex; gap: 12px; margin-bottom: 10px; font-size: 14px; line-height: 1.65; }
.slot .slot-label {
    flex: 0 0 76px; font-weight: 700; color: var(--accent);
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; padding-top: 2px;
}
.slot .slot-text { color: #334155; }
.day-note {
    margin-top: 12px; background: #f1f5f9; border-radius: 8px;
    padding: 10px 14px; font-size: 13px; color: #475569; line-height: 1.6;
}
.day-note i { color: var(--accent); margin-right: 6px; }

/* ---------- Place / restaurant lists ---------- */
.place-list { display: grid; gap: 14px; margin: 20px 0; }
.place {
    background: #fff; border: 1px solid var(--halal-line);
    border-radius: 12px; padding: 18px;
}
.place-head {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 10px; margin-bottom: 8px;
}
.place-head .name { font-weight: 700; color: var(--halal-ink); font-size: 15px; }
.place-head .city { font-size: 13px; color: var(--halal-muted); }
.place-head .tag {
    margin-left: auto; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    background: color-mix(in srgb, var(--accent) 12%, white);
    color: var(--accent); padding: 4px 10px; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 25%, white);
}
.place p { margin: 0; font-size: 14px; color: #475569; line-height: 1.65; }

/* ---------- Dish chips ---------- */
.dish-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px; margin: 20px 0;
}
.dish {
    border: 1px solid var(--halal-line); border-radius: 12px;
    padding: 16px; background: #fff;
}
.dish .dish-name { font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 5px; }
.dish p { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.6; }

/* ---------- Tables ---------- */
.data-table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.data-table th {
    background: #1e293b; color: #fff; padding: 14px 16px; text-align: left;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--halal-line); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: #f8fafc; }
.data-table .total td { font-weight: 700; background: var(--accent); color: #fff; }
.table-scroll { overflow-x: auto; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.check-list li {
    display: flex; gap: 11px; font-size: 14px;
    color: #334155; line-height: 1.65;
}
.check-list li i { color: var(--accent); margin-top: 4px; flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { margin: 20px 0; }
.faq details {
    border: 1px solid var(--halal-line); border-radius: 12px;
    padding: 0; margin-bottom: 12px; background: #fff;
}
.faq summary {
    cursor: pointer; padding: 16px 18px; font-weight: 600;
    color: var(--halal-ink); font-size: 15px; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 12px; color: var(--accent); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer {
    padding: 0 18px 18px; font-size: 14px; color: #475569; line-height: 1.75;
}

/* ---------- Cross-links ---------- */
.crosslink {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    background: #f8fafc; border: 1px solid var(--halal-line);
    border-radius: 12px; padding: 18px 20px; margin: 30px 0;
    font-size: 14px; color: #475569;
}
.crosslink .cl-icon { font-size: 1.4rem; color: var(--accent); }
.crosslink a { color: var(--accent); font-weight: 600; }

/* ---------- Hub ---------- */
.tier { margin: 48px 0 0; }
.tier-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.tier-head h2 { font-size: 1.45rem; color: var(--halal-ink); margin: 0; }
.tier-head .count {
    font-size: 12px; font-weight: 700; color: var(--halal-muted);
    background: #f1f5f9; padding: 4px 10px; border-radius: 999px;
}
.tier-head p { width: 100%; margin: 6px 0 0; color: var(--halal-muted); font-size: 15px; }

.country-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px; margin-top: 22px;
}
.country-card {
    display: block; text-decoration: none; background: #fff;
    border: 1px solid var(--halal-line); border-radius: 14px;
    padding: 20px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    border-top: 4px solid var(--card-accent, #94a3b8);
}
.country-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    border-color: var(--card-accent, #94a3b8);
}
.country-card .cc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.country-card .cc-flag { font-size: 1.7rem; line-height: 1; }
.country-card .cc-name { font-weight: 700; color: var(--halal-ink); font-size: 16px; }
.country-card .cc-blurb { font-size: 13.5px; color: var(--halal-muted); line-height: 1.6; margin: 0 0 12px; }
.country-card .cc-meta {
    display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; font-weight: 600;
}
.country-card .cc-meta span {
    background: #f1f5f9; color: #475569; padding: 3px 9px; border-radius: 999px;
}

/* ---------- Footer ---------- */
.halal-footer { background: #1e293b; color: #94a3b8; padding: 40px 0; margin-top: 60px; }
.halal-footer .container { text-align: center; }
.halal-footer a { color: #cbd5e1; text-decoration: none; }
.halal-footer a:hover { text-decoration: underline; }
.halal-footer .links { margin-top: 10px; font-size: 13px; line-height: 2; }
.halal-footer .disclaimer {
    margin-top: 18px; font-size: 12px; color: #64748b;
    max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .halal-hero { padding: 100px 0 40px; }
    .halal-hero h1 { font-size: 1.8rem; }
    .halal-hero p.lede { font-size: 1rem; }
    .hero-photo img { height: 200px; }
    .halal-tab { padding: 12px 14px; font-size: 12.5px; }
    .day { grid-template-columns: 62px 1fr; gap: 14px; }
    .day-badge .n { font-size: 1.3rem; }
    .slot { flex-direction: column; gap: 2px; }
    .slot .slot-label { flex: none; }
    .place-head .tag { margin-left: 0; }
}
