/* ===== 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%;
}

/* PËRMIRËSIM I TEKSTIT TË BANNERIT */
.banner-text {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    padding: 30px 35px !important;
    border-radius: 12px !important;
    color: #fff;
    z-index: 2;
    width: fit-content;
    max-width: 600px;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7) !important;
    letter-spacing: -0.5px !important;
}

.banner-subtitle {
    font-size: 22px;
    font-weight: 500 !important;
    margin-bottom: 25px;
    color: #f0f0f0 !important;
    line-height: 1.5;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7) !important;
}

.banner-button {
    display: inline-block;
    background: #ffffff !important;
    border: none !important;
    color: #222 !important;
    font-weight: 600 !important;
    padding: 14px 30px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    text-decoration: none;
}

.banner-button:hover {
    background: #466337 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(70, 99, 55, 0.4) !important;
}

/* 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 */
.select-wrapper {
    position: relative;
    width: 100%;
}

.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;
}

.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);
}

.select-arrow {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 25px;
    height: 40px;
    background: #fff;
    border-radius: 0 6px 6px 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.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;
}

.select-wrapper:hover .arrow-down {
    border-top-color: #333;
}

.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;
}

.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);
}

/* ===== CUSTOM BRAND DROPDOWN STYLES ===== */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    height: 42px;
    box-sizing: border-box;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.custom-select__trigger-text {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
}

.custom-select__trigger-text img {
    width: 30px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.custom-select__trigger-text .option-logo-placeholder {
    width: 30px;
    height: 20px;
    flex-shrink: 0;
}

.custom-select__trigger-text span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    margin-top: -1px;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.custom-option:hover {
    background: #f8f9fa;
}

.custom-option.selected {
    background: #e9ecef;
    font-weight: 500;
}

.custom-option img {
    width: 30px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.custom-option .option-logo-placeholder {
    width: 30px;
    height: 20px;
    flex-shrink: 0;
}

.custom-option .option-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.custom-select .arrow-down {
    border: solid #666;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-left: 8px;
    width: auto;
    height: auto;
    border-top: none;
    border-left: none;
}

.custom-select.open .arrow-down {
    transform: rotate(-135deg);
}

.custom-select__trigger: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);
}

/* ===== 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);
}

.custom-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #28a745;
    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);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.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;
}

.photo-count-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 15;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: sans-serif;
}

.photo-icon {
    width: 12px;
    height: 12px;
    stroke: white;
}

.car-card:hover .photo-count-badge {
    opacity: 1;
    transform: translateY(0);
}

.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;
}

.car-price-section {
    margin-bottom: 12px;
}

.car-price {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.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-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);
}

/* ===== BRANDS CAROUSEL SECTION ===== */
.brands-section {
    padding: 50px 0;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #222;
    margin-bottom: 30px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #466337;
    margin: 15px auto 0;
    border-radius: 2px;
}

.brands-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.brands-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 15px 5px;
    scroll-snap-type: x mandatory;
}

.brands-carousel::-webkit-scrollbar {
    display: none;
}

.brand-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    scroll-snap-align: start;
    transition: transform 0.3s;
}

.brand-item:hover {
    transform: translateY(-5px);
}

.brand-logo-container {
    width: 120px;
    height: 80px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.brand-item:hover .brand-logo-container {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #466337;
}

.brand-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.brand-item:hover .brand-logo-container img {
    filter: grayscale(0%);
}

.brand-name {
    margin-top: 12px;
    font-weight: 500;
    font-size: 14px;
    color: #555;
    transition: color 0.3s;
}

.brand-item:hover .brand-name {
    color: #466337;
    font-weight: 600;
}

.brands-prev, .brands-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.brands-prev {
    left: 0;
}

.brands-next {
    right: 0;
}

.brands-prev:hover, .brands-next:hover {
    background: #466337;
    color: white;
    border-color: #466337;
}

/* ===== INFO SECTION (PSE NE) ===== */
.info-section {
    padding: 60px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.info-card {
    text-align: center;
    padding: 25px 15px;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background: white;
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #466337 0%, #5a7e4a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(70, 99, 55, 0.3);
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.info-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px !important;
    }
    
    .banner-text {
        padding: 20px 25px !important;
        margin: 0 15px !important;
        width: auto !important;
    }
    
    .banner-title {
        font-size: 24px !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
    }
    
    .banner-subtitle {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .banner-button {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
    
    .slider-prev,
    .slider-next {
        display: block !important;
    }
    
    .slider-dots {
        bottom: 10px !important;
    }
    
    .dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    .cars-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .filter-form {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .select-arrow {
        width: 25px;
        height: 38px;
    }
    
    .photo-count-badge {
        opacity: 0.9;
        transform: translateY(0);
        bottom: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .photo-icon {
        width: 10px;
        height: 10px;
    }
    
    .custom-badge {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .custom-option {
        padding: 12px;
    }
    
    /* Brands carousel responsive */
    .brands-carousel-wrapper {
        padding: 0 30px;
    }
    
    .brand-logo-container {
        width: 100px;
        height: 70px;
    }
    
    .brands-prev, .brands-next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* Info section responsive */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px !important;
    }
    
    .banner-title {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
    
    .banner-subtitle {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .banner-text {
        padding: 15px !important;
        max-width: 100% !important;
    }
    
    .banner-button {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    
    .cars-grid {
        grid-template-columns: 1fr !important;
    }
    
    .select-arrow {
        width: 25px;
        height: 36px;
    }
    
    /* Info section responsive */
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slider {
        height: 450px !important;
    }
    
    .banner-title {
        font-size: 30px !important;
    }
    
    .banner-subtitle {
        font-size: 20px !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;
    }
    
    .banner-subtitle {
        font-size: 24px !important;
    }
}