/* Properties under USD 350K: page-local visual cleanup only. */
.legacy-post .u350-page .u350-card__media{aspect-ratio:16/9!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#edf2f5!important}
.legacy-post .u350-page .u350-card__media img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.legacy-post .u350-page .u350-table-wrap{overflow:auto!important;max-height:min(75vh,800px)!important;overscroll-behavior:contain!important;position:relative!important}
.legacy-post .u350-page .u350-table{border-collapse:separate!important;border-spacing:0!important;min-width:880px!important}
.legacy-post .u350-page .u350-table thead{position:sticky!important;top:0!important;z-index:25!important;background:#0a2941!important}
.legacy-post .u350-page .u350-table thead th{background:#0a2941!important;color:#fff!important;position:static!important}
.legacy-post .u350-page .u350-table tbody tr:nth-child(even){background:#eff5f7!important}
.legacy-post .u350-page .u350-table tbody tr:hover{background:#dbeaf0!important}
.legacy-post .u350-page .u350-center{text-align:center!important}
@media(max-width:700px){.legacy-post .u350-page .u350-table-wrap{max-height:70dvh!important}.legacy-post .u350-page .u350-project-grid{grid-template-columns:minmax(0,1fr)!important}}

/* Only this page: make the two appended FAQ items identical to the main accordion cards. */
.u350-faq-grid>details{display:block!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important;border:1px solid #e0e5e9!important;border-radius:13px!important;box-shadow:0 3px 14px rgba(9,34,56,.045)!important}
.u350-faq-grid>details>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:50px!important;box-sizing:border-box!important;padding:14px 16px!important;cursor:pointer!important;list-style:none!important;color:#10283b!important;font-size:14px!important;font-weight:800!important;line-height:1.4!important}
.u350-faq-grid>details>summary::-webkit-details-marker{display:none!important}
.u350-faq-grid>details>summary::after{content:'+'!important;flex:none!important;font-size:19px!important;font-weight:800!important;line-height:1!important}
.u350-faq-grid>details[open]>summary::after{content:'−'!important}
.u350-faq-grid>details>p,.u350-faq-grid>details>.u350-faq__answer{margin:0!important;padding:0 16px 15px!important;color:#31495a!important;line-height:1.65!important;font-size:14px!important}
.u350-faq-grid>details>p{padding-top:0!important}
.u350-faq-grid>details>p a{color:#09628b!important;text-decoration:underline!important}
@media(max-width:650px){.u350-faq-grid{grid-template-columns:minmax(0,1fr)!important}.u350-faq-grid>details>summary{padding:14px!important}}

/* USD 350K only: replace the automatic full-width map banner with a centered pill beneath the property intro. */
.u350-page #u350-projects .u350-center>.u350-map-pill-host{
  display:flex!important;justify-content:center!important;align-items:center!important;
  width:max-content!important;max-width:100%!important;min-height:0!important;
  margin:19px auto 25px!important;padding:0!important;border:0!important;
  background:none!important;box-shadow:none!important;border-radius:999px!important;
}
.u350-page #u350-projects .u350-map-pill-host>div{display:none!important}
.u350-page #u350-projects .u350-map-pill-host>a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;min-height:44px!important;
  padding:11px 24px!important;border-radius:999px!important;
  background:#0b2b44!important;color:#fff!important;border:1px solid #d4ad60!important;
  box-shadow:0 4px 14px rgba(8,35,58,.13)!important;font-size:14px!important;
  font-weight:800!important;white-space:normal!important;text-decoration:none!important;
}
.u350-page #u350-projects .u350-map-pill-host>a:hover{background:#164966!important;transform:translateY(-2px)!important}
@media(max-width:500px){.u350-page #u350-projects .u350-map-pill-host{margin:16px auto 20px!important}.u350-page #u350-projects .u350-map-pill-host>a{padding:11px 18px!important}}

/* Fifth property lives in RAK Central, not on the Al Marjan Island plan. */
.u350-rak-central-location{position:absolute;z-index:2147483647;left:18px;bottom:18px;width:min(390px,calc(100% - 36px));box-sizing:border-box;display:flex;flex-direction:column;gap:5px;padding:13px 16px;background:#f9f6ee;border:1px solid #d3b06c;border-radius:13px;box-shadow:0 8px 28px #0004;color:#122d42;font:500 12px/1.4 Arial,sans-serif}
.u350-rak-central-location strong{font-size:13px;font-weight:800}
.u350-rak-central-location a{color:#075c87!important;font-weight:800!important;text-decoration:underline!important}
@media(max-width:600px){.u350-rak-central-location{bottom:12px;left:12px;width:calc(100% - 24px);padding:10px 12px;font-size:11px}}

/* USD350 page only: Matrix two-panel CTA replacing the old four-card budget explainer. */
.u350-page .u350-matrix-wrap{width:min(1240px,100%);margin:20px auto 34px;padding:0;box-sizing:border-box}
.u350-page .u350-matrix-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.u350-page .u350-matrix-card{display:flex;flex-direction:column;align-items:flex-start;min-height:216px;box-sizing:border-box;padding:26px 28px;border-radius:18px;background:linear-gradient(128deg,#071e35,#164962);color:#fff!important;border:1px solid #c9a45c;text-align:left;text-decoration:none!important;box-shadow:0 10px 25px #071d2d1b;transition:transform .22s,box-shadow .22s,border-color .22s}
.u350-page .u350-matrix-card:nth-child(2){background:linear-gradient(125deg,#f3ead8,#fff9ed);color:#0a2942!important}
.u350-page .u350-matrix-eyebrow{color:#ebc677!important;letter-spacing:.12em;font-size:11px;font-weight:850;text-transform:uppercase}
.u350-page .u350-matrix-card:nth-child(2) .u350-matrix-eyebrow{color:#836126!important}
.u350-page .u350-matrix-card h2{font-family:Georgia,serif;font-size:clamp(23px,2.2vw,32px)!important;line-height:1.15!important;margin:12px 0 9px!important;color:inherit!important;text-align:left!important}
.u350-page .u350-matrix-card p{font-size:14px!important;line-height:1.55!important;margin:0 0 22px!important;color:inherit!important;opacity:.91}
.u350-page .u350-matrix-action{display:inline-flex;align-items:center;gap:18px;margin-top:auto;background:#dfb45d;color:#09263e!important;padding:11px 18px;border-radius:999px;font-size:13px;font-weight:850}
.u350-page .u350-matrix-card:nth-child(2) .u350-matrix-action{background:#0d3854;color:#fff!important}
.u350-page .u350-matrix-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px #08284230;border-color:#efc678}
@media(max-width:650px){.u350-page .u350-matrix-grid{grid-template-columns:1fr;gap:12px}.u350-page .u350-matrix-card{min-height:184px;padding:22px}}
@media(prefers-reduced-motion:reduce){.u350-page .u350-matrix-card{transition:none!important;transform:none!important}}

/* Matrix alignment refinement: equal breathing room around both CTA pills. */
.u350-page .u350-matrix-card{justify-content:center!important;min-height:240px!important;padding-top:25px!important;padding-bottom:25px!important}
.u350-page .u350-matrix-card p{margin-bottom:0!important;flex:0 0 auto!important}
.u350-page .u350-matrix-action{margin-top:20px!important;min-height:37px!important;box-sizing:border-box!important;align-self:flex-start!important}
@media(max-width:650px){.u350-page .u350-matrix-card{min-height:220px!important;padding-top:22px!important;padding-bottom:22px!important}}

/* Page-local: shorten the excessive whitespace below the Matrix cards. */
.u350-page #u350-compare{padding-bottom:26px!important}
.u350-page #u350-compare .u350-matrix-wrap{margin-bottom:8px!important}
@media(max-width:650px){.u350-page #u350-compare{padding-bottom:18px!important}.u350-page #u350-compare .u350-matrix-wrap{margin-bottom:6px!important}}

/* USD 350K property cards only: fill photo frame and replace rank with working compare control. */
.u350-page .u350-card{position:relative!important}
.u350-page .u350-card__media{overflow:hidden!important;background:#eaf0f3!important}
.u350-page .u350-card__media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important}
.u350-page .u350-compare-mount{position:absolute;top:11px;right:11px;z-index:14;width:36px;height:36px;display:grid;place-items:center;border-radius:50%}
.u350-page .u350-compare-mount .compare-toggle{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;border-radius:50%!important;border:1px solid #d3ad62!important;background:#deb659!important;color:#08233d!important;font-size:23px!important;font-weight:800!important;line-height:1!important;box-shadow:0 4px 12px #0b273b33!important;cursor:pointer!important}
.u350-page .u350-compare-mount .compare-toggle[aria-pressed=true]{background:#0d3854!important;color:#fff!important}
.u350-page .u350-compare-mount .compare-toggle:hover{background:#f0cd83!important;transform:scale(1.06)!important}
.u350-page .u350-card__index{display:none!important}

/* Override original contain style at identical selector specificity, only for this guide. */
.legacy-post .u350-page .u350-card__media img{object-fit:cover!important;object-position:center top!important}
