/* =========================================================
   Muscat Gates — redesign layer (theme only)
   Colours: green brand, warm ivory ground, sand accent.
   ========================================================= */

:root {
	--mg-green: #0E6B4A;
	--mg-green-2: #0B5A3E;
	--mg-deep: #0B3B2C;
	--mg-ink: #13201A;
	--mg-muted: #5B5047;
	--mg-muted-2: #7A6E62;
	--mg-ivory: #FBF8F3;
	--mg-sand: #F4EDE2;
	--mg-sand-2: #F6F1E9;
	--mg-line: #ECE5DA;
	--mg-line-2: #DCD2C3;
	--mg-mint: #E6F0EA;
	--mg-gold: #8A6326;
	--mg-night: #0C1813;
	--mg-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
	--mg-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mg-radius: 22px;
	--mg-shadow: 0 10px 30px rgba(40, 25, 10, .06);
}

/* Elementor global kit → new palette & type */
body.mgrd.elementor-kit-80,
body.mgrd [class*="elementor-kit-"] {
	--e-global-color-primary: #13201A;
	--e-global-color-secondary: #5B5047;
	--e-global-color-text: #5B5047;
	--e-global-color-accent: #0E6B4A;
	--e-global-typography-primary-font-family: 'Plus Jakarta Sans';
	--e-global-typography-primary-font-weight: 800;
	--e-global-typography-secondary-font-family: 'Plus Jakarta Sans';
	--e-global-typography-text-font-family: 'Plus Jakarta Sans';
	--e-global-typography-accent-font-family: 'Plus Jakarta Sans';
	--e-global-typography-accent-font-weight: 700;
}

/* Arabic & Persian: Vazirmatn everywhere (DM Serif has no Arabic glyphs) */
body.mgrd.mgrd-lang-ar,
body.mgrd.mgrd-lang-fa {
	--mg-serif: 'Vazirmatn', 'Tahoma', sans-serif;
	--mg-sans: 'Vazirmatn', 'Tahoma', sans-serif;
}
body.mgrd.mgrd-lang-ar.elementor-kit-80,
body.mgrd.mgrd-lang-fa.elementor-kit-80 {
	--e-global-typography-primary-font-family: 'Vazirmatn';
	--e-global-typography-primary-font-weight: 800;
	--e-global-typography-secondary-font-family: 'Vazirmatn';
	--e-global-typography-text-font-family: 'Vazirmatn';
	--e-global-typography-accent-font-family: 'Vazirmatn';
}

/* ---------- Base ---------- */
body.mgrd {
	background: var(--mg-ivory);
	color: var(--mg-ink);
	font-family: var(--mg-sans);
	-webkit-font-smoothing: antialiased;
}
body.mgrd a { color: var(--mg-green); }
body.mgrd a:hover { color: var(--mg-deep); }
body.mgrd h1, body.mgrd h2, body.mgrd h3,
body.mgrd .entry-title, body.mgrd .page-title {
	font-family: var(--mg-serif);
	font-weight: 400;
	color: var(--mg-ink);
	letter-spacing: -.01em;
}
body.mgrd.mgrd-lang-ar h1, body.mgrd.mgrd-lang-ar h2, body.mgrd.mgrd-lang-ar h3,
body.mgrd.mgrd-lang-fa h1, body.mgrd.mgrd-lang-fa h2, body.mgrd.mgrd-lang-fa h3 { font-weight: 800; letter-spacing: 0; }
body.mgrd p, body.mgrd li, body.mgrd input, body.mgrd select, body.mgrd button, body.mgrd textarea { font-family: var(--mg-sans); }
body.mgrd :focus-visible { outline: 3px solid rgba(14, 107, 74, .45); outline-offset: 2px; }

