/* Cars Page Styles */

/* Subheader Section */
#subheader {
    padding-top: 200px !important;
    padding-bottom: 100px !important;
    position: relative;
    background-size: cover;
    background-position: center;
}

#subheader h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Section Cars */
#section-cars {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

#section-cars .container {
    max-width: 1200px;
}

/* Filter Sidebar */
.item_filter_group {
    margin-bottom: 40px;
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.item_filter_group:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.item_filter_group h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 3px solid #4cb286;
    letter-spacing: -0.3px;
}

.de_form {
    margin-top: 15px;
}

.de_checkbox {
    margin-bottom: 12px;
}

.de_checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4cb286;
}

.de_checkbox label {
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.de_checkbox label:hover {
    color: #4cb286;
    transform: translateX(3px);
    transition: all 0.2s ease;
}

/* Price Range Slider */
.price-input {
    width: 100%;
    display: flex;
    margin: 20px 0;
    gap: 10px;
}

.price-input .field {
    display: flex;
    width: 100%;
    height: 45px;
    align-items: center;
}

.price-input .field span {
    min-width: 35px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.price-input .field input {
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 16px;
    margin-left: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
    padding: 0 10px;
    transition: border-color 0.3s ease;
}

.price-input .field input:focus {
    border-color: #4cb286;
}

.slider {
    height: 5px;
    position: relative;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 20px 0;
}

.slider .progress {
    height: 100%;
    left: 0%;
    right: 0%;
    position: absolute;
    border-radius: 5px;
    background: #4cb286;
    transition: all 0.3s ease;
}

.range-input {
    position: relative;
}

.range-input input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    top: -5px;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.range-input input[type="range"]::-webkit-slider-thumb {
    height: 17px;
    width: 17px;
    border-radius: 50%;
    background: #4cb286;
    pointer-events: auto;
    -webkit-appearance: none;
    box-shadow: 0 2px 6px rgba(76, 178, 134, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.range-input input[type="range"]::-webkit-slider-thumb:hover {
    background: #00787d;
    transform: scale(1.1);
}

.range-input input[type="range"]::-moz-range-thumb {
    height: 17px;
    width: 17px;
    border: none;
    border-radius: 50%;
    background: #4cb286;
    pointer-events: auto;
    -moz-appearance: none;
    box-shadow: 0 2px 6px rgba(76, 178, 134, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.range-input input[type="range"]::-moz-range-thumb:hover {
    background: #00787d;
    transform: scale(1.1);
}

/* Car Cards */
.de-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 95%;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.de-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(76, 178, 134, 0.15);
    border-color: rgba(76, 178, 134, 0.3);
}

.de-item .d-img {
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    border-radius: 16px 16px 0 0;
}

.de-item .d-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.de-item:hover .d-img img {
    transform: scale(1.12);
}

.de-item .d-info {
    padding: 24px 28px 28px 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.de-item .d-text {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.de-item .d-text h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.de-item .d-item_like {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 12px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    min-width: auto;
}

.de-item .d-item_like:hover {
    background: #ffffff;
    color: #4cb286;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(76, 178, 134, 0.25);
}

.de-item .d-item_like i {
    color: #e74c3c;
    font-size: 0.85rem;
}

.de-item .d-item_like span {
    font-size: 0.75rem;
    font-weight: 500;
}

.de-item .d-item_like i.active {
    color: #e74c3c;
}

.de-item .d-atr-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.de-item .d-atr {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #666;
    padding: 4px 0;
}

.de-item .d-atr img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.de-item .d-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
}

.de-item .d-price span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4cb286;
    line-height: 1.2;
}

.de-item .d-price .price-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.de-item .d-price .btn-main {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background-color: #4cb286;
    color: #ffffff;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(76, 178, 134, 0.3);
    cursor: pointer;
    line-height: 1.4;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.de-item .d-price .btn-main:hover {
    background-color: #00787d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 125, 0.4);
    text-decoration: none;
}

.btn_alignment{
       background-color: #4cb286;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 125, 0.4);
    text-decoration: none;
   padding: 10px 15px; /* top-bottom left-right */

}

/* Responsive */
@media (max-width: 991px) {
    #subheader {
        padding-top: 180px !important;
        padding-bottom: 80px !important;
    }
    
    #subheader h1 {
        font-size: 2.5rem;
    }
    
    #section-cars {
        padding: 60px 0;
    }
    
    .item_filter_group {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    #subheader {
        padding-top: 160px !important;
        padding-bottom: 60px !important;
    }
    
    #subheader h1 {
        font-size: 2rem;
    }
    
    .price-input {
        flex-direction: column;
        gap: 15px;
    }
    
    .de-item .d-price {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }
    
    .de-item .d-price .price-text {
        white-space: nowrap;
    }
    
    .de-item .d-price .btn-main,
    .de-item .d-price .btn_alignment {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

