.mgms-property {
	--mgms-green: #173f42;
	--mgms-gold: #bc9c51;
	--mgms-soft: #f5f8f7;
	max-width: 1120px;
	margin: 32px auto;
	padding: clamp(18px, 3vw, 34px);
	color: #263738;
	font-family: Arial, sans-serif;
}

.mgms-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
	gap: 12px;
	margin-bottom: 30px;
}

.mgms-fact {
	min-height: 86px;
	padding: 16px;
	border: 1px solid #dbe5e3;
	border-radius: 14px;
	background: var(--mgms-soft);
}

.mgms-fact span {
	display: block;
	margin-bottom: 8px;
	color: #647675;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.mgms-fact strong {
	display: block;
	color: var(--mgms-green);
	font-size: 17px;
	line-height: 1.4;
}

.mgms-copy,
.mgms-amenities,
.mgms-gallery-block {
	margin-top: 34px;
}

.mgms-copy h2,
.mgms-amenities h2,
.mgms-gallery-block h2 {
	margin: 0 0 16px;
	color: var(--mgms-green);
	font-size: clamp(22px, 3vw, 30px);
}

.mgms-copy p {
	margin: 0 0 15px;
	font-size: 16px;
	line-height: 1.9;
}

.mgms-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.mgms-chips span {
	padding: 8px 12px;
	border: 1px solid #d7c79c;
	border-radius: 999px;
	background: #fffcf3;
	color: #645325;
	font-size: 13px;
}

.mgms-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.mgms-gallery a {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	background: #edf1f0;
	aspect-ratio: 4 / 3;
}

.mgms-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.mgms-gallery a:hover img {
	transform: scale(1.035);
}

.mgms-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.mgms-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid var(--mgms-green);
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none !important;
}

.mgms-button--primary {
	background: var(--mgms-green);
	color: #fff !important;
}

.mgms-button--secondary {
	background: #fff;
	color: var(--mgms-green) !important;
}

.mgms-property[dir="rtl"] {
	text-align: right;
}

.mgms-property[dir="rtl"] .mgms-fact span {
	text-transform: none;
	letter-spacing: 0;
}



/* Sale archive search — scoped to Muscat Gates sale categories. */
body.category-sale .widget_wpc_filters_widget,
body.category-sale-ar .widget_wpc_filters_widget,
body.category-sale-fa .widget_wpc_filters_widget {
    --mgms-search-green: #173f42;
    --mgms-search-gold: #bc9c51;
    --mgms-search-soft: #f5f8f7;
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 36px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid #dbe5e3;
    border-top: 4px solid var(--mgms-search-gold);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, var(--mgms-search-soft) 100%);
    box-shadow: 0 18px 48px rgba(23, 63, 66, .10);
}

body.category-sale .wpc-filter-set-widget-title,
body.category-sale-ar .wpc-filter-set-widget-title,
body.category-sale-fa .wpc-filter-set-widget-title {
    margin: 0 0 22px;
    color: var(--mgms-search-green);
    font-size: 0;
    font-weight: 800;
    line-height: 1.3;
}

body.category-sale .wpc-filter-set-widget-title::before {
    content: "Find your property";
    font-size: clamp(22px, 3vw, 32px);
}

body.category-sale-ar .wpc-filter-set-widget-title::before {
    content: "ابحث عن عقارك";
    font-size: clamp(22px, 3vw, 32px);
}

body.category-sale-fa .wpc-filter-set-widget-title::before {
    content: "ملک موردنظر را پیدا کنید";
    font-size: clamp(22px, 3vw, 32px);
}

body.category-sale-ar .wpc-filters-widget-content,
body.category-sale-fa .wpc-filters-widget-content {
    direction: rtl;
    text-align: right;
}

body.category-sale .wpc-filter-furnishing,
body.category-sale-ar .wpc-filter-furnishing,
body.category-sale-fa .wpc-filter-furnishing {
    display: none !important;
}

