/* — Global Styles — */
body {
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    box-sizing: border-box;
}

:root {
    --primary-color: #e72024;
    --secondary-color: #58595b;
}

a {
    text-decoration: none;
}
/* — Hero — */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    margin: 20px;
    margin-top: 0;
    border-radius: 10px;
    text-align: center;
    height: 400px;
}
.hero .form-control,
.hero .btn {
    max-width: 450px;
    margin: 0 auto;
}

.brand {
    border: #fff solid 1px;
    border-radius: 10px;
    background: var(--bs-light);
}

.brand:hover {
    border: 1px solid var(--primary-color) !important;
    background: #fff;
}

.brand img {
    width: auto;
    height: 80px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
    object-fit: cover;
}

.brand:hover img {
    filter: grayscale(100%);
    transform: scale(1.2);
}

.car {
    border-radius: 10px;
    height: 100%;
    overflow: hidden;
}

.car:hover {
    border: 1px solid var(--primary-color) !important;
}

.car .overflow-img {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.car .overflow-img {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
/* Initial state of the overlay */
.car .overflow-img::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
    transition: all 0.3s ease;
    z-index: 1; /* Ensure it's above image but below button */
}

/* On hover, apply darker overlay */
.car .overflow-img:hover::after {
    background: rgba(0, 0, 0, 0.5);
  }
  

.btn-car {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: var(--primary-color);
    color: #fff;
    transition: top 0.3s ease, transform 0.3s ease;
}

.overflow-img:hover .btn-car {
    top: 50%;
}

.car .car-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.car:hover .car-img {
    filter: grayscale(100%);
    transform: scale(1.2);
}

.city {
    border-radius: 20px;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.city:hover {
    border: 1px solid var(--primary-color) !important;
}

.city .overflow-img {
    overflow: hidden;
    position: absolute;
    width: 100%;
}

.city img {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    transition: all 1s ease;
}

.city .overlap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75));
}

.city:hover img {
    filter: grayscale(100%);
    transform: scale(1.2);
    filter: blur(1.5px); 
}

.city .card-content {
    z-index: 9;
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    transition: bottom 0.3s ease;
}

.city .card-content h5, .city .card-content p {
    color: #fff;
    font-weight: bold;
}

.city:hover .card-content {
    bottom: 20px;
}

.fleet {
    height: 240px;
}

/* — Section Titles — */
.section-title {
    margin: 4rem 0 1.5rem;
    font-weight: 600;
}
/* — Large promo banner — */
.promo-banner {
    background: url('promo-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
/* — Footer — */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 3rem 0;
    font-size: 0.9rem;
}
.footer a {
    color: #ccc;
}
.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 2rem;
    padding: 1rem 0 0;
    font-size: 0.8rem;
}

.social-link {
    color: #ccc;
    margin-right: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.social-link:hover {
    color: #fff;
    background: var(--secondary-color);
}

.owl-carousel .card {
    min-height: 300px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.owl-carousel .card:hover {
    transform: translateY(-5px);
}

.star-rating i {
    margin-right: 4px;
    font-size: 1.2rem;
}

.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* allow clicks to pass if needed */
}

.owl-prev-icon, .owl-next-icon {
    background-color: #ffffff;
    color: #333;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.owl-prev-icon:hover, .owl-next-icon:hover {
    background-color: var(--primary-color); /* Customize as needed */
    color: #fff;
    transform: scale(1.1);
}
  
.nav-item.dropdown.position-static .dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    top: 100%;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
    z-index: 1000;
    border-top: 3px solid var(--primary-color); /* optional */
}

.car-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-out {
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: black;
	-webkit-text-fill-color: white;
	/* font-size: 8rem; */
	font-weight: bolder;
	text-align: center;
	display: inline-block;
}

#preloader {
    position: fixed;
    inset: 0;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#preloader img {
    width: 150px; /* adjust as needed */
    height: auto;
}

.bg-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1380px;
    }
}

.accordion-item {
    border: var(--secondary-color) solid 1px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.bg-inner-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(33, 37, 41, 0.5), rgba(33, 37, 41, 0.5)), url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    margin: 20px;
    margin-top: 0;
    border-radius: 10px;
    text-align: center;
    height: 270px;
}

.bg-inner-banner a, .bg-inner-banner {
    color: #fff;
}

.carousel {
  margin-bottom: 60px !important;
}

.carousel-indicators button.thumbnail {
  width: 100px;
}
.carousel-indicators button.thumbnail:not(.active) {
  opacity: 0.7;
}
.carousel-indicators {
  position: static;
}
@media screen and (min-width: 992px) {
  .carousel {
    max-width: 70%;
    margin: 0 auto;
  }
}

#car-gallery {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 2fr;
    gap: 10px;
    grid-auto-rows: 160px;
    overflow: hidden;
    border-radius: 15px;
}

#car-gallery a {
    display: block;
    position: relative;
    overflow: hidden;
}

/* Make the first image span 2 rows */
#car-gallery a:first-child {
    grid-row: span 2;
}

@media (max-width: 768px) {
    #car-gallery {
        display: grid;
        grid-template-columns: 1fr; /* or 1fr 1fr if you want two columns */
        grid-auto-rows: 200px;
    }

    #car-gallery a {
        display: none; /* Hide all by default */
    }

    #car-gallery a:first-child {
        display: block; /* Show only the first image */
        grid-row: span 1;
    }
}


#car-gallery a img {
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: transform 0.3s;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#car-gallery a:hover img {
    transform: scale(1.03);
}
