  /* Vehichles Detail*/

/* Gallery Grid */
.car-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

/* Images */
.car-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
    cursor: pointer;
}

/* Hover Zoom */
.car-gallery-grid img:hover {
    transform: scale(1.1);
}

/* Hero image larger span */
.hero-grid {
    grid-column: span 2;
    grid-row: span 2;
}

/* Small images */
.small-grid {
    grid-column: span 1;
    grid-row: span 1;
}

/* ================= FULLSCREEN MODAL ================= */
.fullscreen-modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.fullscreen-modal img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff7b00;
}

        /* ================= HERO IMAGE ================= */
       /* HERO IMAGE FIXED */
.car-hero {
    position: relative;
    width: 100%;
    height: 550px; /* adjust as needed */
    margin: 0; /* remove top and bottom gaps */
    border-radius: 0; /* remove rounded corners for full width */
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 550px;
    background-size: cover;
    background-position: center center; /* center image */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 2;
}

/* optional: overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* remove spacing before and after hero */
body, #content {
    margin: 0;
    padding: 0;
}

/* hero text styles */
.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
}

.hero-content h3 {
    font-size: 32px;
    color: #ff7b00;
}

.hero-content p {
    font-size: 16px;
    color: #ddd;
}



        /* ================= IMAGE GALLERY ================= */
        .car-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
    justify-content: center; /* centers the grid */
    margin:  auto; /* ensures container centering */
    max-width: 1200px; /* optional: limits grid width */
    padding: 15px 15px;
}

.car-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.car-gallery-grid img:hover {
    transform: scale(1.05);
}

.car-gallery-grid .hero-grid {
    grid-column: span 2; /* spans 2 columns */
    grid-row: span 2; /* spans 2 rows */
}

.car-gallery-grid .small-grid {
    grid-column: span 1;
    grid-row: span 1;
}

        /* ================= CAR INFO ================= */
        .car-info-section {
            padding: 20px 0;
        }

        .car-info-section h3 {
            font-size: 28px;
            color: #fff;
        }

        .car-info-section p {
            color: #ccc;
            font-size: 15px;
        }

        .ul-check li {
            position: relative;
            padding-left: 20px;
            margin-bottom: 8px;
            color: #ddd;
        }

        .ul-check li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #ff7b00;
        }

        /* ================= RELATED CARS ================= */
        .car-card {
            background: #096da8;
            border-radius: 10px;
            overflow: hidden;
            transition: 0.3s;
            cursor: pointer;
        }

        .car-card img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .car-card:hover img {
            transform: scale(1.05);
        }

        .car-card .p-3 {
            padding: 15px;
        }

        .car-card h4 {
            color: #fff;
            margin-bottom: 4px;
        }

        .car-card p {
            color: #bbb;
            font-size: 13px;
            margin-bottom: 4px;
        }

        .car-card .id-color {
            color: #ff7b00;
            font-weight: 600;
            font-size: 16px;
        }
        /* Gallery item wrapper */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Hover zoom effect */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}
/* Gallery Grid */
.car-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

/* Images */
.car-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
    cursor: pointer;
}

/* Hover Zoom */
.car-gallery-grid img:hover {
    transform: scale(1.1);
}

/* Hero image larger span */
.hero-grid {
    grid-column: span 2;
    grid-row: span 2;
}

/* Small images */
.small-grid {
    grid-column: span 1;
    grid-row: span 1;
}
