/* Global CSS with Water-Like Defaults */
:root {
    --taxi-yellow: #fbbf24;
    --taxi-red: #dc2626;
    --taxi-dark: #1f2937;
    --water-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --water-duration: 700ms;
}

html,
body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    transition: background-color var(--water-duration) var(--water-easing);
    background-color: var(--taxi-dark);
    /* Fallback to dark if overflow happens */
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-size: cover !important;
}


.taxi-gradient,
.bg-taxi-main {
    background: linear-gradient(to right, var(--taxi-yellow), var(--taxi-red)) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.taxi-pattern-overlay {
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Fluid Resizing logic for containers */
.fluid-container {
    transition: all var(--water-duration) var(--water-easing);
}

/* Liquid Navbar Underline */
.nav-link {
    position: relative;
    transition: color 300ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--taxi-red);
    transition: width var(--water-duration) var(--water-easing);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--taxi-red);
    font-weight: 700;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--taxi-yellow);
    border-radius: 10px;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Full-View Form Overlay */
@media (max-width: 1024px) {
    body.form-full-view {
        overflow: hidden !important;
    }

    /* Site Navbar above everything */
    body.form-full-view #main-nav {
        z-index: 100 !important;
    }

    .mobile-full-view {
        position: fixed !important;
        top: 135px !important;
        /* Offset for Mobile Nav + Tabs */
        left: 0 !important;
        width: 100% !important;
        height: calc(100% - 135px) !important;
        z-index: 60 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        background: white !important;
        padding: 15px !important;
        padding-bottom: 50px !important;
        box-shadow: none !important;
        border: none !important;
    }

    .mobile-tab-fixed {
        position: fixed !important;
        top: 65px !important;
        /* Just below site Navbar */
        left: 0 !important;
        width: 100% !important;
        z-index: 90 !important;
        background: white !important;
        padding: 8px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
        margin-bottom: 0 !important;
        border-radius: 0 0 15px 15px !important;
    }

    /* Booking Modal Mobile Optimizations */
    #home-tabs .tab-btn {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.875rem !important;
        min-height: 56px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #home-tabs .tab-btn i {
        font-size: 1rem !important;
    }

    #home-tabs h2 {
        font-size: 1.5rem !important;
    }

    #home-tabs p.text-sm {
        font-size: 0.75rem !important;
    }

    #home-tabs .rounded-3xl {
        border-radius: 1.5rem !important;
    }
}

/* Premium Tab Indicator Logic */
#tab-indicator {
    top: 0;
    left: 0;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
        width 600ms cubic-bezier(0.16, 1, 0.3, 1),
        height 600ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08) !important;
    will-change: transform, width, height;
}

/* Hero Background Slider - Managed by JS now */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out, transform 6s ease-out;
    opacity: 0;
    transform: scale(1);
    z-index: 0;
}

.hero-bg-image.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Ensure content stays above slider */
#hero>div.relative {
    z-index: 10;
}

/* Address Suggestions */
.suggestion-item {
    padding: 1rem 1.25rem;
    transition: all 200ms ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4b5563;
    /* text-gray-600 */
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(251, 191, 36, 0.08);
    padding-left: 1.5rem !important;
    color: #1f2937;
}

.suggestion-item i {
    transition: transform 300ms ease;
}

.suggestion-item:hover i {
    transform: scale(1.2);
    color: #dc2626 !important;
}

/* Scrollbar for suggestions */
#pickup-suggestions,
#dropoff-suggestions {
    max-height: 320px;
    overflow-y: auto;
}

#pickup-suggestions::-webkit-scrollbar,
#dropoff-suggestions::-webkit-scrollbar {
    width: 6px;
}

#pickup-suggestions::-webkit-scrollbar-thumb,
#dropoff-suggestions::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}