/* ======================================================================
   ZVOLTS - DETALHES DO VEÍCULO
   Arquivo modular gerado a partir do stylesheet consolidado de 24/07/2026.
====================================================================== */

/* ================= REGRAS BASE ================= */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-md);
    align-items: start;
}

.detail-info {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    grid-column: 2;
    grid-row: 1 / span 2;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.gallery-container {
    width: 100%;
    grid-column: 1;
}

.main-img-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: zoom-in;
    background: #e9e9e9;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.view-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--transition-fast);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
}

.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.thumbs-container {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
    margin-top: 15px;
}

.thumb-item {
    height: 85px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.thumb-item.active,
.thumb-item:hover {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 237, 0, 0.3);
}

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

.location-text-lg {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.price-display-lg {
    font-size: 3rem;
    font-weight: 900;
    color: #111;
    margin: 20px 0;
    letter-spacing: -1.5px;
    display: block;
}

.zvolts-urgency-badge {
    background: #fffbeb;
    color: #b45309;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    border: 1px solid #fde68a;
}

.zvolts-urgency-badge i {
    color: #ea580c;
}

.spec-grid-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 25px 0;
}

.spec-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.spec-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.spec-value {
    color: var(--text-main);
    font-weight: 800;
    font-size: 14px;
}

.desc-box {
    grid-column: 1;
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.badges-row {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-md);
}

.badge-id {
    background: #f4f4f4;
    color: var(--text-muted);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    border: 1px solid var(--border-color);
}

.seller-box-detail {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    margin: 20px 0;
}

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

.seller-avatar-circle {
    width: 48px;
    height: 48px;
    background: #f1f3f4;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-avatar-circle.avatar-lg {
    width: 60px;
    height: 60px;
    border: 2px solid #e2e8f0;
}

.seller-avatar-circle i {
    font-size: 24px;
    color: #64748b;
}

.img-cover-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.seller-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.seller-name-lg {
    color: var(--text-main);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.seller-since-sm {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

.fipe-reference-box {
    background: rgba(255, 237, 0, 0.05);
    border: 1px solid rgba(255, 237, 0, 0.4);
    border-radius: 8px;
    padding: 12px;
    margin-top: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

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

.fipe-label {
    font: bold 11px var(--font-body);
    color: #b89500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fipe-date {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
}

#fipe-loader-box {
    color: var(--text-main);
    font: 800 1.1rem var(--font-body);
}

.fipe-value-display {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.soh-highlight-box-green {
    border-color: var(--success-green);
    background: rgba(37, 211, 102, 0.03);
    padding-bottom: 14px;
}

.soh-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.soh-header-flex .spec-label {
    margin-bottom: 0;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 900;
    text-transform: uppercase;
}

.soh-header-flex .spec-value {
    font-size: 18px;
    font-weight: 900;
}

.soh-progress-bg {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    overflow: hidden;
}

.soh-progress-fill-green {
    height: 100%;
    background: linear-gradient(90deg, #1da851 0%, var(--success-green) 50%, #1da851 100%);
    background-size: 200% 100%;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
    max-width: 0;
    animation: grow-bar 4s cubic-bezier(0.4, 0, 0.2, 1) forwards, charge-pulse 2s infinite linear;
}

.soh-bolt {
    color: #fff;
    font-size: 8px;
    animation: bolt-flash 0.8s infinite alternate;
}

.fipe-ref-legado {
    font-size: 11px;
    opacity: 0.8;
}

.badges-left-group {
    display: flex;
    gap: 8px;
}

.btn-share-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.btn-share-icon:hover {
    color: var(--primary-color);
}

.safety-list-col {
    padding-left: 20px;
    margin-top: 10px;
    list-style-type: disc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.24);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modal-nav-btn:hover {
    transform: translateY(-50%) scale(1.06);
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.modal-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.not-found-box {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 40px auto;
}

.not-found-icon {
    font-size: 50px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.not-found-title {
    font-size: 24px;
    color: var(--text-main);
    font-weight: 900;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.not-found-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
}

.report-ad-box {
    text-align: center;
    margin-top: 15px;
}

.report-ad-link {
    font-size: 15px;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.report-ad-link:hover {
    opacity: 0.2;
}
