/* ==========================================================
   HOME PAGE — Kajhi Trans
   Stylesheet for app/Views/home.php
   ========================================================== */

/* ===================== HERO ===================== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 120px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: #0a0e1a url('../img/bg1.png') no-repeat center center;
    background-size: cover;
    opacity: 0.3; /* Subtle blend for readability */
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(245, 158, 11, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    mask-image: radial-gradient(circle, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 85%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,14,26,0.95) 0%, rgba(245,158,11,0.02) 50%, rgba(10,14,26,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 28px;
    animation: fadeInDown 0.6s ease;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #ffe000 0%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 40px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease;
    text-align: justify;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: fadeInUp 0.9s ease;
}

/* Stats ribbon */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 60px;
    animation: fadeInUp 1s ease;
}

.hero-stat-item {}

.hero-stat-num {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Floating car visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-car-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-car-container {
    max-width: 150%;
    width: 150%;
    height: auto;
    position: relative;
    top: -20px;
    z-index: 2;
}

.hero-car-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.car-headlight-glow {
    position: absolute;
    width: 2.5%;
    aspect-ratio: 2 / 1;
    background: #ffffff;
    border-radius: 50%;
    filter: blur(1.5px);
    box-shadow: 0 0 12px 6px rgba(255, 255, 255, 0.95), 0 0 20px 8px rgba(245, 158, 11, 0.5);
    z-index: 3;
    opacity: 0.85;
    pointer-events: none;
}

.car-headlight-glow.left {
    left: 22.2%;
    top: 49.9%;
}

.car-headlight-glow.right {
    left: 44.9%;
    top: 50.9%;
}

.car-red-glow {
    position: absolute;
    width: 1.8%;
    aspect-ratio: 1 / 1;
    background: #ff3b30;
    border-radius: 50%;
    filter: blur(1.5px);
    box-shadow: 0 0 10px 5px rgba(255, 59, 48, 0.95), 0 0 18px 8px rgba(255, 59, 48, 0.6);
    z-index: 3;
    opacity: 0.85;
    pointer-events: none;
}

.car-red-glow.left {
    left: 19.5%;
    top: 60.0%;
}

.car-red-glow.right {
    left: 50.3%;
    top: 61.4%;
}

/* ===================== SEARCH WIDGET ===================== */
.search-section {
    margin-top: -70px;
    position: relative;
    z-index: 10;
    padding-bottom: 10px;
}

.search-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.search-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
}

/* ===================== FEATURES ===================== */
.features-section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 16px auto 0;
    line-height: 1.8;
}

.feature-glass-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 36px 28px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-glass-card:hover {
    background: rgba(245, 158, 11, 0.03);
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.feature-glass-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.25);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================== FLEET ===================== */
.fleet-section {
    padding: 100px 0;
    position: relative;
}

.fleet-glass-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.fleet-glass-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.fleet-img {
    height: 180px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fleet-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.fleet-img i {
    font-size: 80px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.7;
    z-index: 1;
}

.fleet-info {
    padding: 24px;
}

.fleet-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.fleet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fleet-meta-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fleet-plate {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--primary-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 1px;
}

/* ===================== CTA BANNER ===================== */
.cta-section {
    padding: 100px 0;
}

.cta-glass {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.08));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 70px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99,102,241,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== PREMIUM GLASSMORPHIC INPUTS ===================== */
.form-select-custom,
.form-control-custom {
    box-sizing: border-box !important;
    min-width: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    color: var(--text-primary) !important;
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    font-weight: 600 !important;
    height: 58px !important;
    padding: 12px 20px !important;
    width: 100%;
    transition: all 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
    display: block;
}

.form-select-custom:focus,
.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25) !important;
}

/* Custom Dropdown Chevron Arrow for Form Select Custom */
.form-select-custom {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 20px center / 16px 12px !important;
    padding-right: 48px !important;
}

.form-select-custom option {
    background: #0f172a;
    color: var(--text-primary);
}

/* Date Input custom styling & webkit fixes */
.form-control-custom[type="date"] {
    cursor: pointer;
    color: var(--text-primary) !important;
}

