/* =====================================================
   SV Booking Filter Widget – booking-filter.css
   ===================================================== */

/* ── Outer container ── */
.sv-booking-filter-outer {
    width: 100%;
}

/* ── Form – horizontal (inline side-by-side) ── */
.sv-booking-filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.sv-booking-filter-form.sv-bf-horizontal .sv-bf-field {
    flex: 1 1 120px;
    min-width: 110px;
}

.sv-booking-filter-form.sv-bf-horizontal .sv-bf-submit {
    flex: 0 0 auto;
}

/* ── Form – vertical (stacked) ── */
.sv-booking-filter-form.sv-bf-vertical {
    flex-direction: column;
    align-items: stretch;
}

.sv-booking-filter-form.sv-bf-vertical .sv-bf-field {
    width: 100%;
}

/* ── Field wrapper ── */
.sv-bf-field {
    position: relative;
}

/* ── Common field styles (select + input) ── */
.sv-bf-field select,
.sv-bf-field input[type="number"],
.sv-bf-field input[type="text"] {
    width: 100%;
    height: 52px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    background-color: #f7f7f7;
    border: 1px solid #ebebeb;
    border-radius: 50px;
    padding: 0 20px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.sv-bf-field select:focus,
.sv-bf-field input:focus {
    border-color: #e62e2e;
    box-shadow: 0 0 0 3px rgba(230, 46, 46, 0.12);
}

/* ── Dropdown arrow ── */
.sv-bf-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #888;
    pointer-events: none;
}

/* ── Number field – spinner arrows style ── */
.sv-bf-number input[type="number"]::-webkit-inner-spin-button,
.sv-bf-number input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: auto;
    margin-right: 8px;
    cursor: pointer;
    opacity: 0.7;
}

/* ── Location field ── */
.sv-bf-location {
    position: relative;
}

.sv-bf-location input {
    padding-right: 48px;
}

.sv-bf-location-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #888;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* ── Submit button ── */
.sv-bf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 35px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background-color: #e62e2e;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.sv-bf-btn:hover {
    background-color: #c02020;
    box-shadow: 0 6px 20px rgba(230, 46, 46, 0.4);
    transform: translateY(-1px);
}

.sv-bf-btn:active {
    transform: translateY(0);
}

.sv-bf-btn .eicon,
.sv-bf-btn svg,
.sv-bf-btn i {
    font-size: 16px;
}

/* ── Vertical layout submit ── */
.sv-bf-vertical .sv-bf-submit .sv-bf-btn {
    width: 100%;
}

/* ── Placeholder text color for default select option ── */
.sv-bf-field select.sv-bf-placeholder {
    color: #999;
}

.sv-bf-field select option:not([value=""]) {
    color: #333;
}

/* ── Responsive – tablet ── */
@media (max-width: 991px) {
    .sv-booking-filter-form.sv-bf-horizontal .sv-bf-field {
        flex: 1 1 calc(50% - 12px);
        min-width: 140px;
    }

    .sv-booking-filter-form.sv-bf-horizontal .sv-bf-submit {
        flex: 1 1 100%;
    }
}

/* ── Responsive – mobile ── */
@media (max-width: 576px) {
    .sv-booking-filter-form.sv-bf-horizontal .sv-bf-field {
        flex: 1 1 100%;
    }

    .sv-bf-btn {
        width: 100%;
    }

    .sv-booking-filter-wrapper {
        padding: 16px;
    }
}