/* ===== GLOBAL ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #004080;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* SLIDER */
#slider {
    position: relative;
    margin: 20px 50px;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: none;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tagline {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 20px;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 5px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* ABOUT SECTION */
#about {
    display: flex;
    gap: 20px;
    margin: 20px 50px;
    flex-wrap: wrap;
}

#about .about-desc {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

#about .about-guide {
    flex: 1;
    background: #e8f0fe;
    padding: 20px;
    border-radius: 10px;
}

/* BOOKING SECTION */
#booking {
    margin: 20px 50px;
}

.booking-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.van-image {
    flex: 1.5;
    min-width: 200px;
}

.van-image img {
    width: 100%;
    border-radius: 10px;
}

.seat-selection {
    flex: auto;
    min-width: 250px;
}

.route-date {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.route-date label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
}

/* SEAT MAP GRID */
.seat-map {
  display: grid;
  grid-template-columns: 70px 70px 70px; /* 1 left seat + 2 right seats per row */
  grid-template-rows: repeat(5, 70px); /* 5 rows for seats 1-13 */
  gap: 15px; /* spacing between seats */
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  justify-content: start;
}

/* GRID AREAS for driver + seat alignment */
.seat-map .seat1 { grid-column: 1; grid-row: 1; }
.seat-map .seat2 { grid-column: 1; grid-row: 2; }
.seat-map .seat3 { grid-column: 2; grid-row: 2; }
.seat-map .seat4 { grid-column: 3; grid-row: 2; }
.seat-map .seat5 { grid-column: 1; grid-row: 3; }
.seat-map .seat6 { grid-column: 2; grid-row: 3; }
.seat-map .seat7 { grid-column: 3; grid-row: 3; }
.seat-map .seat8 { grid-column: 1; grid-row: 4; }
.seat-map .seat9 { grid-column: 2; grid-row: 4; }
.seat-map .seat10 { grid-column: 3; grid-row: 4; }
.seat-map .seat11 { grid-column: 1; grid-row: 5; }
.seat-map .seat12 { grid-column: 2; grid-row: 5; }
.seat-map .seat13 { grid-column: 3; grid-row: 5; }

/* DRIVER SEAT */
.seat-map .driver {
  grid-column: 3; /* front-right */
  grid-row: 1;
  background: #6c757d;
  cursor: default;
}


/* INDIVIDUAL SEAT */
.seat {
    width: 60px;
    height: 60px;
    border: 2px solid #ccc;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.seat:hover {
    transform: scale(1.3);
}

.seat.available {
    background: #28a745;
}

.seat.booked {
    background: #dc3545;
    cursor: not-allowed;
}

.seat.selected {
    background: #007bff;
}

.seat.driver {
    background: #6c757d;
    cursor: default;
}

/* SEAT GRID AREAS */
.seat1 {
    grid-area: seat1;
}

.seat2 {
    grid-area: seat2;
}

.seat3 {
    grid-area: seat3;
}

.seat4 {
    grid-area: seat4;
}

.seat5 {
    grid-area: seat5;
}

.seat6 {
    grid-area: seat6;
}

.seat7 {
    grid-area: seat7;
}

.seat8 {
    grid-area: seat8;
}

.seat9 {
    grid-area: seat9;
}

.seat10 {
    grid-area: seat10;
}

.seat11 {
    grid-area: seat11;
}

.seat12 {
    grid-area: seat12;
}

.seat13 {
    grid-area: seat13;
}

.seat.driver {
    grid-area: driver;
}

/* LEGEND */
.legend {
    margin-top: 10px;
}

.legend .seat {
    display: inline-block;
    margin-right: 5px;
}

.booking-summary {
    margin-top: 10px;
    font-weight: bold;
}

/* PASSENGER DETAILS */
.passenger-details {
    flex: 1.5;
    min-width: 220px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.passenger-details label {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

#payButton {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

#payButton:hover {
    background: #218838;
}

/* FOOTER */
footer {
    background: #004080;
    color: white;
    padding: 20px 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

footer ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

footer a {
    color: white;
    text-decoration: none;
}

footer img.footer-logo {
    width: 50px;
}

/* RESPONSIVE */
@media(max-width:1024px) {
    .booking-container {
        flex-direction: column;
    }

    #about {
        flex-direction: column;
    }

    #slider {
        margin: 20px;
        height: 250px;
    }
}

@media(max-width:600px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }

    .seat-map {
        grid-template-areas:
            "seat1 driver"
            "seat2 seat3"
            "seat4 seat5"
            "seat6 seat7"
            "seat8 seat9"
            "seat10 seat11"
            "seat12 seat13";
    }

    .van-image {
        max-width: 100%;
    }
}