/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Roboto:wght@400;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    margin-top: 0 !important; /* Ensure no top margin */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.fade-in { animation: fadeIn 0.8s ease-out forwards; }
.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.slide-in { animation: slideIn 0.5s ease-out forwards; }
.pulse { animation: pulse 2s infinite ease-in-out; }

/* Header (unchanged except for context) */
.header {
    background: #fff;   
    border-bottom: 2px solid #F47621;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    padding: 0px;
}

.header:hover {
    background: #f9f9f9;
}

.logo-img {
    max-height: 110px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-right: 15px;
}

.navbar-brand:hover .logo-img {
    transform: rotate(360deg); /* Rotates 360 degrees */
    transition: transform 0.6s ease, box-shadow 0.3s ease; /* Smooth rotation */
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 15px;
    position: relative;
    transition: color 0.3s ease, background 0.3s ease;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: #F47621;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before {
    width: 70%;
}

.navbar-nav .nav-link:hover {
    color: #F47621;
    background: rgba(244, 118, 33, 0.1);
    border-radius: 5px;
}

.navbar-nav .nav-link:hover::after {
    color: #5b6f56;
    font-size: 14px;
    margin-left: 5px;
}

a.navbar-brand {
    z-index: 999;
    background: #fff;
}

nav.navbar.navbar-expand-lg.navbar-light.bg-white.container {
    padding:0px !important;
    margin-top: -10px !important;
    align-items: center;
}


.nav-item {
    margin: 0 8px;
}


marquee.top-bar-marquee{
    color: #d9d9d9;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    width: 100%;
    padding: 10px;
    display: block;
    background-color: #333;
}

