/* ── Non-home menu background ── */
body:not(.home) .elementor-6062 .elementor-element.elementor-element-1db2b2c .myhome-menu {
    background-color: black !important;
}

/* ── Hero heading spacing ── */
.elementor-element-3174d0f0 {
    margin-bottom: 22px;
}

/* ── Hide unused footer elements ── */
.elementor-element-4503ef5,
.elementor-element-0f28aef {
    display: none !important;
}

/* ── Hide price-per-sq-ft widget ── */
.myhome-price-per-number-widget {
    display: none !important;
}

/* ── "للتواصل" contact section ── */
.sarh-contact-section {
    margin-top: 16px;
    padding: 20px;
    background: #fff;}

.sarh-contact-buttons {
    display: flex !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
}

/* Identical sizing: equal flex basis, equal padding, no per-button overrides */
.sarh-contact-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 12px 10px !important;
    box-sizing: border-box !important;
}

.sarh-contact-btn,
.sarh-contact-btn span {
    color: #ffffff !important;
}

.sarh-contact-image-wrap {
    margin: 0 0 16px;
    text-align: center;
}

.sarh-contact-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: inline-block;
}

@media (max-width: 600px) {
    .sarh-contact-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .sarh-contact-btn {
        width: 100% !important;
        flex: 0 0 auto !important;
    }
}

/* ── Custom price-range dropdown ── */
.custom-price-range-wrapper {
    position: relative;
    width: 100%;
}

.custom-price-range-button {
    width: 100%;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: right;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.custom-price-range-button:hover {
    border-color: #aaa;
}

.custom-price-range-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.custom-price-range-dropdown.active {
    display: block;
}

.custom-price-range-option {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-align: right;
    transition: background .15s;
}

.custom-price-range-option:hover {
    background: #f5f5f5;
}

/* ── Listing attributes: label on top, value below (applies everywhere) ── */
.myhome-listing-attribute__content {
    display: flex !important;
    flex-direction: column-reverse !important;
}

.myhome-listing-attribute__text-after {
    font-size: 0.78em;
    opacity: 0.7;
}

/* ── Rental mode: hide the price column only; keep search button at native size ── */
.myhome-search-form.sarh-rental-mode .sarh-price-column,
.myhome-search-form.sarh-rental-mode .custom-price-range-wrapper,
.myhome-search-form.sarh-rental-mode .myhome-range-field {
    display: none !important;
}
