* button:hover{
    background: initial!important;
}

* button:focus{
    background: initial!important;
}

.esquerda{
    font-size: 20px!important;
}

.direita{
    font-size: 20px!important;
}

/* Estrutura principal */
.cars-inventory-wrapper { display: flex; flex-wrap: wrap; gap: 30px; max-width: 1400px; margin: 0 auto; padding: 20px; position: relative; }
.inventory-sidebar { flex: 0 0 280px; position: sticky; top: 20px; align-self: flex-start; transition: transform 0.3s ease; }
.filter-section { background: #f8f8f8; padding: 20px; border-radius: 8px; margin-bottom: 20px; position: relative; max-height: 85vh; 
    overflow-y: auto;  }

.filter-section::-webkit-scrollbar { width: 8px; }
.filter-section::-webkit-scrollbar-track { background: #e0e0e0; border-radius: 10px; }
.filter-section::-webkit-scrollbar-thumb { background: #b0b0b0; border-radius: 10px; }
.filter-section::-webkit-scrollbar-thumb:hover { background: #999; }

.filter-section h3 { margin-top: 0; padding-bottom: 10px; border-bottom: 1px solid #ddd; margin-bottom: 15px; }
.filter-accordion { margin-bottom: 20px; }
.accordion-item { border-bottom: 1px solid #ddd; margin-bottom: 5px; }
.accordion-header { padding: 12px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #333; transition: color 0.2s; }
.accordion-header:hover { color: #BF8F3F; }
.accordion-header i { transition: transform 0.3s ease; font-size: 0.9em; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; padding: 0 5px; }
.accordion-item.active .accordion-content { padding-bottom: 15px; }
.accordion-content .facetwp-facet { margin: 10px 0; }
.accordion-content .facetwp-checkbox { margin: 5px 0; display: block; }
.accordion-content .facetwp-link { display: block; padding: 3px 0; color: #666; text-decoration: none; }
.accordion-content .facetwp-link:hover { color: #BF8F3F; }
.accordion-content .facetwp-link.checked { color: #BF8F3F; font-weight: bold; }
.accordion-content .facetwp-slider { margin: 10px 0; }
.accordion-content .facetwp-slider-label { font-weight: bold; margin-top: 10px; }
.reset-filters { width: 100%; padding: 10px; background: #333; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; margin-top: 10px; transition: background 0.3s; }
.reset-filters:hover { background: #BF8F3F; }
.inventory-main { flex: 1; min-width: 0; }
.inventory-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.search-box { flex: 1; min-width: 300px; max-width: 500px; }
.inventory-total-count { color: #666; margin-top: -15px; margin-bottom: 15px; font-weight: 600; }
.banner-carousel { position: relative; height: 280px; overflow: hidden; margin-bottom: 30px; border-radius: 8px!important; }
.banner-carousel a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius:5px!important; opacity: 0; transition: opacity 1s ease; }
.banner-carousel a:first-child { opacity: 1; }
.banner-carousel img { width: 100%; border-radius:5px!important; height: 100%; object-fit: contain; }
.cars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }

.car-card { 
    box-shadow: 0 1px 5px rgba(0,0,0,0.1); 
    border-radius: 8px; 
    overflow: hidden; 
    transition: transform 0.3s, box-shadow 0.3s; 
    display: flex; 
    flex-direction: column; 
    height: auto;
}
.car-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.car-image { position: relative; background: #f5f5f5; }
.carousel-container { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 4 / 3;
}
.carousel-track { display: flex; transition: transform 0.5s ease; height: 100%; }
.carousel-slide { flex: 0 0 100%; height: 100%; display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: block; 
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 2.2em;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: transform 0.2s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.car-card .carousel-container .carousel-prev span,
.car-card .carousel-container .carousel-next span {
    color: white !important;
    transition: none !important;
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-indicators { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 10; }
.carousel-indicators .indicator { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; }
.carousel-indicators .indicator.active { background: white; }
.carousel-counter { display:none;position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); color: white; padding: 3px 8px; border-radius: 12px; font-size: 0.8em; z-index: 10; }
.car-image-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; }

.car-info { padding: 15px; flex-grow: 1; }
.price-info { margin: 10px 0; }
.price-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.sale-price { font-size: 1.4em; font-weight: bold; color: #BF8F3F; }
.retail-value { font-size: 0.9em; color: #666; text-decoration: line-through; }
.car-specs { list-style: none; padding: 0; margin: 15px 0; font-size: 0.9em; }
.car-specs li { margin-bottom: 5px; display: flex; }
.car-specs li strong { min-width: 120px; display: inline-block; }
.car-badge { padding: 10px 15px;  background: #f8f8f8; }
.car-badge-360 { cursor: pointer; }
.car-badge img { max-width: 150px; height: auto; }
.car-actions { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 15px 15px; }
.car-actions a { display: block; padding: 8px; text-align: center; text-decoration: none; border-radius: 4px; font-size: 0.9em; transition: background 0.3s; }
.btn-financing { background: #BF8F3F; color: white; }
.btn-financing:hover{ color:white!important; background: #a87a2d; }
.btn-test-drive { background: #BF8F3F; color: white; }
.btn-test-drive:hover{ color:white!important; background: #a87a2d; }
.btn-trade { background: black; color: white; }
.btn-trade:hover{ color:white!important; background: #333; }
.car-extra { padding: 0 15px 15px; font-size: 0.85em; color: #666; }
.row-banners { grid-column: 1 / -1; margin: 20px 0; }
.inventory-pagination { grid-column: 1 / -1; text-align: center; padding: 20px 0; }
.no-results { grid-column: 1 / -1; text-align: center; padding: 40px; background: #f8f8f8; border-radius: 8px; }
.mobile-filters-toggle { display: none; width: 100%; margin-bottom: 15px; text-align: center; }
.mobile-filters-toggle button { margin: 0 5px; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-filter-toggle { background: #BF8F3F; color: white; }
.btn-clear-filters { background: black; color: white; }
.close-filters { display: none; position: absolute; top: 10px; right: 10px; background: transparent; color: #333; border: none; width: 30px; height: 30px; cursor: pointer; font-size: 20px; line-height: 1; z-index: 1001; }
#test-drive-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 2000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
#test-drive-modal-content { background: white; padding: 30px 40px; border-radius: 10px; width: 90%; max-width: 600px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
.close-modal-btn { position: absolute; top: 10px; right: 15px; font-size: 2rem; color: #aaa; background: none; border: none; cursor: pointer; transition: color 0.2s ease-in-out; z-index: 10; }
.close-modal-btn:hover { color: #888; }
#test-drive-modal-content h2 { text-align: center; margin-top: 0; margin-bottom: 10px; color: #333; }
#test-drive-modal-content p { text-align: center; color: #666; margin-bottom: 25px; }
.car-selection-info { background: #f8f8f8; padding: 10px 15px; border-radius: 5px; margin-bottom: 20px; text-align: center; }
#test-drive-form .form-row { display: flex; gap: 20px; }
#test-drive-form .form-row .form-group { flex: 1; }
#test-drive-form .form-group { margin-bottom: 15px; }
#test-drive-form label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9em; }
#test-drive-form input[type="text"], #test-drive-form input[type="tel"], #test-drive-form input[type="email"], #test-drive-form select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; background-color: #fff; }
.btn-submit-drive { display: block; width: 100%; padding: 12px; border: none; border-radius: 5px; background: #BF8F3F; color: white; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background 0.3s; }
.btn-submit-drive:hover { background: #a87a2d; }
.form-status { margin-top: 15px; text-align: center; font-weight: bold; }
.carousel-track { touch-action: pan-y; }
.carousel-slide { user-select: none; }

#video-360-modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    z-index: 2001; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px;
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    display: none; 
}

#video-360-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding-top: 50vh;
}

#video-360-modal-content .video-container {
    position: relative;
    width: 100%;
    padding-top: 75%; 
    background: transparent; 
    border-radius: 5px;
    overflow: hidden;
}

#video-360-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#close-video-360-modal {
    position: absolute;
    top: 45vh;
    right:5vw;
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    line-height: 1;
}

/* BROWSE BY STYLE: CSS ATUALIZADO (VERSÃO COM ÍCONES) */
.browse-by-style-section {
    margin-bottom: 40px;
}
.browse-by-style-section .section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.browse-by-style-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #b59a6a; /* Tom de ouro/marrom para combinar com a imagem */
}
.style-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.style-card {
    display: flex; /* Alterado para flex para centralizar conteúdo */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-height: 80px; /* Altura mínima para consistência */
    padding: 15px 10px;
}
.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #b59a6a;
}
.style-card-content {
    display: flex;
    align-items: center;
    gap: 12px; /* Espaço entre o ícone e o texto */
}
.style-card-content i {
    font-size: 22px; /* Tamanho do ícone */
    color: #b59a6a; /* Cor do ícone */
}
.style-card-label {
    font-weight: 600;
    font-size: 1em;
    color: #333;
}
/* BROWSE BY STYLE: CSS END */


@media (max-width: 1024px) {
    .cars-grid { grid-template-columns: repeat(2, 1fr); }
    .inventory-sidebar { flex: 0 0 240px; }
    .style-cards-grid { grid-template-columns: repeat(3, 1fr); } 
}
@media (max-width: 768px) {
    body.no-scroll-mobile { overflow: hidden; }
    .cars-inventory-wrapper { flex-direction: column; }
    .inventory-sidebar { position: fixed; top: 0; left: -100%; width: 85%; height: 100vh; z-index: 1000; background: white; padding: 20px; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); transition: left 0.3s ease; -webkit-overflow-scrolling: touch; }
    .inventory-sidebar.active { left: 0; }
    .close-filters { display: block; }
    .cars-grid { grid-template-columns: 1fr; }
    .inventory-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .search-box { min-width: 100%; }
    .banner-carousel { display: none; }
    .mobile-filters-toggle { display: flex; justify-content: center; order: 3; margin-top: 15px; }
    #test-drive-form .form-row { flex-direction: column; gap: 0; }
    .style-cards-grid { grid-template-columns: repeat(2, 1fr); } 
}


/* Adicione estas melhorias para paginação */
.inventory-pagination {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.page-numbers:hover {
    background: #f5f5f5;
    border-color: #BF8F3F;
    color: #BF8F3F;
}

.page-numbers.current {
    background: #BF8F3F;
    color: white;
    border-color: #BF8F3F;
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 600;
    padding: 10px 20px;
}

/* Loading indicator */
.loading-indicator {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-indicator i {
    font-size: 2em;
    color: #BF8F3F;
    margin-bottom: 15px;
}

.loading-indicator p {
    color: #666;
    font-size: 1.1em;
}

/* Filter improvements */
.facetwp-checkbox {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.facetwp-checkbox-input {
    margin-right: 10px;
}

.facetwp-counter {
    margin-left: auto;
    font-size: 0.85em;
    color: #666;
}

.facetwp-radio-input {
    margin-right: 10px;
}

/* Style card active state */
.style-card.active {
    border-color: #BF8F3F;
    background: #fefaf4;
}

/* Price filter styling */
#filter-price .facetwp-checkbox {
    padding: 5px 0;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .pagination-links {
        gap: 4px;
    }
    
    .page-numbers {
        padding: 8px 12px;
        margin: 0 2px;
        min-width: 40px;
        font-size: 0.9em;
    }
    
    .page-numbers.prev,
    .page-numbers.next {
        padding: 8px 15px;
    }
}


* button:hover{
    background: initial!important;
}

* button:focus{
    background: initial!important;
}

.esquerda{
    font-size: 20px!important;
}

.direita{
    font-size: 20px!important;
}

/* Estrutura principal */
.cars-inventory-wrapper { display: flex; flex-wrap: wrap; gap: 30px; max-width: 1400px; margin: 0 auto; padding: 20px; position: relative; }
.inventory-sidebar { flex: 0 0 280px; position: sticky; top: 20px; align-self: flex-start; transition: transform 0.3s ease; }
.filter-section { background: #f8f8f8; padding: 20px; border-radius: 8px; margin-bottom: 20px; position: relative; max-height: 85vh; 
    overflow-y: auto;  }

.filter-section::-webkit-scrollbar { width: 8px; }
.filter-section::-webkit-scrollbar-track { background: #e0e0e0; border-radius: 10px; }
.filter-section::-webkit-scrollbar-thumb { background: #b0b0b0; border-radius: 10px; }
.filter-section::-webkit-scrollbar-thumb:hover { background: #999; }

.filter-section h3 { margin-top: 0; padding-bottom: 10px; border-bottom: 1px solid #ddd; margin-bottom: 15px; }
.filter-accordion { margin-bottom: 20px; }
.accordion-item { border-bottom: 1px solid #ddd; margin-bottom: 5px; }
.accordion-header { padding: 12px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #333; transition: color 0.2s; }
.accordion-header:hover { color: #BF8F3F; }
.accordion-header i { transition: transform 0.3s ease; font-size: 0.9em; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; padding: 0 5px; }
.accordion-item.active .accordion-content { padding-bottom: 15px; }
.accordion-content .facetwp-facet { margin: 10px 0; }
.accordion-content .facetwp-checkbox { margin: 5px 0; display: block; }
.accordion-content .facetwp-link { display: block; padding: 3px 0; color: #666; text-decoration: none; }
.accordion-content .facetwp-link:hover { color: #BF8F3F; }
.accordion-content .facetwp-link.checked { color: #BF8F3F; font-weight: bold; }
.accordion-content .facetwp-slider { margin: 10px 0; }
.accordion-content .facetwp-slider-label { font-weight: bold; margin-top: 10px; }
.reset-filters { width: 100%; padding: 10px; background: #333; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; margin-top: 10px; transition: background 0.3s; }
.reset-filters:hover { background: #BF8F3F; }
.inventory-main { flex: 1; min-width: 0; }
.inventory-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.search-box { flex: 1; min-width: 300px; max-width: 500px; }
.inventory-total-count { color: #666; margin-top: -15px; margin-bottom: 15px; font-weight: 600; }
.banner-carousel { position: relative; height: 280px; overflow: hidden; margin-bottom: 30px; border-radius: 8px!important; }
.banner-carousel a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius:5px!important; opacity: 0; transition: opacity 1s ease; }
.banner-carousel a:first-child { opacity: 1; }
.banner-carousel img { width: 100%; border-radius:5px!important; height: 100%; object-fit: contain; }
.cars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }

.car-card { 
    box-shadow: 0 1px 5px rgba(0,0,0,0.1); 
    border-radius: 8px; 
    overflow: hidden; 
    transition: transform 0.3s, box-shadow 0.3s; 
    display: flex; 
    flex-direction: column; 
    height: auto;
}
.car-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.car-image { position: relative; background: #f5f5f5; }
.carousel-container { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 4 / 3;
}
.carousel-track { display: flex; transition: transform 0.5s ease; height: 100%; }
.carousel-slide { flex: 0 0 100%; height: 100%; display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: block; 
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 2.2em;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: transform 0.2s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.car-card .carousel-container .carousel-prev span,
.car-card .carousel-container .carousel-next span {
    color: white !important;
    transition: none !important;
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-indicators { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 10; }
.carousel-indicators .indicator { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; }
.carousel-indicators .indicator.active { background: white; }
.carousel-counter { display:none;position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); color: white; padding: 3px 8px; border-radius: 12px; font-size: 0.8em; z-index: 10; }
.car-image-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; }

.car-info { padding: 15px; flex-grow: 1; }
.price-info { margin: 10px 0; }
.price-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.sale-price { font-size: 1.4em; font-weight: bold; color: #BF8F3F; }
.retail-value { font-size: 0.9em; color: #666; text-decoration: line-through; }
.car-specs { list-style: none; padding: 0; margin: 15px 0; font-size: 0.9em; }
.car-specs li { margin-bottom: 5px; display: flex; }
.car-specs li strong { min-width: 120px; display: inline-block; }
.car-badge { padding: 10px 15px; text-align: center; background: #f8f8f8; }
.car-badge-360 { cursor: pointer; }
.car-badge img { max-width: 150px; height: auto; }
.car-actions { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 15px 15px; }
.car-actions a { display: block; padding: 8px; text-align: center; text-decoration: none; border-radius: 4px; font-size: 0.9em; transition: background 0.3s; }
.btn-financing { background: #BF8F3F; color: white; }
.btn-financing:hover{ color:white!important; background: #a87a2d; }
.btn-test-drive { background: #BF8F3F; color: white; }
.btn-test-drive:hover{ color:white!important; background: #a87a2d; }
.btn-trade { background: black; color: white; }
.btn-trade:hover{ color:white!important; background: #333; }
.car-extra { padding: 0 15px 15px; font-size: 0.85em; color: #666; }
.row-banners { grid-column: 1 / -1; margin: 20px 0; }
.inventory-pagination { grid-column: 1 / -1; text-align: center; padding: 20px 0; }
.no-results { grid-column: 1 / -1; text-align: center; padding: 40px; background: #f8f8f8; border-radius: 8px; }
.mobile-filters-toggle { display: none; width: 100%; margin-bottom: 15px; text-align: center; }
.mobile-filters-toggle button { margin: 0 5px; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-filter-toggle { background: #BF8F3F; color: white; }
.btn-clear-filters { background: black; color: white; }
.close-filters { display: none; position: absolute; top: 10px; right: 10px; background: transparent; color: #333; border: none; width: 30px; height: 30px; cursor: pointer; font-size: 20px; line-height: 1; z-index: 1001; }
#test-drive-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 2000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
#test-drive-modal-content { background: white; padding: 30px 40px; border-radius: 10px; width: 90%; max-width: 600px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
.close-modal-btn { position: absolute; top: 10px; right: 15px; font-size: 2rem; color: #aaa; background: none; border: none; cursor: pointer; transition: color 0.2s ease-in-out; z-index: 10; }
.close-modal-btn:hover { color: #888; }
#test-drive-modal-content h2 { text-align: center; margin-top: 0; margin-bottom: 10px; color: #333; }
#test-drive-modal-content p { text-align: center; color: #666; margin-bottom: 25px; }
.car-selection-info { background: #f8f8f8; padding: 10px 15px; border-radius: 5px; margin-bottom: 20px; text-align: center; }
#test-drive-form .form-row { display: flex; gap: 20px; }
#test-drive-form .form-row .form-group { flex: 1; }
#test-drive-form .form-group { margin-bottom: 15px; }
#test-drive-form label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9em; }
#test-drive-form input[type="text"], #test-drive-form input[type="tel"], #test-drive-form input[type="email"], #test-drive-form select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; background-color: #fff; }
.btn-submit-drive { display: block; width: 100%; padding: 12px; border: none; border-radius: 5px; background: #BF8F3F; color: white; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background 0.3s; }
.btn-submit-drive:hover { background: #a87a2d; }
.form-status { margin-top: 15px; text-align: center; font-weight: bold; }
.carousel-track { touch-action: pan-y; }
.carousel-slide { user-select: none; }

#video-360-modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    z-index: 2001; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px;
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    display: none; 
}

#video-360-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding-top: 50vh;
}

#video-360-modal-content .video-container {
    position: relative;
    width: 100%;
    padding-top: 75%; 
    background: transparent; 
    border-radius: 5px;
    overflow: hidden;
}

#video-360-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#close-video-360-modal {
    position: absolute;
    top: 45vh;
    right:5vw;
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    line-height: 1;
}

/* BROWSE BY STYLE: CSS ATUALIZADO (VERSÃO COM ÍCONES) */
.browse-by-style-section {
    margin-bottom: 40px;
}
.browse-by-style-section .section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.browse-by-style-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #b59a6a; /* Tom de ouro/marrom para combinar com a imagem */
}
.style-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.style-card {
    display: flex; /* Alterado para flex para centralizar conteúdo */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-height: 80px; /* Altura mínima para consistência */
    padding: 15px 10px;
}
.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #b59a6a;
}
.style-card-content {
    display: flex;
    align-items: center;
    gap: 12px; /* Espaço entre o ícone e o texto */
}
.style-card-content i {
    font-size: 22px; /* Tamanho do ícone */
    color: #b59a6a; /* Cor do ícone */
}
.style-card-label {
    font-weight: 600;
    font-size: 1em;
    color: #333;
}
/* BROWSE BY STYLE: CSS END */


@media (max-width: 1024px) {
    .cars-grid { grid-template-columns: repeat(2, 1fr); }
    .inventory-sidebar { flex: 0 0 240px; }
    .style-cards-grid { grid-template-columns: repeat(3, 1fr); } 
}
@media (max-width: 768px) {
    body.no-scroll-mobile { overflow: hidden; }
    .cars-inventory-wrapper { flex-direction: column; }
    .inventory-sidebar { position: fixed; top: 0; left: -100%; width: 85%; height: 100vh; z-index: 1000; background: white; padding: 20px; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); transition: left 0.3s ease; -webkit-overflow-scrolling: touch; }
    .inventory-sidebar.active { left: 0; }
    .close-filters { display: block; }
    .cars-grid { grid-template-columns: 1fr; }
    .inventory-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .search-box { min-width: 100%; }
    .banner-carousel { display: none; }
    .mobile-filters-toggle { display: flex; justify-content: center; order: 3; margin-top: 15px; }
    #test-drive-form .form-row { flex-direction: column; gap: 0; }
    .style-cards-grid { grid-template-columns: repeat(2, 1fr); } 
}


/* Adicione estas melhorias para paginação */
.inventory-pagination {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.page-numbers:hover {
    background: #f5f5f5;
    border-color: #BF8F3F;
    color: #BF8F3F;
}

.page-numbers.current {
    background: #BF8F3F;
    color: white;
    border-color: #BF8F3F;
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 600;
    padding: 10px 20px;
}

/* Loading indicator */
.loading-indicator {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-indicator i {
    font-size: 2em;
    color: #BF8F3F;
    margin-bottom: 15px;
}

.loading-indicator p {
    color: #666;
    font-size: 1.1em;
}

/* Filter improvements */
.facetwp-checkbox {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.facetwp-checkbox-input {
    margin-right: 10px;
}

.facetwp-counter {
    margin-left: auto;
    font-size: 0.85em;
    color: #666;
}

.facetwp-radio-input {
    margin-right: 10px;
}

/* Style card active state */
.style-card.active {
    border-color: #BF8F3F;
    background: #fefaf4;
}

/* Price filter styling */
#filter-price .facetwp-checkbox {
    padding: 5px 0;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .pagination-links {
        gap: 4px;
    }
    
    .page-numbers {
        padding: 8px 12px;
        margin: 0 2px;
        min-width: 40px;
        font-size: 0.9em;
    }
    
    .page-numbers.prev,
    .page-numbers.next {
        padding: 8px 15px;
    }
}


/* ================================================================== */
/* === ESTILOS CORRIGIDOS PARA ACORDEÃO, SLIDERS E SWATCHES === */
/* ================================================================== */

/* --- Base do Acordeão --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding: 0 5px; /* Apenas espaçamento lateral para evitar vazamento */
}

/* --- Estilos para Sliders (noUiSlider) --- */
.slider-values {
    font-weight: 600;
    color: #333;
    text-align: center;
    padding-top: 15px; /* Espaçamento vertical movido para dentro */
}
#price-slider, #year-slider {
    margin: 20px 5px; /* Espaçamento vertical movido para dentro */
}
.price-slider, .year-slider {
    height: 6px;
    background: #e9e9e9;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.noUi-connect {
    background: #BF8F3F;
}
.noUi-handle {
    height: 20px !important; width: 20px !important; top: -7px !important; right: -10px !important;
    border-radius: 50%; background: #fff !important; border: 3px solid #BF8F3F !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important; cursor: grab !important;
}
.noUi-handle:focus { outline: none; }
.noUi-handle:active { cursor: grabbing !important; }
.noUi-handle::before, .noUi-handle::after { display: none !important; }

/* --- Estilos para Swatches de Cor --- */
.color-swatch-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0 10px 0; /* Espaçamento vertical movido para dentro */
}
.color-swatch {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ddd;
    cursor: pointer; position: relative; transition: all 0.2s ease;
    display: inline-flex; align-items: center; justify-content: center;
}
.color-swatch:hover {
    transform: scale(1.1);
    border-color: #BF8F3F;
}
.color-swatch.selected {
    border-color: #BF8F3F;
    border-width: 3px;
}
.color-swatch.selected::after {
    content: '✔'; color: white; font-size: 14px; text-shadow: 0 0 2px rgba(0,0,0,0.7);
}
.color-swatch[data-color="Other"] {
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}
.color-swatch-label {
    display: flex; align-items: center; gap: 8px; width: 100%;
}
.color-swatch-label .facetwp-counter {
    margin-left: auto;
}

/* ========================================================== */
/* === ESTILOS PARA O MODAL DE BUSCA (DO INDEX.PHP) === */
/* ========================================================== */

/* --- Gatilho da Busca --- */
.search-trigger {
    display: flex; 
    align-items: center; 
    background: white; 
    border-radius: 5px;
    padding: 15px 20px; 
    color: #555; 
    cursor: pointer;
    width: 100%;
    text-align: left;
}
.search-trigger span { 
    flex-grow: 1; 
}

/* --- MODAL DE BUSCA --- */
.search-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.search-modal-overlay.active { 
    display: block; 
    opacity: 1; 
}
.search-modal {
    background-color: white; 
    color: #333;
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%; 
    max-width: 700px;
    margin: 5vh auto;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}
.search-modal-header {
    display: flex; align-items: center; padding: 5px 15px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}
#mainSearchInput {
    flex-grow: 1; 
    border: none; 
    padding: 15px 10px;
    font-size: 1.1rem; 
    font-family: 'Montserrat', sans-serif; 
    outline: none;
    padding-right: 30px;
    background-color: transparent;
}
.search-modal-header .fa-search { 
    color: #999; 
    padding-left: 5px;
}
.search-clear-btn {
    position: absolute;
    right: 85px; 
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    display: none;
    line-height: 1;
}
.search-modal-close-btn {
    background: none; border: none; font-size: 1rem; color: #888;
    cursor: pointer; padding: 10px; font-weight: 500;
}
.search-modal-content { 
    overflow-y: auto; 
    padding: 15px; 
}
.search-section { 
    padding: 10px 15px; 
}
.search-section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; border-bottom: 1px solid #e5e7eb; padding-bottom: 10px;
}
.search-section-header h3 {
    font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; color: #666; margin: 0;
}
.action-btn {
    background: none; border: none; color: #BF8F3F;
    cursor: pointer; font-weight: 600; font-size: 0.8rem;
}
.brands-container { 
    display: flex; 
    overflow-x: auto; 
    gap: 10px; 
    padding-bottom: 15px; 
}
.brand-item {
    display: flex; justify-content: center; align-items: center;
    min-width: 100px; height: 60px; border: 1px solid #e5e7eb;
    border-radius: 8px; cursor: pointer;
}
.brand-item img { 
    max-width: 70%; 
    max-height: 35px; 
    filter: grayscale(100%); 
    opacity: 0.8; 
}
.filter-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}
.filter-btn {
    background-color: #f3f4f6; border: 1px solid #e5e7eb;
    border-radius: 20px; padding: 8px 15px; font-size: 0.9rem; cursor: pointer;
}
.filter-btn.active { 
    background-color: #333; 
    color: white; 
}

.result-item {
    display: flex; align-items: center; gap: 15px; padding: 10px;
    border-bottom: 1px solid #e5e7eb; color: #333; text-decoration: none;
}
.result-item:last-child { 
    border-bottom: none; 
}
.result-item:hover { 
    background-color: #f3f4f6; 
}
.result-item-img {
    width: 100px; height: 70px; object-fit: cover;
    border-radius: 5px; background-color: #f3f4f6;
}
.result-item-details { display: flex; flex-direction: column; gap: 4px; }
.result-item-title { font-weight: 600; font-size: 1rem; }
.result-item-meta { font-size: 0.85rem; color: #555; }

/* ========================================================== */
/* === BARRA DE FILTROS ATIVOS === */
/* ========================================================== */

.active-filters-bar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.active-filters-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filters-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.clear-all-filters {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-all-filters:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.active-filter-tag {
    background: #BF8F3F;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.active-filter-tag:hover {
    background: #a87a2d;
    transform: translateY(-1px);
}

.active-filter-tag.search-term {
    background: #BF8F3F;
}

.active-filter-tag.search-term:hover {
    background: #218838;
}

.active-filter-tag .filter-label {
    font-weight: 500;
}

.active-filter-tag .filter-value {
    font-weight: 600;
}

.active-filter-tag .remove-filter {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.active-filter-tag .remove-filter:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.no-active-filters {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    padding: 5px 0;
}

/* Animação para entrada dos filtros */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .active-filters-bar {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .active-filters-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .clear-all-filters {
        align-self: flex-end;
    }
    
    .active-filters-tags {
        gap: 6px;
    }
    
    .active-filter-tag {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .active-filters-tags {
        justify-content: center;
    }
    
    .active-filter-tag {
        flex: 1;
        min-width: calc(50% - 6px);
        justify-content: space-between;
    }
}

/* Melhorias para a barra de filtros ativos */
.active-filters-bar {
    transition: all 0.3s ease;
}

.active-filter-tag.search-term {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.active-filter-tag.search-term:hover {
    background: linear-gradient(135deg, #218838, #1e9e8a);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* Indicador visual quando há busca ativa */
.search-box-with-active-search {
    position: relative;
}

.search-box-with-active-search::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #BF8F3F;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Estilo para o trigger de busca quando há busca ativa */
.search-trigger.active-search {
    border-color: #28a745 !important;
    background: linear-gradient(135deg, #f8fff9, #e8f5e9) !important;
}

.search-trigger.active-search .fa-search {
    color: #28a745 !important;
}


/* ========================================================== */
/* === ESTILOS PARA FILTRO DE FEATURES COM PAGINAÇÃO === */
/* ========================================================== */

.features-filter-container {
    margin-top: 10px;
}

.features-search-box {
    position: relative;
    margin-bottom: 15px;
}

.features-search-input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    background: white;
    transition: all 0.3s ease;
}

.features-search-input:focus {
    outline: none;
    border-color: #BF8F3F;
    box-shadow: 0 0 0 2px rgba(191, 143, 63, 0.1);
}

.features-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.9em;
}

.features-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.features-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.features-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.no-features-found {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.features-pagination {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.features-pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.features-pagination-btn {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
}

.features-pagination-btn:hover:not(:disabled) {
    background: #BF8F3F;
    border-color: #BF8F3F;
    color: white;
}

.features-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.features-pagination-info {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    flex-grow: 1;
}

/* Ajustes para os checkboxes de features */
#filter-features_for_facet .facetwp-checkbox {
    margin: 8px 0;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

#filter-features_for_facet .facetwp-checkbox-input {
    margin-right: 10px;
    flex-shrink: 0;
}

#filter-features_for_facet .facetwp-checkbox-text {
    flex-grow: 1;
    font-size: 0.9em;
    line-height: 1.3;
}

#filter-features_for_facet .facetwp-counter {
    margin-left: auto;
    font-size: 0.8em;
    color: #666;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Melhorar a aparência do accordion de features */
#filter-features_for_facet .accordion-content {
    padding: 15px 5px 5px 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-pagination-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .features-pagination-info {
        order: -1;
    }
    
    .features-list {
        max-height: 250px;
    }
}


/* ========================================================== */
/* === VERSÃO FINAL: ESTILOS PARA BADGES (360 E CARFAX) === */
/* ========================================================== */

/* Usamos um seletor mais específico (.car-card .car-badges-container) 
   para garantir que esta regra tenha prioridade. */
.car-card .car-badges-container {
    display: flex;
    flex-wrap: nowrap; /* Impede que os itens quebrem a linha */
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 10px;
    background: #f8f8f8;
    min-height: 86px;
}

/* Zeramos o estilo do .car-badge individual */
.car-card .car-badge {
    padding: 0;
    background: none;
    line-height: 0; /* Ajuda a remover espaços verticais indesejados */
}

/* Ajusta as imagens para se comportarem bem dentro do flex container */
.car-card .car-badge-360 img,
.car-card .car-badge-carfax img {
    max-width: 155px; /* Largura máxima para a imagem do Carfax */
    height: auto;
    display: block;
}

/* Especificamente para o 360, para garantir que não fique muito grande */
.car-card .car-badge-360 img {
    max-width: 150px;
}