/* Mirauto Roma - Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Form focus improvements */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Promo badge animation */
@keyframes pulse-gentle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}
.animate-pulse {
    animation: pulse-gentle 2s ease-in-out infinite;
}

/* Gallery lightbox */
#lightbox {
    display: none;
}
#lightbox.active {
    display: flex;
}

/* Hide honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
}

/* Mobile CTA smooth appearance */
@media (max-width: 767px) {
    body {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* === Vehicle Page - Gallery & Lightbox === */

/* Hero background image sizing */
.hero-bg-img {
    object-position: center 40%;
}

/* Carousel slides */
.gallery-slide {
    opacity: 0;
    pointer-events: none;
    will-change: transform;
}
.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Carousel arrows - smooth appearance */
.carousel-arrow {
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.carousel-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

/* Carousel dots - active pill shape */
.carousel-dot {
    transition: all 0.3s ease;
    height: 8px;
    min-width: 8px;
}

/* Thumbnail styling */
.gallery-thumb {
    opacity: 0.5;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    border-radius: 0.5rem;
}
.gallery-thumb:hover {
    opacity: 0.8;
}
.gallery-thumb.active {
    opacity: 1;
    border-color: currentColor;
}

/* Thumbnails horizontal scroll - hide scrollbar */
.gallery-thumbs-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}
.gallery-thumbs-scroll::-webkit-scrollbar {
    display: none;
}
.gallery-thumbs-scroll > * {
    scroll-snap-align: start;
}

/* Lightbox nav arrows */
.lightbox-nav {
    transition: opacity 0.2s ease, background-color 0.2s ease;
    opacity: 0.5;
}
.lightbox-nav:hover {
    opacity: 1;
}

/* Lightbox image transition */
#lightbox-img {
    transition: opacity 0.2s ease;
}
