/* detalhes-veiculo.css - VERSÃO UNIFICADA */

/* ======================================== */
/* === VARIÁVEIS E ESTILOS GLOBAIS ====== */
/* (Combinado de ambos os arquivos)      */
/* ======================================== */
:root {
    --black: #030304;
    --primary: #ED151D;
    --primary-light: rgba(237, 21, 29, 0.1);
    --primary-lighter: rgba(237, 21, 29, 0.05);
    --gray-dark: #333334;
    --gray-medium: #666667;
    --gray-light: #E5E5E5;
    --gray-lighter: #F5F5F5;
    --white: #FFFFFF;
    --darker: #0a0e17; /* Adicionado do inicio.css para o footer */
    --success: #10B981;
    --warning: #F59E0B;
    --info: #3B82F6;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}


/* ======================================== */
/* === NAVBAR E BOTÕES GENÉRICOS ========= */
/* (Estilos de detalhes-veiculo.css mantidos com prioridade) */
/* ======================================== */
.navbar {
    padding: 1.25rem 0;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600;
    color: var(--gray-dark) !important; /* Ajustado para melhor contraste em fundo branco */
    margin: 0 10px;
    position: relative;
    padding: 8px 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 700;
    transition: var(--transition);
    background: var(--primary);
    color: white;
    border: none;
}

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(238, 21, 30, 0.3);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c91119;
    border-color: #c91119;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(238, 21, 30, 0.3);
}

.btn-primary:hover:active,
.btn-primary:active {
    background-color: #c91119;
    border-color: #c91119;
    color: var(--white);
}


/* ======================================== */
/* === ESTILOS DA PÁGINA DE DETALHES ====== */
/* (Conteúdo original de detalhes-veiculo.css) */
/* ======================================== */

/* Estilos Gerais */
.vehicle-details {
    padding: 30px 0 0px;
    background-color: var(--gray-lighter);
    min-height: 100vh;
}

/* Breadcrumb Melhorado */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    background: transparent;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--black);
    font-weight: 600;
}

.btn-back {
    color:var(--primary);
    text-decoration: none;

}

.container-back {
padding: none;
}

/* Header do Veículo */
.vehicle-header {
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.vehicle-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--black);
    line-height: 1.2;
}

.vehicle-header h1 .text-primary {
    color: var(--primary) !important;
}

.vehicle-header h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-share, .btn-print {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--gray-dark);
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-share:hover, .btn-print:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Galeria de Imagens --- */
.vehicle-gallery {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    background: var(--white);
    position: relative;
    padding-bottom: 0;
}

.main-carousel {
    position: relative;
    height: 650px; /* AUMENTE ESTE VALOR */
    overflow: hidden;
    border-radius: 16px;
}

.main-carousel .glide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Setas do Carrossel */
.glide__arrows {
    position: absolute;
    top: 50%;
    left: 0%;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
    pointer-events: none;
}

.glide__arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--black);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
}

.glide__arrow:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(237, 21, 29, 0.3);
}

/* Thumbsnails */
.thumbnails {
    margin-top: 10px;
    padding: 15px;
    background: var(--white);
}

.thumbnails .glide__slide {
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnails .glide__slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.thumbnails .glide__slide.glide__slide--active {
    opacity: 1;
    border-color: var(--primary);
}

.thumbnails .glide__slide:hover {
    opacity: 1;
}

/* Cards de Informação */
.info-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: none;
    overflow: hidden;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.info-card .card-header {
    padding: 20px 25px;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-card .card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    color: var(--black);
}

.info-card .card-header h3 i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.2rem;
}

.info-card .card-body {
    padding: 25px;
}

/* Descrição do Veículo */
.vehicle-description p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--gray-dark);
    font-size: 1rem;
}

/* Especificações do Veículo */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    background-color: var(--gray-lighter);
    transition: var(--transition);
}

.spec-item:hover {
    background-color: var(--primary-light);
    transform: translateX(5px);
}

.spec-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.spec-details {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin-bottom: 3px;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
}

/* Itens do Veículo */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-category {
    margin-bottom: 20px;
}

.feature-category h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-light);
}

.feature-category h4 i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-dark);
    padding: 5px 0;
}

.feature-list i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1rem;
}

/* Card de Preço e Vendedor (Lateral) */
.vehicle-summary {
    position: sticky;
    top: 100px;
}

