/* ==========================================================================
   Tour Detail & Reservation Page — Premium v3.0 (Glassmorphism + Bus Frame)
   ========================================================================== */

/* --- Hero Banner --- */
.tour-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 0 2rem 3rem;
}
.tour-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,0.3) 0%, rgba(13,27,42,0.85) 100%);
}
.tour-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}
.tour-hero-content h1 {
    font-family: var(--font-h);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 4px 24px rgba(0,0,0,.4);
    font-style: italic;
    letter-spacing: -.02em;
}

/* --- Page Body --- */
.tour-page-body {
    background: var(--slate-50);
    padding: 3rem 0 5rem;
}

/* --- Two Column Layout --- */
.tour-split {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}
.tour-info-col {
    flex: 1;
    min-width: 0;
}
.tour-booking-col {
    width: 400px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

/* --- Info Cards (Left Column) --- */
.info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--slate-100);
    transition: box-shadow .3s var(--ease);
}
.info-card:hover {
    box-shadow: var(--shadow-md);
}

/* Header Card */
.info-card--header {
    border-left: 5px solid var(--primary);
    padding: 2rem 2.25rem;
}
.info-card--header h2 {
    font-size: 1.75rem;
    color: var(--navy);
    font-weight: 800;
    margin-bottom: .75rem;
}
.tour-meta-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: var(--slate-500);
    font-size: .88rem;
    font-weight: 500;
}
.tour-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.tour-meta-row i {
    color: var(--primary);
    font-size: .85rem;
}

/* Section Card */
.info-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--slate-100);
    font-weight: 700;
}
.info-card h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}
.info-card h3 i.red {
    color: #ef4444;
}
.info-card p {
    color: var(--slate-600);
    line-height: 1.85;
    font-size: .95rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .85rem;
}
.feature-grid li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .92rem;
    color: var(--slate-600);
    padding: .6rem .85rem;
    border-radius: var(--radius-md);
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    transition: all .25s var(--ease);
}
.feature-grid li:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateX(4px);
}
.feature-grid li i {
    color: var(--teal);
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}
.feature-grid.not-included li i {
    color: #ef4444;
}

/* ===================================================================
   RIGHT COLUMN: Booking Widget (Dark Glassmorphism Theme)
   =================================================================== */
.bk-widget {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.06);
}

/* Price Header */
.bk-price-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
    padding: 1.5rem 1.5rem 1.25rem;
    position: relative;
    overflow: hidden;
}
.bk-price-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(214,40,40,.2) 0%, transparent 70%);
    pointer-events: none;
}
.bk-price-header .label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: .35rem;
}
.bk-price-header .price {
    font-family: var(--font-h);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.1;
}

/* Bus Map Section */
.bk-bus-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 1.25rem;
}

/* --- THE BUS FRAME --- */
.bus-frame {
    position: relative;
    background: rgba(255,255,255,.04);
    border: 2px solid rgba(255,255,255,.08);
    border-radius: 60px 60px 20px 20px;
    padding: 2rem 1rem 1.25rem;
    margin: 0 auto;
    max-width: 340px;
}

/* Windshield */
.bus-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 16px;
    background: linear-gradient(90deg, transparent, rgba(214,40,40,.4), var(--primary), rgba(214,40,40,.4), transparent);
    border-radius: 0 0 20px 20px;
    filter: blur(1px);
}

/* Mirrors */
.bus-frame::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -14px;
    width: calc(100% + 28px);
    height: 2px;
    background: linear-gradient(90deg, rgba(148,163,184,.4) 0%, rgba(148,163,184,.1) 15%, transparent 30%, transparent 70%, rgba(148,163,184,.1) 85%, rgba(148,163,184,.4) 100%);
}

/* Front indicator inside bus */
.bus-front-label {
    text-align: center;
    font-size: .65rem;
    color: var(--slate-400);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.bus-front-label i {
    color: var(--primary);
    font-size: .7rem;
}

/* Seat Grid */
.bus-seat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 .5rem;
}
.bus-seat-grid .aisle {
    grid-column: 3 / 4;
    /* Creates visual gap between col 2 and col 3 */
}

/* Individual Seat */
.seat {
    width: 100%;
    aspect-ratio: 1;
    max-width: 52px;
    border: 2px solid rgba(148,163,184,.25);
    border-radius: 10px 10px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
    background: rgba(255,255,255,.03);
    position: relative;
    margin: 0 auto;
}
.seat::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: rgba(148,163,184,.2);
    border-radius: 3px 0 0 3px;
    transition: all .25s;
}

/* Hover */
.seat:hover:not(.occupied):not(.pending):not(.paid) {
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(214,40,40,.3);
    background: rgba(214,40,40,.1);
}
.seat:hover:not(.occupied):not(.pending):not(.paid)::before {
    background: var(--primary);
}

