.elementor-19 .elementor-element.elementor-element-24c91900 {
    padding-left: clamp(20px, 2.4vw, 36px) !important;
    padding-right: clamp(20px, 2.4vw, 36px) !important;
}

.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tabs {
    width: min(1600px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.elementor-19 .elementor-element.elementor-element-2ff478f8 > .elementor-container {
    max-width: 1600px;
    width: 100%;
    position: relative;
    z-index: 20;
}

.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tabs-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}

.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tab-title {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 176px;
    min-height: 56px;
    margin: 0 !important;
    padding: 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px rgba(2, 38, 66, 0.16);
    backdrop-filter: blur(12px);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tab-title:hover,
.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tab-title:focus {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tab-title[aria-selected="true"] {
    border-color: #ffffff;
    background: #ffffff;
    color: #004274;
    box-shadow: 0 18px 42px rgba(0, 66, 116, 0.24);
}

.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tab-title .e-n-tab-title-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    line-height: 1.2;
}

.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tabs-content {
    width: 100%;
}

.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tabs-content > [role="tabpanel"] {
    width: 100%;
    margin-top: 0 !important;
}

.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tabs-content > [role="tabpanel"] > .elementor-widget,
.elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tabs-content > [role="tabpanel"] > .elementor-widget > .elementor-widget-container {
    width: 100%;
}

.riala-home-search {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.riala-home-search__form {
    --riala-home-search-control-height: 60px;
    --riala-home-search-control-radius: 16px;
    --riala-home-search-actions-gap: 12px;
    width: 100%;
    margin: 0;
    padding: 26px 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 56px rgba(0, 52, 92, 0.2);
    backdrop-filter: blur(14px);
    position: relative;
    z-index: 20;
    isolation: isolate;
}

.riala-home-search__form--product-open {
    padding-bottom: 640px;
}

.riala-home-search__grid {
    display: grid;
    grid-template-columns: minmax(170px, 1.08fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(320px, 1.52fr) minmax(150px, 0.9fr) minmax(220px, 1.08fr);
    grid-template-areas: "product region city district price context actions";
    gap: 16px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.riala-home-search__form--pending .riala-home-search__grid {
    grid-template-columns: minmax(170px, 1.08fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(320px, 1.52fr) minmax(220px, 1.08fr);
    grid-template-areas: "product region city district price actions";
}

.riala-home-search__field {
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.riala-home-search__field--product {
    grid-area: product;
    position: relative;
    z-index: 40;
}

.riala-home-search__field--region {
    grid-area: region;
    position: relative;
    z-index: 38;
}

.riala-home-search__field--city {
    grid-area: city;
    position: relative;
    z-index: 37;
}

.riala-home-search__field--district {
    grid-area: district;
    position: relative;
    z-index: 36;
}

.riala-home-search__field--price-group {
    grid-area: price;
}

.riala-home-search__field--context {
    grid-area: context;
}

.riala-home-search__field--context[hidden],
.riala-home-search__form--pending .riala-home-search__field--context {
    display: none !important;
}

.riala-home-search__field--actions {
    grid-area: actions;
    position: relative;
    z-index: 1;
}

.riala-home-search__dropdown {
    position: relative;
    width: 100%;
}

.riala-home-search__price-stack {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.riala-home-search__field--price-group .riala-home-search__field-caption {
    display: none;
}

.riala-home-search__price-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.riala-home-search__price-cell,
.riala-home-search__actions {
    min-width: 0;
}

.riala-home-search__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--riala-home-search-actions-gap);
    align-items: stretch;
}

.riala-home-search__control,
.riala-home-search__submit,
.riala-home-search__filter {
    width: 100%;
    height: var(--riala-home-search-control-height);
    min-height: var(--riala-home-search-control-height);
    box-sizing: border-box;
    border-radius: var(--riala-home-search-control-radius);
    font-size: 16px;
    line-height: 1.3;
}

.riala-home-search__control {
    padding: 0 18px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #ffffff;
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.riala-home-search__product-trigger,
.riala-home-search__geo-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    text-align: left;
    cursor: pointer;
}

.riala-home-search__product-trigger-text,
.riala-home-search__geo-trigger-text {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.riala-home-search__dropdown[data-empty="1"] .riala-home-search__product-trigger-text,
.riala-home-search__geo-dropdown[data-empty="1"] .riala-home-search__geo-trigger-text,
.riala-home-search__geo-dropdown[data-disabled="1"] .riala-home-search__geo-trigger-text {
    color: #6b7280;
    font-weight: 500;
}

.riala-home-search__product-trigger-icon,
.riala-home-search__geo-trigger-icon {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.riala-home-search__dropdown.is-open .riala-home-search__product-trigger-icon,
.riala-home-search__geo-dropdown.is-open .riala-home-search__geo-trigger-icon {
    transform: rotate(-135deg);
}

.riala-home-search__product-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(680px, calc(100vw - 64px));
    min-width: 100%;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    overflow: visible;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(2, 38, 66, 0.18);
}

.riala-home-search__geo-trigger[disabled] {
    cursor: not-allowed;
    background: rgba(248, 250, 252, 0.92);
    color: #94a3b8;
}

.riala-home-search__geo-trigger[disabled] .riala-home-search__geo-trigger-icon {
    border-color: #cbd5e1;
}

.riala-home-search__geo-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    min-width: 100%;
    max-height: min(360px, 62vh);
    z-index: 72;
    padding: 12px;
    overflow: auto;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(2, 38, 66, 0.18);
    overscroll-behavior: contain;
}

.riala-home-search__field--region .riala-home-search__geo-panel {
    width: max(100%, 220px);
}

.riala-home-search__field--city .riala-home-search__geo-panel {
    width: max(100%, 280px);
}

.riala-home-search__field--district .riala-home-search__geo-panel {
    left: auto;
    right: 0;
    width: max(100%, 300px);
}

.riala-home-search__geo-panel[hidden],
.riala-home-search__product-panel[hidden] {
    display: none !important;
}

.riala-home-search__geo-options,
.riala-home-search__product-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.riala-home-search__geo-option,
.riala-home-search__product-option {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.riala-home-search__geo-option:hover,
.riala-home-search__geo-option:focus,
.riala-home-search__product-option:hover,
.riala-home-search__product-option:focus {
    outline: none;
    border-color: rgba(14, 117, 168, 0.2);
    background: rgba(14, 117, 168, 0.08);
    color: #0a5f88;
}

.riala-home-search__geo-option.is-active,
.riala-home-search__product-option.is-active {
    border-color: rgba(14, 117, 168, 0.22);
    background: linear-gradient(135deg, rgba(14, 117, 168, 0.12) 0%, rgba(0, 66, 116, 0.16) 100%);
    color: #004274;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.riala-home-search__product-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(14, 117, 168, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.riala-home-search__product-heading {
    margin: 0;
    color: #526072;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.riala-home-search__field--price-group .riala-home-search__control {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.riala-home-search__control::placeholder {
    color: #6b7280;
}

.riala-home-search__control:focus,
.riala-home-search__submit:focus,
.riala-home-search__filter:focus {
    outline: none;
    border-color: #0e75a8;
    box-shadow: 0 0 0 4px rgba(14, 117, 168, 0.14);
}

.riala-home-search__field--context[data-context-kind="pending"] .riala-home-search__control {
    background: rgba(248, 250, 252, 0.9);
    color: #6b7280;
    cursor: not-allowed;
}

.riala-home-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 24px;
    border: 0;
    background: linear-gradient(135deg, #0e75a8 0%, #004274 100%);
    color: #ffffff;
    font-weight: 900;
    font-size: 17px;
    white-space: nowrap;
    box-shadow: 0 26px 48px rgba(0, 66, 116, 0.34);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.riala-home-search__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 30px 52px rgba(0, 66, 116, 0.38);
    filter: brightness(1.03);
}

.riala-home-search__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.12) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 36px rgba(0, 66, 116, 0.14);
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.riala-home-search__filter:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.58);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.18) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 22px 40px rgba(0, 66, 116, 0.18);
}

@media (max-width: 1660px) {
    .riala-home-search__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas:
            "product region city district"
            "price price context actions";
    }

    .riala-home-search__form--pending .riala-home-search__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas:
            "product region city district"
            "price price actions actions";
    }

    .riala-home-search__actions {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: var(--riala-home-search-control-height);
    }
}

@media (max-width: 1100px) {
    .riala-home-search__form--product-open {
        padding-bottom: 700px;
    }

    .riala-home-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "product region"
            "city district"
            "price context"
            "actions actions";
    }

    .riala-home-search__form--pending .riala-home-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "product region"
            "city district"
            "price price"
            "actions actions";
    }

    .riala-home-search__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }
}