.form-control-custom::-webkit-datetime-edit {
    color: var(--text-primary) !important;
}

.form-control-custom::-webkit-datetime-edit-fields-wrapper {
    color: var(--text-primary) !important;
}

.form-control-custom::-webkit-datetime-edit-text {
    color: var(--text-secondary) !important;
}

.form-control-custom::-webkit-datetime-edit-month-field,
.form-control-custom::-webkit-datetime-edit-day-field,
.form-control-custom::-webkit-datetime-edit-year-field {
    color: var(--text-primary) !important;
}

.form-control-custom::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.9) !important;
    opacity: 0.8 !important;
    cursor: pointer;
}

/* Flatpickr Wrapper & Mobile Input Fixes */
.flatpickr-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.flatpickr-mobile,
input[type="hidden"].flatpickr-input,
input.flatpickr-input[type="hidden"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.flatpickr-input,
.flatpickr-input[readonly] {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* Search Route Card Layout */
.search-route-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.route-field {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.route-swap-divider {
    position: relative;
    height: 1px;
    background: var(--glass-border);
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-divider-desktop {
    display: none;
}

.btn-swap-custom-new {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card) !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    padding: 0;
    font-size: 14px;
    z-index: 10;
}

.btn-swap-custom-new:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
    transform: translate(-50%, -50%) scale(1.1);
}

.btn-swap-custom-new:active {
    transform: translate(-50%, -50%) scale(0.92);
}

@media (min-width: 768px) {
    .search-route-card {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding: 20px 24px;
    }
    
    .route-field {
        flex: 1;
    }

    .date-field-box {
        flex: 0 0 200px;
    }
    
    .route-swap-divider {
        width: 1px;
        height: 54px;
        background: var(--glass-border);
        margin: 0;
        position: relative;
    }

    .route-divider-desktop {
        display: block;
        width: 1px;
        height: 54px;
        background: var(--glass-border);
        margin: 0;
    }
    
    .btn-swap-custom-new {
        transform: translate(-50%, -50%) rotate(90deg);
    }
    
    .btn-swap-custom-new:hover {
        transform: translate(-50%, -50%) rotate(270deg) scale(1.1);
    }
}

/* Glowing Search Submit Button */
.btn-glow-submit {
    height: 58px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    width: 100%;
}

.btn-glow-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.btn-glow-submit:active {
    transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
    .hero-section { padding: 60px 0 80px; min-height: unset; }
    .hero-title { font-size: clamp(30px, 8vw, 46px); }
    .hero-subtitle { font-size: 15px; max-width: 100%; }
    .hero-stats { gap: 20px; margin-top: 36px; }
    .hero-stat-num { font-size: 22px; }
    .search-section { margin-top: -40px; padding-bottom: 120px !important; }
    .search-glass { padding: 28px 24px; }
    .features-section, .fleet-section, .cta-section { padding: 72px 0; }
}

@media (max-width: 767.98px) {
    .hero-section { padding: 48px 0 60px; }
    .hero-title { font-size: clamp(26px, 9vw, 38px); letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 28px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    
    /* Clean grid box for stats on mobile */
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        text-align: center;
        margin-top: 40px;
        background: rgba(10, 14, 26, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        padding: 20px 14px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    .hero-stats > div[style] { display: none !important; }
    .search-glass { padding: 20px 16px; border-radius: 18px; }
    .search-title { font-size: 18px; margin-bottom: 20px; }
    .features-section, .fleet-section, .cta-section { padding: 56px 0; }
    .cta-glass { padding: 48px 24px; border-radius: 20px; }
    .section-title { font-size: clamp(22px, 6vw, 32px); }
}

@media (max-width: 575.98px) {
    .hero-section { padding: 36px 0 48px; }
    .hero-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 18px; }
    .hero-title { font-size: clamp(24px, 9vw, 34px); }
    .hero-subtitle { display: none; }
    .hero-stats {
        gap: 8px !important;
        padding: 16px 8px;
        margin-top: 30px;
    }
    .hero-stat-num { font-size: 18px; }
    .hero-stat-label { font-size: 10px; margin-top: 2px; }
    .search-section { margin-top: -24px; padding-bottom: 180px !important; }
    .search-glass { padding: 18px 14px; border-radius: 14px; }
    .features-section, .fleet-section, .cta-section { padding: 44px 0; }
    
    /* Optimize Features Section for Mobile (Side-by-side/Row layout) */
    .feature-glass-card {
        display: flex !important;
        gap: 16px !important;
        align-items: flex-start !important;
        padding: 20px 16px !important;
    }
    .feature-icon-box {
        margin-bottom: 0 !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
    }
    .feature-title {
        font-size: 16px !important;
        margin-bottom: 6px !important;
        text-align: left !important;
    }
    .feature-desc {
        font-size: 13px !important;
        margin-bottom: 0 !important;
        text-align: left !important;
        line-height: 1.6 !important;
    }
    
    .cta-glass { padding: 36px 18px; }
    .cta-subtitle { font-size: 14px; }
}

/* ===================== PREMIUM FLATPICKR GLASSMORPHIC OVERRIDES ===================== */
.flatpickr-calendar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    border-radius: 20px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding: 8px !important;
}

.flatpickr-months .flatpickr-month {
    color: #fff !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700 !important;
}

.flatpickr-day {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

.flatpickr-day.today {
    border-color: rgba(245, 158, 11, 0.4) !important;
}

.flatpickr-day.selected, 
.flatpickr-day.selected:focus, 
.flatpickr-day.selected:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.selected.nextMonthDay {
    background: var(--gradient-accent) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4) !important;
}

.flatpickr-day:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(255, 255, 255, 0.15) !important;
}

.flatpickr-months .flatpickr-prev-month, 
.flatpickr-months .flatpickr-next-month {
    color: rgba(255, 255, 255, 0.8) !important;
    fill: rgba(255, 255, 255, 0.8) !important;
}

.flatpickr-months .flatpickr-prev-month:hover, 
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--primary-light) !important;
}

