/* ===================================================
   ×ž× ×•×¢ ×—×™×¤×•×© ×ž×©×¨×•×ª - mishrot-search.css
   ×¢×™×¦×•×‘: ×œ×‘×Ÿ ×¢× ×¦×œ, ×¤×•× ×˜ Heebo
   ×¦×‘×¢×™×: #fcb53f (×›×ª×•×), #294c71 (×›×—×•×œ ×›×”×”)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

.mishrot-search-wrap {
    direction: rtl;
    font-family: 'Arimo', sans-serif;
    background: #ffffff;
    border-radius: 50px;
    padding: 8px 8px 8px 8px;
    max-width: 1600px;
min-width: 58VW;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
}

.mishrot-search-form {
    width: 100%;
}

.mishrot-search-fields {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

/* â”€â”€ ×©×“×” ×‘×•×“×“ â”€â”€ */
.mishrot-field {
    flex: 1;
    position: relative;
    padding: 10px 20px 5px 0px;
    border-left: 1px solid #e8e8e8;
    cursor: pointer;
    min-width: 300px;
}

.mishrot-field:last-of-type {
    border-left: none;
}

.mishrot-field label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
    font-family: 'Arimo', sans-serif;
}

.mishrot-field-sub {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    font-family: 'Arimo', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* â”€â”€ ×›×¤×ª×•×¨ ×“×¨×•×¤×“××•×Ÿ (×©×§×•×£) â”€â”€ */
.mishrot-dropdown-btn {
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    text-align: right;
    cursor: pointer;
    outline: none;
}

.mishrot-dropdown-btn .mishrot-btn-label {
    display: block;
    font-size: 18px;
    color: #999;
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.mishrot-dropdown-btn.has-value .mishrot-btn-label {
    color: #294c71;
    font-weight: 600;
}

/* â”€â”€ ×¤×× ×œ ×“×¨×•×¤×“××•×Ÿ â”€â”€ */
.mishrot-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 9999;
    max-height: 340px;
    overflow-y: auto;
    padding: 8px 0;
}

.mishrot-dropdown-panel.open {
    display: block;
}

/* â”€â”€ ×§×˜×’×•×¨×™×” ×¨××©×™×ª â”€â”€ */
.mishrot-parent-item {
    padding: 0;
}

.mishrot-parent-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #294c71;
    background: #f7f9fb;
    user-select: none;
    transition: background 0.15s;
    font-family: 'Arimo', sans-serif;
}

.mishrot-parent-toggle:hover {
    background: #eef2f7;
}

.mishrot-parent-toggle .toggle-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 8px solid #fcb53f;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.mishrot-parent-toggle.open .toggle-arrow {
    transform: rotate(90deg);
}

/* â”€â”€ ×ª×ª-×§×˜×’×•×¨×™×•×ª â”€â”€ */
.mishrot-children {
    display: none;
}

.mishrot-children.open {
    display: block;
}

.mishrot-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 28px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    transition: background 0.12s;
    font-family: 'Arimo', sans-serif;
}

.mishrot-check-item:hover {
    background: #fff8ee;
}

.mishrot-check-item input[type="checkbox"] {
    accent-color: #fcb53f;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

/* â”€â”€ ×©×“×” ×¡×•×’ ×ž×©×¨×” â”€â”€ */
.mishrot-type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    transition: background 0.12s;
    font-family: 'Arimo', sans-serif;
}

.mishrot-type-item:hover {
    background: #fff8ee;
}

.mishrot-type-item input[type="checkbox"] {
    accent-color: #fcb53f;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

/* â”€â”€ ×©×“×” ×¢×™×¨ â”€â”€ */
.mishrot-city-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 18px;
    color: #999;
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    padding: 0;
    direction: rtl;
}

.mishrot-city-input::placeholder {
    color: #999;
}

.mishrot-city-input:focus {
    color: #294c71;
}

.mishrot-autocomplete-list {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    padding: 8px 0;
}

.mishrot-autocomplete-list.open {
    display: block;
}

.mishrot-autocomplete-item {
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
    font-family: 'Arimo', sans-serif;
}

.mishrot-autocomplete-item:hover {
    background: #fff8ee;
    color: #294c71;
    font-weight: 600;
}

/* â”€â”€ ×›×¤×ª×•×¨ ×—×™×¤×•×© ×¢×’×•×œ â”€â”€ */
.mishrot-search-btn-wrap {
    flex-shrink: 0;
    padding-right: 8px;
}

.mishrot-submit-btn {
    background: #fcb53f;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 32px;
    height: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Arimo', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.mishrot-submit-btn:hover {
    background: #e9a02e;
    transform: scale(1.05);
}

input#mishrot-city-input {
    border: 0px solid #ccc!important;
    padding: 0px!important;
}


/* ── יישור אנכי מושלם לכל השדות ── */
.mishrot-field {
    display: flex;
    align-items: center;
}

.mishrot-cat-trigger,
.mishrot-dropdown-btn {
    display: flex;
    align-items: center;
    width: 100%;
}

.mishrot-cat-display {
    display: block;
    font-size: 18px;
    color: #999;
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    line-height: 1;
}



/* ── שדה חיפוש בתוך דרופדאון ── */
.mishrot-cat-filter-wrap {
    padding: 10px 12px 6px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.mishrot-cat-filter {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-family: 'Arimo', sans-serif;
    direction: rtl;
    outline: none;
    box-sizing: border-box;
    color: #333;
}

.mishrot-cat-filter:focus {
    border-color: #fcb53f;
}

/* ── רספונסיבי מתחת ל-1200px: כל שדה בעמודה נפרדת, כותרת מעל, דרופדאון נפתח כלפי מטה באבסולוט ── */
@media (max-width: 1200px) {

    .mishrot-search-wrap {
        border-radius: 16px;
        padding: 12px;
    }

    .mishrot-search-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    /* כל שדה בעצמו הופך לעמודה: הכותרת (הטריגר) למעלה, הדרופדאון נפתח מתחתיה */
    .mishrot-field {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        border-left: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 12px 16px;
        min-width: 0;
    }

    .mishrot-field:last-of-type {
        border-bottom: none;
    }

    .mishrot-cat-trigger,
    .mishrot-dropdown-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .mishrot-cat-display,
    .mishrot-btn-label {
        width: 100%;
        max-width: none;
        text-align: right;
    }

    /* הדרופדאון נפתח כלפי מטה, באבסולוט ביחס לשדה עצמו — לא דוחף את מה שמתחתיו */
    .mishrot-dropdown-panel,
    .mishrot-autocomplete-list {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: auto;
        min-width: 0;
        margin-top: 0;
    }

    .mishrot-search-btn-wrap {
        padding: 12px 16px 4px;
        width: 100%;
    }

    .mishrot-submit-btn {
        width: 100%;
        border-radius: 12px;
        height: 44px;
        font-size: 16px;
        gap: 8px;
    }
}