* {
    scroll-behavior: smooth;
}

iframe {
    width: 100% !important;
}

h1, p {
    transition: font-size 0.7s ease;
}

h1 {
    transition: transform 1s ease, opacity 1s ease;
    opacity: 0; /* Start hidden */
    transform: translateX(-20px);
}

.sold-sign {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #cb244b;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 5px;
    z-index: 10;
}

.form-control::placeholder, select {
    color: #484848 !important;
}

h1.visible {
    opacity: 1; /* Fade in */
    transform: translateX(0);
}

.phone-icon {
    transition: background-color, color 0.7s ease;
    background-color: white;
}

a {
    text-decoration: none !important;
}

.nav-link:hover {
    color: #ef677a !important;
}

.logo-section i {
    margin-right: .5em;
}

.phone-icon {
    display: none; /* Hidden by default */
    width: 36px; /* Set width */
    height: 36px; /* Set height */
    border: 1px solid gray; /* Optional: add border */
    border-radius: 5px; /* Optional: rounded corners */
    justify-content: center; /* Center icon horizontally */
    align-items: center; /* Center icon vertically */
    margin: 0 10px; /* Add some spacing */
    color: gray !important;
    padding-top: 4px;
    padding-left: 8px;
}

.phone-icon:hover {
    background-color: gray;
    color: white !important;
}

#chatra {
    bottom: 3em !important;
}

.swal-footer {
    text-align: center !important;
}

body {
    font-family: "Roboto", sans-serif !important;
}

.logo-mobile {
    display: none;
}

.logo-section {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align items properly */
    height: 100px; /* Set height for the logo section */
}

.logo-section a {
    color: #484848;
}

.logo img {
    width: 110px;
    height: auto;
    margin-top: -1em;
}

.logo {
    flex: 0 0 auto; /* Prevent it from growing */
    margin-left: auto;
    margin-right: auto;
}

.contact-info,
.address {
    flex: 0 0 auto; /* Prevent them from growing */
}

.text-end {
    text-align: right;
}

.navbar {
    padding: 1rem 2rem !important;
    font-weight: normal;
}

.navbar-brand {
    font-weight: bold;
}

.navbar .nav-link {
    text-transform: uppercase;
    font-size: 1rem;
    margin-right: 3em;
    color: #484848;
}

.custom-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.custom-toggler span {
    display: block;
    width: 30px;
    height: 3px;
    background: #333;
    margin: 5px auto;
    transition: transform 0.3s, opacity 0.3s;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -80%;
    height: 100vh;
    width: 70%;
    background-color: #f0f2f4;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: start;
    overflow-y: auto;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 10px;
    background-color: #e6e6e6;
}

.sidebar-logo img {
    width: 200px;
    height: auto;
}

.sidebar-menu, .sidebar-contacts {
    list-style: none;
    padding-left: 1.5em;
    padding-right: 1.5em;
    text-transform: uppercase;
}

.sidebar-contacts i {
    margin-right: unset;
    width: 20px;
}

.sidebar-contacts a {
    color: #484848;
}

.sidebar-menu li {
    margin: 20px 0;
    border-bottom: 1px solid #b2b2b2;
}

