/* دیزاینا گشتی یا پەڕەی */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #f8fafc; 
}

/* بەشێ سەرەوە (Header) */
header { 
    background-color: #0f172a; 
    color: white; 
    padding: 15px 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
    gap: 15px;
}

header h1 { margin: 0; font-size: 22px; cursor: pointer; }

header .header-links {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    header {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
    }
    header h1 {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }
    header .header-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        font-size: 14px !important;
    }
}

/* بەشێ پێشوازیێ (Hero Section) */
.hero { 
    background-color: #2563eb; 
    color: white; 
    text-align: center; 
    padding: 50px 20px; 
}
.hero h2 { margin-top: 0; font-size: 32px; }
.hero p { font-size: 16px; margin-bottom: 0; }

/* دیزاینا بەشێ فیلتەرکرنێ */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: white;
    max-width: 900px;
    margin: -30px auto 30px auto; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.filter-container input, .filter-container select {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    font-size: 16px;
    flex: 1;
    color: #334155;
}

.filter-container button {
    padding: 12px 30px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-container button:hover {
    background-color: #1d4ed8;
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        margin: 20px;
        padding: 15px;
    }
}

/* جهێ نیشاندانا سەیاران */
.section-title { text-align: center; margin: 40px 0 20px 0; color: #334155; }

.cars-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    padding: 20px; 
    gap: 25px; 
    max-width: 1200px;
    margin: auto;
}

/* کارتا سەیارێ (Car Card) دیزاینا نوی و مۆدێرن */
.car-card { 
    background: white; 
    border-radius: 14px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.06); 
    width: 320px; 
    text-align: left; 
    padding: 0; 
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.car-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.car-image {
    width: 100%;
    height: 220px;
    object-fit: cover !important; 
    border-radius: 14px 14px 0 0; 
    margin-bottom: 15px;
    padding: 0 !important; 
    box-sizing: border-box;
}

.car-card h3 { 
    color: #0f172a; 
    margin: 0 20px 8px 20px; 
    font-size: 20px; 
    font-weight: bold;
}

.car-card p { 
    color: #16a34a; 
    font-size: 24px; 
    font-weight: 900; 
    margin: 0 20px 20px 20px; 
}

.details-btn { 
    background-color: #2563eb; 
    color: white; 
    border: none; 
    padding: 14px; 
    cursor: pointer; 
    border-radius: 8px;
    margin: auto 20px 20px 20px; 
    width: calc(100% - 40px); 
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.details-btn:hover { 
    background-color: #1e3a8a; 
    box-shadow: 0 5px 15px rgba(37,99,235,0.3);
}

/* دیزاینا پەنجەرەیا زانیاریان (Modal) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px); 
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto; 
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    box-sizing: border-box; 
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
}
.close-btn:hover { color: #0f172a; }

.modal-price {
    font-size: 26px;
    color: #16a34a;
    font-weight: bold;
    margin: 10px 0;
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 15px 0;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.modal-details p {
    font-size: 14px;
    color: #334155;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.modal-details p strong {
    color: #0f172a;
}

.modal-description {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.modal-description p strong {
    color: #0f172a;
    display: block;
    margin-bottom: 5px;
}

#modalDesc {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    word-break: break-word;
}

.buy-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 6px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}
.buy-btn:hover { background-color: #1d4ed8; }

/* دیزاینا پەڕەیێ Contact Us */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: -40px auto 60px auto; 
    gap: 40px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .contact-container {
        margin: 20px;
        padding: 20px;
        gap: 20px;
    }
}

