/* =====================================
   GRID 5 → 4 → 3 → 2 → 1
===================================== */
.cars-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(5, 1fr);
    padding: 0 5%;
}

@media (max-width: 1400px) { .cars-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1200px) { .cars-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .cars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cars-grid { grid-template-columns: repeat(1, 1fr); } }

/* =====================================
   TESLA PREMIUM CARD
===================================== */
.car-card {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.7);
}

/* FADE-IN + SLIDE-UP ANIMATION */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
   PHOTO
===================================== */
.car-img img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

/* =====================================
   CARD CONTENT
===================================== */
.car-info {
    padding: 18px;
}

.car-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.car-meta {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.car-meta span {
    white-space: nowrap;
}

.car-price {
    font-size: 22px;
    color: #0af;
    margin-bottom: 15px;
    font-weight: 600;
}

/* BUTTON */
.car-btn {
    margin: auto auto 20px;
}

/* =====================================
   FILTRU
===================================== */
.filter-bar {
    text-align: center;
    margin: 20px 0 40px;
}

.filter-btn {
    padding: 10px 22px;
    margin: 0 8px;
    background: #222;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
}

.filter-btn:hover {
    background: #333;
}

.filter-btn.active {
    background: #0af;
    color: #000;
    font-weight: 600;
}

/* Fade-in + slide-up */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity .6s ease, transform .6s ease;
  }
  
  .car-card {
    opacity: 0;
    transform: translateY(20px);
  }
  
/* MODAL REZERVARE – VERSIUNE CORECTĂ */
.modal-overlay {
    display: none;                    /* ascuns inițial */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.show {
    display: flex !important;         /* important: forțăm flex */
    opacity: 1;
}

/* Restul rămâne la fel */
.modal-content {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 170, 255, 0.2);
    animation: modalPop 0.5s ease;
}

@keyframes modalPop {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 36px;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    line-height: 36px;
}

.modal-close:hover { color: #fff; }

/* buton WhatsApp */
.whatsapp-btn {
    background: #25D366 !important;
    color: white !important;
    font-weight: 600;
}

.whatsapp-btn:hover {
    background: #1DA851 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,170,255,0.2);
    box-shadow: 0 8px 32px rgba(0,170,255,0.15);
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.phone-number svg {
    width: 22px;
    height: 22px;
    fill: #0af;
    filter: drop-shadow(0 0 8px #0af);
}

.phone-number:hover {
    color: #0af;
    transform: translateY(-3px);
    text-shadow: 0 0 20px #0af;
}

.phone-number:hover svg {
    fill: #fff;
    filter: drop-shadow(0 0 12px #0af);
}

/* WhatsApp rotund */
.whatsapp-float {
    background: linear-gradient(135deg, #25d366, #128c7e);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37,211,102,0.4);
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-float:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37,211,102,0.6);
}

/* Animație puls pentru WhatsApp */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Responsiv */
@media (max-width: 900px) {
    .header-contact {
        display: none !important;
    }
}
@media (max-width: 900px) {

    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
    }

    /* Logo + hamburger + limbă să aibă spațiu logic */
    .header-right {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    /* Dropdown de limbă vizibil pe mobil */
    .lang-dropdown {
        display: block;
        margin-left: 0;
    }
}


/* ASCUNDEM CONTACTELE PE MOBIL */
.desktop-only {
    display: flex;
}

@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }
}

/* CONTACTELE DIN MENIUL MOBIL – STIL FRUMOS */
.mobile-contact-menu {
    margin-top: 20px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.mobile-contact-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    color: #fff;
    font-size: 1.1rem;
    transition: 0.3s;
}

.mobile-contact-menu a:hover {
    color: #0af;
    transform: translateX(8px);
}

.mobile-contact-menu svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.mobile-whatsapp {
    color: #25D366 !important;
}

.mobile-whatsapp:hover {
    color: #128c7e !important;
}

/* ASCUNDEM CONTACTELE DE MOBIL PE DESKTOP */
@media (min-width: 901px) {
    .mobile-contact-menu {
        display: none !important;
    }
}