body.category-sale .wpc-filter-title,
body.category-sale-ar .wpc-filter-title,
body.category-sale-fa .wpc-filter-title {
    margin-bottom: 9px;
    color: #314e50;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

body.category-sale .wpc-filters-widget-select,
body.category-sale-ar .wpc-filters-widget-select,
body.category-sale-fa .wpc-filters-widget-select,
body.category-sale .wpc-filters-range-min,
body.category-sale .wpc-filters-range-max,
body.category-sale-ar .wpc-filters-range-min,
body.category-sale-ar .wpc-filters-range-max,
body.category-sale-fa .wpc-filters-range-min,
body.category-sale-fa .wpc-filters-range-max,
body.category-sale .wpc-search-field,
body.category-sale-ar .wpc-search-field,
body.category-sale-fa .wpc-search-field {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #cedbd9;
    border-radius: 12px;
    background: #fff;
    color: #173f42;
    box-shadow: 0 3px 12px rgba(23, 63, 66, .04);
    outline: none;
}

body.category-sale .wpc-filters-widget-select:focus,
body.category-sale-ar .wpc-filters-widget-select:focus,
body.category-sale-fa .wpc-filters-widget-select:focus,
body.category-sale .wpc-filters-range-min:focus,
body.category-sale .wpc-filters-range-max:focus,
body.category-sale-ar .wpc-filters-range-min:focus,
body.category-sale-ar .wpc-filters-range-max:focus,
body.category-sale-fa .wpc-filters-range-min:focus,
body.category-sale-fa .wpc-filters-range-max:focus {
    border-color: var(--mgms-search-gold);
    box-shadow: 0 0 0 3px rgba(188, 156, 81, .16);
}

body.category-sale .wpc-filter-range-form .ui-slider,
body.category-sale-ar .wpc-filter-range-form .ui-slider,
body.category-sale-fa .wpc-filter-range-form .ui-slider {
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: #dce7e5;
}

body.category-sale .wpc-filter-range-form .ui-slider-range,
body.category-sale-ar .wpc-filter-range-form .ui-slider-range,
body.category-sale-fa .wpc-filter-range-form .ui-slider-range {
    background: var(--mgms-search-gold);
}

body.category-sale .wpc-filter-range-form .ui-slider-handle,
body.category-sale-ar .wpc-filter-range-form .ui-slider-handle,
body.category-sale-fa .wpc-filter-range-form .ui-slider-handle {
    width: 18px;
    height: 18px;
    margin-top: -2px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--mgms-search-green);
    box-shadow: 0 2px 8px rgba(23, 63, 66, .24);
}

body.category-sale .wpc-filters-apply-button,
body.category-sale-ar .wpc-filters-apply-button,
body.category-sale-fa .wpc-filters-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--mgms-search-green);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

body.category-sale .wpc-filters-apply-button:hover,
body.category-sale-ar .wpc-filters-apply-button:hover,
body.category-sale-fa .wpc-filters-apply-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(23, 63, 66, .20);
}

body.category-sale .wpc-filter-chips-list a,
body.category-sale-ar .wpc-filter-chips-list a,
body.category-sale-fa .wpc-filter-chips-list a {
    border-radius: 999px;
    background: #eef4f2;
    color: var(--mgms-search-green);
}