.sidebar-menu li a {
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

.sidebar-menu li a:hover {
    color: #c60303 !important;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 900;
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

.sidebar.active {
    left: 0;
}


.social-icons a {
    margin-left: 10px;
    color: gray;
}

.carousel-inner img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.carousel-item {
    position: relative;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3;
}

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

.static-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.caption {
    font-family: "Bodoni Moda", serif;
    position: absolute;
    top: 3.4em;
    line-height: 1em;
    width: 100%;
    transform: translateY(-50%);
    color: white;
    z-index: 4;
    text-transform: uppercase;
}

.caption h1 {
    font-size: 80px;
    float: right;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.caption p {
    font-size: 40px;
    letter-spacing: 10px;
    margin-left: 3em;
    width: 100%;
    float: left;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.caption h1, .caption p {
    opacity: 0;
    transform: translateX(20px); /* For h1 */
}

.caption p {
    transform: translateX(-20px); /* For p */
}

.caption h1.show, .caption p.show {
    opacity: 1;
    transform: translateX(0); /* Reset transform on show */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
}


.search-container {
    position: absolute;
    display: inline-block;
    margin-right: 20px; /* Adjust as needed */
}

.search-input {
    width: 30px;
    transition: width 0.3s ease, border-radius 0.3s ease;
    border: 1px solid gray;
    background-color: white;
    border-radius: 20px;
    padding: 5px 25px 5px 10px;
    outline: none;
    display: inline-block;
}

.search-input.no-radius {
    border-radius: 20px 20px 0 0;
}

.search-input:focus {
    width: 300px; /* Expand width on focus */
}

.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: gray;
}

.search-input:focus + .search-icon {
    display: none;
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.search-bar .search-icon {
    transition: opacity 0.3s ease;
}

.search-bar input {
    color: black;
    border: none;
    outline: none;
    width: 0;
    transition: width 0.4s ease;
}

.search-bar input:focus {
    width: 350px;
}

.search-bar input:focus + .search-icon {
    opacity: 0;
}

.search-results {
    display: none; /* Hide initially */
    background-color: white; /* Set background color */
    border: 1px solid gray; /* Optional border */
    border-radius: 0 0 20px 20px; /* Match with input border radius */
    z-index: 1000; /* Ensure it appears above other elements */
    position: absolute; /* Position it relative to the search container */
    width: 100%; /* Adjust width to match input */
    max-height: 300px; /* Limit the height */
    overflow-y: auto; /* Scroll if needed */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
    opacity: 1; /* Default opacity for block elements */
}

.search-results.show {
    display: block; /* Show results when class 'show' is added */
}


.search-result-item {
    padding: 10px; /* Add some padding */
    cursor: pointer; /* Show pointer on hover */
    display: flex; /* Flexbox to align image and text */
    align-items: center;
}

.search-result-item:hover {
    background-color: #f0f0f0; /* Change background on hover */
}


.search-result-item img {
    width: 50px; /* Set a fixed width for the image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Optional: Add border radius to image */
    margin-right: 10px; /* Space between image and text */
}

.result-text {
    flex-grow: 1; /* Take up remaining space */
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading-screen img {
    width: 300px;
}

.logo {
    width: 150px;
    margin: auto!important;
}

.category-tab {
    background-color: #f8f9fa;
    border-radius: 10px;
    color: black;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-tab.active {
    background-color: black;
    color: white;
    border-radius: 20px;
}

.category-tab:hover {
    background-color: black;
    color: white;
}

.card {
    transition: transform 0.3s ease, box-shadow 1s ease;
    overflow: hidden;
    border: unset !important;
}

.card h5, .card .car-price {
    height: 40px;
    display: flex;
    justify-content: space-between; /* Ensure price and mileage are on opposite ends */
    align-items: center;
}

.card .car-miles {
    margin-left: 3em;
}

.card .car-price {
    align-content: end;
}

.cards {
    min-height: 450px;
}

.card p {
    color: #6e6d6d;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    max-height: 350px; /* Set your desired height */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.category-scroll {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.category-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar for WebKit browsers */
}

.category-scroll {
    -ms-overflow-style: none; /* Hide scrollbar for Internet Explorer and Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.image-wrapper {
    height: 250px; /* Set desired height */
    overflow: hidden; /* Hide overflow */
}

.image-wrapper img {
    width: 100%; /* Make image responsive */
    height: inherit; /* Keep aspect ratio */
    object-fit: cover; /* Cover the area without stretching */
}

.card {
    opacity: 1; /* Start invisible */
    transform: translateY(20px); /* Start slightly lower */
    transition: opacity 1s ease, transform 0.6s ease; /* Transition for both opacity and position */
}

.card.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Move back to original position */
}


.card:hover {
    transform: scale(1.01); /* Scale the card to 105% of its original size */
}

.btn {
    width: 200px;
    height: 50px;
    border-radius: 0;
    margin: auto;
}

.btn i {
    margin-left: .5em;
    transition: transform 0.3s ease; /* Transition for smooth movement */
}

.btn:hover i {
    transform: translateX(5px); /* Move icon slightly to the right on hover */
}

h1 {
    margin-bottom: 1em;
    text-align: center;
    color: #484848;
}

li.list-group-item {
    text-transform: uppercase;
    background: transparent;
    border: none;
    color: #495057;
}

.footer {
    padding-top: 1em;
}

.footer a, .list-group-item a {
    color: #495057;
    transition: color 0.3s ease;
    text-decoration-color: #343a40;
}

.footer a:hover, .list-group-item a:hover {
    color: #ef677a !important;
    text-decoration: underline;
}

.footer a {
    font-size: 16px;
    text-transform: uppercase;
}

.footer img {
    max-width: 210px;
}

.underline {
    cursor: default;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    color: #495057;
}

.underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 120%;
    background-color: rgba(128, 128, 128, 0.5);
}

.linked-tiles {
    width: 75%; /* Set width of the element */
    margin: 0 auto; /* Center the element */
    display: flex; /* Use flexbox for layout */
    flex-wrap: inherit; /* Allow wrapping for smaller screens */
    justify-content: center; /* Center items horizontally */
}

.tile-item {
    color: white !important;
    position: relative; /* For absolute positioning of text and overlay */
    width: 100%; /* Each tile takes full width of the container */
    margin: 0; /* No margin */
    overflow: hidden; /* Hide overflow for overlay effect */
    transition: transform 0.3s ease; /* Smooth scaling on hover */
}

.tile-item img {
    width: 100%; /* Make images responsive */
    height: 600px; /* Fixed height for all images */
    object-fit: cover; /* Cover the tile area */
    transition: opacity 0.3s ease; /* Smooth opacity transition */
}

.tile-item h1 {
    position: absolute; /* Position text */
    bottom: 10px; /* Space from bottom */
    left: 10px; /* Space from left */
    padding: 10px; /* Padding around text */
    transition: opacity 0.3s ease; /* Smooth opacity transition */
    text-transform: uppercase;
    font-size: 25px;
    z-index: 2;
}

.tile-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)); /* Gradient overlay */
    transition: opacity 0.3s ease; /* Smooth opacity transition for overlay */
    z-index: 1; /* Ensure it’s above the image but below the text */
}

.tile-item:hover::before {
    opacity: 0; /* Remove overlay on hover */
}

.tile-item:hover img {
    opacity: 0.8; /* Slightly fade image on hover */
}

.tile-item:hover h1 {
    opacity: 0; /* Fade out text on hover */
}

.custom-width {
    width: 75% !important;
}

#custom-mail-input {
    border: 1.5px solid #484848 !important;
}

