.page-hero {
    position: relative;
    height: 450px;
    background: url('../../images/site_ui/cars-hero-background.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.hero-overlay {
    display: none;
}

.hero-content {
    display: none !important;
}

.cars-page-container {
    padding-bottom: 4rem;
}

.filter-bar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: 80px;
    margin-top: -280px;
    position: relative;
    z-index: 100;
}

.filter-form {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-end;
}

.search-dates-row {
    display: flex;
    gap: 15px;
    padding-bottom: 0;
    border-bottom: none;
    width: auto;
    flex: 0 0 auto;
}

.date-group {
    flex: 1;
    margin-bottom: 0 !important;
    min-width: 160px;
}

.date-group label,
.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 8px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.date-input,
.flatpickr-input {
    width: 100%;
    height: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px !important;
    padding: 0 15px 0 45px !important;
    font-size: 0.95rem !important;
    color: #333 !important;
    background-color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.calendar-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
    color: #333;
}

.search-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    flex: 1;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 130px;
}

.button-group {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.filter-btn,
.reset-btn {
    height: 50px !important;
    padding: 0 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
    white-space: nowrap !important;
}

.filter-btn {
    background-color: #003366;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.filter-btn:hover {
    background-color: #002244;
    transform: translateY(-2px);
}

.reset-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid #fff;
}

.reset-btn:hover {
    background-color: #fff;
    color: #003366;
}

.choices {
    margin-bottom: 0 !important;
    overflow: visible;
}

.choices__inner {
    background-color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px !important;
    height: 50px !important;
    min-height: 50px !important;
    display: flex;
    align-items: center;
    font-size: 0.95rem !important;
    padding: 0 15px !important;
    color: #333 !important;
}

.is-focused .choices__inner {
    border-color: #003366 !important;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1) !important;
}

.choices__list--dropdown {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    border-radius: 10px !important;
    margin-top: 5px !important;
    padding: 5px 0 !important;
    z-index: 100 !important;
}

.choices__list--dropdown .choices__item {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
    color: #333 !important;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.car-showcase-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    /* REMOVED BORDER FOR CLEAN LOOK */
    border: none;
    display: flex;
    flex-direction: column;
}

.car-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.car-image-wrapper {
    position: relative !important;
    width: 100%;
    height: 240px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* REMOVED BOTTOM BORDER FOR CLEAN LOOK */
    border-bottom: none;
    z-index: 1;
}

.car-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.car-showcase-card:hover .car-image-wrapper img {
    transform: scale(1.08);
}

.transmission-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-auto {
    background-color: #003366;
    color: #ffffff;
    border: 1px solid #002244;
}

.badge-manual {
    background-color: #f1f5f9;
    color: #003366;
    border: 1px solid #cbd5e1;
}

.car-info-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    text-align: center;
}

.car-specs-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.spec-item svg {
    color: #94a3b8;
}

.car-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-item {
    background: #f8fafc;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.car-price-section {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: nowrap;
}

.price-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #003366;
    white-space: nowrap;
}

.price-period {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-left: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.price-placeholder {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    font-style: italic;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.book-now-btn {
    background-color: #003366;
    color: #fff;
    padding: 12px 30px !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block !important;
    white-space: nowrap !important;
    min-width: 140px !important;
    width: auto !important;
    text-align: center;
}

.book-now-btn:hover {
    background-color: #002244;
}

.no-cars-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.flatpickr-calendar {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    width: 300px !important;
    margin: 0 auto;
}

.flatpickr-months {
    background: #003366 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 10px 0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff !important;
    font-weight: 700;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #fff !important;
}

.flatpickr-day.selected {
    background: #003366 !important;
    border-color: #003366 !important;
}

@media (max-width: 992px) {
    .filter-bar {
        padding: 15px 20px;
        margin-top: -60px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-bottom: 30px;
    }

    .filter-form {
        display: block;
    }

    .search-dates-row {
        display: block;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
        width: 100%;
    }

    .date-group {
        margin-bottom: 12px !important;
    }
    
    .date-group label, 
    .form-group label {
        color: #444;
        text-shadow: none;
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .search-filters-row {
        display: block;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .button-group {
        margin-top: 15px;
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .filter-btn,
    .reset-btn {
        flex: 1;
        height: 48px !important;
    }
    
    .date-input, 
    .flatpickr-input, 
    .choices__inner {
        height: 48px !important;
        min-height: 48px !important;
        font-size: 0.95rem !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .cars-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .car-price-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .book-now-btn {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 250px;
        background-image: url('../../images/site_ui/hero-background-mobile.jpg');
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }
    
    .filter-bar {
        margin-top: -40px;
    }
}