.scroll-smooth {
    scroll-behavior: smooth;
}

/* Custom class for the hero background */
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../../img/midukki.jpg');
    background-size: cover;
    background-position: center;
}

.swiper-pagination-bullet-active {
    background-color: #DC2626 !important;
    /* red-600 */
}

/* Nav Dropdown on Hover & Focus */
.group:hover .group-hover\:block,
.group:focus-within .group-hover\:block,
.group.dropdown-open .group-hover\:block {
    display: block !important;
}

/* Ultra Compact Direct Bus Card Styles for Mobile & Desktop */
.bus-card-compact {
    padding: 1.1rem 1.35rem;
}

.bus-card-badge {
    font-size: 12px;
    line-height: 1.2;
    padding: 3px 8px;
}

.bus-card-time {
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.2;
}

.bus-card-route {
    font-size: 0.92rem;
    line-height: 1.3;
}

.bus-card-seats {
    font-size: 0.88rem;
}

.bus-card-strikefare {
    font-size: 0.82rem;
}

.bus-card-fare {
    font-size: 1.35rem;
    font-weight: 900;
}

.bus-card-onwards {
    font-size: 0.75rem;
}

.bus-card-btn {
    font-size: 0.95rem;
    padding: 8px 18px;
    letter-spacing: 0.03em;
}

@media (max-width: 640px) {
    .bus-card-compact {
        padding: 0.85rem 0.95rem !important;
        border-radius: 12px !important;
    }

    .bus-card-badge {
        font-size: 10px !important;
        padding: 2.5px 6px !important;
        border-radius: 4px !important;
    }

    .bus-card-time {
        font-size: 13.5px !important;
        font-weight: 900 !important;
    }

    .bus-card-route {
        font-size: 11px !important;
        max-width: 155px !important;
    }

    .bus-card-seats {
        font-size: 10.5px !important;
        font-weight: 800 !important;
    }

    .bus-card-strikefare {
        font-size: 9.5px !important;
    }

    .bus-card-fare {
        font-size: 15px !important;
        font-weight: 900 !important;
    }

    .bus-card-onwards {
        font-size: 8.5px !important;
    }

    .bus-card-btn {
        font-size: 11px !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        font-weight: 800 !important;
    }
}

/* ===================================================
   RedBus Style Booking Bar & Hero Layout
   =================================================== */
.redbus-hero-wrapper {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 45%, #dc2626 75%, #ea580c 100%);
    position: relative;
    padding: 3.5rem 1rem 5.5rem 1rem;
    overflow: visible;
}

@media (min-width: 768px) {
    .redbus-hero-wrapper {
        padding: 4.5rem 1.5rem 6rem 1.5rem;
    }
}

.redbus-hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    max-width: 580px;
}

@media (min-width: 768px) {
    .redbus-hero-title {
        font-size: 2.85rem;
        line-height: 1.15;
    }
}

/* Master Booking Bar Card */
.rb-search-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 40;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

@media (min-width: 1024px) {
    .rb-search-card {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Individual Sections */
.rb-field-group {
    padding: 1rem 1.25rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 84px;
    transition: background-color 0.15s ease;
}

.rb-field-group:first-child {
    border-top-left-radius: 28px;
    border-bottom-left-radius: 28px;
}

.rb-field-group:hover {
    background-color: #fafbfd;
}

/* Specific desktop flex distribution across columns */
.rb-group-from {
    flex: 1.1 1 0%;
    min-width: 0;
}

.rb-group-to {
    flex: 1.1 1 0%;
    min-width: 0;
}

.rb-group-date {
    flex: 1.2 1 0%;
    min-width: 0;
}

.rb-action-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* High-contrast integrated RedBus search button */
.rb-search-btn-integrated {
    background: #d84e55;
    background: linear-gradient(135deg, #e11d48 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.85rem;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-search-btn-integrated:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.45);
    background: linear-gradient(135deg, #be123c 0%, #b91c1c 100%);
}

.rb-search-btn-integrated:active {
    transform: translateY(0);
}

.rb-divider-y {
    border-right: 1px solid #edf2f7;
}

@media (max-width: 1023px) {
    .rb-divider-y {
        border-right: none;
        border-bottom: 1px solid #edf2f7;
    }

    .rb-field-group:first-child {
        border-radius: 28px 28px 0 0;
    }

    .rb-search-btn-integrated {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 1.5rem;
    }
}

/* Icon & Label & Inputs */
.rb-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1;
}

.rb-input-text {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
    outline: none;
}

.rb-input-text::placeholder {
    color: #cbd5e1;
    font-weight: 600;
}

/* Modern Date Trigger Styling */
.rb-date-display {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.rb-date-native-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 10;
}

/* Swap Floating Button */
.rb-swap-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 25;
}

.rb-swap-btn:hover {
    transform: rotate(180deg) scale(1.08);
    color: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.22);
}

/* Quick Date Chips */
.rb-chip {
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.70rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #9f1239;
    white-space: nowrap;
    line-height: 1.2;
}

.rb-chip:hover {
    background: #ffe4e6;
    border-color: #fda4af;
}

.rb-chip.active {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

/* Women Switch */
.rb-switch-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.rb-toggle-track {
    width: 44px;
    height: 24px;
    background-color: #cbd5e1;
    border-radius: 9999px;
    position: relative;
    transition: background-color 0.2s ease;
}

.rb-toggle-thumb {
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

input:checked+.rb-toggle-track {
    background-color: #dc2626;
}

input:checked+.rb-toggle-track .rb-toggle-thumb {
    transform: translateX(20px);
}

/* Search Buses Big Button */
.rb-search-btn-pill {
    background: #d84e55;
    background: linear-gradient(135deg, #d84e55 0%, #c1272d 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    padding: 0.85rem 2.25rem;
    border-radius: 9999px;
    box-shadow: 0 8px 20px -2px rgba(193, 39, 45, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rb-search-btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -2px rgba(193, 39, 45, 0.55);
    background: linear-gradient(135deg, #c1272d 0%, #a81c22 100%);
}

.rb-search-btn-pill:active {
    transform: translateY(0);
}