/* assets/css/style.css */

/* Define a rolagem suave para links de âncora (#) */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb; /* gray-50 - Fundo claro */
}

/* --- Estilos do Carrossel (Swiper) --- */
.main-carousel .swiper-button-next,
.main-carousel .swiper-button-prev {
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-carousel .swiper-button-next::after,
.main-carousel .swiper-button-prev::after {
    font-size: 1.25rem;
    font-weight: 800;
}
.main-carousel .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
}
.main-carousel .swiper-pagination-bullet-active {
    background-color: #FFD50A; /* kaneki-yellow */
    opacity: 1;
}

/* --- Estilos da Galeria de Detalhes (veiculo.php) --- */

/* Carrossel Principal */
.gallery-top {
    height: 80%;
    width: 100%;
}
.gallery-top .swiper-slide {
    background-size: cover;
    background-position: center;
    cursor: zoom-in;
    border-radius: 0.5rem; /* rounded-lg */
    overflow: hidden;
}

/* Miniaturas */
.gallery-thumbs {
    height: 20%;
    box-sizing: border-box;
    padding-top: 10px;
}
.gallery-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
    border: 2px solid transparent; /* Adicionado para evitar salto no layout */
    border-radius: 0.375rem; /* rounded-md */
    overflow: hidden;
}
.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #FFD50A; /* kaneki-yellow */
}
.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- Estilos do Lightbox (veiculo.php) --- */
.lightbox-modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
}
.lightbox-swiper {
    width: 100%;
    height: 100%;
}
.lightbox-swiper .swiper-slide {
    display: flex; /* Mantém a centralização */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Garante que nada vaze */
}
/* [CORREÇÃO] Estilização direta da imagem, sem o 'zoom-container' */
.lightbox-swiper .swiper-slide img {
    max-width: 100%;  /* Garante que não ultrapasse a largura do slide */
    max-height: 100%; /* Garante que não ultrapasse a altura do slide */
    object-fit: contain; /* Mantém a proporção e cabe no espaço */
    width: auto;
    height: auto;
}

/* Botão Fechar (Lightbox) */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 1010;
    line-height: 1;
    font-weight: 200;
}
.lightbox-close:hover {
    color: #ccc;
}

/* Setas de Navegação (Lightbox) */
.lightbox-swiper .swiper-button-next,
.lightbox-swiper .swiper-button-prev {
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.lightbox-swiper .swiper-button-next:hover,
.lightbox-swiper .swiper-button-prev:hover {
    opacity: 1;
}

/* --- Ícone do WhatsApp --- */
/* Garante que o SVG do WhatsApp tenha um tamanho consistente */
.whatsapp-icon-svg {
    width: 24px; /* ou o tamanho desejado */
    height: 24px; /* ou o tamanho desejado */
    vertical-align: middle; /* Alinha o ícone com o texto */
    fill: currentColor; /* Usa a cor do texto pai */
}

