body {
    background-color: #f8f9fa;
    padding-top: 70px; /* Ajusta o espaçamento para a navbar fixa */
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.price {
    color: #198754;
    font-size: 1.1rem;
    font-weight: 500;
}

footer {
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 1.5rem;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
    .card-title {
        font-size: 1rem;
    }
    .carousel-inner img {
        height: 180px;
        object-fit: cover;
    }
}

.carousel-inner img {
    height: 320px;
    object-fit: cover;
}

#filtros {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
}

section, #carros {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    scroll-margin-top: 90px;
}

#carros {
    justify-content: flex-start;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
}

section#main-carousel-section {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    position: relative;
    margin-top: 0 !important;
    scroll-margin-top: 0 !important;
}

#mainCarousel {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    position: relative;
}

.carousel-fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    min-height: 100vh;
    min-width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    display: block;
}

.carousel-indicators {
    position: absolute !important;
    left: 50% !important;
    bottom: 32px !important;
    transform: translateX(-50%) !important;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #198754;
    opacity: 0.7;
    margin: 0 6px;
}
.carousel-indicators .active {
    background-color: #198754;
    opacity: 1;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

#mainCarousel, .carousel-fullscreen {
    max-width: 100vw;
    overflow-x: hidden;
}

section#main-carousel-section {
    max-width: 100vw;
    overflow-x: hidden;
}

.custom-navbar {
    transition: background 0.5s, box-shadow 0.5s, top 0.5s, color 0.5s;
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.custom-navbar .navbar-brand,
.custom-navbar .nav-link,
.custom-navbar .fa-car {
    color: #222 !important;
}

.custom-navbar .nav-link.active {
    font-weight: bold;
}

.navbar-dark-bg {
    background: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.navbar-dark-bg .navbar-brand,
.navbar-dark-bg .nav-link,
.navbar-dark-bg .fa-car {
    color: #fff !important;
}

.navbar-dark-bg .nav-link.active {
    font-weight: bold;
}

.navbar-animate {
    animation: navbarSlideDown 0.5s;
}

@keyframes navbarSlideDown {
    from {
        top: -80px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    section, #carros {
        min-height: 100vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .carousel-fullscreen {
        height: 50vh;
    }

    section#main-carousel-section,
    #mainCarousel,
    .carousel-fullscreen {
        height: 50vh;
        min-height: 50vh;
        max-height: 50vh;
    }
    .carousel-indicators {
        bottom: 12px !important;
    }
}

#btnGrid.active, #btnRow.active {
    background: #198754;
    color: #fff;
    border-color: #198754;
}
#btnGrid, #btnRow {
    min-width: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card.flex-row {
    flex-direction: row;
}
@media (max-width: 767.98px) {
    .card.flex-row {
        flex-direction: column;
        align-items: stretch !important;
    }
    .card.flex-row img.card-img-left {
        width: 100% !important;
        height: 180px !important;
        border-radius: 8px 8px 0 0 !important;
    }
}

#contato-section, #contato {
    scroll-margin-top: 90px;
}

section#contato-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    scroll-margin-top: 90px;
}
