/* Umrah Ziarah Main Filter Container */
.asme-uzmf-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Section Styles */
.asme-uzmf-section {
    margin-bottom: 40px;
}

.asme-uzmf-section-title {
    font-family: Inter;
    font-weight: 800;
    font-style: Extra Bold;
    font-size: 12px;
    line-height: 125%;
    letter-spacing: 10%;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
}

/* Price Slider */
.asme-uzmf-price-slider-container {
    padding: 20px 10px;
}

.asme-uzmf-price-values {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: #0ea5e9;
    margin-bottom: 20px;
}

.asme-uzmf-price-values span {
    padding: 8px 14px;
    background: #f0f9ff;
    border-radius: 8px;
}

/*
.asme-uzmf-range-slider {
    position: relative;
    width: 100%;
    height: 10px;
    display: flex;
    align-items: center;
}

.asme-uzmf-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.asme-uzmf-range-slider input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

.asme-uzmf-range-slider input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

.asme-uzmf-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #0ea5e9;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.asme-uzmf-range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #0ea5e9;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.asme-uzmf-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.6);
}

.asme-uzmf-range-slider input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.6);
}


.asme-uzmf-range-slider input.asme-uzmf-max {
    z-index: 3;
    right:0;
    width:48%
}
.asme-uzmf-range-slider input.asme-uzmf-min {
z-index:3;
left:0;
width:48%;
}
*/

