/* Car Info Modal Styles */

.car-info-modal {
    width: min(680px, 95vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 22px;
    gap: 16px;
    box-sizing: border-box;
}

.car-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-info-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-car-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-car-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.car-info-title h3 {
    margin: 0;
    font-size: 1.95rem;
    line-height: 1.1;
    color: #f8fafc;
}

.info-car-brand-text {
    margin: 2px 0 0;
    font-size: 1.05rem;
    color: #cbd5e1;
}

.car-info-modal .modal-close-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid #334155;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #cbd5e1;
    transition: 0.2s;
}

.car-info-modal .modal-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #f8fafc;
    border-color: var(--accent);
}

.car-info-image-wrap {
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.55);
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    position: relative;
}

.car-info-image {
    width: 100%;
    height: 260px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.car-info-image-wrap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.car-info-image-wrap.no-image::before {
    opacity: 1;
}

.car-info-image-placeholder {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.car-info-image-placeholder.show {
    opacity: 1;
}

.car-info-image-placeholder i {
    font-size: 80px;
    color: rgba(6, 182, 212, 0.4);
}

.car-info-image-wrap.no-image .car-info-image {
    display: none;
}

.car-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.spec-item {
    border: 1px solid #334155;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-item .spec-label {
    font-size: 0.78rem;
    color: #94a3b8;
}

.spec-item .spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .car-info-modal {
        width: min(96vw, 560px);
        padding: 16px;
        gap: 12px;
    }

    .car-specs-grid {
        grid-template-columns: 1fr;
    }

    .car-info-image {
        height: 170px;
    }

    .car-info-title h3 {
        font-size: 1.45rem;
    }
}