.price-card {
    background: linear-gradient(135deg, var(--primary) 0%, #c91119 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(237, 21, 29, 0.2);
    margin-bottom: 25px;
    border: none;
    overflow: hidden;
    color: var(--white);
}

.price-card .card-body {
    padding: 30px;
    text-align: center;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.price .negotiable {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 8px;
}

.installment {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-simulate {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background-color: var(--white);
    color: var(--primary);
    font-weight: 700;
    border: none;
    transition: var(--transition);
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-simulate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Card do Vendedor */
.seller-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: none;
    overflow: hidden;
}

.seller-card .card-header {
    padding: 20px 25px;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
}

.seller-card .card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    color: var(--black);
}

.seller-card .card-header h3 i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.2rem;
}

.seller-card .card-body {
    padding: 25px;
}

.seller-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.seller-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--gray-light);
    transition: var(--transition);
}

.seller-avatar:hover {
    border-color: var(--primary);
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}

.seller-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.seller-meta span {
    display: flex;
    align-items: center;
}

.seller-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.seller-status {
    padding: 12px 15px;
    background-color: var(--gray-lighter);
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--success);
    font-weight: 600;
}

.seller-status i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.seller-achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: var(--gray-lighter);
    border-radius: 8px;
    font-size: 0.85rem;
}

.achievement-item i {
    margin-right: 8px;
    color: var(--primary);
}

.seller-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.btn-show-phone, .btn-whatsapp, .btn-seller-cars {
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-show-phone {
    background-color: transparent;
    border: 2px solid var(--gray-light);
    color: var(--black);
}

.btn-show-phone:hover {
    background-color: var(--gray-lighter);
    border-color: var(--gray-medium);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-seller-cars {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-top: 10px;
}

.btn-seller-cars:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.seller-phone-revealed {
    padding: 15px;
    background-color: var(--gray-lighter);
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

.phone-number {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--black);
}

.phone-number .badge {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    padding: 4px 8px;
}

/* Condições do Veículo */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.condition-item {
    padding: 15px;
    border-radius: 12px;
    background-color: var(--gray-lighter);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    min-height: 100px;
}

.condition-item i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--gray-medium);
}

.condition-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-medium);
}

.condition-item.active {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(237, 21, 29, 0.1);
}

.condition-item.active i,
.condition-item.active span {
    color: var(--primary);
}

/* Veículos Similares */
.similar-vehicles {
    padding: 50px 0 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black);
    margin: 0;
}

.view-all {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.view-all:hover {
    color: #c91119;
    transform: translateX(5px);
}

.view-all i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.vehicle-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.vehicle-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.vehicle-badge.highlight {
    background: var(--black);
}

.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--gray-medium);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-favorite:hover,
.btn-favorite.active {
    color: var(--primary);
    transform: scale(1.1);
}

.vehicle-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-overlay {
    opacity: 1;
}

.btn-view {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--gray-medium);
}

.vehicle-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.vehicle-price {
    margin-top: 15px;
}

.vehicle-price .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.vehicle-price .installment {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.vehicle-location {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.vehicle-location i {
    margin-right: 5px;
}

/* CTA Fixo */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: var(--transition);
}

.sticky-cta.active {
    transform: translateY(0);
}

.sticky-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-summary .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.price-summary .installment {
    font-size: 1rem;
    color: var(--gray-medium);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.cta-buttons .btn {
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-buttons .btn-favorite {
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--white);
    border: 2px solid var(--gray-light);
    color: var(--gray-medium);
}

.cta-buttons .btn-favorite:hover, .cta-buttons .btn-favorite.active {
    color: var(--primary);
    border-color: var(--primary);
}

.cta-buttons .btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    border: none;
}

.cta-buttons .btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* === ESTILOS CONSULTA RENAINF / HISTÓRICO === */
.renainf-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 25px;
    margin-bottom: 25px;
    border: none;
    overflow: hidden;
    text-align: center;
}

.renainf-card .card-header h3 i {
    color: var(--primary);
}

.renainf-card .card-body {
    padding: 35px;
}

.renainf-icon-feature {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #c91119);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(237, 21, 29, 0.3);
}