/* Musim Grid */
.asme-uzmf-musim-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.asme-uzmf-musim-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Hide checkboxes in main filter */
.asme-uzmf-musim-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.asme-uzmf-musim-box:hover {
    border-color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.asme-uzmf-musim-box.selected {
    background: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.asme-uzmf-musim-title {
    font-family: Inter;
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0%;
    text-transform: none;
    color: #333;
}

.asme-uzmf-musim-box.selected .asme-uzmf-musim-title {
    color: #0ea5e9;
}

/* Destinasi Dropdown */
.asme-uzmf-select {
    width: 100%;
    /*padding: 12px 16px;*/
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.asme-uzmf-select:hover {
    border-color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.asme-uzmf-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* Passenger Controls - One Row Layout */
.asme-uzmf-passengers-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 0;
}

.asme-uzmf-passenger-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.asme-uzmf-passenger-label {
    font-family: Inter;
    font-weight: 800;
    font-style: normal;
    font-size: 12px;
    line-height: 125%;
    letter-spacing: 10%;
    text-transform: uppercase;
    color: #333;
    white-space: nowrap;
    margin-bottom: 0;
}

.asme-uzmf-passenger-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asme-uzmf-passenger-input {
    width: 100px !important;
    max-width: 100px !important;
    padding: 12px 16px !important;
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #333 !important;
    background-color: #F9FAFB !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Counter Buttons - Circle Shape */
[type="button"].asme-uzmf-counter-btn,
button[type="button"].asme-uzmf-counter-btn,
button.asme-uzmf-counter-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 2px solid #E5E7EB !important;
    border-style: solid !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    overflow: visible !important;
    text-transform: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

[type="button"].asme-uzmf-counter-btn:hover,
button[type="button"].asme-uzmf-counter-btn:hover,
button.asme-uzmf-counter-btn:hover {
    background-color: #E1F1FD !important;
    background: #E1F1FD !important;
    color: #333333 !important;
    border-color: #008EEC !important;
    transform: none !important;
}

[type="button"].asme-uzmf-counter-btn:active,
button[type="button"].asme-uzmf-counter-btn:active,
button.asme-uzmf-counter-btn:active {
    transform: scale(0.95) !important;
}

[type="button"].asme-uzmf-counter-btn:focus,
button[type="button"].asme-uzmf-counter-btn:focus,
button.asme-uzmf-counter-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Submit Section - Inline with passengers */
.asme-uzmf-passengers-row .asme-uzmf-submit-section {
    margin: 0 !important;
    margin-left: auto !important;
}

/* Submit Button - High Specificity to Override Elementor */
[type="submit"].asme-uzmf-submit-btn,
button[type="submit"].asme-uzmf-submit-btn,
button.asme-uzmf-submit-btn {
    background-color: #0ea5e9 !important;
    background: #0ea5e9 !important;
    color: #ffffff !important;
    border: none !important;

    /* Updated sizing + spacing */
    width: 233px !important;
    height: 40px !important;
    padding: 3.5px 6px !important;
    border-radius: 8px !important;

    /* Icon + Text support */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    /* Font updates */
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 150% !important;
    letter-spacing: 0% !important;

    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;

    white-space: nowrap !important;
    margin: 0 !important;
    text-align: center !important;
    overflow: visible !important;
    text-transform: none !important;

    user-select: none !important;
    -webkit-user-select: none !important;
    box-sizing: border-box !important;
}

[type="submit"].asme-uzmf-submit-btn:hover,
button[type="submit"].asme-uzmf-submit-btn:hover,
button.asme-uzmf-submit-btn:hover {
    background-color: #0284c7 !important;
    background: #0284c7 !important;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4) !important;
    transform: translateY(-2px) !important;
}

[type="submit"].asme-uzmf-submit-btn:active,
button[type="submit"].asme-uzmf-submit-btn:active,
button.asme-uzmf-submit-btn:active {
    transform: translateY(0) !important;
}

.asme-uzmf-submit-btn>svg {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .asme-uzmf-passengers-row {
        flex-wrap: wrap;
    }

    .asme-uzmf-passengers-row .asme-uzmf-submit-section {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 15px !important;
    }

    [type="submit"].asme-uzmf-submit-btn,
    button[type="submit"].asme-uzmf-submit-btn,
    button.asme-uzmf-submit-btn {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .asme-uzmf-musim-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .asme-uzmf-passengers-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .asme-uzmf-passenger-group {
        justify-content: space-between;
    }

    .asme-uzmf-passenger-input {
        width: 80px !important;
        max-width: 80px !important;
    }
}

@media (max-width: 480px) {
    .asme-uzmf-musim-grid {
        grid-template-columns: 1fr;
    }

    .asme-uzmf-section-title {
        font-size: 12px;
    }

    .asme-uzmf-musim-title {
        font-size: 12px;
    }
}

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 480px) {

    .asme-uzmf-bajet-grid,
    .asme-uzmf-musim-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .asme-uzmf-section-title {
        font-size: 12px;
    }

    .asme-uzmf-bajet-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .asme-uzmf-musim-title {
        font-size: 14px;
    }

    .asme-uzmf-passengers-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding-bottom: 50px;
        justify-content: center;
        align-content: center;
        justify-items: center;
        align-items: center;
    }

    .asme-uzmf-filter-container {
        padding: 20px;
    }

    .asme-uzmf-bajet-price {
        font-size: 13px;
    }

    .asme-uzmf-passenger-input {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 5px !important;
        justify-items: center;
    }

    .asme-uzmf-section {
        margin-bottom: 20px;
        position: relative;
        width: 100%;
    }

    .asme-uzmf-filter-form [type="submit"].asme-uzmf-submit-btn,
    button[type="submit"].asme-umf-submit-btn,
    button.asme-umf-submit-btn {
        width: 100% !important;
    }

    .asme-uzmf-passenger-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 5px;
        justify-items: center;
    }

    .asme-uzmf-passenger-controls>*:first-child {
        grid-column: 1 / span 2;
    }

    .asme-uzmf-passenger-group {}

    .asme-uzmf-submit-section {
        position: absolute;
        bottom: -20px;
        width: 100%;
    }

    [type="button"].asme-uzmf-counter-btn,
    button[type="button"].asme-uzmf-counter-btn,
    button.asme-uzmf-counter-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    .asme-uzmf-price-slider-container {
        padding: 10px;
    }

    asme-uzmf-range-slider {
        justify-content: space-between;
    }

    .asme-uzmf-range-slider input[type="range"] {
        width: 50%;
        position: relative;
    }
}


/* ----- Range Slider ---- */
.asme-uzmf-range-slider {
    --min: 0%;
    --max: 50%;
    position: relative;
    width: 100%;
    height: 10px;
}

.asme-uzmf-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 10px;
    margin: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: none;
}

/* ONLY max slider paints the track */
.asme-uzmf-max {
    background: linear-gradient(to right,
            #e5e7eb 0%,
            #e5e7eb var(--min),
            #1d9bf0 var(--min),
            #1d9bf0 var(--max),
            #e5e7eb var(--max),
            #e5e7eb 100%) !important;
    border-radius: 999px;
}

/* tracks transparent */
.asme-uzmf-range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.asme-uzmf-range-slider input[type="range"]::-moz-range-track {
    height: 6px;
    background: transparent;
}

/* thumbs */
.asme-uzmf-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #1d9bf0;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    margin-bottom: 6px;
}

.asme-uzmf-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #1d9bf0;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
}

/* z-index so min thumb stays clickable */
.asme-uzmf-min {
    z-index: 2;
    top: -6px !important;
}

.asme-uzmf-max {
    z-index: 1;
}

.asme-uzmf-max::-webkit-slider-thumb {
    transform: translateY(-6px);
}

@-moz-document url-prefix() {
    .asme-uzmf-min {
        top: 0 !important;
    }
}