.almurtah-search-tabs .tab-btn {
    background: var(--almurtah-accent, #ff987a);
    color: #fff;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.almurtah-search-tabs .tab-btn:hover {
    background: var(--almurtah-primary, #FA8B68);
}

.almurtah-search-tabs .tab-btn.active {
    background: #fff;
    color: var(--almurtah-primary, #FA8B68);
}

.almurtah-search-form-wrap {
    background: #fff;
    border-radius: 0px 10px 10px 10px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.almurtah-search-form .form-fields-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.almurtah-search-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.almurtah-search-form .form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.almurtah-search-form .almurtah-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #64748b;
    background-color: #f8fafc;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
}

.almurtah-search-form .almurtah-select:focus {
    outline: none;
    border-color: var(--almurtah-primary, #FA8B68);
    background-color: #fff;
}

/* Select2 Overrides */
.almurtah-search-form .select2-container .select2-selection--single {
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
}

.almurtah-search-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #64748b;
    font-size: 15px;
    padding-left: 16px;
    line-height: normal;
}

.almurtah-search-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 12px;
}

.almurtah-search-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.almurtah-search-form .select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

.almurtah-search-form .select2-container--open .select2-selection--single {
    border-color: var(--almurtah-primary, #FA8B68);
    background-color: #fff;
}

/* Hide jQuery UI Selectmenu Overrides (ArcHub Conflict) */
.almurtah-search-form .ui-selectmenu-button {
    display: none !important;
}

.almurtah-search-form .search-btn-col {
    flex: 0 0 auto;
}

.almurtah-search-form .almurtah-submit-btn {
    background: var(--almurtah-primary, #FA8B68);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    height: 48px;
}

.almurtah-search-form .almurtah-submit-btn:hover {
    background: var(--almurtah-accent, #e87754);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .almurtah-search-form .form-fields-row {
        flex-direction: column;
        align-items: stretch;
    }

    .almurtah-search-tabs {
        padding-left: 0;
        justify-content: space-between;
    }

    .almurtah-search-tabs .tab-btn {
        flex: 1;
        padding: 12px 10px;
        text-align: center;
    }
}

/* ==========================================
   RTL (Arabic) Overrides
   ========================================== */
.rtl .almurtah-search-form-wrap {
    border-radius: 10px 0px 10px 10px; /* Round top-left, square top-right for tabs */
}

/* Align tabs properly in RTL */
.rtl .almurtah-search-tabs {
    display: flex;
    justify-content: flex-start;
}

/* RTL Select2 overrides to align text, arrows and clear buttons */
.rtl .almurtah-search-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 16px;
    padding-left: 40px;
    text-align: right;
}

.rtl .almurtah-search-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 12px;
    right: auto;
}

.rtl .almurtah-search-form .select2-container--default .select2-selection--single .select2-selection__arrow::after {
    left: 0;
    right: auto;
}

/* Make search clear "x" button appear on the left side in Arabic */
.rtl .almurtah-search-form .select2-container--default .select2-selection--single .select2-selection__clear {
    left: 28px;
    right: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
}

.rtl .almurtah-search-form .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--almurtah-primary, #FA8B68);
}

/* ==========================================
   Segmented CPT Selector (Properties vs Plots)
   ========================================== */
.almurtah-post-type-selector {
    display: inline-flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.almurtah-post-type-selector .post-type-btn {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.almurtah-post-type-selector .post-type-btn:hover {
    color: var(--almurtah-primary, #FA8B68);
}

.almurtah-post-type-selector .post-type-btn.active {
    background: #fff;
    color: var(--almurtah-primary, #FA8B68);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* RTL layout adjustments for Post Type Toggle */
.rtl .almurtah-post-type-selector {
    flex-direction: row-reverse;
}