/* ============================================================
   NXL QUICK-VIEW FEATURE STYLES
   ============================================================ */

.vehicle-badge-featured {
    left: auto !important;
    right: 12px !important;
    background: linear-gradient(135deg, var(--gold), #d4a853) !important;
    color: var(--black) !important;
    font-weight: 600;
}

.vehicle-badge-new {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: auto;
    background: #10b981;
    color: #fff;
    font-weight: 600;
    z-index: 2;
}

.vehicle-status-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(10, 10, 10, 0.85);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.vehicle-status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 #10b981;
    animation: nxl-pulse 2s infinite;
}

@keyframes nxl-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(10, 10, 10, 0.9);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    text-transform: uppercase;
}

.vehicle-card:hover .quick-view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-btn:hover {
    background: var(--gold);
    color: var(--black);
}

/* --- Modal --- */
.qv-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qv-modal.active { display: flex; opacity: 1; }

.qv-modal-content {
    background: var(--black-card);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.qv-modal.active .qv-modal-content { transform: scale(1); }

.qv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qv-close:hover { background: var(--gold); color: var(--black); }

.qv-image { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.qv-image img { width: 100%; height: 100%; object-fit: cover; }

.qv-details { padding: 32px; }
.qv-details h2 { font-size: 1.6rem; margin-bottom: 4px; color: #fff; }

.qv-brand {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.qv-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.qv-spec-item { display: flex; flex-direction: column; font-size: 0.85rem; }
.qv-spec-label { color: var(--gray); font-size: 0.75rem; text-transform: uppercase; }
.qv-spec-value { color: #fff; font-weight: 500; margin-top: 2px; }

.qv-pricing {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.qv-price-block strong { color: var(--gold); font-size: 1.4rem; display: block; }
.qv-price-block span { color: var(--gray); font-size: 0.8rem; }

.qv-desc { color: var(--gray); font-size: 0.9rem; line-height: 1.5; }

.qv-actions { display: flex; gap: 10px; margin-top: 20px; }
.qv-actions .btn { flex: 1; }

@media (max-width: 768px) {
    .qv-modal-content { grid-template-columns: 1fr; max-height: 95vh; }
    .qv-image { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16 / 9; }
    .qv-details { padding: 20px; }
    .quick-view-btn { display: none; }
}

/* ============================================================
   UNAVAILABLE VEHICLE STATES
   ============================================================ */
.vehicle-card--unavailable {
    opacity: 0.6;
    filter: grayscale(40%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.vehicle-card--unavailable:hover {
    opacity: 0.85;
    filter: grayscale(20%);
    transform: none !important;
    border-color: var(--gray-border) !important;
}

.vehicle-card--unavailable .vehicle-card-image img {
    filter: grayscale(50%);
}

.vehicle-card--unavailable:hover .vehicle-card-image img {
    transform: none !important;
}

.vehicle-badge-unavailable {
    /* kept as fallback but unused when we use the red pill */
    display: none;
}

/* Red unavailable pill — mirrors the green Available pill but in red */
.vehicle-status-pill.vehicle-status-pill--unavailable {
    color: #ef4444 !important;
}

.vehicle-status-pill.vehicle-status-pill--unavailable::before {
    background: #ef4444 !important;
    box-shadow: 0 0 0 0 #ef4444;
    animation: nxl-pulse-red 2s infinite !important;
}

@keyframes nxl-pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Disabled button (used for "Unavailable" in place of Book Now) */
.btn-disabled {
    background: #3a3a3a !important;
    color: #888 !important;
    border: 1px solid #444 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-disabled:hover {
    background: #3a3a3a !important;
    color: #888 !important;
    transform: none !important;
}
