:root {
    --azul-escuro: #020617;
    --azul: #1d4ed8;
    --preto: #000000;
    --branco: #ffffff;
}

.navbar {
    background-color: var(--azul-escuro) !important;
    border-bottom: 2px solid var(--azul);
    padding: 10px 12px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 20;
}

.navbar a {
    color: var(--branco) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar a:hover {
    color: var(--azul) !important;
}

.navbar-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo a {
    text-decoration: none;
}

.logo-main {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--azul);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--azul);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 10px;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: rgba(226, 232, 240, 0.9);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--azul);
    border-color: var(--azul);
}

.theme-toggle-vehicle {
    margin-left: 24px;
    margin-right: 0;
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-vehicle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

body[data-theme="light"] .theme-toggle-vehicle {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.2);
    background: rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .theme-toggle-vehicle:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border-color: #1d4ed8;
}

@media (max-width: 980px) {
    .navbar-inner {
        justify-content: center;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 12px 16px;
    }
}

@media (max-width: 720px) {
    .navbar-inner {
        justify-content: center;
        text-align: center;
    }
    .navbar .logo {
        width: 100%;
        align-items: center;
    }
    .nav-links {
        flex: 1 1 100%;
        font-size: 0.9rem;
        gap: 10px 14px;
    }
    .theme-toggle-vehicle {
        width: 100%;
        max-width: 240px;
        text-align: center;
        justify-content: center;
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 12px 10px;
    }
    .navbar-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .navbar .logo {
        align-items: center;
    }
    .logo-main {
        font-size: 1.15rem;
    }
    .logo-sub {
        font-size: 0.75rem;
    }
    .nav-links {
        order: 2;
        width: 100%;
        padding: 6px 0 2px;
        gap: 10px 12px;
        font-size: 0.88rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links li {
        flex: 0 0 auto;
    }
    .theme-toggle-vehicle {
        order: 3;
        width: 100% !important;
        max-width: 320px;
        text-align: center;
        justify-content: center;
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .nav-links {
        font-size: 0.85rem;
        gap: 8px 12px;
    }
}

/* Botão de tela cheia e overlay das fotos */
.detail-carousel {
    position: relative;
}

.vehicle-fs-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #f8fafc;
    cursor: pointer;
    z-index: 5;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.vehicle-fs-btn:hover,
.vehicle-fs-btn:focus-visible {
    background: rgba(37, 99, 235, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.vehicle-fs-btn span {
    font-size: 0.9rem;
}

.vehicle-fs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 3000;
    padding: 16px;
}

.vehicle-fs-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.vehicle-fs-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-fs-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    background: #0f172a;
}

.vehicle-fs-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #111827;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.vehicle-fs-close:hover,
.vehicle-fs-close:focus-visible {
    background: #1d4ed8;
    border-color: rgba(255, 255, 255, 0.4);
}