/* ==========================================================
   MODERN TRAVEL SEARCH CARD (Dark Glassmorphism Theme)
   ========================================================== */
.travel-search-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 24px;
    padding: 24px 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
}

.ts-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    transition: all 0.2s ease;
}

.ts-box:focus-within {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* Route Box */
.ts-route-box {
    position: relative;
    margin-bottom: 14px;
}

.ts-route-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 14px;
}

.ts-icon-col {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
}

.ts-dot-origin {
    width: 18px;
    height: 18px;
    border: 4px solid #f59e0b;
    border-radius: 50%;
    background: #0f172a;
    display: inline-block;
}

.ts-icon-dest {
    font-size: 20px;
    color: #f59e0b;
}

.ts-content-col {
    flex: 1;
    min-width: 0;
}

.ts-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 2px;
    display: block;
    letter-spacing: 0.3px;
}

.ts-select, 
.ts-input-date {
    width: 100%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px !important;
    outline: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.ts-select {
    padding-right: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ts-select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600;
}

/* Swap Button & Divider */
.ts-divider-wrapper {
    position: relative;
    height: 1px;
    width: 100%;
}

.ts-divider-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
}

.ts-btn-swap {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #0f172a;
    border: 1.5px solid #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    z-index: 5;
    padding: 0;
}

.ts-btn-swap:hover {
    border-color: #fbbf24;
    background: #1e293b;
    transform: translateY(-50%) scale(1.08);
}

/* Roundtrip Toggle */
.ts-toggle-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.ts-toggle-label {
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
}

.ts-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.ts-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ts-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
    border-radius: 24px;
}

.ts-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ts-switch input:checked + .ts-slider {
    background-color: #f59e0b;
}

.ts-switch input:checked + .ts-slider:before {
    transform: translateX(22px);
}

/* Date & Passenger Field Boxes */
.ts-field-box {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 14px;
}

.ts-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ts-badge-blue {
    background: #f59e0b;
    color: #ffffff;
}