#button-addon2 {
    width: 40px;
    height: 40px;
    color: #484848;
    border-radius: 50%;
    padding: 0;
    transition: background-color 0.3s ease;
}

#button-addon2:hover {
    background-color: #343a40;
    color: white;
}

#button-addon2:active {
    background-color: #212529;
}

.input-mail-wrapper {
    width: 400px;
    max-width: 100%;
    position: relative;
}

.input-mail-wrapper input {
    border: 2px solid white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    width: 100%;
    height: auto;
}

.input-mail-wrapper button {
    background: white;
    border-color: #484848;
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: 4%;
    transition: background-color 0.3s ease;
}

.input-mail-wrapper button:hover {
    background-color: #e0e0e0;
}

#img-wrapper-4 img {
    opacity: 0;
    transform: translateY(50px); /* Optional: slide effect */
    transition: opacity 2s ease, transform 2s ease; /* Smooth animation */
}

#img-wrapper-4 img.visible {
    opacity: 1;
    transform: translateY(0); /* Reset to original position */
}

#top-img-container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/static/about-bg.jpg");
    background-position: center;
    background-size: cover;
}

.inventory {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/static/inventory-bg.jpg");
    background-position: center;
    background-size: cover;
}

#grid_wrap {
    overflow: hidden; /* Prevents overflow during animation */
}

.select-values {
    padding-bottom: 1em;
}

input, select, textarea {
    border: 1.5px solid #484848 !important;
}

.terms-and-policy {
    letter-spacing: .6px;
    text-align: justify;
}

.car-specs {
    height: 70px;
}

.progress-dots {
    display: flex;
    margin-top: 1em;
    justify-content: center;
}

.progress-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.progress-dots .dot.active {
    background-color: #c60303;
}


/* Add padding and space for smaller screens */
@media (max-width: 768px) {
    input[type="number"] {
        padding: 8px;
        font-size: 14px;
    }
}


@media (max-width: 768px) {
    .sidebar-inventory {
        width: 100%; /* Full width on smaller screens */
        padding: 10px; /* Adjust padding */
    }

    .price-filter {
        flex-direction: row; /* Align price inputs horizontally on smaller screens */
        justify-content: space-between; /* Space out the inputs */
    }

    .price-filter input {
        width: 48%; /* Allow inputs to be close to half the width */
    }
}


@media (min-width: 1900px) {
    .image-wrapper {
        height: 350px; /* Set desired height */
    }
}

@media (max-width: 1600px) {
    .linked-tiles {
        width: 90%;
    }

    .custom-width {
        width: 90% !important;
    }

    .cards {
        min-height: 450px;
    }
}


@media (max-width: 1300px) {
    .caption {
        top: 2.8em;
    }

    .caption h1 {
        font-size: 60px;
    }

    .caption p {
        font-size: 40px;
    }

    .linked-tiles {
        width: 100%;
    }
}

@media (min-width: 1400px) {
    #top-img-container .container, .inventory .container {
        height: 250px;
        align-items: center;
    }

    #button-addon2 {
        margin-top: 3px;
    }

    #custom-mail-input {
        font-size: 20px;
    }

    #custom-header-size {
        font-size: 35px;
    }
}

.sold-tag-car-page {
    width: 100px;
    text-align: center;
    background-color: #d9534f;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    text-transform: uppercase;
    border-radius: 5px;
    z-index: 1;
    margin-bottom: 1em;
}