/* Globais e Cores da Identidade Visual */
:root { 
    --primary: #15203F;   /* Azul Escuro Principal */
    --secondary: #97ABF7; /* Azul Claro Hover/Detalhes */
    --dark: #1a1a1a; 
    --light: #f4f4f4; 
    --white: #ffffff; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background: var(--light); 
    color: var(--dark); 
    line-height: 1.6; 
}

/* Banner Principal */
.top-banner { 
    width: 100%; 
    max-width: 1920px; 
    height: 300px;      
    margin: 0 auto;     
    background: var(--dark) url('assets/images/banner.png') no-repeat center/cover; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
}

/* Menu de Navegação Branco Padrão */
.main-nav { 
    background: var(--white) !important; 
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    width: 100%;
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.main-nav ul { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    margin: 0; 
    padding: 0; 
}

.main-nav ul li a { 
    color: #666; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
}

.main-nav ul li a:hover { 
    color: var(--secondary) !important; 
}

.main-nav ul li a.active { 
    color: var(--primary) !important; 
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Bandeiras e Ícone de Login */
.lang-switcher { display: flex; gap: 12px; align-items: center; }
.lang-switcher img { 
    width: 20px !important; 
    height: 14px !important; 
    object-fit: cover;
    cursor: pointer; 
    opacity: 0.7; 
    transition: 0.3s;
    border: 1px solid #ddd;
}
.lang-switcher img:hover { opacity: 1; transform: scale(1.1); }

.login-icon {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    border: none !important;
    opacity: 0.8;
    margin-left: 5px;
    transition: 0.3s;
}
.login-icon:hover { opacity: 1; transform: scale(1.1); }

/* Layout Geral */
.page-container { display: flex; max-width: 1100px; margin: 30px auto; gap: 25px; padding: 0 20px; align-items: flex-start; }

/* Sidebar de Filtros */
.sidebar { width: 280px; background: var(--white); padding: 20px; border-radius: 8px; height: fit-content; box-shadow: 0 2px 10px rgba(0,0,0,0.05); flex-shrink: 0; }
.filter-group { margin-bottom: 25px; }
.filter-group h4 { 
    border-left: 4px solid var(--primary) !important; 
    padding-left: 10px !important; 
    color: var(--primary) !important; 
    margin-bottom: 15px; 
    font-weight: bold;
    text-transform: uppercase; 
    font-size: 0.85rem;
}
.checkbox-list { max-height: 150px; overflow-y: auto; padding-right: 5px; }
.checkbox-item { display: flex; align-items: center; margin-bottom: 8px; font-size: 0.85rem; cursor: pointer; }
.checkbox-item input { margin-right: 10px; }

/* Grid de Veículos */
.content-area { flex: 1; }
.vehicle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Card do Veículo */
.car-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: flex; flex-direction: column; transition: 0.3s; }
.car-card:hover { transform: translateY(-5px); }
.img-slider { position: relative; width: 100%; height: 200px; overflow: hidden; background: #eee; }
.img-slider img { width: 100%; height: 100%; object-fit: cover; }
.car-info { padding: 15px; }
.price-tag { font-size: 1.4rem; font-weight: bold; color: var(--primary); margin: 15px 0; }

/* Botões Globais */
.btn { 
    display: inline-block;
    padding: 12px 24px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    text-align: center; 
    text-decoration: none; 
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* Paginação */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; padding-bottom: 50px; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; background: var(--white); color: #333; cursor: pointer; border-radius: 4px; font-weight: bold; }
.page-btn.active { background: var(--secondary) !important; color: var(--white) !important; border-color: var(--secondary) !important; }

/* Rodapé Padrão */
.main-footer {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    padding: 30px 0; 
    margin-top: 80px;
    border-top: 4px solid var(--secondary);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--white);
}

.map-area { flex: 1.5; } 
.map-area iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .page-container { flex-direction: column; }
    .sidebar { width: 100%; }
    .vehicle-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
    .contact-info { text-align: center; align-items: center; }
    .contact-item { justify-content: center; }
}

/* Modal / Pop-up */
.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.85); z-index: 9999; overflow-y: auto; }
.modal-content { background: var(--white); width: 95%; max-width: 1000px; margin: 40px auto; padding: 25px; border-radius: 12px; position: relative; display: flex; flex-wrap: wrap; gap: 25px; }
.close-modal { position: fixed; top: 20px; right: 30px; font-size: 3.5rem; cursor: pointer; color: var(--secondary); z-index: 1100; transition: 0.3s; line-height: 1; }
.close-modal:hover { color: var(--white); }

/* ============================================================
   COMPONENTES DE FORMULÁRIO (SSN & INPUTS)
   ============================================================ */

.ssn-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ssn-container input {
    padding-right: 45px !important; /* Espaço para o ícone */
}

.toggle-ssn {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    user-select: none;
    color: var(--primary);
    opacity: 0.6;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-ssn:hover {
    opacity: 1;
    color: var(--secondary);
}

/* Estilo para quando o input está em foco */
input:focus {
    border-color: var(--secondary) !important;
    outline: none;
    box-shadow: 0 0 5px rgba(151, 171, 247, 0.3);
}