@media (max-width: 991px) {
    .navbar-nav {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .nav-item {
        margin: 5px 0;
    }
    .header-marquee-container {
        display: none;
    }
    .logo-img {
        max-height: 60px;
    }
}

/* Main Content */
.content {
    padding: 0px !important;
}

.alert-danger, .alert-success {
    border-radius: 8px;
    padding: 15px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.alert-danger:hover, .alert-success:hover {
    transform: translateY(-3px);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Slider Styles */
.search-container-full {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-bottom: 3px solid #5b6f56;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(91, 111, 86, 0.05));
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.search-background-image {
    width: 100%;
    height: 300px;
    filter: brightness(0.8);
    transition: filter 0.5s ease;
}

.search-container-full:hover .search-background-image {
    filter: brightness(0.9);
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #F47621;
    border-radius: 50%;
    padding: 10px;
}



/* Search Form Container and Form Styles */
.search-form-container {
    position: relative;
    margin-top: -30; /* Negative margin to pull form inside slider from bottom */
    z-index: 2; /* Above overlay */
    padding: 0 20px;
}

.search-form-container h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    background: rgba(244, 118, 33, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    animation: fadeInUp 1s ease-out;
}

.search-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #F47621;
}

.search-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(244, 118, 33, 0.4);
}

.search-form .form-control {
    border: 2px solid #F47621;
    border-radius: 10px;
    /* padding: 12px 15px; */
    font-size: 16px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-form .form-control:focus {
    border-color: #e65c00;
    box-shadow: 0 0 10px rgba(244, 118, 33, 0.5);
    outline: none;
}

.search-form .form-control:disabled {
    background: #f8f9fa;
    opacity: 0.7;
    cursor: not-allowed;
}

.search-form .btn-primary {
    background: #F47621;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(244, 118, 33, 0.3);
}

.search-form .btn-primary:hover {
    background: #e65c00;
    box-shadow: 0 6px 15px rgba(244, 118, 33, 0.5);
    transform: translateY(-2px);
}

/* Brands Section */
.brands-section {
    margin: 80px auto;
    padding: 0 15px;
    max-width: 1200px;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.brands-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    color: #5b6f56;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brands-section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #F47621;
    display: block;
    margin: 10px auto;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(244, 118, 33, 0.3);
}

.brands-section .popular-city-item {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    width: 100%;
    animation: bounceIn 0.6s ease-out forwards;
}

.brands-section .popular-city-item:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 10px 25px rgba(244, 118, 33, 0.3);
    border-color: #F47621;
}

.brands-section .popular-city-item .photo img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.brands-section .popular-city-item:hover .photo img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.brands-section .popular-city-item .text {
    padding: 10px;
    text-align: center;
    background: linear-gradient(to top, #f8f9fa, #fff);
}

.brands-section .popular-city-item .text h4 {
    font-size: 18px;
    color: #F47621;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.brands-section .popular-city-item:hover .text h4 {
    color: #e65c00;
}

.brands-section .popular-city-item .text p {
    font-size: 14px;
    color: #5b6f56;
    font-weight: 500;
}

/* Featured Section (unchanged) */
.featured-section {
    margin: 80px auto;
    padding: 0 15px;
    max-width: 1200px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.featured-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    color: #5b6f56;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #F47621;
    display: block;
    margin: 10px auto;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(244, 118, 33, 0.3);
}

.featured-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(91, 111, 86, 0.15);
    transition: all 0.4s ease;
    border: 1px solid #dfe4ea;
    overflow: hidden;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(244, 118, 33, 0.25);
    border-color: #F47621;
}

.featured-card .card-img-top {
    width: 100%;
    height: 120px;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.featured-card:hover .card-img-top {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.featured-card .card-body {
    padding: 25px;
    background: #fff;
}

.featured-card .card-title {
    font-size: 24px;
    color: #F47621;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-card .card-text {
    font-size: 16px;
    color: #5b6f56;
    line-height: 1.8;
}

.featured-card .card-text span {
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.featured-card:hover .card-text span {
    color: #333;
}

.featured-card .card-text i {
    color: #F47621;
    transition: color 0.3s ease;
}

.featured-card:hover .card-text i {
    color: #e65c00;
}

.featured-card .price-info {
    font-size: 14px;
    color: #777;
    font-style: italic;
    background: rgba(244, 118, 33, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.featured-card .btn-info {
    background: #5b6f56;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.featured-card .btn-info:hover {
    background: #F47621;
    box-shadow: 0 4px 15px rgba(244, 118, 33, 0.4);
    transform: translateY(-2px);
}
.footer {
    background: linear-gradient(135deg, #5b6f56, #4a5b45);
    border-top: 1px solid #e9ecef;
}

.footer-text {
    font-size: 14px;
    color: #ffffff;
}

.footer-links {
    font-size: 14px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-link:hover {
    color: #F47621;
    transform: translateY(-2px);
}

.social-icons {
    margin-top: 15px;
}

.social-link {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container-full {
        min-height: 300px;
    }
    .search-background-image {
        width: 100%;
        height: 300px;
        filter: brightness(0.8);
        transition: filter 0.5s ease;
    }
    .slider-wrapper {
        height: 300px;
    }
    .search-form-container {
        margin-top: 20px; /* Adjusted for smaller screens */
    }
    .search-form-container h3 {
        font-size: 28px;
    }
    .search-form {
        padding: 15px;
    }
    .brands-section, .featured-section {
        margin: 60px auto;
    }
    .brands-section h2, .featured-section h2 {
        font-size: 28px;
    }
    .brands-section .popular-city-item .photo img {
        height: 100px;
    }
    .featured-card .card-img-top {
        height: 180px;
    }
    .footer {
        padding: 30px 0;
    }
}


@media (max-width: 576px) {
    .search-container-full {
        min-height:200px;
    }
    .search-background-image {
        width: 100%;
        height: 250px;
        filter: brightness(0.8);
        transition: filter 0.5s ease;
    }
    .slider-wrapper {
        height: 250px;
    }
 
    .search-form-container h3 {
        font-size: 24px;
    }
    .search-form .form-control, .search-form .btn-primary {
        font-size: 14px;
        padding: 10px;
    }
    .brands-section h2, .featured-section h2 {
        font-size: 24px;
    }
    .brands-section .popular-city-item .photo img {
        height: 80px;
    }
    .featured-card .card-img-top {
        height: 150px;
    }
    .featured-card .card-title {
        font-size: 20px;
    }
    .footer-text, .footer-links {
        font-size: 14px;
    }
    .social-icon {
        width: 24px;
    }
    
.sidebar-container {
    position: relative !important ;
    
    height:auto; 
    overflow-y: auto;
    padding-right: 10px;
}
}

.sidebar-container {
    position: sticky;
    top: 60px; /* Adjust based on top-bar height */
    height: calc(100vh - 60px); /* Full height minus top bar */
    overflow-y: auto;
    padding-right: 10px;
}

.sidebar-filter {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #dfe4ea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-filter:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(244, 118, 33, 0.2);
}

.sidebar-filter h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #5b6f56;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #F47621, #e65c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-filter .form-label {
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.sidebar-filter .form-control {
    border: 2px solid #F47621;
    border-radius: 8px;
    padding: 5px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-filter .form-control:focus {
    border-color: #e65c00;
    box-shadow: 0 0 8px rgba(244, 118, 33, 0.4);
}

.sidebar-filter .btn-primary {
    background: #F47621;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-filter .btn-primary:hover {
    background: #e65c00;
    box-shadow: 0 4px 15px rgba(244, 118, 33, 0.4);
    transform: translateY(-2px);
}

/* Vehicle List (Professional Design) */
.vehicle-list {
    max-width: 100%;
}

.vehicle-list-item {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, #fff, #f9f9f9);
}

.vehicle-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(91, 111, 86, 0.2);
    border-color: #F47621;
}

.vehicle-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #F47621;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.vehicle-list-item:hover .vehicle-img {
    transform: scale(1.05);
    border-color: #e65c00;
}

.vehicle-list-item h5 {
    font-size: 20px;
    color: #F47621;
    font-weight: 600;
    transition: color 0.3s ease;
}

.vehicle-list-item:hover h5 {
    color: #e65c00;
}

.vehicle-list-item p {
    font-size: 15px;
    color: #5b6f56;
    line-height: 1.6;
}

.vehicle-list-item p i {
    color: #F47621;
    transition: color 0.3s ease;
}

.vehicle-list-item:hover p i {
    color: #e65c00;
}

.vehicle-list-item .price-info {
    background: rgba(244, 118, 33, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-style: italic;
}

.vehicle-list-item .btn-info {
    background: #5b6f56;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vehicle-list-item .btn-info:hover {
    background: #F47621;
    box-shadow: 0 4px 10px rgba(244, 118, 33, 0.3);
    transform: translateY(-2px);
}

/* Vehicle Show Page: Two-Column Layout */
.vehicle-image-section {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.vehicle-image-section:hover {
    transform: translateY(-5px);
}

.vehicle-hero-image {
    border-radius: 10px;
    max-height: 400px;
    object-fit: cover;
}

.vehicle-image-section:hover .vehicle-hero-image {
    transform: scale(1.02);
    border-color: #e65c00;
}

.no-image-placeholder {
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px dashed #5b6f56;
}

.brand-logo {
    max-height: 50px;
    border-radius: 5px;
    border: 1px solid #F47621;
}

/* Detail Rows with Hover Animation */
.detail-row {
    transition: all 0.3s ease;
}

.detail-row:hover {
    background: rgba(244, 118, 33, 0.1);
    transform: scale(1.01);
}

.detail-row td {
    color: #5b6f56;
}

.detail-row td i {
    color: #F47621;
    transition: color 0.3s ease;
}

.detail-row:hover td i {
    color: #e65c00;
}

/* Related Vehicles Section */
.related-vehicles {
    padding: 20px 0;
    background: #f8f9fa;
    border-top: 2px solid #F47621;
}

.related-vehicles h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 26px;
    color: #5b6f56;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-vehicles-list {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
}

.related-vehicle-item {
    flex: 0 0 250px;
    min-width: 250px;
}

.related-vehicle-item .card {
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, #fff, #f9f9f9);
}

.related-vehicle-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(91, 111, 86, 0.2);
    border-color: #F47621;
}

.related-vehicle-item .card-img-top {
    height: 150px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.3s ease;
    border-bottom: 1px solid #F47621;
}

.related-vehicle-item .card:hover .card-img-top {
    transform: scale(1.05);
}

.related-vehicle-item .card-body {
    padding: 15px;
}

.related-vehicle-item .card-title {
    font-size: 18px;
    color: #F47621;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-vehicle-item .card:hover .card-title {
    color: #e65c00;
}

.related-vehicle-item .card-text {
    font-size: 14px;
    color: #5b6f56;
    line-height: 1.5;
}

.related-vehicle-item .card-text i {
    color: #F47621;
    transition: color 0.3s ease;
}

.related-vehicle-item .card:hover .card-text i {
    color: #e65c00;
}

.related-vehicle-item .price-info {
    background: rgba(244, 118, 33, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-style: italic;
}

.related-vehicle-item .btn-info {
    background: #5b6f56;
    border: none;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-vehicle-item .btn-info:hover {
    background: #F47621;
    box-shadow: 0 4px 10px rgba(244, 118, 33, 0.3);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vehicle-image-section {
        margin-bottom: 20px;
    }

    .related-vehicles-list {
        gap: 15px;
    }

    .related-vehicle-item {
        flex: 0 0 200px;
        min-width: 200px;
    }

    .related-vehicle-item .card-img-top {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .vehicle-title {
        font-size: 24px;
    }

    .vehicle-subtitle {
        font-size: 16px;
    }

    .related-vehicle-item {
        flex: 0 0 180px;
        min-width: 180px;
    }

    .related-vehicle-item .card-title {
        font-size: 16px;
    }

    .related-vehicle-item .card-text {
        font-size: 13px;
    }
}

/* Favorite Button */
.btn-favorite-heart {
    background: none;
    border: none;
    padding: 8px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-favorite-heart.unfavorited {
    color: #888888;
}

.btn-favorite-heart.unfavorited:hover {
    color: #ff5555;
    transform: scale(1.1);
}

.btn-favorite-heart.favorited {
    color: #ff5555;
}

.btn-favorite-heart.favorited:hover {
    color: #cc0000;
    transform: scale(1.1);
}

.favorite-form {
    display: inline-block;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.popup-logo {
    max-height: 60px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.popup-content:hover .popup-logo {
    transform: rotate(360deg);
}

.popup-content h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #5b6f56;
    margin: 0;
}
.popup-body {
   padding: 10px;
}
.terms-list {
    list-style-type: none;
    text-align: left;
    margin-bottom: 25px;
    padding-left: 20px;
}

.terms-list li {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.checkbox-group {
    text-align: left;
    margin-bottom: 20px;
}

.checkbox-group label {
    display: block;
    font-size: 14px;
    color: #5b6f56;
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #F47621; /* Orange checkbox */
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-group label:hover {
    color: #F47621;
}

.popup-buttons {
    display: flex;
    justify-content: center;
}

.popup-buttons .btn-primary {
    background: #F47621;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.popup-buttons .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.popup-buttons .btn-primary:not(:disabled):hover {
    background: #e65c00;
    box-shadow: 0 4px 15px rgba(244, 118, 33, 0.5);
    transform: translateY(-2px);
}
/* Privacy Policy and Terms Styles */
.privacy-policy, .terms-conditions {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.privacy-policy h1, .terms-conditions h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    color: #5b6f56;
    margin-bottom: 20px;
}

.privacy-policy h2, .terms-conditions h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #F47621;
    margin-top: 30px;
    margin-bottom: 15px;
}

.privacy-policy p, .terms-conditions p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.privacy-policy ul, .terms-conditions ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.privacy-policy li, .terms-conditions li {
    font-size: 16px;
    color: #5b6f56;
    margin-bottom: 10px;
}

/* Popup Links */
.terms-link {
    font-size: 14px;
    color: #5b6f56;
    margin-top: 15px;
}

.terms-link a {
    color: #F47621;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link a:hover {
    color: #e65c00;
    text-decoration: underline;
}
button.btn.btn-primary {
    background-color: #e65c00 !important;
    border: 0px !important;
}
a.btn.btn-primary {
    background-color: #e65c00 !important;
    border: 0px !important;
}
a.btn.btn-secondary {
    background-color:  #4a5b45 !important;
    border: 0px !important;
}
.car-image-slider .carousel-inner {
    transition: transform 0.5s ease; /* Smooth sliding animation */
}

.car-image-slider img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 200px; /* Fixed height, adjust as needed */
    object-fit: cover;
}
.car-image-slider img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 200px; /* Fixed height, adjust as needed */
    object-fit: cover;
}

.news-updates-section {
    padding: 50px 0;
}

.updates-marquee {
    font-size: 1.1rem;
    color: #333;
}

.updates-marquee li {
    line-height: 1.5;
}
   /* Ensure body takes full height */
   html, body {
    height: 100%;
    margin: 0;
}

/* Wrapper for content and footer */
.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content grows to fill space */
.content {
    flex: 1 0 auto;
}

/* Footer styling */
.footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 20px 0;
    width: 100%;
}

/* Ensure footer stays at bottom when content is short */
@media (max-height: 100vh) {
    .footer {
        position: relative;
    }
}
/* Dealer Show Page Styles */
.dealer-show-container {
    background: #f8f9fa;
}

/* Reuse Homepage Slider Styles */
.search-container-full {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-bottom: 3px solid #5b6f56;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(91, 111, 86, 0.05));
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 300px; /* Matches homepage */
    overflow: hidden;
}

.search-background-image {
    width: 100%;
    height: 300px;
    filter: brightness(0.8);
    transition: filter 0.5s ease;
}

.search-container-full:hover .search-background-image {
    filter: brightness(0.9);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(91, 111, 86, 0.7), rgba(244, 118, 33, 0.5));
    z-index: 1;
}

/* Dealer Details Card */
.dealer-details-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #dfe4ea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dealer-details-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(91, 111, 86, 0.2);
    border-color: #F47621;
}

.dealer-title {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    color: #F47621;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.dealer-details-card:hover .dealer-title {
    color: #e65c00;
}

.dealer-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #F47621;
    display: block;
    margin: 10px 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.dealer-details-card:hover .dealer-title::after {
    width: 70px;
    background: #e65c00;
}

.dealer-info {
    padding: 20px 0;
}

.info-item {
    font-size: 18px;
    color: #5b6f56;
    margin-bottom: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.info-item:hover {
    color: #333;
    transform: translateX(5px);
}

.info-item i {
    color: #F47621;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.info-item:hover i {
    color: #e65c00;
}

.dealer-actions {
    text-align: center;
}

.dealer-actions .btn-secondary {
    background: #5b6f56;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.dealer-actions .btn-secondary:hover {
    background: #F47621;
    box-shadow: 0 4px 15px rgba(244, 118, 33, 0.4);
    transform: translateY(-2px);
}

/* Dealer List Page Styles */
.dealer-list-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
}

.dealer-list-title {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    color: #5b6f56;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.dealer-list-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #F47621;
    display: block;
    margin: 15px auto;
    border-radius: 2px;
}

.dealer-list-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dfe4ea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dealer-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(91, 111, 86, 0.2);
    border-color: #F47621;
}

.dealer-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #F47621;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.dealer-list-item:hover .dealer-img {
    transform: scale(1.05);
    border-color: #e65c00;
}

.dealer-item-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #F47621;
    font-weight: 600;
    transition: color 0.3s ease;
}

.dealer-list-item:hover .dealer-item-title {
    color: #e65c00;
}

.dealer-item-info p {
    font-size: 16px;
    color: #5b6f56;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.dealer-list-item:hover .dealer-item-info p {
    color: #333;
}

.dealer-item-info i {
    color: #F47621;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.dealer-list-item:hover .dealer-item-info i {
    color: #e65c00;
}

.dealer-list-item .btn-info {
    background: #5b6f56;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.dealer-list-item .btn-info:hover {
    background: #F47621;
    box-shadow: 0 4px 15px rgba(244, 118, 33, 0.3);
    transform: translateY(-2px);
}

.no-dealers-text {
    font-size: 18px;
    color: #777;
    font-weight: 500;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slider-wrapper, .search-background-image {
        height: 250px;
    }

    .dealer-title, .dealer-list-title {
        font-size: 28px;
    }

    .info-item, .dealer-item-info p {
        font-size: 15px;
    }

    .dealer-img {
        width: 100px;
        height: 100px;
    }

    .dealer-item-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .slider-wrapper, .search-background-image {
        height: 200px;
    }

    .dealer-title, .dealer-list-title {
        font-size: 24px;
    }

    .info-item, .dealer-item-info p {
        font-size: 14px;
    }

    .dealer-img {
        width: 80px;
        height: 80px;
    }

    .dealer-item-title {
        font-size: 18px;
    }

    .dealer-actions .btn-secondary, .dealer-list-item .btn-info {
        padding: 8px 15px;
        font-size: 12px;
    }
}