/* Selected */
.seat.selected {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #22c55e;
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34,197,94,.35);
    animation: seat-pop .3s cubic-bezier(.34,1.56,.64,1);
}
.seat.selected::before {
    background: #15803d;
}
@keyframes seat-pop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1.05); }
}

/* Occupied / Paid */
.seat.occupied, .seat.paid {
    background: rgba(239,68,68,.15);
    border-color: rgba(239,68,68,.4);
    color: rgba(239,68,68,.6);
    cursor: not-allowed;
}
.seat.occupied::after, .seat.paid::after {
    content: '×';
    position: absolute;
    font-size: 1.4rem;
    color: rgba(239,68,68,.5);
    font-weight: 900;
}
.seat.occupied::before, .seat.paid::before {
    background: rgba(239,68,68,.4);
}

/* Pending */
.seat.pending {
    background: rgba(234,179,8,.12);
    border-color: rgba(234,179,8,.4);
    color: rgba(234,179,8,.7);
    cursor: not-allowed;
}
.seat.pending::before {
    background: rgba(234,179,8,.5);
}

/* Seat Row Gap (Aisle) */
.seat-row-spacer {
    height: 12px;
    grid-column: 1 / -1;
}

/* Legend */
.bus-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.bus-legend .legend-item {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .65rem;
    color: var(--slate-400);
    font-weight: 500;
}
.bus-legend .legend-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 2px solid rgba(148,163,184,.25);
}
.bus-legend .legend-box.available {
    background: rgba(255,255,255,.03);
}
.bus-legend .legend-box.selected {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #22c55e;
}
.bus-legend .legend-box.occupied {
    background: rgba(239,68,68,.15);
    border-color: rgba(239,68,68,.4);
}

/* ===================================================================
   BOOKING DETAIL / SUMMARY (Bottom of widget)
   =================================================================== */
.bk-summary {
    background: var(--white);
    padding: 1.5rem;
}
.bk-summary-title {
    font-family: var(--font-h);
    font-size: .88rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.bk-summary-title i {
    color: var(--primary);
}

/* Selected seats badges */
.bk-seats-badges {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    min-height: 36px;
    align-items: center;
}
.bk-seats-badges .badge-seat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: var(--white);
    font-family: var(--font-h);
    font-weight: 800;
    font-size: .78rem;
    animation: badge-in .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes badge-in {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.bk-seats-badges .empty-msg {
    color: var(--slate-400);
    font-size: .82rem;
    font-style: italic;
}

/* Subtotal line */
.bk-subtotal-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 0;
    border-top: 1px dashed var(--slate-200);
    margin-bottom: .25rem;
    font-size: .85rem;
    color: var(--slate-500);
}
.bk-subtotal-line .value {
    font-weight: 700;
    color: var(--slate-700);
}

/* Total line */
.bk-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0 .5rem;
    border-top: 2px solid var(--slate-200);
    margin-bottom: 1.25rem;
}
.bk-total-line .label {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
}
.bk-total-line .value {
    font-family: var(--font-h);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary);
}

/* CTA Button */
.bk-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s var(--ease);
    box-shadow: 0 4px 16px var(--primary-glow);
    position: relative;
    overflow: hidden;
}
.bk-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s;
}
.bk-cta-btn:hover::before {
    left: 100%;
}
.bk-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-glow);
}
.bk-cta-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.bk-cta-btn:disabled::before {
    display: none;
}
.bk-secure-label {
    text-align: center;
    font-size: .7rem;
    color: var(--slate-400);
    margin-top: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
}
.bk-secure-label i {
    color: var(--teal);
}

/* ===================================================================
   CHECKOUT MODAL (Dark Overlay + Glass Card)
   =================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,15,25,.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all .35s var(--ease);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 92%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: translateY(30px) scale(.96);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}
.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--slate-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}
.close-modal:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

/* Modal Form */
.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .35rem;
}
.modal-subtitle {
    color: var(--slate-500);
    font-size: .92rem;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.35rem;
}
.form-group label {
    display: block;
    margin-bottom: .4rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.form-control {
    width: 100%;
    padding: .85rem 1.15rem;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-family: var(--font-b);
    font-size: .92rem;
    outline: none;
    transition: all .3s var(--ease);
    background: var(--slate-50);
}
.form-control:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
    .tour-split {
        flex-direction: column;
    }
    .tour-booking-col {
        width: 100%;
        position: static;
    }
}
@media (max-width: 480px) {
    .tour-hero {
        min-height: 260px;
    }
    .bus-frame {
        padding: 1.5rem .5rem 1rem;
    }
    .seat {
        max-width: 42px;
        font-size: .7rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .bk-price-header .price {
        font-size: 1.8rem;
    }
}