.renainf-card h4 {
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.renainf-card p {
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-consult {
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-consult:hover {
    background: #c91119;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(237, 21, 29, 0.3);
}

/* Estado de Carregamento */
#renainf-loading {
    padding: 20px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.loading-subtext {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* Estado do Resultado */
.result-header {
    text-align: left;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 10px;
}

.result-header h5 {
    font-weight: 700;
    margin: 0;
}

.result-header .timestamp {
    font-size: 0.8rem;
    color: var(--gray-medium);
}

.report-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.report-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color:#ffffff;
}

.report-item:last-child {
    border-bottom: none;
}

.report-item i {
    font-size: 1.2rem;
    margin-right: 12px;
}

.report-item.success { color: var(--success); }
.report-item.warning { color: var(--warning); }
.report-item.danger { color: var(--primary); }


/* ======================================== */
/* === FOOTER ============================= */
/* (Importado do arquivo inicio.css)      */
/* ======================================== */
.footer {
    background: var(--darker);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    margin-top: 30px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary) 0%, #c91119 100%);
}

.footer-logo img {
    height: 40px; /* Ajustado para consistência com o header */
    margin-bottom: 20px;
    transition: var(--transition);
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links h5 {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--white);
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links a:hover::after {
    width: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
}

.footer-bottom p {
    margin-bottom: 0;
}


/* ======================================== */
/* === ANIMAÇÕES E RESPONSIVIDADE ========= */
/* ======================================== */

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 1399px) {
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) {
    .vehicle-header h1 {
        font-size: 2.2rem;
    }
    
    .specs-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .conditions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .main-carousel {
        height: 400px;
    }
    
    .vehicle-summary {
        position: static;
        margin-top: 40px;
    }
    
    .seller-achievements {
        grid-template-columns: 1fr;
    }
    
    .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sticky-cta-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cta-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .vehicle-header h1 {
        font-size: 1.8rem;
    }
    
    .vehicle-header h2 {
        font-size: 1.2rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .main-carousel {
        height: 300px;
    }
    
    .glide__arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-wrap: wrap;
    }
    
    .cta-buttons .btn-favorite {
        display: none; /* Oculta o favorito em telas muito pequenas no CTA */
    }
}

@media (max-width: 575px) {
    .vehicle-header h1 {
        font-size: 1.6rem;
    }
    
    .main-carousel {
        height: 250px;
    }
    
    .info-card .card-header h3 {
        font-size: 1.1rem;
    }
    
    .info-card .card-body {
        padding: 20px;
    }
    
    .price-card .card-body {
        padding: 20px;
    }
    
    .price .amount {
        font-size: 2rem;
    }
    
    .seller-info {
        flex-direction: column;
        text-align: center;
    }
    
    .seller-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta-buttons .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

    .vehicle-features {
        margin-top: 15px;
    }


    /* ======================================== */
/* === NOVOS ESTILOS PARA CARROSSEL E LIGHTBOX === */
/* ======================================== */

/* --- Estilos para as Setas do Carrossel Principal --- */
.main-carousel .glide__arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none; /* Permite clicar na imagem através dos botões */
    padding: 0 15px;
}

.main-carousel .glide__arrow {
    pointer-events: auto; /* Reativa o clique nos botões */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--black);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.main-carousel .glide__arrow:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.main-carousel .glide__arrow--left {
    left: 15px;
}

.main-carousel .glide__arrow--right {
    right: 15px;
}

/* --- Estilos para o Lightbox (Modal) --- */

#imageLightbox .modal-content {
    background-color: transparent;
    border: none;
}

#imageLightbox .modal-header {
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

#imageLightbox .modal-title {
    color: var(--white);
    font-weight: 700;
}

#imageLightbox .btn-close {
    background-color: var(--white);
    border-radius: 50%;
}

#imageLightbox .modal-body {
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImage {
    max-height: 90vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Botões de navegação do Lightbox */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 15;
}

.lightbox-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-nav-btn.prev {
    left: 20px;
}

.lightbox-nav-btn.next {
    right: 20px;
}

/* Cursor de Lupa na imagem principal */
.main-carousel .glide__slide {
    cursor: zoom-in;
}

.btn-profile {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid var(--primary-light);
}

.btn-profile:focus {
    border-color: var(--primary);
}

.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.253);
    border: none;
}

.dropdown-item {
    font-weight: 600;
    padding: 10px 20px;
}

.dropdown-item:active{
    background-color: white;
    color: #000000;
}

.dropdown-item i {
    color: var(--primary);
}

.seller-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--primary); 
        color: white;
        font-size: 2rem; /* Tamanho da letra */
        font-weight: 700;
    }

/* ======================================== */
/* === ESTILOS PARA O NOVO MODAL DE CONSULTA === */
/* ======================================== */

.info-box {
    display: flex;
    align-items: center;
    background-color: var(--gray-lighter);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--gray-light);
}

.info-box-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 15px;
}

.info-box-content {
    display: flex;
    flex-direction: column;
}

.info-box-text {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.info-box-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}

#modalConsultaResultado {
    background-color: var(--gray-lighter);
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
}

/* Reutilizando estilos do dashboard para consistência */
.detail-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid var(--primary);
    margin-bottom: 10px;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 2px;
}

.detail-value {
    display: block;
    font-weight: 600;
    color: var(--dark);
}    