/* Buttons — all Elementor buttons pick up the brand green */
body.mgrd .elementor-button {
	background-color: var(--mg-green);
	color: #fff;
	fill: #fff;
	border-radius: 12px;
	font-family: var(--mg-sans);
	font-weight: 700;
	font-size: 15px;
	padding: 14px 24px;
	transition: background-color .2s ease, transform .2s ease;
}
body.mgrd .elementor-button:hover,
body.mgrd .elementor-button:focus { background-color: var(--mg-deep); color: #fff; }

/* Storefront wrappers */
body.mgrd .site-content, body.mgrd #primary { background: transparent; }

/* ---------- Header (Elementor header template) ---------- */
body.mgrd .elementor-location-header {
	background: #fff;
	border-bottom: 1px solid var(--mg-line);
	box-shadow: 0 4px 18px rgba(40, 25, 10, .04);
	position: relative;
	z-index: 50;
}
body.mgrd .elementor-location-header .elementor-nav-menu--main .elementor-item {
	color: var(--mg-ink);
	font-family: var(--mg-sans);
	font-size: 15px;
	font-weight: 600;
}
body.mgrd .elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
body.mgrd .elementor-location-header .elementor-nav-menu--main .elementor-item-active { color: var(--mg-green); }
body.mgrd .elementor-location-header .e--pointer-underline .elementor-item:after { background-color: var(--mg-green); height: 2px; }
body.mgrd .elementor-location-header .elementor-button { padding: 13px 20px; font-size: 14px; }
body.mgrd .elementor-location-header .elementor-nav-menu--dropdown { border-radius: 12px; box-shadow: 0 16px 40px rgba(40,25,10,.14); }
body.mgrd .elementor-location-header .elementor-menu-toggle { border-radius: 10px; }

/* =========================================================
   HOMEPAGE
   ========================================================= */
.mgrd-shell { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mgrd-section { padding: 72px 0; }
.mgrd-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.mgrd-head--center { align-items: center; text-align: center; }
.mgrd-kicker {
	font: 800 13px/1 var(--mg-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mg-gold);
}
.mgrd-lang-ar .mgrd-kicker, .mgrd-lang-fa .mgrd-kicker { letter-spacing: 0; }
body.mgrd .mgrd-h2 {
	margin: 0; font-family: var(--mg-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; color: var(--mg-ink);
}
.mgrd-lang-ar .mgrd-h2, .mgrd-lang-fa .mgrd-h2 { font-weight: 800; }
.mgrd-ic { flex-shrink: 0; }

/* ---------- Hero ---------- */
body.mgrd .elementor-element.elementor-element-45a80841 { --padding-left: 0px; --padding-right: 0px; --padding-bottom: 0px; --border-radius: 0; }
body.mgrd .elementor-element.elementor-element-498236c8 {
	--border-radius: 0 0 28px 28px;
	--min-height: 760px;
	--padding-top: 120px;
	--padding-bottom: 56px;
}
body.mgrd .elementor-element.elementor-element-498236c8::before {
	background-color: transparent !important;
	background-image: linear-gradient(180deg, rgba(11,42,32,.30) 0%, rgba(11,42,32,.50) 55%, rgba(11,42,32,.80) 100%) !important;
	opacity: 1 !important;
}
body.mgrd .elementor-element.elementor-element-33946e50 .elementor-heading-title,
body.mgrd .elementor-element.elementor-element-33946e50 .elementor-heading-title p {
	font-family: var(--mg-serif);
	font-weight: 400;
	font-size: clamp(40px, 6vw, 76px);
	line-height: 1.02;
	letter-spacing: -.015em;
	color: #fff;
	margin: 0;
	text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.mgrd-lang-ar .elementor-element-33946e50 .elementor-heading-title,
.mgrd-lang-fa .elementor-element-33946e50 .elementor-heading-title,
.mgrd-lang-ar .elementor-element-33946e50 .elementor-heading-title p,
.mgrd-lang-fa .elementor-element-33946e50 .elementor-heading-title p { font-weight: 800 !important; line-height: 1.25 !important; }
body.mgrd .elementor-element.elementor-element-5a3a76de,
body.mgrd .elementor-element.elementor-element-5a3a76de p {
	color: #E9F1EC; font-size: 18px; line-height: 1.6; font-family: var(--mg-sans);
}
body.mgrd.mgrd-has-search .elementor-element.elementor-element-2d6d6331 { display: none; }

/* Developers strip under the hero */
body.mgrd .elementor-element.elementor-element-464d121e .elementor-heading-title {
	font-family: var(--mg-sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #CFE2D8;
}
body.mgrd .elementor-element.elementor-element-d6b9fc4 .swiper-slide-image {
	background: #fff; padding: 10px; border-radius: 14px !important; box-sizing: border-box;
}

/* ---------- Latest listings (Home Listings plugin markup) ---------- */
body.mgrd .mghl-section { background: transparent; padding: 64px 0 88px; }
body.mgrd .mghl-shell { max-width: 1200px; padding: 0 24px; margin: 0 auto; }
body.mgrd .mghl-heading-row { align-items: flex-end; gap: 24px; margin-bottom: 32px; }
body.mgrd .mghl-kicker { font: 800 13px/1 var(--mg-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mg-gold); background: none; padding: 0; }
body.mgrd .mghl-heading-row h2 { font-family: var(--mg-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; margin: 10px 0 8px; color: var(--mg-ink); }
body.mgrd .mghl-heading-row p { color: var(--mg-muted); font-size: 16px; margin: 0; }
body.mgrd .mghl-view-all {
	display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px;
	border: 1px solid var(--mg-line-2); background: #fff; color: var(--mg-ink) !important; font-weight: 700; font-size: 14px; text-decoration: none;
}
body.mgrd .mghl-view-all:hover { border-color: var(--mg-green); color: var(--mg-green) !important; }
body.mgrd .mghl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
body.mgrd .mghl-card {
	background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 10px; box-shadow: var(--mg-shadow);
	overflow: visible; transition: transform .2s ease, box-shadow .2s ease;
}
body.mgrd .mghl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(40,25,10,.12); }
body.mgrd .mghl-media { display: block; position: relative; border-radius: 14px; overflow: hidden; }
body.mgrd .mghl-media img { width: 100%; height: 250px; object-fit: cover; display: block; border-radius: 0; transition: transform .5s ease; }
body.mgrd .mghl-card:hover .mghl-media img { transform: scale(1.04); }
body.mgrd .mghl-code {
	position: absolute; top: auto !important; bottom: 12px; inset-inline-end: 12px; height: auto; background: rgba(11,42,32,.78) !important; color: #fff;
	font: 700 12px/1 var(--mg-sans); padding: 7px 10px; border-radius: 8px;
}
body.mgrd .mglt-badge { font-family: var(--mg-sans); border-radius: 8px; font-weight: 700; }
body.mgrd .mghl-card-body { padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 10px; }
body.mgrd .mghl-location { display: inline-flex; align-items: center; gap: 6px; color: var(--mg-muted); font-size: 14px; font-weight: 600; }
body.mgrd .mghl-card-body h3 { font-family: var(--mg-sans); font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: 0; }
body.mgrd .mghl-card-body h3 a { color: var(--mg-ink) !important; text-decoration: none; }
body.mgrd .mghl-card-body h3 a:hover { color: var(--mg-green) !important; }
body.mgrd .mghl-price { order: -1; font: 800 26px/1.1 var(--mg-sans); letter-spacing: -.02em; color: var(--mg-deep); }
body.mgrd .mghl-price small { font-size: 14px; font-weight: 500; color: var(--mg-muted); letter-spacing: 0; }
body.mgrd .mghl-features { display: flex; flex-wrap: wrap; gap: 8px; }
body.mgrd .mghl-features span { background: var(--mg-sand-2); border-radius: 8px; padding: 7px 11px; font-size: 13px; font-weight: 600; color: var(--mg-ink); }
body.mgrd .mghl-actions { display: flex; gap: 10px; margin-top: 6px; }
body.mgrd .mghl-actions a {
	flex: 1 1 0; min-height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
	font-size: 14px; font-weight: 700; text-decoration: none;
}
body.mgrd .mghl-whatsapp { background: var(--mg-green) !important; color: #fff !important; border: 0 !important; }
body.mgrd .mghl-whatsapp:hover { background: var(--mg-deep) !important; }
body.mgrd .mghl-details { background: #fff !important; color: var(--mg-ink) !important; border: 1px solid var(--mg-line-2) !important; }
body.mgrd .mghl-details:hover { border-color: var(--mg-green) !important; color: var(--mg-green) !important; }
@media (max-width: 1024px) { body.mgrd .mghl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body.mgrd .mghl-grid { grid-template-columns: 1fr; gap: 18px; } body.mgrd .mghl-media img { height: 220px; } }

/* Sultan Haitham block is not shown on the homepage */
body.home .elementor-element.elementor-element-f72530d { display: none !important; }

/* ---------- Sultan Haitham City block (existing Elementor section) ---------- */
body.mgrd .elementor-element.elementor-element-f72530d { --padding-top: 72px; --padding-left: 24px; --padding-right: 24px; max-width: 1248px; margin-inline: auto; }
body.mgrd .elementor-element.elementor-element-9fa2c701 { --border-radius: 26px 26px 0 0; }
body.mgrd .elementor-element.elementor-element-9fa2c701::before { background-color: var(--mg-deep) !important; }
body.mgrd .elementor-element.elementor-element-9fa2c706 .elementor-heading-title { font-family: var(--mg-serif); font-weight: 400; color: #fff; }
body.mgrd .elementor-element.elementor-element-9fa2c707,
body.mgrd .elementor-element.elementor-element-9fa2c708 { font-family: var(--mg-sans); }
body.mgrd .elementor-element.elementor-element-9fa2c707 { color: #E9D3AE; }
body.mgrd .elementor-element.elementor-element-9fa2c705 { --border-radius: 20px; }
body.mgrd .elementor-element.elementor-element-9fa2c709 { --border-radius: 0 0 26px 26px; border: 1px solid var(--mg-line); border-top: 0; }
body.mgrd .elementor-element.elementor-element-9fa2c709:not(.elementor-motion-effects-element-type-background) { background-color: #fff; }
body.mgrd .elementor-element.elementor-element-9fa2c70a .elementor-heading-title { font-family: var(--mg-serif); font-weight: 400; color: var(--mg-ink); }
body.mgrd .elementor-element.elementor-element-9fa2c70b { font-family: var(--mg-sans); color: var(--mg-muted); }
body.mgrd .elementor-element.elementor-element-9fa2c70c .elementor-button { background-color: var(--mg-green); color: #fff; font-family: var(--mg-sans); }

/* ---------- About & services (existing Elementor sections) ---------- */
body.mgrd .elementor-element.elementor-element-2437ab27 { --padding-top: 72px; }
body.mgrd .elementor-element.elementor-element-6afc98c0 .elementor-icon-list-text,
body.mgrd .elementor-element.elementor-element-0bc77d0 .elementor-icon-list-text {
	font-family: var(--mg-sans); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mg-gold);
}
.mgrd-lang-ar .elementor-icon-list-text, .mgrd-lang-fa .elementor-icon-list-text { letter-spacing: 0 !important; }
body.mgrd .elementor-element.elementor-element-6afc98c0 .elementor-icon-list-icon svg,
body.mgrd .elementor-element.elementor-element-0bc77d0 .elementor-icon-list-icon svg { fill: var(--mg-gold); }
body.mgrd .elementor-element.elementor-element-20dec508 .elementor-heading-title,
body.mgrd .elementor-element.elementor-element-c6ac229 .elementor-heading-title {
	font-family: var(--mg-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; color: var(--mg-ink);
}
body.mgrd .elementor-element.elementor-element-5a5f5bd0,
body.mgrd .elementor-element.elementor-element-5a5f5bd0 p { font-family: var(--mg-sans); font-size: 17px; line-height: 1.7; color: var(--mg-muted); }
body.mgrd .elementor-element.elementor-element-16663c0 { --padding-top: 56px; --padding-bottom: 96px; }
body.mgrd .elementor-element.elementor-element-e25a41e:not(.elementor-motion-effects-element-type-background),
body.mgrd .elementor-element.elementor-element-51da7ba:not(.elementor-motion-effects-element-type-background) {
	background-color: #fff;
}
body.mgrd .elementor-element.elementor-element-e25a41e,
body.mgrd .elementor-element.elementor-element-51da7ba { border: 1px solid var(--mg-line); --border-radius: 22px; box-shadow: var(--mg-shadow); }
body.mgrd .elementor-element.elementor-element-d497cab,
body.mgrd .elementor-element.elementor-element-4a45e92 { background-image: none !important; background-color: var(--mg-mint) !important; }
body.mgrd .elementor-element.elementor-element-d497cab .elementor-icon svg,
body.mgrd .elementor-element.elementor-element-4a45e92 .elementor-icon svg { fill: var(--mg-green) !important; }
body.mgrd .elementor-widget-image-box .elementor-image-box-title,
body.mgrd .elementor-widget-image-box .elementor-image-box-title a { font-family: var(--mg-serif); font-weight: 400; font-size: 28px; color: var(--mg-ink); }
.mgrd-lang-ar .elementor-image-box-title, .mgrd-lang-fa .elementor-image-box-title,
.mgrd-lang-ar .elementor-image-box-title a, .mgrd-lang-fa .elementor-image-box-title a { font-weight: 800 !important; font-size: 22px !important; }
body.mgrd .elementor-widget-image-box .elementor-image-box-description { font-family: var(--mg-sans); font-size: 15px; line-height: 1.65; color: var(--mg-muted); }

/* ---------- Footer (Elementor footer template) ---------- */
body .elementor-location-footer { clear: both; }
body.mgrd .elementor-location-footer { background: var(--mg-night) !important; color: #B9C6BF; }
body.mgrd .elementor-location-footer > .e-con,
body.mgrd .elementor-location-footer .e-con.e-parent { background-color: var(--mg-night) !important; --background-overlay: none; }
body.mgrd .elementor-location-footer p,
body.mgrd .elementor-location-footer .elementor-icon-list-text,
body.mgrd .elementor-location-footer .elementor-widget-text-editor { color: #B9C6BF !important; font-family: var(--mg-sans); }
body.mgrd .elementor-location-footer .elementor-heading-title { color: #fff !important; font-family: var(--mg-sans); font-weight: 800; letter-spacing: .02em; }
body.mgrd .elementor-location-footer a:hover .elementor-icon-list-text { color: #fff !important; }
body.mgrd .elementor-location-footer .elementor-icon-list-icon svg { fill: #9DD3B8 !important; }
body.mgrd .elementor-location-footer .elementor-social-icon { background-color: rgba(255,255,255,.08) !important; }
body.mgrd .elementor-location-footer .elementor-social-icon svg { fill: #fff !important; }

/* =========================================================
   Inner pages: archives, single listings, blog, guides
   ========================================================= */
body.mgrd:not(.home) .site-main .entry-title,
body.mgrd .page-header .page-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; }
body.mgrd:not(.home) .entry-content { font-size: 17px; line-height: 1.75; color: #2B332E; }
body.mgrd:not(.home) .entry-content h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 1.6em; }
body.mgrd:not(.home) .entry-content h3 { font-family: var(--mg-sans); font-weight: 800; font-size: 20px; letter-spacing: 0; }
body.mgrd .site-main article.post,
body.mgrd .site-main .hentry.type-post { border-color: var(--mg-line); }
body.mgrd.archive .site-main article,
body.mgrd.search .site-main article,
body.mgrd.blog .site-main article {
	background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--mg-shadow);
}
body.mgrd.archive .site-main article img,
body.mgrd.search .site-main article img,
body.mgrd.blog .site-main article img { border-radius: 14px; }
body.mgrd .pagination .page-numbers, body.mgrd .nav-links a { border-radius: 10px; }
body.mgrd .pagination .page-numbers.current { background: var(--mg-green); color: #fff; }
body.mgrd input[type="text"], body.mgrd input[type="email"], body.mgrd input[type="tel"], body.mgrd input[type="search"], body.mgrd textarea, body.mgrd select {
	border-radius: 10px; border-color: var(--mg-line-2);
}
body.mgrd button.button, body.mgrd input[type="submit"], body.mgrd .button {
	background: var(--mg-green); color: #fff; border-radius: 12px; font-weight: 700;
}
body.mgrd button.button:hover, body.mgrd input[type="submit"]:hover, body.mgrd .button:hover { background: var(--mg-deep); color: #fff; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
	.mgrd-type, body.mgrd .mghl-card, body.mgrd .mghl-media img, .mgrd-area__art svg { transition: none !important; }
}

/* Links styled as buttons or cards: no underline */
body .elementor-button, body .elementor-button:hover,
body .elementor-image-box-title a,
body .mgrd-type, body .mgrd-type *, body .mgrd-area, body .mgrd-area *,
body .mgrd-search__popular a, body .mgrd-btn, body .mgrd-how__more a,
body .mghl-actions a, body .mghl-view-all, body .mghl-card-body h3 a { text-decoration: none !important; }

/* Header menu: underline on hover and on the current page */
body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu > li > a { position: relative; }
body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu > li > a::after {
	content: "" !important; position: absolute !important; left: 14px !important; right: 14px !important; bottom: 4px !important; top: auto !important;
	height: 2px !important; border-radius: 2px; background: var(--mg-green) !important;
	opacity: 0 !important; transform: scaleX(.3); transform-origin: center; transition: opacity .2s ease, transform .2s ease;
	width: auto !important;
}
body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu > li > a:hover::after,
body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu > li > a:focus-visible::after,
body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu > li > a.elementor-item-active::after { opacity: 1 !important; transform: scaleX(1); }
body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu > li > a:hover { color: var(--mg-green) !important; }
body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu > li.pll-parent-menu-item > a::after { display: none !important; }

/* Services cards: equal columns, buttons and photos aligned */
body .elementor-element.elementor-element-69145ab { --e-con-grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
body .elementor-element.elementor-element-e25a41e,
body .elementor-element.elementor-element-51da7ba { grid-column: auto !important; height: 100%; }
body .elementor-element.elementor-element-9a13f04,
body .elementor-element.elementor-element-a70f2c6 { flex-grow: 1; }
body .elementor-element.elementor-element-195008b img,
body .elementor-element.elementor-element-29f8380 img { height: 300px !important; }
@media (max-width: 767px) {
	body .elementor-element.elementor-element-69145ab { --e-con-grid-template-columns: 1fr; }
	body .elementor-element.elementor-element-195008b img,
	body .elementor-element.elementor-element-29f8380 img { height: 220px !important; }
}

/* =========================================================
   PROPERTY FINDER-STYLE HOMEPAGE
   ========================================================= */
.mgrd-shell { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mgrd-section { padding: 72px 0; }
body .mgrd-h2 { margin: 0 0 20px; font: 800 clamp(26px, 2.6vw, 34px)/1.2 var(--mg-sans); color: var(--mg-ink); letter-spacing: -.01em; }
body .mgrd-h2--sm { font-size: 24px; }
.mgrd-sub { margin: -8px 0 24px; color: var(--mg-muted); font-size: 16px; }
.mgrd-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mgrd-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none !important; }
[dir="rtl"] .mgrd-link .mgrd-ic { transform: scaleX(-1); }
.mgrd-center { text-align: center; margin: 28px 0 0; }
.mgrd-ic { flex-shrink: 0; }

/* Buttons */
.mgrd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
	border-radius: 10px; border: 1px solid transparent; font: 700 15px/1 var(--mg-sans); text-decoration: none !important;
	cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.mgrd-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.mgrd-btn--accent { background: #C8A165; color: #1B1409 !important; }
.mgrd-btn--accent:hover { background: #B8904F; }
.mgrd-btn--light { background: #fff; color: var(--mg-deep) !important; }
.mgrd-btn--light:hover { background: #F0F5F2; }
.mgrd-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.mgrd-btn--ghost:hover { background: rgba(255,255,255,.1); }
.mgrd-btn--line { background: #fff; color: var(--mg-ink) !important; border-color: var(--mg-line-2); }
.mgrd-btn--line:hover { border-color: var(--mg-green); color: var(--mg-green) !important; }
.mgrd-btn--wa { background: var(--mg-green); color: #fff !important; }
.mgrd-btn--wa:hover { background: var(--mg-deep); }

/* ---------- Search bar (hero + sticky) ---------- */
.mgrd-pf { margin: 0; }
.mgrd-pf__in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mgrd-pf__q {
	flex: 1 1 420px; min-width: 0; display: flex; align-items: center; gap: 10px; margin: 0; height: 56px; padding: 0 6px 0 20px;
	border: 1px solid var(--mg-line-2); border-radius: 999px; background: #fff; box-shadow: 0 4px 16px rgba(20,30,25,.08); color: var(--mg-muted);
}
[dir="rtl"] .mgrd-pf__q { padding: 0 20px 0 6px; }
body .mgrd-pf__q input[type="search"] {
	flex: 1 1 auto; width: 100% !important; min-width: 0 !important; border: 0; box-shadow: none; background: transparent; padding: 0; margin: 0; height: 100%;
	font: 500 16px/1 var(--mg-sans); color: var(--mg-ink);
}
body .mgrd-pf__q input[type="search"]:focus { outline: none; }
.mgrd-pf__q:focus-within { border-color: var(--mg-green); box-shadow: 0 0 0 3px rgba(14,107,74,.15); }
.mgrd-pf__go { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--mg-green); color: #fff; cursor: pointer; font: 700 15px/1 var(--mg-sans); }
.mgrd-pf__go:hover { background: var(--mg-deep); }
.mgrd-pf__pills { display: flex; gap: 8px; flex-wrap: wrap; }
body .mgrd-pf__sel {
	width: auto !important; margin: 0 !important; height: 48px; padding: 0 38px 0 18px; border: 1px solid var(--mg-line-2); border-radius: 999px;
	background-color: #fff; color: var(--mg-ink); font: 600 14px/1 var(--mg-sans); cursor: pointer; box-shadow: none;
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2313201A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 15px center;
}
[dir="rtl"] body .mgrd-pf__sel { padding: 0 18px 0 38px; background-position: left 15px center; }
body .mgrd-pf__sel--main { border-color: var(--mg-green); color: var(--mg-green); background-color: #F2F8F5; }
body .mgrd-pf__sel:hover { border-color: var(--mg-green); }

/* Hero variant: sits on the photo */
.mgrd-pf--hero { width: 100%; max-width: 1040px; margin: 30px auto 0; }
.mgrd-pf--hero .mgrd-pf__in { justify-content: center; }
.mgrd-pf--hero .mgrd-pf__q { height: 60px; border-color: transparent; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.mgrd-pf--hero .mgrd-pf__go { height: 48px; padding: 0 28px; font-size: 16px; }
.mgrd-pf--hero .mgrd-pf__pills { width: 100%; justify-content: center; }
.mgrd-pf--hero .mgrd-pf__sel { border-color: rgba(255,255,255,.7); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
body.mgrd-has-search .elementor-element.elementor-element-2d6d6331 { display: none; }

/* Sticky variant */
.mgrd-sticky {
	position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
	background: #fff; border-bottom: 1px solid var(--mg-line); box-shadow: 0 8px 24px rgba(20, 30, 25, .08);
	transform: translateY(-110%); transition: transform .25s ease; visibility: hidden;
}
.mgrd-sticky.is-visible { transform: translateY(0); visibility: visible; }
body.admin-bar .mgrd-sticky { top: 32px; }
.mgrd-sticky .mgrd-pf__in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; flex-wrap: nowrap; }
.mgrd-sticky .mgrd-pf__q { height: 50px; box-shadow: none; }
.mgrd-sticky .mgrd-pf__go { height: 40px; }
.mgrd-sticky .mgrd-pf__pills { flex-wrap: nowrap; }
.mgrd-sticky .mgrd-pf__sel { height: 44px; }
@media (max-width: 900px) {
	.mgrd-sticky .mgrd-pf__in { padding: 10px 14px; }
	.mgrd-sticky .mgrd-pf__sel:not(.mgrd-pf__sel--main) { display: none; }
	.mgrd-pf--hero .mgrd-pf__q { height: 54px; }
}
@media (max-width: 782px) { body.admin-bar .mgrd-sticky { top: 46px; } }

/* Hide blocks that moved or are not shown on the homepage */
body.home .elementor-element.elementor-element-46aff14c { display: none !important; }
body.home .elementor-element.elementor-element-498236c8 { --min-height: 620px; --padding-bottom: 72px; }

/* ---------- Dark bands (list your property, AI) ---------- */
.mgrd-band { padding: 0 24px; margin: 48px 0 0; }
.mgrd-band__in {
	max-width: 1240px; margin: 0 auto; border-radius: 20px; padding: 48px 56px; background: var(--mg-deep); color: #fff;
	position: relative; overflow: hidden;
}
.mgrd-band__in::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(120deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 45%);
}
body .mgrd-band__t { margin: 0 0 22px; font: 700 clamp(24px, 2.4vw, 32px)/1.3 var(--mg-sans); color: #fff; letter-spacing: -.01em; }
body .mgrd-band__t--xl { font-size: clamp(30px, 3.2vw, 42px); }
.mgrd-band__d { margin: 0 0 26px; font-size: 18px; line-height: 1.6; color: #D5E6DD; max-width: 520px; }
.mgrd-tile { list-style: none; margin: 0; background: #fff; color: var(--mg-ink); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 140px; }
.mgrd-tile__ic { width: 52px; height: 52px; border-radius: 12px; background: var(--mg-mint); color: var(--mg-green); display: flex; align-items: center; justify-content: center; }
.mgrd-tile__t { font: 700 17px/1.35 var(--mg-sans); }
.mgrd-tile--sm { min-height: 150px; }
.mgrd-tile--sm .mgrd-tile__t { font-weight: 600; font-size: 15px; }

.mgrd-sell .mgrd-band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px; align-items: center; }
.mgrd-sell__lead { display: flex; gap: 22px; align-items: flex-start; position: relative; }
.mgrd-sell__icon { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 18px; background: #C8A165; color: #1B1409; display: flex; align-items: center; justify-content: center; }
.mgrd-sell__steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; }

.mgrd-ai .mgrd-band__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 300px; gap: 32px; align-items: center; }
.mgrd-ai__lead { position: relative; }
.mgrd-ai__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.mgrd-ai__grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; position: relative; }
.mgrd-ai__art { position: relative; width: 300px; height: 300px; border-radius: 50%; overflow: hidden; border: 6px solid rgba(255,255,255,.14); }
.mgrd-ai__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1100px) {
	.mgrd-ai .mgrd-band__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.mgrd-ai__art { display: none; }
}
@media (max-width: 900px) {
	.mgrd-band__in { padding: 32px 22px; }
	.mgrd-sell .mgrd-band__in, .mgrd-ai .mgrd-band__in { grid-template-columns: 1fr; }
	.mgrd-sell__steps { grid-template-columns: 1fr; }
	.mgrd-tile { min-height: 0; flex-direction: row; align-items: center; }
}

/* ---------- Tabs ---------- */
.mgrd-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 22px; scrollbar-width: none; }
.mgrd-tabs::-webkit-scrollbar { display: none; }
.mgrd-tabs button {
	flex: 0 0 auto; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--mg-line-2); background: #fff;
	color: var(--mg-ink); font: 600 14px/1 var(--mg-sans); cursor: pointer;
}
.mgrd-tabs button:hover { border-color: var(--mg-green); }
.mgrd-tabs button[aria-selected="true"] { background: var(--mg-deep); border-color: var(--mg-deep); color: #fff; }

/* ---------- Communities ---------- */
.mgrd-areas { padding-top: 64px; }
.mgrd-areas__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mgrd-area[hidden] { display: none !important; }
.mgrd-area { background: #fff; border: 1px solid var(--mg-line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(20,30,25,.05); transition: box-shadow .2s ease, transform .2s ease; }
.mgrd-area:hover { box-shadow: 0 16px 36px rgba(20,30,25,.12); transform: translateY(-3px); }
.mgrd-area__media { display: block; height: 200px; overflow: hidden; }
.mgrd-area__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mgrd-area:hover .mgrd-area__media img { transform: scale(1.05); }
.mgrd-area__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
body .mgrd-area__name { margin: 0 0 4px; font: 800 18px/1.25 var(--mg-sans); letter-spacing: 0; }
body .mgrd-area__name a { color: var(--mg-ink) !important; text-decoration: none !important; }
body .mgrd-area__name a:hover { color: var(--mg-green) !important; }
.mgrd-area__sub { font-size: 13px; color: var(--mg-muted-2); font-weight: 600; }
.mgrd-area__btn {
	display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--mg-green);
	color: var(--mg-green) !important; font: 700 14px/1 var(--mg-sans); text-decoration: none !important; white-space: nowrap;
}
.mgrd-area__btn:hover { background: var(--mg-green); color: #fff !important; }

/* ---------- Projects ---------- */
.mgrd-projects { background: #fff; border-top: 1px solid var(--mg-line); border-bottom: 1px solid var(--mg-line); }
.mgrd-projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mgrd-project { border: 1px solid var(--mg-line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s ease; }
.mgrd-project:hover { box-shadow: 0 16px 36px rgba(20,30,25,.10); }
.mgrd-project__media { position: relative; display: block; height: 210px; overflow: hidden; }
.mgrd-project__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mgrd-project:hover .mgrd-project__media img { transform: scale(1.04); }
.mgrd-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: #fff; color: var(--mg-deep); font: 800 12px/1 var(--mg-sans); padding: 7px 10px; border-radius: 6px; }
.mgrd-project__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
body .mgrd-project__t { margin: 0; font: 800 17px/1.35 var(--mg-sans); letter-spacing: 0; }
body .mgrd-project__t a { color: var(--mg-ink) !important; text-decoration: none !important; }
body .mgrd-project__t a:hover { color: var(--mg-green) !important; }
.mgrd-project__loc { display: inline-flex; align-items: center; gap: 6px; color: var(--mg-muted); font-size: 14px; }
.mgrd-project__price { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.mgrd-project__price span { font-size: 12px; color: var(--mg-muted-2); font-weight: 600; }
.mgrd-project__price strong { font: 800 18px/1.2 var(--mg-sans); color: var(--mg-deep); }
.mgrd-project__act { display: flex; gap: 8px; }
.mgrd-project__act .mgrd-btn { flex: 1 1 0; }

/* ---------- Developers ---------- */
.mgrd-devs__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.mgrd-dev { margin: 0; background: #fff; border: 1px solid var(--mg-line); border-radius: 14px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mgrd-dev__logo { width: 100%; height: 64px; display: flex; align-items: center; justify-content: center; }
.mgrd-dev__logo img { max-width: 100%; max-height: 64px; object-fit: contain; }
.mgrd-dev__name { font: 700 13px/1.3 var(--mg-sans); color: var(--mg-ink); }
@media (max-width: 1100px) { .mgrd-devs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mgrd-devs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Explore more (internal links) ---------- */
.mgrd-links { border-top: 1px solid var(--mg-line); padding: 56px 0 64px; }
.mgrd-links__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.mgrd-links__cols[hidden] { display: none; }
body .mgrd-links__cols h3 { margin: 0 0 12px; font: 800 16px/1.3 var(--mg-sans); letter-spacing: 0; color: var(--mg-ink); }
.mgrd-links__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mgrd-links__cols a { color: var(--mg-muted) !important; font-size: 14px; text-decoration: none !important; }
.mgrd-links__cols a:hover { color: var(--mg-green) !important; text-decoration: underline !important; }

@media (max-width: 1024px) {
	.mgrd-areas__grid, .mgrd-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.mgrd-areas__grid, .mgrd-projects__grid, .mgrd-links__cols { grid-template-columns: 1fr; }
	.mgrd-section { padding: 48px 0; }
	.mgrd-band { margin-top: 32px; padding: 0 14px; }
}

/* Listings section spacing within the new flow */
body .mghl-section { padding: 64px 0 48px; }

/* Property Finder look: one clean sans-serif typeface for all headings */
body.mgrd h1, body.mgrd h2, body.mgrd h3, body.mgrd h4,
body.mgrd .elementor-heading-title, body.mgrd .elementor-heading-title p,
body.mgrd .elementor-image-box-title, body.mgrd .elementor-image-box-title a,
body.mgrd .mghl-heading-row h2, body.mgrd .entry-title, body.mgrd .page-title {
	font-family: var(--mg-sans) !important; font-weight: 800 !important; letter-spacing: -0.015em;
}
body.mgrd.mgrd-lang-ar h1, body.mgrd.mgrd-lang-ar h2, body.mgrd.mgrd-lang-ar h3,
body.mgrd.mgrd-lang-fa h1, body.mgrd.mgrd-lang-fa h2, body.mgrd.mgrd-lang-fa h3 { letter-spacing: 0; }
body.mgrd .elementor-element.elementor-element-33946e50 .elementor-heading-title,
body.mgrd .elementor-element.elementor-element-33946e50 .elementor-heading-title p { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; }
body.mgrd .mgrd-band__t { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; }
body.mgrd .mgrd-band__t--xl { font-size: clamp(28px, 3vw, 40px); }
body.mgrd .mgrd-h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; }
body.mgrd .mgrd-area__name, body.mgrd .mgrd-project__t { font-size: 17px; letter-spacing: 0; }
body.mgrd .mgrd-links__cols h3 { font-size: 16px; letter-spacing: 0; }
body.mgrd .mghl-heading-row h2,
body.mgrd .elementor-element.elementor-element-20dec508 .elementor-heading-title,
body.mgrd .elementor-element.elementor-element-c6ac229 .elementor-heading-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; }
body.mgrd .elementor-widget-image-box .elementor-image-box-title,
body.mgrd .elementor-widget-image-box .elementor-image-box-title a { font-size: 22px; }

/* Mobile: tiles read left-to-right with icon first */
@media (max-width: 900px) {
	.mgrd-tile { justify-content: flex-start; gap: 16px; }
	.mgrd-tile__ic { flex: 0 0 auto; }
}
@media (max-width: 560px) {
	.mgrd-ai__grid { grid-template-columns: 1fr; }
	.mgrd-sell__lead { flex-direction: column; }
}

/* =========================================================
   LISTING ARCHIVES — Property Finder style filter bar
   ========================================================= */
body:not(#mgrdx) .mgrd-fbar-host { position: sticky; top: 0; z-index: 60; }
body.admin-bar:not(#mgrdx) .mgrd-fbar-host { top: 32px; }
body:not(#mgrdx) .mgrd-fbar-host > .elementor-widget-container {
	background: #fff !important; border: 1px solid var(--mg-line) !important; border-radius: 16px !important;
	box-shadow: 0 8px 24px rgba(20,30,25,.08) !important; padding: 12px !important; margin: 0 !important;
}
body:not(#mgrdx) .mgrd-fbar, body:not(#mgrdx) .mgrd-fbar .wpc-filters-widget-content, body:not(#mgrdx) .mgrd-fbar .wpc-filters-widget-containers-wrapper,
body:not(#mgrdx) .mgrd-fbar .wpc-filters-scroll-container {
	background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important;
	border-radius: 0 !important; max-height: none !important; overflow: visible !important;
}
body:not(#mgrdx) .mgrd-fbar .wpc-filter-set-widget-title, body:not(#mgrdx) .mgrd-fbar .wpc-widget-popup-title,
body:not(#mgrdx) .mgrd-fbar .wpc-filter-header, body:not(#mgrdx) .mgrd-fbar .wpc-edit-filter-set,
body:not(#mgrdx) .mgrd-fbar .wpc-posts-found { display: none !important; }
body:not(#mgrdx) .mgrd-fbar .wpc-filters-widget-top-container { margin: 0 0 8px !important; }
body:not(#mgrdx) .mgrd-fbar .wpc-filters-widget-top-container:has(.wpc-empty-chips-container) { display: none !important; }

/* Row */
body:not(#mgrdx) .mgrd-fbar__row {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important;
	grid-template-columns: none !important; margin: 0 !important; padding: 0 !important;
}
body:not(#mgrdx) .mgrd-fbar__row > * { margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; flex: 0 0 auto; border: 0 !important; background: none !important; box-shadow: none !important; }

/* Search pill */
body:not(#mgrdx) .mgrd-fbar__search { flex: 1 1 300px !important; order: -1; }
body:not(#mgrdx) .mgrd-fbar__search form, body:not(#mgrdx) .mgrd-fbar__search .wpc-search-field-wrapper { margin: 0 !important; position: relative; width: 100% !important; }
body:not(#mgrdx) .mgrd-fbar__search input[type="text"], body:not(#mgrdx) .mgrd-fbar__search input[type="search"] {
	width: 100% !important; height: 48px !important; border-radius: 999px !important; border: 1px solid var(--mg-line-2) !important;
	background: #fff !important; padding: 0 20px 0 46px !important; font: 500 15px/1 var(--mg-sans) !important; color: var(--mg-ink) !important;
	box-shadow: none !important; margin: 0 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235B5047' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: 18px center !important;
}
[dir="rtl"] body:not(#mgrdx) .mgrd-fbar__search input[type="text"], [dir="rtl"] body:not(#mgrdx) .mgrd-fbar__search input[type="search"] { padding: 0 46px 0 20px !important; background-position: right 18px center !important; }
body:not(#mgrdx) .mgrd-fbar__search input:focus { border-color: var(--mg-green) !important; box-shadow: 0 0 0 3px rgba(14,107,74,.15) !important; outline: none !important; }
body:not(#mgrdx) .mgrd-fbar__search .wpc-search-icon { display: none !important; }
body:not(#mgrdx) .mgrd-fbar__search .wpc-search-clear-icon-wrapper { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); }

/* Select pills */
body:not(#mgrdx) .mgrd-fbar__select .wpc-filter-content, body:not(#mgrdx) .mgrd-fbar__select { position: relative; }
body:not(#mgrdx) .mgrd-fbar__select select {
	width: auto !important; min-width: 150px; height: 48px !important; margin: 0 !important; padding: 0 40px 0 18px !important;
	border-radius: 999px !important; border: 1px solid var(--mg-line-2) !important; background-color: #fff !important;
	font: 600 14px/1 var(--mg-sans) !important; color: var(--mg-ink) !important; cursor: pointer; box-shadow: none !important;
	-webkit-appearance: none !important; appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2313201A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: right 16px center !important;
}
[dir="rtl"] body:not(#mgrdx) .mgrd-fbar__select select { padding: 0 18px 0 40px !important; background-position: left 16px center !important; }
body:not(#mgrdx) .mgrd-fbar__select select:hover { border-color: var(--mg-green) !important; }

/* Popover pills (furnishing, budget, price) */
body:not(#mgrdx) .mgrd-fbar__popwrap { position: relative; }
body:not(#mgrdx) .mgrd-fbar__pill {
	display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--mg-line-2); background: #fff; color: var(--mg-ink); font: 600 14px/1 var(--mg-sans); cursor: pointer; white-space: nowrap;
}
body:not(#mgrdx) .mgrd-fbar__pill:hover, body:not(#mgrdx) .mgrd-fbar__popwrap.is-open > .mgrd-fbar__pill { border-color: var(--mg-green); }
body:not(#mgrdx) .mgrd-fbar__pill.is-active { border-color: var(--mg-green); background: #F2F8F5; color: var(--mg-green); }
body:not(#mgrdx) .mgrd-fbar__chev { transition: transform .2s ease; }
body:not(#mgrdx) .mgrd-fbar__popwrap.is-open .mgrd-fbar__chev { transform: rotate(180deg); }
body:not(#mgrdx) .mgrd-fbar__pop {
	display: none; position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 80; min-width: 300px;
	background: #fff; border: 1px solid var(--mg-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(20,30,25,.16); padding: 18px;
}
body:not(#mgrdx) .mgrd-fbar__popwrap.is-open > .mgrd-fbar__pop { display: block; }
body:not(#mgrdx) .mgrd-fbar__pop .wpc-filters-ul-list { display: grid !important; gap: 10px; margin: 0 !important; padding: 0 !important; }
body:not(#mgrdx) .mgrd-fbar__pop .wpc-checkbox-item { margin: 0 !important; }
body:not(#mgrdx) .mgrd-fbar__pop .wpc-term-item-content-wrapper { display: flex !important; align-items: center; gap: 10px; }
body:not(#mgrdx) .mgrd-fbar__pop .wpc-term-item-content-wrapper label { width: auto !important; max-width: none !important; border: 0 !important; background: none !important; padding: 0 !important; font: 500 15px/1.3 var(--mg-sans) !important; }
body:not(#mgrdx) .mgrd-fbar__pop .wpc-term-item-content-wrapper label span { overflow: visible !important; text-overflow: clip !important; white-space: normal !important; }
body:not(#mgrdx) .mgrd-fbar__pop input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--mg-green); }
body:not(#mgrdx) .mgrd-fbar__pop input[type="number"] {
	height: 44px !important; border-radius: 10px !important; border: 1px solid var(--mg-line-2) !important; padding: 0 12px !important; width: 100% !important;
	font: 600 15px/1 var(--mg-sans) !important;
}
body:not(#mgrdx) .mgrd-fbar__pop .wpc-filters-range-wrapper { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
body:not(#mgrdx) .mgrd-fbar__range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body:not(#mgrdx) .mgrd-fbar__range label { display: grid !important; gap: 6px; font: 700 12px/1.2 var(--mg-sans); color: var(--mg-muted); }

/* Actions */
body:not(#mgrdx) .mgrd-fbar__actions { display: flex !important; align-items: center; gap: 12px; }
body:not(#mgrdx) .mgrd-fbar__actions .wpc-sticky-buttons { display: flex !important; align-items: center; gap: 12px; position: static !important; background: none !important; padding: 0 !important; box-shadow: none !important; }
body:not(#mgrdx) .mgrd-fbar__actions .wpc-filters-submit-button, body:not(#mgrdx) .mgrd-fbar__actions button[type="submit"] {
	display: inline-flex !important; align-items: center; height: 48px !important; padding: 0 24px !important; border-radius: 999px !important;
	background: var(--mg-green) !important; color: #fff !important; border: 0 !important; font: 700 15px/1 var(--mg-sans) !important;
	text-decoration: none !important; box-shadow: none !important; width: auto !important; margin: 0 !important;
}
body:not(#mgrdx) .mgrd-fbar__actions .wpc-filters-submit-button:hover, body:not(#mgrdx) .mgrd-fbar__actions button[type="submit"]:hover { background: var(--mg-deep) !important; }
body:not(#mgrdx) .mgrd-fbar__actions .wpc-filters-reset-button, body:not(#mgrdx) .mgrd-fbar__actions a:not(.wpc-filters-submit-button) {
	background: none !important; border: 0 !important; color: var(--mg-muted) !important; font: 600 14px/1 var(--mg-sans) !important;
	text-decoration: underline !important; padding: 0 !important; width: auto !important; height: auto !important; box-shadow: none !important;
}
body:not(#mgrdx) .mgrd-fbar .wpc-filters-widget-controls-container { display: none !important; }

/* AI advisor as a compact pill */
body:not(#mgrdx) .mgrd-fbar__ai {
	display: inline-flex !important; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px !important; border-radius: 999px !important;
	background: var(--mg-deep) !important; color: #fff !important; order: 99;
}
body:not(#mgrdx) .mgrd-fbar__ai small { display: none !important; }
body:not(#mgrdx) .mgrd-fbar__ai strong { font: 700 14px/1 var(--mg-sans) !important; color: #fff !important; white-space: nowrap; }
body:not(#mgrdx) .mgrd-fbar__ai button { width: 34px !important; height: 34px !important; min-width: 0 !important; border-radius: 999px !important; padding: 0 !important; background: #C8A165 !important; color: #1B1409 !important; border: 0 !important; }

/* Sale-page smart search box */
body:not(#mgrdx) .mgrd-fbar--mgms { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
body:not(#mgrdx) .mgrd-fbar--mgms .mgrd-fbar__search input { min-width: 0; }
body:not(#mgrdx) .mgrd-fbar--mgms label.mgrd-fbar__select { display: block; }

/* Archive heading like Property Finder */
body .mg-archive-heading { margin-bottom: 18px !important; }
body .mg-archive-heading h1 { font-size: clamp(26px, 2.6vw, 34px) !important; margin: 6px 0 !important; }
body .mg-archive-heading p { color: var(--mg-muted) !important; font-size: 16px !important; }

@media (max-width: 767px) {
	body:not(#mgrdx) .mgrd-fbar-host { position: static; }
	body:not(#mgrdx) .mgrd-fbar__row > * { flex: 1 1 auto; }
	body:not(#mgrdx) .mgrd-fbar__select select { width: 100% !important; }
	body:not(#mgrdx) .mgrd-fbar__pop { position: static; margin-top: 8px; box-shadow: none; }
	body:not(#mgrdx) .mgrd-fbar__ai { display: none !important; }
}

/* v10 — one-row bar like Property Finder */
body:not(#mgrdx) .mgrd-fbar__row { flex-wrap: nowrap; }
body:not(#mgrdx) .mgrd-fbar__search { flex: 1 1 220px !important; min-width: 180px; }
body:not(#mgrdx) .mgrd-fbar__row > .mgrd-fbar__select { flex: 0 1 170px !important; min-width: 118px; }
body:not(#mgrdx) .mgrd-fbar__select select { min-width: 0; width: 100% !important; text-overflow: ellipsis; }
body:not(#mgrdx) .mgrd-fbar__actions, body:not(#mgrdx) .mgrd-fbar__actions .wpc-sticky-buttons { gap: 10px !important; }
body:not(#mgrdx) .mgrd-fbar__actions a:not(.wpc-filters-submit-button), body:not(#mgrdx) .mgrd-fbar__actions .wpc-filters-reset-button { font-size: 13px !important; white-space: nowrap; }
body:not(#mgrdx) .mgrd-fbar__more { position: relative; }
body:not(#mgrdx) .mgrd-fbar__more > .mgrd-fbar__pop { min-width: 340px; display: none; }
body:not(#mgrdx) .mgrd-fbar__more.is-open > .mgrd-fbar__pop { display: grid; gap: 18px; }
body:not(#mgrdx) .mgrd-fbar__morebox { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; width: auto !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-filter-header { display: block !important; margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; background: none !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-filter-title { font: 800 13px/1.2 var(--mg-sans) !important; color: var(--mg-ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-filter-title button, body:not(#mgrdx) .mgrd-fbar__morebox .wpc-open-icon, body:not(#mgrdx) .mgrd-fbar__morebox .wpc-wrap-icons { display: none !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-filter-content { display: block !important; }
body:not(#mgrdx) .mgrd-fbar__morebox select {
	width: 100% !important; height: 46px !important; border-radius: 10px !important; border: 1px solid var(--mg-line-2) !important; background-color: #fff !important;
	padding: 0 36px 0 14px !important; font: 600 14px/1 var(--mg-sans) !important; color: var(--mg-ink) !important; -webkit-appearance: none !important; appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2313201A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: right 14px center !important;
}
[dir="rtl"] body:not(#mgrdx) .mgrd-fbar__morebox select { padding: 0 14px 0 36px !important; background-position: left 14px center !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-filters-ul-list { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-checkbox-item { margin: 0 !important; list-style: none; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-term-item-content-wrapper { display: flex !important; align-items: center; gap: 8px; border: 1px solid var(--mg-line-2); border-radius: 999px; padding: 8px 14px; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-term-item-content-wrapper:has(input:checked) { border-color: var(--mg-green); background: #F2F8F5; }
body:not(#mgrdx) .mgrd-fbar__morebox label { border: 0 !important; background: none !important; padding: 0 !important; width: auto !important; max-width: none !important; font: 600 14px/1.2 var(--mg-sans) !important; }
body:not(#mgrdx) .mgrd-fbar__morebox label span { white-space: nowrap !important; overflow: visible !important; }
body:not(#mgrdx) .mgrd-fbar__morebox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--mg-green); margin: 0 !important; }
/* AI: round icon button */
body:not(#mgrdx) .mgrd-fbar__ai { padding: 0 !important; background: none !important; height: auto; width: auto; }
body:not(#mgrdx) .mgrd-fbar__ai > :not(button) { display: none !important; }
body:not(#mgrdx) .mgrd-fbar__ai button { width: 48px !important; height: 48px !important; background: var(--mg-deep) !important; color: #fff !important; display: inline-flex !important; align-items: center; justify-content: center; }
body:not(#mgrdx) .mgrd-fbar__ai button:hover { background: var(--mg-green) !important; }
body:not(#mgrdx) .mgrd-fbar__actions .wpc-filters-submit-button, body:not(#mgrdx) .mgrd-fbar__actions button[type="submit"] { white-space: nowrap; }
@media (max-width: 1100px) { body:not(#mgrdx) .mgrd-fbar__row { flex-wrap: wrap; } }
@media (max-width: 767px) {
	body:not(#mgrdx) .mgrd-fbar__select select { max-width: none; }
	body:not(#mgrdx) .mgrd-fbar__more > .mgrd-fbar__pop { min-width: 0; }
	body:not(#mgrdx) .mgrd-fbar__ai { display: none !important; }
}
body:not(#mgrdx) .mgrd-fbar__pop .mgrd-fbar__reset { justify-self: start; color: var(--mg-muted) !important; font: 600 13px/1 var(--mg-sans) !important; text-decoration: underline !important; background: none !important; border: 0 !important; padding: 0 !important; }
body:not(#mgrdx) .mgrd-fbar__actions .wpc-filters-submit-button { padding: 0 28px !important; }
body:not(#mgrdx) .mgrd-fbar__row { align-items: center !important; }
body:not(#mgrdx) .mgrd-fbar__ai { min-height: 0 !important; height: 48px !important; }
body:not(#mgrdx) .mgrd-fbar-host .widget_wpc_filters_widget, body:not(#mgrdx) .mgrd-fbar-host .mgms-smart-search { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body:not(#mgrdx) .mgrd-fbar__row > * > .wpc-filter-content, body:not(#mgrdx) .mgrd-fbar__row > * > form { margin: 0 !important; }

/* v12 — More filters / Budget popovers */
body:not(#mgrdx) .mgrd-fbar__row > *, body:not(#mgrdx) .mgrd-fbar__pop > * { grid-column: auto !important; }
body:not(#mgrdx) .mgrd-fbar__pop > *, body:not(#mgrdx) .mgrd-fbar__morebox .wpc-filter-content { max-width: none !important; width: 100% !important; }
body:not(#mgrdx) .mgrd-fbar__pop > .mgrd-fbar__reset { width: auto !important; }
body:not(#mgrdx) .mgrd-fbar__more > .mgrd-fbar__pop { grid-template-columns: minmax(0, 1fr) !important; width: 380px !important; max-width: calc(100vw - 32px); }
body:not(#mgrdx) .mgrd-fbar__morebox { width: 100% !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-filters-ul-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-checkbox-item { width: auto !important; max-width: none !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-term-item-content-wrapper { width: 100% !important; box-sizing: border-box; cursor: pointer; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-term-item-content-wrapper label { display: inline-flex !important; align-items: center; gap: 6px; flex: 1 1 auto !important; min-width: 0; cursor: pointer; overflow: visible !important; width: auto !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-term-item-content-wrapper label > span { flex: 0 0 auto !important; width: auto !important; display: inline !important; }
body:not(#mgrdx) .mgrd-fbar__morebox .wpc-term-count { color: var(--mg-muted) !important; font: 500 12px/1 var(--mg-sans) !important; margin-inline-start: auto !important; }
body:not(#mgrdx) .mgrd-fbar__morebox input[type="checkbox"] { flex: 0 0 16px !important; width: 16px !important; height: 16px !important; }
body:not(#mgrdx) .mgrd-fbar__pop .wpc-filters-range-wrapper { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; width: 100% !important; }
body:not(#mgrdx) .mgrd-fbar__pop .wpc-filters-range-column { width: 100% !important; max-width: none !important; margin: 0 !important; }
body:not(#mgrdx) .mgrd-fbar__pop .wpc-filters-range-column input { width: 100% !important; max-width: none !important; background: #fff !important; }
body:not(#mgrdx) .mgrd-fbar__pop .wpc-filters-range-slider-wrapper, body:not(#mgrdx) .mgrd-fbar__pop .wpc-filters-range-slider-control-wrapper { margin: 18px 10px 6px !important; }
/* Short submit label, like Property Finder's "Find" */
body:not(#mgrdx) .mgrd-fbar__actions .wpc-filters-submit-button[data-mg-label] { font-size: 0 !important; }
body:not(#mgrdx) .mgrd-fbar__actions .wpc-filters-submit-button[data-mg-label]::after { content: attr(data-mg-label); font: 700 15px/1 var(--mg-sans); }
body:not(#mgrdx) .mgrd-fbar__actions button[data-mg-label] { font-size: 0 !important; padding: 0 28px !important; }
body:not(#mgrdx) .mgrd-fbar__actions button[data-mg-label]::after { content: attr(data-mg-label); font: 700 15px/1 var(--mg-sans); }
body:not(#mgrdx) .mgrd-fbar__price > .mgrd-fbar__pop { width: 340px; }
body:not(#mgrdx) .mgrd-fbar__price > .mgrd-fbar__pop .mgrd-fbar__reset { display: inline-block; margin-top: 14px !important; }
body:not(#mgrdx) .mgrd-fbar__actions [data-mg-label]::after { display: inline-block !important; }
@media (max-width: 767px) {
	body:not(#mgrdx) .mgrd-fbar__row { flex-wrap: wrap !important; gap: 8px !important; }
	body:not(#mgrdx) .mgrd-fbar__row > * { flex: 0 0 auto !important; }
	body:not(#mgrdx) .mgrd-fbar__row > .mgrd-fbar__search { flex: 1 1 100% !important; }
	body:not(#mgrdx) .mgrd-fbar__row > .mgrd-fbar__select { flex: 1 1 100% !important; min-width: 0; }
	body:not(#mgrdx) .mgrd-fbar__row > .mgrd-fbar__popwrap { flex: 1 1 calc(50% - 8px) !important; min-width: 0; }
	body:not(#mgrdx) .mgrd-fbar__row > .mgrd-fbar__popwrap.is-open { flex-basis: 100% !important; }
	body:not(#mgrdx) .mgrd-fbar__popwrap > .mgrd-fbar__pill { width: 100%; justify-content: space-between; }
	body:not(#mgrdx) .mgrd-fbar__row > .mgrd-fbar__actions { flex: 1 1 100% !important; }
	body:not(#mgrdx) .mgrd-fbar__actions .wpc-sticky-buttons { width: 100%; border: 0 !important; }
	body:not(#mgrdx) .mgrd-fbar__actions .wpc-filters-submit-button, body:not(#mgrdx) .mgrd-fbar__actions button[type="submit"] { width: 100% !important; justify-content: center; }
	body:not(#mgrdx) .mgrd-fbar__pop { width: auto !important; }
}
/* Pinned filter bar (JS adds .is-fixed) */
body:not(#mgrdx) .mgrd-fbar-host { position: relative; }
body:not(#mgrdx) .mgrd-fbar-host.is-fixed { position: fixed !important; z-index: 90; margin: 0 !important; }
body:not(#mgrdx) .mgrd-fbar-host.is-fixed > .elementor-widget-container { border-radius: 0 0 16px 16px !important; box-shadow: 0 10px 28px rgba(20,30,25,.14) !important; }
