/********** Template CSS **********/
:root {
    --primary: #D81324;
    --secondary: #0B2154;
    --light: #F2F2F2;
    --dark: #111111;
    --text-color: #333333;
}

* {
    font-family: LatoGoogle, Lato, LatoWeb, sans-serif;
}

body {
    font-family: LatoGoogle, Lato, LatoWeb, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* lighter glass overlay so the banner image shows more clearly; no blur on the image */
    background: linear-gradient(90deg, rgba(0,145,255,0.06), rgba(30,41,59,0.04));
    backdrop-filter: none; /* remove blur effect */
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
        /* show more of the right side of the image */
        background-position: 70% center;
}

.page-header-inner {
    background: rgba(0, 0, 0, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-bg-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


/*** Service ***/
.service .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.service .nav .nav-link.active {
    background: var(--primary);
}

.service .nav .nav-link.active h4 {
    color: #FFFFFF !important;
}


/*** Booking ***/
.booking {
    /* booking now uses a blurred ::before background layer so the image itself is blurred
       and content sits above it */
    position: relative;
    overflow: hidden;
}

.booking::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(/Images/booknow_banner.jpg) 70% center / cover no-repeat;
    filter: blur(6px);
    transform: scale(1.03); /* slightly enlarge to hide edges when blurred */
    z-index: 0;
}

.booking > .container { position: relative; z-index: 1; }

/* panel used inside the booking column - make it transparent with a subtle border */
.booking-panel {
    /* subtle glass overlay similar to the header so the image reads through */
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(30,41,59,0.02));
    border-radius: 8px;
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
    padding: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.02);
}

/* booking button: solid red background with white text */
.btn-booking {
    background: #D81324;
    color: #FFFFFF;
    border: 2px solid #D81324;
    font-weight: 700;
    border-radius: 8px;
}
.btn-booking:hover{
    background: #B00F1E;
    color: #FFFFFF;
    border-color: #B00F1E;
}

.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Team ***/
.team-item .team-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transform: scale(0);
    transition: .5s;
}

.team-item:hover .team-overlay {
    transform: scale(1);
}

.team-item .team-overlay .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-overlay .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, .9), rgba(0, 0, 0, .9)), url(../img/carousel-bg-1.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Targeted color rules for About paragraph/list (normal weight) */
#about-section p, #about-section ul, #about-section ul li {
    color: var(--secondary) !important;
    font-weight: 400 !important;
}

/* Set the tile color/weight at the tile container so icons and labels inherit */
#what-checked .p-2.h-100 {
    color: var(--secondary) !important;
    font-weight: 700 !important;
}

/* Allow a single tile (e.g., .wc-engine) to control the color for all tiles by setting the container color */
.wc-engine {
    color: var(--secondary) !important;
}

/* what-is-checked icons: inherit color and use consistent sizing */
#what-checked .what-icon,
.what-icon {
    color: currentColor !important; /* inherit from parent tile */
    font-size: 2.2rem; /* for <i> icons */
}

/* Ensure inline SVGs with class what-icon scale and fill the current color */
#what-checked svg.what-icon, svg.what-icon {
    width: 2.2rem;
    height: 2.2rem;
    fill: currentColor;
    vertical-align: middle;
}

/* About section icons: inherit color too and match size */
.about-icon {
    color: currentColor !important;
    font-size: 2.2rem;
}

/* Slightly increase spacing on the About features for two-column layout */
#about-section .row.g-4.mb-3 .col-6 {
    margin-bottom: 0.75rem;
}

/* Ensure the features area doesn't add unexpected bottom spacing */
#about-section .row.g-4.mb-3.pb-3 {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Make about image fill the left column height so it stretches to match the feature grid */
#about-section .col-lg-6.h-100 .img-fluid {
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* Ensure the right column content starts at the top so the image and content align */
#about-section .col-lg-6.d-flex.flex-column.justify-content-center {
    justify-content: flex-start !important;
}

/* Make the about left column stretch to match the right column content */
/* Ensure the About row stretches fully and left image fills height */
#about-section .row.g-5.align-items-stretch { display:flex; align-items:stretch; }
#about-section .col-lg-6.h-100 { display:flex; align-items:stretch; }
#about-section .col-lg-6.h-100 .wow { flex:1 1 auto; display:flex; }
#about-section .col-lg-6.h-100 .img-fluid { width:100%; height:100%; object-fit:cover; display:block }

/* Ensure the About section is tall enough so the image extends to the feature grid end */
#about-section {
    /* Increased to ensure the left image stretches to the bottom of the feature grid */
    min-height: 920px;
}

@media (max-width: 991.98px) {
    /* reduce min-height on smaller screens to avoid excessive vertical space */
    #about-section {
        min-height: 700px;
    }
}

/* Subtle dust/sand animated background for decorative effect */
@keyframes dust-drift {
    0% { transform: translateX(-10%) translateY(0) scale(1); opacity: 0.06 }
    50% { transform: translateX(10%) translateY(-6%) scale(1.05); opacity: 0.09 }
    100% { transform: translateX(-10%) translateY(0) scale(1); opacity: 0.06 }
}