@media (max-width: 900px) {
    .elementor-19 .elementor-element.elementor-element-2ff478f8 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .elementor-19 .elementor-element.elementor-element-2ff478f8 > .elementor-container,
    .elementor-19 .elementor-element.elementor-element-2ff478f8 .elementor-column.elementor-element-222fee44,
    .elementor-19 .elementor-element.elementor-element-2ff478f8 .elementor-widget-wrap,
    .elementor-19 .elementor-element.elementor-element-2ff478f8 .elementor-element.elementor-element-ec305bd,
    .elementor-19 .elementor-element.elementor-element-2f9756f,
    .elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tabs {
        width: 100% !important;
        max-width: none !important;
    }

    .elementor-19 .elementor-element.elementor-element-2ff478f8 .elementor-widget-wrap,
    .elementor-19 .elementor-element.elementor-element-2ff478f8 .elementor-element.elementor-element-ec305bd {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tabs-heading {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tab-title {
        width: 100%;
        min-width: 0;
    }

    .riala-home-search__form {
        padding: 16px;
        border-radius: 20px;
    }

    .riala-home-search__form--product-open {
        padding-bottom: 500px;
    }

    .riala-home-search__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "product"
            "region"
            "city"
            "district"
            "price"
            "context"
            "actions";
    }

    .riala-home-search__form--pending .riala-home-search__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "product"
            "region"
            "city"
            "district"
            "price"
            "actions";
    }

    .riala-home-search__product-panel {
        right: 0;
        width: auto;
        min-width: 100%;
        grid-template-columns: minmax(0, 1fr);
        max-height: min(420px, 72vh);
        overflow: auto;
        overscroll-behavior: contain;
    }

    .riala-home-search__geo-panel {
        right: 0;
        width: auto;
        min-width: 100%;
        left: 0;
    }
}

@media (max-width: 640px) {
    .elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tabs {
        gap: 16px;
    }

    .elementor-19 .elementor-element.elementor-element-2f9756f .e-n-tab-title {
        min-height: 50px;
        padding: 0 16px;
        font-size: 15px;
    }

    .riala-home-search__form {
        --riala-home-search-control-height: 56px;
    }

    .riala-home-search__price-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .riala-home-search__control,
    .riala-home-search__submit,
    .riala-home-search__filter {
        font-size: 15px;
    }

    .riala-home-search__field--price-group .riala-home-search__control {
        font-size: 16px;
    }

    .riala-home-search__product-trigger-text,
    .riala-home-search__geo-trigger-text,
    .riala-home-search__product-option,
    .riala-home-search__geo-option {
        font-size: 14px;
    }

    .riala-home-search__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .riala-home-search__submit,
    .riala-home-search__filter {
        padding-left: 24px;
        padding-right: 24px;
    }
}
