/* Vehicle detail dialog */
.vehicle-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dialogIn 0.2s ease;
}

.dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.dialog-panel {
    position: relative;
    background: var(--bg);
    border-radius: var(--radius);
    max-width: 680px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--transition);
}

.dialog-close:hover { background: rgba(0,0,0,0.7); }

/* Gallery */
.dialog-gallery {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-subtle);
}

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

.dialog-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.dialog-nav:hover { background: rgba(0,0,0,0.6); }
.dialog-nav.prev { left: 10px; }
.dialog-nav.next { right: 10px; }

.dialog-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dialog-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background var(--transition);
}

.dialog-dots span.active { background: white; }

/* Body */
.dialog-body-inner {
    padding: 1.5rem 1.75rem 2rem;
}

.dialog-body-inner h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.dialog-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

/* Specs */
.dialog-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.dialog-spec {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.825rem;
}

.dialog-spec:nth-child(odd) {
    border-right: 1px solid var(--border-light);
}

.spec-label { color: var(--text-secondary); }
.spec-value { font-weight: 600; color: var(--text); }

/* Description */
.dialog-description {
    margin-bottom: 1.25rem;
}

.dialog-description p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Equipment */
.dialog-equipment {
    margin-bottom: 1rem;
}

.dialog-equipment h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.dialog-equip-cat {
    margin-bottom: 0.75rem;
}

.dialog-equip-cat h4 {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.dialog-equip-cat ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dialog-equip-cat li {
    background: var(--bg-subtle);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.775rem;
    color: var(--text-secondary);
}

@keyframes dialogIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 640px) {
    .dialog-panel { width: 100%; max-height: 100vh; border-radius: 0; }
    .dialog-specs { grid-template-columns: 1fr; }
    .dialog-spec:nth-child(odd) { border-right: none; }
    .dialog-body-inner { padding: 1.25rem 1rem 1.5rem; }
}
