﻿/* 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 */

.main-image-container img {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

/* 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;
}
}

/* Promotions page */

.promo-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.promo-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1; /* square wrapper */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff; /* whitespace for non-square images */
}

.promo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* fit inside wrapper, preserve aspect ratio */
    object-position: center; /* center inside wrapper */
    transition: transform 0.3s ease;
}

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


/* Promotion content */
.promotion-content {
    font-size: 14px !important;
    font-weight: 300;
    text-align: justify;
    line-height: 1.3;
}

/* Make <strong> and <b> actually bold */
.promotion-content strong,
.promotion-content b {
    font-weight: 700 !important;
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Paragraph spacing */
.promotion-content p {
    margin: 0 0 4px 0 !important;
}

/* Headings */
.promotion-content h1 {
    font-size: 22px !important;
    margin: 10px 0 6px 0;
    font-weight: 600;
}

.promotion-content h2 {
    font-size: 18px !important;
    margin: 8px 0 4px 0;
    font-weight: 600;
}

.promotion-content h3 {
    font-size: 16px !important;
    margin: 6px 0 4px 0;
    font-weight: 500;
}

/* Lists */
.promotion-content ul,
.promotion-content ol {
    margin: 4px 0 4px 20px !important;
    padding: 0;
}

.promotion-content li {
    margin-bottom: 2px;
}

/* Model card image (for detail page) */
.promotion-content .model-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #fff;
}

/* Promotion image grid (for preview and below text) */
.promotion-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

/* Fix image scaling: maintain aspect ratio, never crop */
.promotion-images img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain; /* keeps original proportions */
    object-position: center;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

/* Slight hover effect */
.promotion-images img:hover {
    transform: scale(1.05);
}

/* Fix for preview cards (so images don't get cut off) */
.promotion-preview img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    background: #fff;
}

/* Optional: limit preview card image height if needed */
.promotion-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.promotion-preview .promotion-content {
    text-align: justify;
}


/* Promotion gallery */
.promotion-thumb {
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promotion-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.lightbox-overlay button {
    transition: opacity 0.2s ease;
}

.lightbox-overlay button:hover {
    opacity: 0.8;
}