/* ============================================
   HERITAGE TOURISM — INFORMATION PAGES CSS
   
   Pages:
   - Tourist Entry Fee
   - Important Numbers
   - Bus Park
   
   Design System:
   - Colors: Consistent with base.css CSS variables
   - Typography: Inter + Playfair Display
   - Spacing: 8px baseline (8, 12, 14, 18, 22, 26, 28px)
   - Shadows: --shadow-sm, --shadow-md, --shadow-lg
   - Border Radius: 8px (inputs) → 16px (cards)
   - Theme Support: Light/Dark with CSS variables
   
   ============================================ */

/* ============================================
   HERO SECTION — Page Header Banner
   ============================================ */
.info-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 60%, #0f3460 100%);
    padding: 80px 0 50px;
    position: relative;
    overflow: hidden;
    margin-top: 64px; /* Account for fixed navbar */
}

.info-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 60, 50, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.info-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.info-hero .subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-top: 14px;
    position: relative;
    z-index: 2;
}

/* ============================================
   BODY SECTION — Main Content Container
   ============================================ */
.info-body {
    background: var(--bg-secondary);
    min-height: 60vh;
    padding: 50px 0 70px;
}

/* ============================================
   FEE TABLE PAGE STYLES
   ============================================ */
.fee-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.fee-card:hover {
    box-shadow: var(--shadow-md);
}

.fee-card-header {
    background: var(--primary-darker);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.fee-card-header h2 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.updated-badge {
    background: rgba(168, 60, 50, 0.15);
    border: 1px solid rgba(168, 60, 50, 0.3);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table thead tr {
    background: var(--bg-tertiary);
}

.fee-table thead th {
    padding: 13px 20px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.fee-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.fee-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.fee-table tbody td {
    padding: 18px 20px;
    font-size: 0.93rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.fee-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.fee-free {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 14px;
    border-radius: 20px;
}

.fee-amount {
    font-weight: 600;
    color: var(--primary-color);
}

.note-box {
    background: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    padding: 22px 26px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.note-box:hover {
    box-shadow: var(--shadow-md);
}

.note-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.note-box p {
    color: var(--text-secondary);
    font-size: 0.91rem;
    line-height: 1.78;
    margin: 0;
}

/* ============================================
   IMPORTANT NUMBERS PAGE STYLES
   ============================================ */
.category-block {
    margin-bottom: 36px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.category-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #fff;
}

.category-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.category-divider {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.numbers-card {
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.numbers-card:hover {
    box-shadow: var(--shadow-md);
}

.number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.18s ease;
    gap: 12px;
}

.number-row:last-child {
    border-bottom: none;
}

.number-row:hover {
    background: var(--bg-tertiary);
}

.number-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.number-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    flex-shrink: 0;
    max-width: 55%;
    word-break: break-word;
    font-family: 'Courier New', monospace;
}

/* ============================================
   BUS PARK PAGE STYLES
   ============================================ */
.bus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.bus-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid var(--border-color);
}

.bus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bus-card-top {
    background: var(--primary-darker);
    padding: 18px 22px 16px;
}

.bus-number-badge {
    display: inline-block;
    background: rgba(232, 203, 168, 0.25);
    color: var(--accent-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.bus-card-top h3 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.bus-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
}

.bus-location svg {
    flex-shrink: 0;
    stroke: currentColor;
    fill: currentColor;
}

.bus-card-body {
    padding: 18px 22px;
    flex: 1;
}

.routes-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.route-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.route-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: color 0.2s ease;
}

.route-list li:hover {
    color: var(--primary-color);
}

.route-list li:last-child {
    border-bottom: none;
}

.route-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

.bus-card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-btn:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.map-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
    fill: currentColor;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet: 768px and below */
@media (max-width: 768px) {
    .info-hero {
        padding: 60px 0 40px;
    }

    .info-hero h1 {
        font-size: 2.2rem;
    }

    .fee-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fee-table thead {
        display: none;
    }

    .fee-table tbody tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        overflow: hidden;
    }

    .fee-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        padding: 11px 15px;
    }

    .fee-table tbody td:last-child {
        border-bottom: none;
    }

    .fee-table tbody td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-right: 8px;
    }

    .number-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .number-value {
        text-align: left;
        max-width: 100%;
    }

    .bus-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
    .info-hero {
        padding: 50px 0 30px;
    }

    .info-hero h1 {
        font-size: 1.8rem;
    }

    .info-hero .subtitle {
        font-size: 0.75rem;
    }

    .accent-line {
        width: 40px;
        height: 3px;
    }

    .fee-card-header {
        padding: 15px 18px;
    }

    .fee-card-header h2 {
        font-size: 0.95rem;
    }

    .updated-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .fee-table tbody td {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .category-block {
        margin-bottom: 24px;
    }

    .category-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .category-header h2 {
        font-size: 1rem;
    }

    .number-row {
        padding: 12px 16px;
    }

    .number-name {
        font-size: 0.85rem;
    }

    .number-value {
        font-size: 0.8rem;
    }

    .bus-card-top {
        padding: 14px 16px 12px;
    }

    .bus-card-top h3 {
        font-size: 0.9rem;
    }

    .bus-card-body,
    .bus-card-footer {
        padding: 14px 16px;
    }
}

/* ============================================
   DARK THEME ADJUSTMENTS
   ============================================ */
[data-theme="dark"] .info-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 60%, rgba(15, 52, 96, 0.8) 100%);
}

[data-theme="dark"] .fee-card-header,
[data-theme="dark"] .bus-card-top,
[data-theme="dark"] .category-icon {
    background: var(--primary-darker);
}

[data-theme="dark"] .note-box {
    background: rgba(30, 42, 58, 0.5);
}

[data-theme="dark"] .number-name {
    color: var(--text-secondary);
}

/* ============================================
   ACCESSIBILITY & FOCUS STATES
   ============================================ */
.map-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure text remains readable when zoomed */
@media (max-width: 320px) {
    .info-hero h1 {
        font-size: 1.5rem;
    }

    .fee-table tbody td {
        font-size: 0.8rem;
    }
}