.ts-badge-blue-subtle {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* Passenger Chips */
.ts-passenger-chips {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.ts-chip {
    flex: 1;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-chip:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

.ts-chip.active {
    background: #f59e0b;
    color: #000000;
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Submit Button */
.ts-btn-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #ffe000 0%, #ff6a00 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.5);
}

.ts-btn-submit:active {
    transform: translateY(0);
}

.ts-main-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ==========================================================
   DESKTOP RESPONSIVE LAYOUT (min-width: 992px)
   ========================================================== */
@media (min-width: 992px) {
    .travel-search-card {
        max-width: 1020px;
        padding: 24px 30px;
    }

    .ts-main-row {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .ts-route-box {
        flex: 1;
        display: flex;
        align-items: center;
        margin-bottom: 0;
        min-height: 60px;
        position: relative;
    }

    .ts-route-row {
        flex: 1;
        padding: 10px 30px 10px 16px;
    }

    .ts-route-row:last-child {
        padding: 10px 16px 10px 48px;
    }

    .ts-divider-wrapper {
        width: 1px;
        height: 38px;
        background: rgba(255, 255, 255, 0.12);
        position: relative;
        flex-shrink: 0;
    }

    .ts-divider-line {
        display: none;
    }

    .ts-btn-swap {
        right: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 11px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    }

    .ts-btn-swap:hover {
        transform: translate(-50%, -50%) rotate(270deg) scale(1.1);
    }

    .ts-field-box {
        flex: 0 0 270px;
        margin-bottom: 0 !important;
        height: 60px;
    }

    .ts-btn-submit {
        flex: 0 0 170px;
        height: 60px;
        margin-top: 0;
        font-size: 16px;
    }
}

/* ===================== ACTIVE ROUTES — TRAIN TICKET / BOARDING PASS ===================== */
.active-routes-section {
    padding: 10px 0 50px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(10,14,26,0.4) 0%, rgba(10,14,26,0.85) 100%);
}

.route-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #ff9900;
    letter-spacing: 0.5px;
}

.train-boarding-pass {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 650px;
    margin: 0 auto;
}

.train-boarding-pass:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(245, 158, 11, 0.25), 0 0 0 2px rgba(245, 158, 11, 0.4);
}

/* Top Strip (Orange Banner) */
.tbp-top-strip {
    background: linear-gradient(90deg, #ff6a00 0%, #ff9900 100%);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tbp-strip-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tbp-badge-active {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Main Ticket Body */
.tbp-body {
    display: flex;
    align-items: stretch;
    position: relative;
    background: #ffffff;
    color: #1e293b;
}

/* Left Main Info */
.tbp-main-info {
    flex: 1;
    padding: 20px 22px;
}

.tbp-meta-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tbp-route-cities {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tbp-city-origin,
.tbp-city-dest {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.tbp-arrow-box {
    width: 32px;
    height: 32px;
    background: rgba(245, 158, 11, 0.12);
    color: #ff6a00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.tbp-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
}

.tbp-sub-label {
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.tbp-sub-val {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
}

/* Center Perforated Divider & Notches */
.tbp-perforated-divider {
    width: 1px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.tbp-dashed-line {
    width: 1px;
    height: 100%;
    border-left: 2px dashed #cbd5e1;
}

.tbp-notch {
    width: 18px;
    height: 18px;
    background: #0a0e1a; /* Matches dark hero section background */
    border-radius: 50%;
    position: absolute;
    z-index: 5;
}

.tbp-notch-top {
    top: -9px;
    left: -9px;
}

.tbp-notch-bottom {
    bottom: -9px;
    left: -9px;
}

/* Right Stub Info */
.tbp-stub-info {
    width: 180px;
    background: #fff8f0;
    border-left: 1px dashed #e2e8f0;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.tbp-badge-active {
    font-size: 10px;
    font-weight: 900;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.tbp-badge-offline {
    font-size: 10px;
    font-weight: 900;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tbp-badge-full {
    font-size: 10px;
    font-weight: 900;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tbp-stub-code {
    font-size: 10px;
    font-weight: 900;
    color: #ea580c;
    background: #ffedd5;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tbp-price-label {
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 6px;
}

.tbp-price-value {
    font-size: 18px;
    font-weight: 900;
    color: #ea580c;
    line-height: 1;
    margin-top: 2px;
}

.tbp-price-sub {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Simulated Barcode */
.tbp-barcode-box {
    margin: 6px 0;
    width: 100%;
}

.tbp-barcode-lines {
    height: 24px;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        #1e293b 0px, #1e293b 2px,
        transparent 2px, transparent 4px,
        #1e293b 4px, #1e293b 7px,
        transparent 7px, transparent 9px,
        #1e293b 9px, #1e293b 10px
    );
    opacity: 0.85;
}

.tbp-barcode-text {
    font-size: 9px;
    font-family: monospace;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
    margin-top: 2px;
}

.tbp-btn-select {
    width: 100%;
    background: linear-gradient(135deg, #ff6a00 0%, #ff9900 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
    transition: all 0.25s ease;
}

.tbp-btn-select:hover {
    background: linear-gradient(135deg, #e65c00 0%, #ff8800 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.45);
}

.tbp-btn-offline {
    width: 100%;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: not-allowed;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.08);
}

.tbp-btn-full {
    width: 100%;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: not-allowed;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.08);
}

.tbp-btn-offline-grey {
    width: 100%;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: not-allowed;
    text-decoration: none !important;
}

.highlight-glow {
    animation: pulse-glow 1.2s ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 35px 8px rgba(245, 158, 11, 0.6); }
}

@media (max-width: 991.98px) {
    .train-boarding-pass {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.25);
    }
    .train-boarding-pass:active {
        transform: scale(0.985);
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }
}

@media (max-width: 575.98px) {
    .tbp-top-strip {
        padding: 8px 12px;
        font-size: 9px;
    }
    .tbp-strip-left {
        font-size: 9px;
    }
    .tbp-badge-active {
        font-size: 9px;
        padding: 2px 7px;
    }
    .tbp-main-info {
        padding: 12px 10px;
    }
    .tbp-meta-label {
        font-size: 8px;
        margin-bottom: 4px;
    }
    .tbp-city-origin, .tbp-city-dest {
        font-size: 13px;
    }
    .tbp-arrow-box {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .tbp-details-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 6px 8px;
    }
    .tbp-sub-label {
        font-size: 8px;
    }
    .tbp-sub-val {
        font-size: 10px;
    }
    .tbp-stub-info {
        width: 125px;
        padding: 10px 8px;
    }
    .tbp-stub-code {
        font-size: 9px;
        padding: 1px 5px;
    }
    .tbp-price-value {
        font-size: 14px;
    }
    .tbp-price-sub {
        font-size: 9px;
        margin-bottom: 4px;
    }
    .tbp-barcode-lines {
        height: 18px;
    }
    .tbp-barcode-text {
        font-size: 8px;
    }
    .tbp-btn-select,
    .tbp-btn-offline,
    .tbp-btn-full,
    .tbp-btn-offline-grey {
        font-size: 10px;
        padding: 6px 6px;
        white-space: nowrap;
    }
}

/* Slider Container & Navigation Buttons */
.tbp-slider-container {
    position: relative;
    padding: 0 50px;
}

.tbp-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(10, 14, 26, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #ff9900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tbp-nav-prev {
    left: 0;
}

.tbp-nav-next {
    right: 0;
}

.tbp-nav-btn:hover {
    background: linear-gradient(135deg, #ff6a00 0%, #ff9900 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 10px 28px rgba(255, 106, 0, 0.5);
}

.routes-swiper-pagination {
    margin-top: 25px;
    position: relative !important;
    bottom: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.routes-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.routes-swiper-pagination .swiper-pagination-bullet-active {
    background: #ff9900;
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.6);
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-bottom: 40px;
    }
    .active-routes-section {
        padding: 20px 0 25px;
    }
    .search-section {
        margin-top: 0;
        padding-top: 10px;
        padding-bottom: 30px;
    }
    .tbp-slider-container {
        padding: 0 5px;
    }
    .tbp-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .tbp-nav-prev {
        left: -8px;
    }
    .tbp-nav-next {
        right: -8px;
    }
}