.contact-info, .contact-form { flex: 1; min-width: 280px; }
.contact-info h3 { color: #0f172a; font-size: 28px; margin-top: 0; margin-bottom: 15px; }
.contact-info p { color: #475569; font-size: 16px; line-height: 1.6; margin-bottom: 25px; }

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1877F2;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc; 
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.contact-form button {
    background-color: #0f172a;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

/* ========================================= */
/* دیزاینا تایبەت ب مۆبایلێ بۆ پەنجەرەیا سەیارێ (Modal) ب هێزا !important */
/* ========================================= */
@media (max-width: 768px) {
    .modal { padding: 8px !important; }
    .modal-content { width: 100% !important; max-width: 100% !important; padding: 10px !important; margin: 2% auto !important; max-height: 98vh !important; }
    
    #modalImage { height: 160px !important; margin-bottom: 5px !important; }
    #modalGalleryThumbnails { margin-bottom: 5px !important; }
    #modalGalleryThumbnails img { height: 40px !important; }
    
    #modalTitle { font-size: 18px !important; margin: 5px 0 !important; }
    .modal-price { font-size: 18px !important; margin: 0 0 5px 0 !important; }
    
    .modal-details { grid-template-columns: 1fr 1fr !important; gap: 4px !important; padding: 5px !important; margin: 5px 0 !important; }
    .modal-details p { font-size: 12px !important; padding-bottom: 2px !important; margin: 0 !important; }
    
    .modal-description { padding: 8px !important; margin-bottom: 5px !important; }
    .modal-description p { font-size: 12px !important; line-height: 1.3 !important; margin: 0 !important; }
    
    .buy-btn { padding: 10px !important; font-size: 14px !important; margin-top: 5px !important; }
}

/* دیزاینا تایبەت ب مۆبایلێ دا کو کارت ببنە ٢ ل ڕەخ ئێک */
@media (max-width: 768px) {
    .cars-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .car-card { width: 100% !important; height: 100% !important; }
    .car-image { height: 120px !important; padding: 0 !important; margin-bottom: 8px !important; object-fit: cover !important; }
    .car-card h3 { font-size: 13px !important; margin: 0 8px 5px 8px !important; }
    .car-card p { font-size: 15px !important; margin: 0 8px 8px 8px !important; }
    .details-btn { font-size: 12px !important; padding: 8px 4px !important; margin: auto 8px 8px 8px !important; width: calc(100% - 16px) !important; }
}

/* دیزاینا شاشەیا زوومێ (Fullscreen Zoom) */
#fullscreenZoom {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#fullscreenZoom img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

#fullscreenZoom span {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ======================================================== */
/* دیزاینا دوگمەیا نوی یا (Contact Us Dropdown) ل سەرێ پەڕەی */
/* ======================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #2563eb;
    color: white;
    padding: 10px 18px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropbtn:hover {
    background-color: #1d4ed8;
    transform: scale(1.02);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 115%;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* ئەنیمەیشنا ڤەبوونا لیستەیێ */
.dropdown-content.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    color: #0f172a;
    padding: 14px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
}

/* ڕەنگکرنا ئایکۆنان ب تایبەتی */
.dropdown-content a:nth-child(1) { color: #16a34a; } /* وەتسئەپ - کەسک */
.dropdown-content a:nth-child(2) { color: #E1306C; } /* ئینستاگرام - پەمەیی */
.dropdown-content a:nth-child(3) { color: #2563eb; } /* نامە - شین */
/* ========================================= */
/* دیزاینا نوی یا مۆدێرن بۆ سەرێ ماڵپەڕی و مۆبایلێ */
/* ========================================= */

/* دیزاینا بەشێ شین یێ پێشوازیێ ب ڕەنگەکێ تێکەڵ (Gradient) */
.hero { 
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%) !important; 
    padding: 50px 20px 90px 20px !important; 
}
.hero h2 { 
    font-size: 32px !important; 
    font-weight: 900 !important; 
    letter-spacing: 0.5px; 
}
.hero p { 
    opacity: 0.9; 
    font-size: 17px !important; 
}

/* دیزاینا نوی یا سێرچێ (فیلتەری) ب شێوەیێ بەرنامەیا */
.filter-container {
    background-color: white !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15) !important;
    padding: 25px !important;
    margin: -60px auto 30px auto !important; /* ئەڤە دێ فیلتەری کێشیتە سەر بەشێ شین */
    border: 1px solid #f1f5f9;
}
.filter-container input, .filter-container select {
    border: 2px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    border-radius: 12px !important;
    padding: 15px !important;
    transition: all 0.3s ease !important;
}
.filter-container input:focus, .filter-container select:focus {
    border-color: #3b82f6 !important;
    background-color: white !important;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15) !important;
}
.filter-container button {
    background: linear-gradient(to right, #2563eb, #1d4ed8) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(37,99,235,0.3) !important;
    transition: transform 0.2s !important;
    padding: 15px 30px !important;
}
.filter-container button:hover { 
    transform: translateY(-3px) !important; 
    box-shadow: 0 8px 20px rgba(37,99,235,0.4) !important;
}

/* ڕێکخستنا سەرێ ماڵپەڕی بۆ مۆبایلێ */
@media (max-width: 768px) {
    header { 
        padding: 20px 15px 15px 15px !important; 
    }
    header h1 { 
        font-size: 26px !important; 
        margin-bottom: 18px !important; 
    }
    header .header-links { 
        gap: 20px !important; 
    }
    .dropbtn { 
        border-radius: 25px !important; 
        padding: 12px 20px !important; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
        font-size: 15px !important;
    }
    .filter-container {
        margin: -50px 15px 30px 15px !important;
        padding: 20px !important;
        gap: 12px !important;
    }
    .hero { 
        padding: 40px 15px 80px 15px !important; 
    }
    .hero h2 { 
        font-size: 26px !important; 
    }
}
