/**
 * Uganda Museums — Plan Your Visit Page Styles
 * File: assets/css/page-visit.css
 *
 * Design: KGM-Inspired Light Editorial
 * Colors from variables.css — DO NOT hardcode values here.
 * Enqueue: inc/enqueue.php → is_page_template('templates/page-plan-your-visit.php')
 */

/* ═══════════════════════════════════════════ RESET / HELPERS ══ */
.um-visit-page *,
.um-visit-page *::before,
.um-visit-page *::after { box-sizing: border-box; }

.um-visit-page { font-family: var(--font-body); color: var(--text-dark, #1A1A18); }

.um-visit-page .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Shared buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
    background: var(--terracotta, #A0522D);
    color: #fff;
    border: 2px solid var(--terracotta, #A0522D);
}
.btn--primary:hover { background: #8B4523; border-color: #8B4523; }
.btn--outline {
    background: transparent;
    color: var(--terracotta, #A0522D);
    border: 2px solid var(--terracotta, #A0522D);
}
.btn--outline:hover { background: var(--terracotta, #A0522D); color: #fff; }
.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.55);
}
.btn--ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn--white { background: #fff; color: var(--forest, #2C4A3E); border: 2px solid #fff; }
.btn--white:hover { background: transparent; color: #fff; }
.btn--white-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn--white-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* Section header */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header--light .section-header__eyebrow { color: rgba(255,255,255,0.65); }
.section-header--light .section-header__title  { color: #fff; }
.section-header--light .section-header__lead   { color: rgba(255,255,255,0.82); }
.section-header__eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terracotta, #A0522D);
    margin: 0 0 10px;
}
.section-header__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.18;
    color: #1A1A18;
    margin: 0 0 18px;
}
.section-header__title em {
    font-style: italic;
    color: var(--terracotta, #A0522D);
}
.section-header__lead {
    font-size: 1.05rem;
    line-height: 1.68;
    color: #555;
    max-width: 680px;
    margin: 0 auto 26px;
}

/* Visit sections spacing */
.visit-section { padding: 88px 0; }

/* ═══════════════════════════════════════════ NOTICE BANNER ══ */
.visit-notice {
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    color: #78350f;
    padding: 14px 24px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.visit-notice__icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════ HERO ══ */
.visit-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}
.visit-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1A1A18;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.visit-hero__bg--placeholder {
    background: linear-gradient(135deg, #1A1A18 0%, #2C4A3E 50%, #A0522D 100%);
}
.visit-hero:hover .visit-hero__bg { transform: scale(1); }
.visit-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.28) 60%, rgba(0,0,0,0.12) 100%);
}
.visit-hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.visit-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin: 0 0 12px;
}
.visit-hero__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 20px;
    max-width: 700px;
}
.visit-hero__subtitle {
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 0 36px;
}

/* ═══════════════════════════════════════════ STICKY TAB NAV ══ */
.visit-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--forest, #2C4A3E);
    border-bottom: 3px solid var(--terracotta, #A0522D);
    box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}
.visit-tabs__inner {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}
.visit-tabs__inner::-webkit-scrollbar { display: none; }
.visit-tabs__link {
    display: flex;
    align-items: center;
    padding: 18px 26px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.visit-tabs__link:hover,
.visit-tabs__link.is-active {
    color: #fff;
    border-bottom-color: var(--terracotta, #A0522D);
    background: rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════ BEFORE YOU COME ══ */
.visit-before { background: var(--bg-section, #F5F3EF); }

.before-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.before-card {
    background: var(--bg-white, #fff);
    border-radius: 4px;
    padding: 36px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 18px rgba(0,0,0,0.05);
    border-top: 3px solid var(--terracotta, #A0522D);
    transition: box-shadow 0.22s;
}
.before-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.before-card--full { grid-column: 1 / -1; }
.before-card__icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.before-card__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.38rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1A1A18;
}

/* Hours */
.hours-list { display: flex; flex-direction: column; gap: 10px; }
.hours-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ede8;
    align-items: start;
}
.hours-row:last-child { border-bottom: none; }
.hours-row__day { font-weight: 600; font-size: 0.93rem; }
.hours-row__time { font-size: 0.93rem; font-weight: 500; }
.hours-row__time.is-closed { color: var(--terracotta, #A0522D); }
.hours-row__note { font-size: 0.78rem; color: #888; grid-column: 1 / -1; margin-top: -4px; }

/* Admission */
.admission-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.admission-table tr { border-bottom: 1px solid #f0ede8; }
.admission-table tr:last-child { border-bottom: none; }
.admission-table td { padding: 11px 0; font-size: 0.93rem; }
.admission-table__price { text-align: right; font-weight: 700; color: var(--forest, #2C4A3E); }
.admission-table__price.is-free { color: #16a34a; }
.admission-note { font-size: 0.8rem; color: #888; font-style: italic; margin: 4px 0 0; }

/* Know before */
.know-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.know-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.93rem;
    line-height: 1.5;
    padding: 10px 14px;
    background: var(--bg-section, #F5F3EF);
    border-radius: 3px;
}
.know-list__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ═══════════════════════════════════════════ THINGS TO SEE ══ */
.visit-see { background: var(--bg-white, #fff); }

.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.exhibit-card {
    background: var(--bg-section, #F5F3EF);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.22s, transform 0.22s;
}
.exhibit-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.exhibit-card__img-wrap { aspect-ratio: 3/2; overflow: hidden; }
.exhibit-card__img-wrap--placeholder {
    background: linear-gradient(135deg, #e8e3dc 0%, #d4c9b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.exhibit-card__img-wrap--placeholder::after {
    content: '🏛';
    font-size: 3rem;
    opacity: 0.35;
}
.exhibit-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.exhibit-card:hover .exhibit-card__img { transform: scale(1.05); }
.exhibit-card__body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; }
.exhibit-card__badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta, #A0522D);
    margin-bottom: 8px;
    display: block;
}
.exhibit-card__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.28;
    margin: 0 0 12px;
}
.exhibit-card__desc { font-size: 0.88rem; line-height: 1.62; color: #555; flex: 1; }
.exhibit-card__link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--terracotta, #A0522D);
    text-decoration: none;
    letter-spacing: 0.04em;
}
.exhibit-card__link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════ TOURS ══ */
.visit-tours {
    background: var(--forest, #2C4A3E);
    padding: 88px 0;
}
.tours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.tour-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 4px;
    padding: 36px;
    color: #fff;
    transition: background 0.22s, border-color 0.22s;
    display: flex;
    flex-direction: column;
}
.tour-card:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.tour-card__icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.tour-card__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.tour-card__desc { font-size: 0.9rem; line-height: 1.65; color: rgba(255,255,255,0.78); flex: 1; margin-bottom: 24px; }

/* ═══════════════════════════════════════════ FACILITIES ══ */
.visit-facilities { background: var(--bg-section, #F5F3EF); }

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.facility-item {
    background: var(--bg-white, #fff);
    border-radius: 4px;
    padding: 28px;
    border-left: 3px solid var(--forest, #2C4A3E);
    transition: box-shadow 0.22s;
}
.facility-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.facility-item__icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.facility-item__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.facility-item__desc { font-size: 0.88rem; line-height: 1.58; color: #555; margin: 0; }

/* ═══════════════════════════════════════════ GETTING HERE ══ */
.visit-getting-here { background: var(--bg-white, #fff); }

.getting-here-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 52px;
    align-items: start;
}
.getting-here-info { display: flex; flex-direction: column; gap: 28px; }

.contact-block { border-bottom: 1px solid #f0ede8; padding-bottom: 20px; }
.contact-block:last-child { border-bottom: none; }
.contact-block__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terracotta, #A0522D);
    margin: 0 0 6px;
}
.contact-block p,
.contact-block a { font-size: 0.95rem; line-height: 1.55; margin: 0; color: #1A1A18; text-decoration: none; }
.contact-block a:hover { color: var(--terracotta, #A0522D); text-decoration: underline; }

.transport-list { display: flex; flex-direction: column; gap: 14px; }
.transport-item { display: flex; flex-direction: column; gap: 4px; }
.transport-item__mode { font-size: 0.88rem; font-weight: 700; color: var(--forest, #2C4A3E); }
.transport-item__info { font-size: 0.88rem; line-height: 1.5; color: #555; }

.getting-here-map { border-radius: 4px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.getting-here-map iframe { display: block; }

/* ═══════════════════════════════════════════ CTA BAND ══ */
.visit-cta-band {
    background: var(--terracotta, #A0522D);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.visit-cta-band h2 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}
.visit-cta-band p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.65;
}
.visit-cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════ RESPONSIVE ══ */
@media (max-width: 1024px) {
    .exhibitions-grid { grid-template-columns: repeat(2, 1fr); }
    .facilities-grid  { grid-template-columns: repeat(2, 1fr); }
    .getting-here-layout { grid-template-columns: 1fr; }
    .getting-here-map { order: -1; }
}

@media (max-width: 768px) {
    .visit-section { padding: 60px 0; }
    .before-grid { grid-template-columns: 1fr; }
    .before-card--full { grid-column: 1; }
    .exhibitions-grid { grid-template-columns: 1fr; }
    .tours-grid { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: 1fr; }
    .visit-hero { min-height: 440px; padding-bottom: 56px; }
    .visit-hero__title { font-size: 2.4rem; }
    .visit-tabs__link { padding: 16px 18px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .visit-hero__title { font-size: 2rem; }
    .before-card { padding: 24px 20px; }
    .tour-card { padding: 24px 20px; }
    .know-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════ ANIMATIONS ══ */
@media (prefers-reduced-motion: no-preference) {
    .visit-section .before-card,
    .exhibit-card,
    .tour-card,
    .facility-item {
        opacity: 0;
        transform: translateY(20px);
        animation: um-fadein 0.55s ease forwards;
    }
    .before-grid .before-card:nth-child(1) { animation-delay: 0.05s; }
    .before-grid .before-card:nth-child(2) { animation-delay: 0.15s; }
    .before-grid .before-card:nth-child(3) { animation-delay: 0.25s; }

    @keyframes um-fadein {
        to { opacity: 1; transform: none; }
    }
}
html { scroll-behavior: smooth; }
