/* ===== BANNER/SLIDER STYLES ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-content-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.banner-content-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.banner-text {
    background: rgba(255, 255, 255, 0.25);
    padding: 25px 30px;
    border-radius: 8px;
    color: #333;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    width: fit-content;
    max-width: 600px;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #222;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
}

.banner-subtitle {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #466337;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.banner-button {
    display: inline-block;
    background: #333;
    border: 1px solid #333;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.banner-button:hover {
    background: #555;
    border-color: #555;
}

/* Navigation arrows */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: none;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0,0,0,0.6) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Dots indicators */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dot.active {
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 25px 0;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

/* Select wrapper - pozicion relative për shigjetën */
.select-wrapper {
    position: relative;
    width: 100%;
}

/* Stili i select-it */
.select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font: inherit;
    color: #333;
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    box-sizing: border-box;
    cursor: pointer;
}

/* Fokusi i select-it */
.select-wrapper select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05), inset 0 1px 2px rgba(0,0,0,0.1);
}

/* Shigjeta e personalizuar - pa border majtas, madhësia 25px */
.select-arrow {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 25px;
    height: 40px; /* lartësia e select-it minus 2px nga border-i */
    background: #fff;
    border-radius: 0 6px 6px 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Shigjeta vizuale */
.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    display: inline-block;
    transition: border-top-color 0.2s;
}

/* Ndrysho ngjyrën e shigjetës kur hover mbi select */
.select-wrapper:hover .arrow-down {
    border-top-color: #333;
}

/* iOS FIX + stil unifikuar per filter-at ne faqen kryesore */
.filter-group select,
.filter-group input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font: inherit;
    color: #333;
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* fokus i bukur dhe i njejte kudo */
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05), inset 0 1px 2px rgba(0,0,0,0.1);
}

.filter-group select {
    cursor: pointer;
}

.price-group {
    grid-column: span 1;
}

.price-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

#price-slider {
    flex: 1;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ddd 0%, #333 100%);
    outline: none;
}

#price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

#price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

#price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.price-value-display {
    min-width: 85px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    background: white;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

/* ===== CARS SECTION ===== */
.cars-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.car-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.car-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.sold-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.car-image-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1);
}

.car-card:hover .car-image {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.car-card:hover .image-overlay {
    opacity: 1;
}

.car-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-title-small {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

/* Çmimi */
.car-price-section {
    margin-bottom: 12px;
}

.car-price {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Specifikat me ikona - HORIZONTALE */
.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    font-size: 13px;
    color: #666;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spec-item i {
    color: #466337;
    font-size: 14px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.view-all-link {
    display: inline-block;
    padding: 8px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.view-all-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* View all button */
.view-all-container {
    text-align: center;
    margin: 40px 0 20px;
}

.view-all-button {
    display: inline-block;
    padding: 10px 30px;
    background: transparent;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.view-all-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px !important;
    }
    
    .banner-title {
        font-size: 24px !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    }
    
    .banner-subtitle {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        color: #466337 !important;
        font-weight: 700 !important;
    }
    
    .banner-text {
        padding: 18px 20px !important;
        max-width: 100% !important;
    }
    
    .banner-button {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .slider-prev,
    .slider-next {
        display: block !important;
    }
    
    .slider-dots {
        bottom: 10px !important;
    }
    
    .dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    /* Grid responsive për kartat e makinave */
    .cars-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* Filtri responsive për mobile */
    .filter-form {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Shigjeta përshtatet në mobile */
    .select-arrow {
        width: 25px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px !important;
    }
    
    .banner-title {
        font-size: 20px !important;
        margin-bottom: 8px !important;
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    }
    
    .banner-subtitle {
        font-size: 16px !important;
        margin-bottom: 12px !important;
        color: #466337 !important;
        font-weight: 700 !important;
    }
    
    .banner-text {
        padding: 15px !important;
        max-width: 100% !important;
    }
    
    .banner-button {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .cars-grid {
        grid-template-columns: 1fr !important;
    }
    
    .select-arrow {
        width: 25px;
        height: 36px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slider {
        height: 450px !important;
    }
    
    .banner-title {
        font-size: 30px !important;
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    }
    
    .banner-subtitle {
        font-size: 20px !important;
        color: #466337 !important;
        font-weight: 700 !important;
    }
    
    .banner-text {
        padding: 20px 25px !important;
    }
    
    .cars-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .cars-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1600px) {
    .hero-slider {
        height: 600px !important;
    }
    
    .banner-title {
        font-size: 42px !important;
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    }
    
    .banner-subtitle {
        font-size: 24px !important;
        color: #466337 !important;
        font-weight: 700 !important;
    }
}