/* =========================
   HERO SECTION
========================= */

.hero{
    background:linear-gradient(
        rgba(15,23,42,0.8),
        rgba(15,23,42,0.8)
    ),
    url('../assets/images/hero-bg.jpg');

    background-size:cover;
    background-position:center;

    text-align:center;
    color:white;
    padding:100px 8%;
}

.hero h1{
    margin-bottom:15px;
}

.hero p{
    color:#e2e8f0;
    font-size:1.1rem;
}

/* =========================
   BOOKING SECTION
========================= */

.booking-section{
    background:white;
    margin-top:-40px;
    width:90%;
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;

    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.booking-form{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-top:30px;
}
.time-container{

    display:flex;
    align-items:center;
    gap:10px;
}

.time-container select{

    flex:1;
}

.time-container span{

    font-size:20px;
    font-weight:bold;
}
.input-group{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.input-group label{
    font-weight:600;
    color:#0f172a;
}

/* =========================
   TRIP OPTIONS
========================= */

.trip-options{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:15px;
    font-weight:500;
}

.trip-options label{
    display:flex;
    align-items:center;
    gap:10px;
}

.trip-options input{
    width:auto;
}

/* =========================
   MAP
========================= */

#map{
    height:450px;
    width:100%;
    margin-top:35px;
    border-radius:15px;
    overflow:hidden;
    border:2px solid #e2e8f0;
}

/* =========================
   FIND RIDE BUTTON
========================= */

#findRideBtn{
    display:block;
    margin:30px auto 0;

    background:#2563eb;
    color:white;

    padding:15px 40px;

    border:none;
    border-radius:10px;

    font-size:16px;
    font-weight:600;

    transition:0.3s;
}

#findRideBtn:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

/* =========================
   FEATURES
========================= */

.features{
    background:#f8fafc;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-top:40px;
}

.feature-card{
    background:white;

    padding:25px;

    border-radius:15px;

    text-align:center;

    font-weight:500;

    box-shadow:0 5px 20px rgba(0,0,0,0.06);

    transition:0.3s;
}

.feature-card:hover{
    transform:translateY(-5px);
}

/* =========================
   VEHICLES SECTION
========================= */

.cars-preview{
    background:white;
}

.car-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:25px;
    margin-top:40px;
}
.route-actions{

    text-align:center;

    margin-top:25px;
}

.select-ride-btn{

    display:none;

    background:#16a34a;

    color:white;

    border:none;

    padding:15px 40px;

    border-radius:12px;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;
}

.select-ride-btn:hover{

    background:#15803d;
}
.car-card{
    background:white;

    border-radius:15px;

    padding:30px;

    text-align:center;

    box-shadow:0 5px 20px rgba(0,0,0,0.08);

    transition:0.3s;
}

.car-card:hover{
    transform:translateY(-5px);
}

.car-card h3{
    color:#2563eb;
    margin-bottom:10px;
}

/* =========================
   ABOUT
========================= */

.about{
    background:#f8fafc;
    text-align:center;
}

.about p{
    max-width:900px;
    margin:auto;
    font-size:17px;
    line-height:1.8;
}

/* =========================
   GALLERY
========================= */

.gallery{
    background:white;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-top:40px;
}

.gallery-item{
    height:250px;

    background:#e2e8f0;

    border-radius:15px;

    display:flex;
    justify-content:center;
    align-items:center;

    color:#64748b;
    font-weight:600;
    font-size:18px;

    transition:0.3s;
}

.gallery-item:hover{
    transform:scale(1.02);
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .hero{
        padding:70px 5%;
    }

    .booking-section{
        width:95%;
    }

    #map{
        height:300px;
    }

    .trip-options{
        flex-direction:row;
        justify-content:flex-start;
    }
}
.suggestion-item{
    padding:12px;
    cursor:pointer;
    border-bottom:1px solid #eee;
}

.suggestion-item:hover{
    background:#f1f5f9;
}
#pickupSuggestions,
#destinationSuggestions{

    position:absolute;
    top:100%;
    left:0;

    width:100%;

    background:white;

    border-radius:10px;

    box-shadow:0 5px 15px rgba(0,0,0,0.1);

    max-height:250px;

    overflow-y:auto;

    z-index:9999;
}

.suggestion-item{

    padding:12px;

    cursor:pointer;

    border-bottom:1px solid #eee;
}

.suggestion-item:hover{

    background:#f1f5f9;
}