.section-dust {
    position: relative;
    overflow: hidden;
}

.section-dust::before {
    content: '';
    position: absolute;
    inset: -20% -30% -20% -30%;
    background-image: radial-gradient(circle at 20% 30%, rgba(210,180,140,0.06) 0 5%, transparent 10%),
                      radial-gradient(circle at 80% 70%, rgba(222,184,135,0.05) 0 6%, transparent 12%);
    background-size: 80% 80%, 100% 100%;
    pointer-events: none;
    transform-origin: center;
    animation: dust-drift 18s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Apply subtle darker tint for better contrast on content when needed */
.section-dust .container { position: relative; z-index: 2; }

/* Apply the dust overlay to What is checked and About sections */
#what-checked.section-dust::before,
#about-section.section-dust::before { display: block; }

/* Ensure modals are scrollable */
.modal-dialog-scrollable {
    max-height: calc(100vh - 3.5rem);
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 210px);
}

/* Customer listing cards hover effect */
.customer-highlight-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.customer-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Fix modal footer visibility on mobile - CRITICAL */
.modal-dialog-scrollable .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-dialog-scrollable .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(90vh - 140px);
}

.modal-dialog-scrollable .modal-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 1050;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex !important;
    gap: 10px;
}

/* Ensure buttons are always visible and tappable */
.modal-footer .btn {
    white-space: nowrap;
}

/* Mobile specific fixes - CRITICAL for submit button */
@media (max-width: 768px) {
    .modal-dialog-scrollable {
        max-height: 95vh !important;
        margin: 0.5rem;
    }
    
    .modal-dialog-scrollable .modal-content {
        max-height: 95vh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .modal-dialog-scrollable .modal-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        max-height: calc(95vh - 130px) !important;
        padding-bottom: 30px !important;
    }
    
    .modal-dialog-scrollable .modal-footer {
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        z-index: 1051 !important;
        padding: 12px 15px !important;
        border-top: 2px solid #dee2e6 !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        gap: 8px !important;
    }
    
    .modal-footer .btn {
        padding: 14px 20px !important;
        font-size: 16px !important;
        min-height: 48px !important;
        flex: 1 !important;
        font-weight: 600 !important;
    }
    
    /* Ensure all photo upload sections including RC are visible */
    #listingPhotoInputs .col-sm-6,
    #listingPhotoInputs .col-md-4 {
        margin-bottom: 25px !important;
    }
    
    /* Make form labels more visible on mobile */
    .form-label {
        font-weight: 600;
        margin-bottom: 8px;
    }
}

/*** SOLD OUT Banner Overlay ***/
.sold-out-overlay {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(30%);
}

.sold-out-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px 40px;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), inset 0 2px 3px rgba(255,255,255,0.3);
    z-index: 10;
    pointer-events: none;
    border-radius: 8px;
}

.sold-out-banner::before,
.sold-out-banner::after {
    content: '';
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 4px;
    background: white;
}

.sold-out-banner::before {
    left: -4px;
}

.sold-out-banner::after {
    right: -4px;
}

.customer-highlight-card.sold-out {
    cursor: not-allowed !important;
    transition: all 0.3s ease;
}

.customer-highlight-card.sold-out:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

/*** Enhanced List Your Car Button ***/
.list-car-btn {
    background: linear-gradient(135deg, #D81324 0%, #c8102e 100%);
    color: white !important;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(216, 19, 36, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.list-car-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 19, 36, 0.5);
    background: linear-gradient(135deg, #c8102e 0%, #D81324 100%);
}

.list-car-btn:active {
    transform: translateY(0);
}

.list-car-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* Pulse animation for List Your Car button */
@keyframes pulse-red {
    0% {
        box-shadow: 0 4px 15px rgba(216, 19, 36, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(216, 19, 36, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(216, 19, 36, 0.4);
    }
}

.list-car-btn-pulse {
    animation: pulse-red 2s infinite;
}

/*** Custom Carousel Dot Indicators ***/
.carousel-indicators {
    position: relative !important;
    margin: 20px 0 0 0 !important;
    bottom: auto !important;
}

.carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: #ccc !important;
    border: 2px solid transparent !important;
    opacity: 1 !important;
    margin: 0 6px !important;
    transition: all 0.3s ease !important;
}

.carousel-indicators [data-bs-target].active {
    background-color: #D81324 !important;
    border-color: #D81324 !important;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(216, 19, 36, 0.4);
}

.carousel-indicators [data-bs-target]:hover {
    background-color: #999 !important;
    transform: scale(1.15);
}

/* Hide default arrow controls */
.carousel-control-prev,
.carousel-control-next {
    display: none !important;
}

/*** Image Loading Optimization ***/
.customer-highlight-card img {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    transition: opacity 0.3s ease;
}

.customer-highlight-card img[loading="lazy"] {
    opacity: 0;
}

.customer-highlight-card img.loaded {
    opacity: 1;
}

/* Image placeholder blur effect */
.img-placeholder {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

