/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #303030;
    box-shadow:  0 6px 6px -4px rgb(174, 173, 173);
}

.logo {
    display: flex;
    align-items: center;

}

.logo img {
    width: 120px;
    margin-left: 40px;
}

/* Menu Styling */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin-right: 0px;
    margin-left: 100px;
}

nav ul li a {
    text-decoration: none;
    color: #333; /* Adjust the color as needed */
    padding: 10px 0;
    display: inline-block;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Line for active and hover states */
nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0; /* Position the line under the text */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px; /* Thickness of the line */
    background-color: #000000; /* Adjust color to match your design */
    transition: width 0.3s ease;
}

/* Show the line on hover and active page */
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 50%; /* Expand line to match text width */
}

/* Search Container */
.search-container {
    position: relative;
    display: inline-block;
}

/* Search Bar */
.search-bar {
    width: 250px;
    padding: 8px 16px 8px 40px; /* Add left padding for icon space */
    border: 1px solid #ccc;
    border-radius: 20px;
    transition: width 0.3s ease;
    outline: none;
}

/* Search Icon */
.search-icon {
    position: absolute;
    left: 12px; /* Position icon inside input */
    top: 50%;
    transform: translateY(-50%);
    color: #ccc; /* Icon color */
    font-size: 16px; /* Icon size */
    pointer-events: none; /* Allow clicks to pass through */
}

/* Search Bar Focused */
.search-bar:focus {
    width: 300px;
    border-color: #FF6A00;
}


/* Main Content */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    position: relative;
    margin-bottom: 2rem;
    background-image: url('image/bg2.png'); /* Path to your image */
    background-size: 50%;
    background-position: center;
    
    background-repeat: no-repeat; /* Prevents tiling */
}

.text-content {
    max-width: 800px;
    margin-right: 2rem;
}

.date {
    color: #555;
    font-size: 0.9rem;
}

h1 {
    font-size: 3.0rem;
    color: #e75a24;
}

.description {
    font-size: 1.4rem;
    font-style: italic;
    color: #333;
}

.description strong {
    color: #000000;
    
    font-weight: 600;
}

/* Car Image with Orange Shape */
.car-image {
    position: relative;
}

.orange-shape {
    position: absolute;
    top: -20px;
    left: -40px;
    width: 80%;
    height: 60%;
    border: 10px solid #FF6A00;
    background-color: #131212;
    border-radius: 50px;
    z-index: -1;
}

.car-image img {
    max-width: 140%;
    padding-top: 50px;
    margin-left: -100px;
    height: auto;
    z-index: 1;

}

/* Extra Content */
.extra-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin-top: 3rem;
}

.feature {
    max-width: 30%;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
    font-size: 1rem;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: #f8f8f8;
}

.social-icons {
    list-style-type: none;
    display: flex;
}

.social-icons li {
    margin: 0 0.5rem;
}

.social-icons img {
    width: 25px;
    height: 25px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    /* Tablet */
    .content {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .orange-shape {
        width: 100%;
        height: 50%;
        left: 0;
        top: -20px;
    }

    .extra-content {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        max-width: 80%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    /* Mobile */
    header {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .content {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        max-width: 100%;
        margin: 0;
    }

    h1 {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .orange-shape {
        width: 100%;
        height: 50%;
        top: -10px;
        left: 0;
    }

    .extra-content {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        max-width: 90%;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Booking.php style */


.car-catalog {
    padding: 2rem;
    text-align: center;
}

.car-catalog h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.car-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
}

.car-card {
    flex: 0 0 calc(20% - 1rem); /* Show approximately 5 cards, with each taking 20% width */
    background-color: #004c3f;
    color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    scroll-snap-align: center;
    justify-content:start;
    display: inline;
}

.car-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    object-fit: contain; /* Ensures image fits well within the container */
}

.car-info {
    padding: 1rem;
}

.car-info h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.car-info p {
    font-size: 0.9rem;
    color: #c0c0c0;
    margin-bottom: 1rem;
}

.car-price {
    font-size: 0.9rem;
    color: #b45f06;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.car-price strong {
    font-size: 1.1rem;
    color: #ff6a00;
}

.reserve-button {
    background-color: #ffffff;
    color: #004c3f;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.reserve-button:hover {
    background-color: #ff6a00;
    color: white;
}

/* Hide scrollbar for car-list */
.car-list::-webkit-scrollbar {
    display: none;
}

.car-list {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Center the scroll area with padding for partially hidden cards */
.car-catalog {
    padding: 2rem 2.5rem; /* Add extra padding to create partial hidden cards */
}

/* Car-details.php */

/* Container styling for the car details page */
.car-details-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

/* Left side content styling */
.car-details-content {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
}

/* Right side image styling */
.car-image {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}



.rental-agreement p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

/* Agreement buttons */
.agreement-buttons {
    margin-top: 10px;
}

.accept-button, .decline-button {
    padding: 8px 16px;
    margin-right: 10px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
}

.accept-button {
    background-color: #4CAF50;
    color: #fff;
}

.decline-button {
    background-color: #f44336;
    color: #fff;
}

/* Rent Duration Section */
.rent-duration label {
    display: block;
    margin-top: 10px;
}

.rent-duration input {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