/* ======================================== */
/* === ESTILOS APRIMORADOS PARA O MODAL DE CONSULTA === */
/* ======================================== */

.result-card {
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.result-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-light);
    background-color: var(--gray-lighter);
}

.result-header h5 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
    margin: 0;
    display: flex;
    align-items: center;
}
.result-header.header-success { background-color: rgba(16, 185, 129, 0.1); }
.result-header.header-warning { background-color: rgba(245, 158, 11, 0.1); }

.result-body {
    padding: 1.25rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    background-color: var(--gray-lighter);
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid var(--primary);
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-medium);
    margin-bottom: 2px;
    font-weight: 500;
}

.detail-value {
    display: block;
    font-weight: 600;
    color: var(--black);
    word-wrap: break-word;
}

.infraction-item {
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.infraction-item:last-child {
    margin-bottom: 0;
}

.infraction-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

#modalConsultaResultado .alert {
    text-align: left;
}

/* ======================================================= */
/* === CSS DE CONTROLE DE ESTADO PARA O MODAL DE CONSULTA === */
/* ======================================================= */

/* Por padrão, todas as "telas" do modal começam escondidas. */
#consultaModalSelectionView,
#consultaModalLoading,
#consultaModalResultView {
    display: none;
}

/* Regras para mostrar a tela correta baseada no estado do modal-body */
.modal-body[data-view="selection"] #consultaModalSelectionView {
    display: block;
}

.modal-body[data-view="loading"] #consultaModalLoading {
    display: flex; /* 'flex' para centralizar o spinner */
}

.modal-body[data-view="result"] #consultaModalResultView {
    display: block;
}

/* Ajusta a visibilidade dos botões do rodapé baseado no estado */
.modal[data-view="loading"] .modal-footer .btn,
.modal[data-view="result"] .modal-footer .btn-primary {
    display: none;
}

.btn-outline-primary{
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover{
    background-color: var(--primary)!important;
    color: var(--gray-light) !important;
    border-color: var(--primary) !important;
}




.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Cole este código no final de detalhes-veiculo.css */

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.vehicle-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--dark-gray);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: var(--transition);
}

.btn-favorite:hover,
.btn-favorite.active {
    color: var(--primary);
    transform: scale(1.1);
}

.vehicle-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-overlay {
    opacity: 1;
}

.btn-view {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateY(-3px);
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h4 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.vehicle-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.vehicle-price .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.vehicle-location {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.vehicle-location i {
    margin-right: 5px;
}

/* Estilos para o Modal de Confirmação de Consulta */
#confirmacaoConsultaModal .modal-body,
#consultaVeiculoModal .modal-body {
    font-size: 1rem;
}

#confirmacaoConsultaModal .list-group-item,
#consultaModalConfirmationView .list-group-item {
    padding: 1rem 1.25rem;
    border-color: var(--gray-light);
}

#confirmacaoConsultaModal .list-group-item strong,
#consultaModalConfirmationView .list-group-item strong {
    font-size: 1.1rem;
}

#confirmacaoConsultaModal .text-danger,
#consultaModalConfirmationView .text-danger {
    color: var(--primary) !important;
}

#confirmacaoConsultaModal .text-success,
#consultaModalConfirmationView .text-success {
    color: #000000 !important; /* Verde para sucesso */
}

.alert-warning {
    color: var(--darker) !important;
    background-color: var(--light) !important;
    border-color: var(--primary);
}


.fa-exclamation-triangle:before, .fa-triangle-exclamation:before, .fa-warning:before {
    color: var(--primary);
}

.alert-success {
    color: var(--dark);
    background-color: var(--primary-light);
    border-color: var(--primary);
    --bs-alert-link-color: var(--bs-success-text-emphasis);
}

/* ======================================== */
/* === ESTILOS PARA MODAL DE PERMISSÃO ==== */
/* ======================================== */

.permission-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.permission-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--primary-lighter);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.permission-modal-title {
    font-weight: 800;
    color: var(--black);
}

.permission-modal-text {
    font-size: 1.1rem;
    color: var(--gray-dark);
}

.permission-modal-subtext {
    font-size: 0.95rem;
    color: var(--gray-medium);
}

/* ======================================== */
/* === ESTILOS PARA BOTÕES BLOQUEADOS ==== */
/* ======================================== */

.btn-permission-denied {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: var(--gray-light) !important;
    border-color: var(--gray-medium) !important;
    color: var(--dark-gray) !important;
    box-shadow: none !important;
}

/* Remove qualquer efeito de hover dos botões bloqueados */
.btn-permission-denied:hover {
    opacity: 0.65;
    transform: none;
    box-shadow: none !important;
}