@media (min-width: 769px) {
    body.category-sale .wpc-filters-scroll-container,
    body.category-sale-ar .wpc-filters-scroll-container,
    body.category-sale-fa .wpc-filters-scroll-container {
        display: grid;
        grid-template-columns: repeat(4, minmax(145px, 1fr));
        gap: 18px;
        align-items: end;
    }

    body.category-sale .wpc-filters-section,
    body.category-sale-ar .wpc-filters-section,
    body.category-sale-fa .wpc-filters-section {
        margin: 0;
    }

    body.category-sale .wpc-filter-price,
    body.category-sale-ar .wpc-filter-price,
    body.category-sale-fa .wpc-filter-price {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    body.category-sale .widget_wpc_filters_widget,
    body.category-sale-ar .widget_wpc_filters_widget,
    body.category-sale-fa .widget_wpc_filters_widget {
        width: calc(100% - 24px);
        margin: 16px auto 26px;
        padding: 16px;
        border-radius: 16px;
    }

    body.category-sale .wpc-filters-section,
    body.category-sale-ar .wpc-filters-section,
    body.category-sale-fa .wpc-filters-section {
        margin-bottom: 16px;
    }

    body.category-sale .wpc-filters-open-button-container,
    body.category-sale-ar .wpc-filters-open-button-container,
    body.category-sale-fa .wpc-filters-open-button-container {
        border-radius: 12px;
        background: var(--mgms-search-green);
    }

    body.category-sale .wpc-open-close-filters-button,
    body.category-sale-ar .wpc-open-close-filters-button,
    body.category-sale-fa .wpc-open-close-filters-button {
        color: #fff !important;
        font-weight: 800;
    }
}

@media (max-width: 700px) {
	.mgms-property {
		margin: 18px auto;
		padding: 15px;
	}

	.mgms-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mgms-actions,
	.mgms-button {
		width: 100%;
	}
}

/* Native archive search: compatible with Elementor Current Query. */
.mgms-smart-search[hidden] {
    display: none !important;
}

body.category-sale .mgms-archive-search,
body.category-sale-ar .mgms-archive-search,
body.category-sale-fa .mgms-archive-search {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

body.category-sale .mgms-search-field,
body.category-sale-ar .mgms-search-field,
body.category-sale-fa .mgms-search-field {
    display: grid;
    gap: 8px;
    margin: 0;
    color: var(--mgms-search-green);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .01em;
}

body.category-sale .mgms-search-field--wide,
body.category-sale-ar .mgms-search-field--wide,
body.category-sale-fa .mgms-search-field--wide {
    grid-column: span 3;
}

body.category-sale .mgms-search-field input,
body.category-sale .mgms-search-field select,
body.category-sale-ar .mgms-search-field input,
body.category-sale-ar .mgms-search-field select,
body.category-sale-fa .mgms-search-field input,
body.category-sale-fa .mgms-search-field select {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #cbdad7;
    border-radius: 12px;
    color: #183a3c;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.category-sale .mgms-search-field input:focus,
body.category-sale .mgms-search-field select:focus,
body.category-sale-ar .mgms-search-field input:focus,
body.category-sale-ar .mgms-search-field select:focus,
body.category-sale-fa .mgms-search-field input:focus,
body.category-sale-fa .mgms-search-field select:focus {
    outline: 0;
    border-color: var(--mgms-search-gold);
    box-shadow: 0 0 0 4px rgba(188, 156, 81, .16);
}

body.category-sale .mgms-search-actions,
body.category-sale-ar .mgms-search-actions,
body.category-sale-fa .mgms-search-actions {
    grid-column: span 3;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

body.category-sale .mgms-search-actions button,
body.category-sale-ar .mgms-search-actions button,
body.category-sale-fa .mgms-search-actions button {
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--mgms-search-green);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(23, 63, 66, .2);
    transition: transform .2s ease, background .2s ease;
}

body.category-sale .mgms-search-actions button:hover,
body.category-sale-ar .mgms-search-actions button:hover,
body.category-sale-fa .mgms-search-actions button:hover {
    background: #235b5f;
    transform: translateY(-1px);
}

body.category-sale .mgms-search-actions a,
body.category-sale-ar .mgms-search-actions a,
body.category-sale-fa .mgms-search-actions a {
    color: var(--mgms-search-green);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

body.category-sale .elementor-pagination,
body.category-sale-ar .elementor-pagination,
body.category-sale-fa .elementor-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 34px 0 10px;
}

body.category-sale .elementor-pagination .page-numbers,
body.category-sale-ar .elementor-pagination .page-numbers,
body.category-sale-fa .elementor-pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d6e1df;
    border-radius: 11px;
    background: #fff;
    color: var(--mgms-search-green);
    font-weight: 750;
    text-decoration: none;
}

body.category-sale .elementor-pagination .page-numbers.current,
body.category-sale .elementor-pagination .page-numbers:hover,
body.category-sale-ar .elementor-pagination .page-numbers.current,
body.category-sale-ar .elementor-pagination .page-numbers:hover,
body.category-sale-fa .elementor-pagination .page-numbers.current,
body.category-sale-fa .elementor-pagination .page-numbers:hover {
    border-color: var(--mgms-search-gold);
    background: var(--mgms-search-green);
    color: #fff;
}

@media (max-width: 820px) {
    body.category-sale .mgms-archive-search,
    body.category-sale-ar .mgms-archive-search,
    body.category-sale-fa .mgms-archive-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.category-sale .mgms-search-field--wide,
    body.category-sale-ar .mgms-search-field--wide,
    body.category-sale-fa .mgms-search-field--wide,
    body.category-sale .mgms-search-actions,
    body.category-sale-ar .mgms-search-actions,
    body.category-sale-fa .mgms-search-actions {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    body.category-sale .mgms-archive-search,
    body.category-sale-ar .mgms-archive-search,
    body.category-sale-fa .mgms-archive-search {
        grid-template-columns: 1fr;
    }

    body.category-sale .mgms-search-field--wide,
    body.category-sale-ar .mgms-search-field--wide,
    body.category-sale-fa .mgms-search-field--wide,
    body.category-sale .mgms-search-actions,
    body.category-sale-ar .mgms-search-actions,
    body.category-sale-fa .mgms-search-actions {
        grid-column: auto;
    }

    body.category-sale .mgms-search-actions,
    body.category-sale-ar .mgms-search-actions,
    body.category-sale-fa .mgms-search-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.category-sale .mgms-search-actions button,
    body.category-sale-ar .mgms-search-actions button,
    body.category-sale-fa .mgms-search-actions button {
        width: 100%;
    }
}
