﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Montserrat:wght@500;700;800&display=swap');

:root {
    --primary-blue: #007bff;
    --secondary-purple: #6f42c1;
    --dark-primary: #212529; /* Darker tone for main text */
    --muted-dark: #6c757d; /* Muted dark for descriptions */
    --bg-light-gray: #f5f7f9; /* Light background */
    --card-bg: #ffffff;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #6f42c1 100%); /* Main gradient */
    --gradient-text: linear-gradient(90deg, #007bff, #6f42c1); /* Text gradient */
    --shadow-subtle: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light-gray);
    color: var(--dark-primary);
    line-height: 1.7;
}

/* General Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-primary);
}

/* Hero Section */
.hero-section {
    background: var(--card-bg); /* Use card background for clean hero */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px var(--shadow-subtle);
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem !important; /* More space below hero */
}

    .hero-section::before,
    .hero-section::after {
        content: '';
        position: absolute;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
        opacity: 0.1;
        z-index: -1;
        filter: blur(50px);
    }

    .hero-section::before {
        top: -50px;
        left: -50px;
    }

    .hero-section::after {
        bottom: -50px;
        right: -50px;
        background: radial-gradient(circle, var(--secondary-purple) 0%, transparent 70%);
    }

    .hero-section h1 {
        font-weight: 800;
        letter-spacing: -0.04em;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    }

.text-muted-dark {
    color: var(--muted-dark) !important;
}

/* ******************************************************************* */
/* ADVANCED SEARCH BAR STYLING - FOCUSED SECTION */
/* ******************************************************************* */
.search-box-container {
    border: 2px solid transparent; /* Base border color */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 20px var(--shadow-subtle);
    background-color: var(--card-bg); /* Explicitly white background */
}

    .search-box-container:focus-within {
        border-color: var(--primary-blue); /* Primary blue border on focus */
        box-shadow: 0 8px 30px var(--shadow-medium);
    }

    .search-box-container .input-group-text {
        background-color: transparent !important; /* Ensure transparent background */
        border: none !important;
        padding-right: 0.5rem; /* Adjust padding for spacing */
    }

#searchInput {
    font-size: 1.1rem;
    padding: 0.9rem 1.2rem;
    color: var(--dark-primary);
    font-weight: 500;
    /* Remove default focus outline as we're managing the border with :focus-within on parent */
    outline: none !important;
    box-shadow: none !important;
}

    #searchInput::placeholder {
        color: var(--muted-dark);
        opacity: 0.8;
        font-weight: 400; /* Lighter placeholder font */
    }

.btn-transparent-clear {
    background-color: transparent !important;
    border: none !important;
    color: var(--muted-dark) !important; /* Muted color for clear icon */
    font-size: 1.2rem;
    transition: all 0.2s ease;
    padding-left: 0.5rem; /* Adjust padding for spacing */
    padding-right: 1.5rem !important; /* More padding on the right for rounded look */
}

    .btn-transparent-clear:hover {
        color: var(--primary-blue) !important; /* Highlight on hover */
        background-color: rgba(0, 123, 255, 0.05) !important; /* Light blue background on hover */
    }

    .btn-transparent-clear:focus {
        box-shadow: none !important; /* Remove focus ring */
    }
/* ******************************************************************* */
/* END ADVANCED SEARCH BAR STYLING */
/* ******************************************************************* */


/* Route Cards (rest of the CSS remains the same) */
.route-card-item {
    border-radius: 1.25rem !important;
    background-color: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.4s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03); /* Very subtle border */
}

    .route-card-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px var(--shadow-medium);
    }

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

    .card-title .text-gradient {
        background: var(--gradient-text);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent; /* Fallback */
    }

.card-divider {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    opacity: 0.7;
}

.route-card-item ul {
    padding-left: 0;
    margin-top: 1rem;
}

    .route-card-item ul li {
        font-size: 1.05rem;
        color: var(--muted-dark);
        margin-bottom: 0.7rem;
    }

        .route-card-item ul li i {
            font-size: 1.2rem;
            min-width: 30px; /* Align icons */
            text-align: center;
        }

        .route-card-item ul li strong {
            color: var(--dark-primary);
            min-width: 80px; /* Align labels */
            margin-right: 0.5rem;
        }

        .route-card-item ul li .ms-auto {
            flex-grow: 1; /* Push value to the right */
            text-align: right;
        }

/* Glassmorphism Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px); /* The magic! */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    color: white; /* Text color */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    position: relative;
    overflow: hidden;
}

    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        color: white; /* Keep text white */
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .btn-glass:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    /* Add a subtle gradient overlay to the glass button for more vibrancy */
    .btn-glass::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gradient-primary);
        opacity: 0.7; /* Adjust opacity for subtle blend */
        z-index: -1;
        border-radius: inherit;
    }

/* Alert Messages */
.alert {
    border-left: 5px solid; /* A strong border on the left */
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.alert-warning {
    background-color: #fff9e6;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background-color: #e6f7ff;
    border-color: #007bff;
    color: #004085;
}

.alert-heading {
    color: inherit;
    font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) { /* Medium devices and down */
    .hero-section {
        padding: 4rem 0;
    }

        .hero-section h1 {
            font-size: 2.8rem;
        }

    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) { /* Small devices and down */
    .hero-section {
        padding: 3rem 0;
    }

        .hero-section h1 {
            font-size: 2.2rem;
            margin-bottom: 1.5rem !important;
        }

    .lead {
        font-size: 0.9rem;
        margin-bottom: 2rem !important;
    }

    #searchInput {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .route-card-item ul li {
        font-size: 0.9rem;
    }

    .btn-glass {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) { /* Extra small devices */
    .hero-section h1 {
        font-size: 1.8rem;
    }
}
/* Scroll To Top Button Styling */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 1.5rem;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(to right, #00c6ff, #0072ff); /* 🌈 Gradient background */
    color: white;
}

    /* When .show class is added */
    #scrollToTopBtn.show {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Hover effect */
    #scrollToTopBtn:hover {
        background: linear-gradient(to right, #0072ff, #00c6ff); /* reverse on hover */
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    #scrollToTopBtn {
        bottom: 15px;
        right: 15px;
        font-size: 22px;
        padding: 12px 13px;
    }
}
