/* =========================================
   MODERN UI & SEMANTIC SEO STYLING
   ========================================= */

:root {
    --black-main: #0a0a0a;
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    --white-pure: #ffffff;
    --white-warm: #fcfcfc;
    --gray-border: #eeeeee;
}

/* Breadcrumbs */
.custom-breadcrumb .breadcrumb-item a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.custom-breadcrumb .breadcrumb-item a:hover { color: var(--gold-primary); }

/* Card Architecture */
.vehicle-card {
    background: var(--white-pure);
    border: 1px solid var(--gray-border); /* Visible Border */
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); /* Subtle Shadow */
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.vehicle-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin: 0;
}

.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.badge-year {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Status & Price */
.status-pill {
    background: #eaffeb;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #d0f0d2;
}

.bg-white-warm { background-color: #f9f9f9; }

/* Action Bar */
.card-footer-actions {
    background: #ffffff;
    border-top: 1px solid var(--gray-border);
}

.btn-gold-action {
    background: var(--gold-gradient);
    border: none;
    color: var(--black-main);
}

/* SEO Content Styling */
.text-natural p {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: #fdf8e6;
    color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.sidebar-trust {
    position: sticky;
    top: 20px;
}
.concierge-row {
    background: var(--white-off);
    border-radius: 18px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon Containers */
.glass-icon-wa, .glass-icon-call { width: 48px; height: 48px; }

.glass-icon-wa { background: #e8f5e9; color: #2e7d32; }
.glass-icon-call { background: #e3f2fd; color: #1565c0; }

/* Interactive States */
.success-hover:hover {
    background: var(--white-pure);
    border-color: #2e7d32;
    transform: translateY(-3px);
}

.primary-hover:hover {
    background: var(--white-pure);
    border-color: #1565c0;
    transform: translateY(-3px);
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Modal Backdrop Performance */
.modal-backdrop.show {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.7);
}


/* =========================
   FINAL MOBILE & GRID FIX
   ========================= */

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
}

/* Ensure cards never overflow */
.vehicle-card {
    max-width: 100%;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .vehicle-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    }

    .vehicle-img {
        transform: none !important;
    }
}

/* Disable sticky sidebar on mobile */
@media (max-width: 991.98px) {
    .sidebar-trust,
    .sticky-top {
        position: static !important;
        top: auto !important;
        margin-top: 2rem;
    }
}

/* Lock image size for consistent cards */
.vehicle-image-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

/* Mobile spacing optimization */
@media (max-width: 575.98px) {
    .vehicle-card {
        border-radius: 14px;
    }

    .card-body {
        padding: 1rem;
    }

    .card-footer-actions .btn {
        padding: 0.6rem 0.5rem;
        font-size: 0.75rem;
    }
}
