﻿/* Navbar */
/******************************************************/
.navbar {
    padding-top: 0px;
    padding-bottom: 0px;
}

/* Brand navbar*/
/******************************************************/
#brandNavbarOffcanvas {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
}

.nav-brand-logo-item {
    display: flex;
    align-items: center;
}

.navbar-brand-logo-link {
    margin-right: 6px;
    font-family: 'Roboto', sans-serif;
}

.navbar-brand-logo-img {
    height: 16px;
    width: auto;
    display: block;
}

.navbar-contact-link {
    color: #29293a;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    padding-left: 0px !important;
}

.link-hover-color:hover {
    color: #c1d72e;
}

#brandLogoNavbar {
    height: 40px;
}

@media (max-width: 992px) {
    #brandLogoNavbar {
        padding-right: 12px;
    }
}

/* Company navbar */
/******************************************************/
.company-navbar {
    top: 40px;
}

.company-navbar-container {
    max-width: 1200px;
    height: 80px;
}

.company-navbar-list-link {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: black;
    padding-left: 5px;
}

.company-navbar-company-logo {
    aspect-ratio: auto 2321 / 309;
    width: 350px
}

.company-navbar-dropdown-menu {
    border: none;
    border-radius: 0;
    padding: 10px;
}

/******************************************************/

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .dropdown-toggle::after {
        display: none;
    }
}

.carousel-item {
    padding: 0% 2%; /* Default padding for large screens */
    max-height: 820px;
}

.carousel-item img {
    width: 100%; /* Makes it full width */
    height: auto; /* Keeps aspect ratio */
    max-height: 620px; /* Prevents it from exceeding the container */
    object-fit: contain; /* Ensures it fills the space without distortion */
}

.carousel-caption {
    background-color: rgba(255, 255, 255, 0.5);
    color:black;
}

.company-info-section {
    margin: 10px 0%;
}

.company-info-section .btn {
    height: 70px;
    width: 240px;
    background-color: #c1d72e;
    border: #c1d72e;
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    margin-bottom: 10px;
}

.company-info-section .btn:hover {
    background-color: black;
    border: black;
}

.footbar {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.vehicle-image-container {
    position: relative;
    width: 100%;
    padding-top: 50%; /* 2:1 aspect ratio (height = 50% of width) */
    overflow: hidden;
}

.vehicle-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.justify-text {
    text-align: justify;
}

.vehicle-image-container {
    height: 180px;
    overflow: hidden;
    border-top-left-radius: .375rem;
    border-top-right-radius: .375rem;
}

.vehicle-image-wrapper {
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}


.thumbnail-img {
    transition: 0.3s;
}

    .thumbnail-img:hover {
        opacity: 0.8;
        border-color: #0d6efd;
    }

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f8f9fa; /* subtle light background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Image slider */

/* Container hides overflow and hides native scrollbar */
.thumbnail-strip-wrapper {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE10+ */
}

    .thumbnail-strip-wrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

/* Inner flex strip */
.thumbnail-strip {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Each thumbnail kept at 4:3 */
.thumbnail-cell {
    flex: 0 0 auto;
    width: 100px;
    aspect-ratio: 4 / 3;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
}

    .thumbnail-cell img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Highlight selected */
    .thumbnail-cell.selected {
        border-color: #0d6efd;
    }

/* Slider buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.8;
}

    .slider-btn:hover {
        opacity: 1;
    }

    .slider-btn.start-0 {
        left: 0;
    }

    .slider-btn.end-0 {
        right: 0;
    }


/* Modal overlay */
/******************************************************/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.8rem;
}

.modal-overlay .form-control,
.modal-overlay .btn,
.modal-overlay .form-label,
.modal-overlay .modal-title,
.modal-overlay small,
.modal-overlay .text-muted,
.modal-overlay .text-danger {
    font-size: 0.8rem !important;
}

.modal-overlay .modal-title {
    font-size: 1rem !important; /* or 1.25rem for slightly larger title */
    font-weight: 600;
}

.modal-dialog-centered {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    border-radius: 0.5rem;
    background-color: #fff;
}


/*Blazor loaded*/

.blazor-loader {
    height: 100vh;
    width: 100%;
    text-align: center;
    background-color: #f8f9fa; /* Light background */
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.loading-logo {
    width: 44px;
    height: 44px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
