/* =====================================================
   PG CARS MNE — Vehicle Detail Page
   ===================================================== */

.vehicle-main {
    padding: 24px 0 40px;
    min-height: 70vh;
}

.loading-fullscreen {
    padding: 100px 20px;
    text-align: center;
    color: var(--text-muted);
}

.loading-fullscreen .spinner {
    margin: 0 auto 16px;
    color: var(--orange);
    width: 36px;
    height: 36px;
    border-width: 3px;
}

/* ============= BREADCRUMB ============= */
.vehicle-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vehicle-breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.vehicle-breadcrumb a:hover {
    color: var(--orange-bright);
}

.vehicle-breadcrumb .sep {
    color: var(--text-dim);
}

/* ============= LAYOUT ============= */
.vehicle-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .vehicle-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============= GALLERY ============= */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.gallery-main-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--text-dim);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
}

.gallery-main:hover .gallery-nav { opacity: 1; }

.gallery-nav:hover {
    background: var(--orange);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}


.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.gallery-thumb {
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

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

.gallery-thumb.active {
    border-color: var(--orange);
}

.gallery-thumb:hover {
    border-color: var(--orange-bright);
    opacity: 0.9;
}

/* ============= INFO PANEL ============= */
.vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vehicle-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 3.5vw, 32px);
    line-height: 1.2;
    margin-bottom: 4px;
}

.vehicle-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

.vehicle-status-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vehicle-price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
}

.vehicle-price-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.vehicle-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--orange-bright);
    line-height: 1;
}

.vehicle-price.soft {
    font-size: 24px;
    color: var(--text);
}

.vehicle-price-note {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============= QUICK SPECS ============= */
.quick-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.quick-spec {
    background: var(--bg-card);
    padding: 16px 18px;
}

.quick-spec-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.quick-spec-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* ============= CONTACT CARD ============= */
.contact-card {
    background: linear-gradient(135deg, rgba(232, 98, 26, 0.15), rgba(232, 98, 26, 0.05));
    border: 1px solid var(--border-orange);
    border-radius: var(--radius-lg);
    padding: 16px;
    flex: 1;
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 12px;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 12px;
    transition: all var(--transition);
    color: #fff !important;
    text-decoration: none;
}

.contact-btn-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-btn-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-btn-call {
    background: var(--orange);
}
.contact-btn-call:hover {
    background: var(--orange-bright);
    transform: translateY(-2px);
}

.contact-btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
.contact-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.contact-btn-viber {
    background: linear-gradient(135deg, #7360F2, #5A3FBF);
}
.contact-btn-viber:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(115, 96, 242, 0.4);
}

.contact-btn-label {
    line-height: 1.2;
}

.contact-btn-sub {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
    display: block;
}

@media (max-width: 480px) {
    .contact-buttons { grid-template-columns: 1fr; }
    .contact-btn {
        flex-direction: row;
        text-align: left;
        padding: 12px 16px;
        gap: 12px;
    }
    .contact-btn-label { flex: 1; }
}

/* ============= SHARE ============= */
.share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.share-row span {
    color: var(--text-muted);
    font-size: 13px;
}

.share-btn {
    padding: 8px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    transition: all var(--transition);
    cursor: pointer;
}

.share-btn:hover {
    border-color: var(--orange);
    color: var(--orange-bright);
}

/* ============= SECTIONS ============= */
.vehicle-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 20px;
}

.vehicle-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--text);
}

.spec-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

@media (max-width: 600px) {
    .spec-table { grid-template-columns: 1fr; }
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    font-size: 14px;
    gap: 12px;
}

.spec-row .label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.spec-row .value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* ============= EQUIPMENT ============= */
.equipment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eq-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
}

.eq-tag::before {
    content: '✓';
    color: var(--orange-bright);
    font-weight: 700;
}

/* ============= DESCRIPTION ============= */
.description-text {
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
}

/* ============= LIGHTBOX ============= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
    animation: fadeIn 0.2s;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
    z-index: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--orange);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

@media (max-width: 600px) {
    .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
    .lightbox-prev { left: 8px; width: 40px; height: 40px; font-size: 24px; }
    .lightbox-next { right: 8px; width: 40px; height: 40px; font-size: 24px; }
}

/* ============= NOT FOUND ============= */
.vehicle-not-found {
    text-align: center;
    padding: 80px 20px;
}

.vehicle-not-found h2 {
    margin-bottom: 12px;
}

.vehicle-not-found p {
    color: var(--text-muted);
    margin-bottom: 24px;
}
