/* Scoped exclusively to post-handover payment-plan article. */
#rkc-phpp #rkc-table .rkc-table-wrap{overflow:auto!important;max-height:min(76vh,850px)!important;position:relative!important;border:1px solid #d6e2e8;border-radius:13px}
#rkc-phpp #rkc-table table{border-collapse:separate!important;border-spacing:0!important;min-width:1050px!important;table-layout:auto!important;width:100%!important}
#rkc-phpp #rkc-table thead{position:sticky!important;top:0!important;z-index:35!important;background:#071e34!important}
#rkc-phpp #rkc-table thead th{position:sticky!important;top:0!important;z-index:36!important;background:#09263d!important;color:#fff!important;padding:0!important;white-space:normal!important}
#rkc-phpp #rkc-table .phpp-head-sort{width:100%;height:100%;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:11px;text-align:left;padding:12px 14px;color:#fff;background:transparent;border:0;cursor:pointer;font-weight:800;font-size:11px;line-height:1.4;text-transform:uppercase;letter-spacing:.02em}
#rkc-phpp .phpp-sort-arrows{display:inline-flex;flex-direction:row;align-items:center;gap:9px;flex-shrink:0;color:#e4c276}
#rkc-phpp .phpp-sort-arrows i{font:normal 9px/1 Arial}
#rkc-phpp .phpp-head-sort[data-direction=asc] .phpp-sort-arrows i:first-child,#rkc-phpp .phpp-head-sort[data-direction=desc] .phpp-sort-arrows i:last-child{color:#fff;font-size:12px}
#rkc-phpp #rkc-table .phpp-head-sort:hover{background:#18445e}
#rkc-phpp #rkc-table tbody tr:nth-child(odd){background:#fff!important}
#rkc-phpp #rkc-table tbody tr:nth-child(even){background:#eef5f7!important}
#rkc-phpp #rkc-table tbody tr:hover{background:#dbeaf0!important}
#rkc-phpp #rkc-table td{font-size:12px!important;line-height:1.55!important;overflow-wrap:normal!important;word-break:normal!important;padding:13px 15px!important;min-width:85px!important;vertical-align:middle!important}
#rkc-phpp #rkc-table td:nth-child(5){min-width:215px!important}
#rkc-phpp #rkc-table td:last-child{white-space:nowrap!important;min-width:110px!important}
#rkc-phpp :is(.rkc-property,.rkc-stat,.rkc-faq,.rkc-related-card,.rkc-news-card,.rkc-property-compare-control button){transition:background-color .2s,border-color .2s,box-shadow .2s,transform .2s!important}
#rkc-phpp :is(.rkc-property,.rkc-stat,.rkc-faq,.rkc-related-card,.rkc-news-card):hover{border-color:#c9a65c!important;box-shadow:0 12px 25px #09283e1c!important;transform:translateY(-2px)!important}
#rkc-phpp :is(.rkc-media img,.rkc-related-section img,.rkc-news-section img){object-fit:contain!important;object-position:center!important;background:#e8eef1!important;width:100%!important;height:100%!important}
#rkc-phpp .rkc-property .rkc-fact strong{overflow-wrap:anywhere!important;max-width:100%!important}
#rkc-phpp .rkc-property .rkc-facts .rkc-fact{min-width:0!important;max-width:100%!important}
#rkc-phpp .phpp-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:30px auto;max-width:1180px}
#rkc-phpp .phpp-matrix-card{display:flex;flex-direction:column;gap:11px;padding:24px 27px;border:1px solid #cba65a;border-radius:14px;color:#fff!important;background:linear-gradient(120deg,#08283f,#16516a);text-decoration:none!important;min-width:0;transition:background .2s,box-shadow .2s,transform .2s}
#rkc-phpp .phpp-matrix-card:nth-child(2){background:linear-gradient(120deg,#102d45,#234d59)}
#rkc-phpp .phpp-matrix-card:hover{transform:translateY(-3px);background:linear-gradient(120deg,#15516e,#09263f);box-shadow:0 13px 28px #09283e35}
#rkc-phpp .phpp-matrix-card small{font-size:11px;font-weight:800;letter-spacing:.1em;color:#f4d18a}
#rkc-phpp .phpp-matrix-card strong{font-size:clamp(19px,2vw,26px);line-height:1.2;color:#fff}
#rkc-phpp .phpp-matrix-card span{color:#e1edf2;font-size:14px;line-height:1.5}
#rkc-phpp .phpp-matrix-card b{align-self:flex-start;padding:10px 17px;border-radius:30px;color:#08263b;background:#eac975;margin-top:5px;font-size:12px}
#rkc-phpp :is(.phpp-head-sort,.phpp-matrix-card):focus-visible{outline:3px solid #e9be5f!important;outline-offset:2px}
@media(max-width:720px){#rkc-phpp .phpp-matrix{grid-template-columns:1fr;gap:12px}#rkc-phpp .phpp-matrix-card{padding:20px}#rkc-phpp #rkc-table .rkc-table-wrap{max-height:70vh!important}#rkc-phpp #rkc-table td{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){#rkc-phpp :is(.phpp-matrix-card,.rkc-property){transition:none!important;transform:none!important}}

/* Hide FAQ section for this blog only, including any FAQ fragment directly preceding it. */
body:has(#rkc-phpp) #rkc-phpp #rkc-faqs,body:has(#rkc-phpp) #rkc-phpp .rkc-faq-section{display:none!important}


/* Featured replacement cards: fill equal media frames, no grey side bands. */
#rkc-phpp #rkc-projects .rkc-property .rkc-media{display:block!important;aspect-ratio:16/9!important;height:auto!important;overflow:hidden!important;background:#10283c!important}
#rkc-phpp #rkc-projects .rkc-property .rkc-media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;background:#10283c!important}
#rkc-phpp #rkc-projects .rkc-property.phpp-featured-replacement{border-color:#d1a64c!important}


/* Final scoped contrast, media, and table polish. */
#rkc-phpp #rkc-table tbody td{color:#143044!important}
#rkc-phpp #rkc-table tbody tr:hover td{color:#061e32!important}
#rkc-phpp #rkc-table tbody a{color:#075178!important;text-underline-offset:3px}
#rkc-phpp #rkc-table tbody a:hover{color:#07314e!important}
#rkc-phpp :is(.rkc-property,.rkc-related-card,.rkc-news-card) img{display:block;object-position:50% 50%!important}
#rkc-phpp :is(.rkc-related-card,.rkc-news-card) :is(.rkc-media,.rkc-related-image,.rkc-news-image){aspect-ratio:16/9;overflow:hidden}
#rkc-phpp :is(.rkc-related-card,.rkc-news-card) img{width:100%!important;height:100%!important;object-fit:cover!important}
#rkc-phpp .phpp-matrix-card b{transition:background-color .2s,color .2s}
#rkc-phpp .phpp-matrix-card:hover b{background:#fff0b1;color:#06263a}
@media(max-width:720px){#rkc-phpp #rkc-table .phpp-head-sort{min-height:62px;padding:10px;gap:8px}#rkc-phpp .phpp-sort-arrows{gap:7px}#rkc-phpp #rkc-table .rkc-table-wrap{overscroll-behavior:contain}}

/* Consistent values and labels in the two repaired overview tiles. */
#rkc-phpp .rkc-stat.phpp-stat-repaired{display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px!important}
#rkc-phpp .rkc-stat.phpp-stat-repaired>:first-child{font-size:clamp(21px,2.2vw,29px)!important;font-weight:800!important;line-height:1.2!important;color:#09263d!important}
#rkc-phpp .rkc-stat.phpp-stat-repaired>:nth-child(2){font-size:12px!important;font-weight:700!important;color:#476076!important}

/* Prevent unedited server cards/statistics from flashing before the page-only enhancements finish. */
#rkc-phpp:not([data-phpp-ready="true"]) :is(.rkc-stats,.rkc-stat,#rkc-projects .rkc-properties,.rkc-report-cta,#rkc-table thead){visibility:hidden!important}
#rkc-phpp[data-phpp-ready="true"] :is(.rkc-stats,.rkc-stat,#rkc-projects .rkc-properties,.phpp-matrix,#rkc-table thead){visibility:visible!important}

/* PAGE-ONLY: keep every Unit Mix label and value inside its project card. */
#rkc-phpp #rkc-projects .rkc-property .rkc-property-body,#rkc-phpp #rkc-projects .rkc-property .rkc-facts{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#rkc-phpp #rkc-projects .rkc-property .rkc-facts .rkc-fact{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:visible!important}
#rkc-phpp #rkc-projects .rkc-property .rkc-facts .rkc-fact>strong{display:block!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important;line-height:1.5!important}
#rkc-phpp #rkc-projects .rkc-property .rkc-facts .rkc-fact>span{max-width:100%!important;white-space:normal!important}
@media(max-width:600px){#rkc-phpp #rkc-projects .rkc-property .rkc-facts .rkc-fact>strong{font-size:11px!important;line-height:1.45!important}}

/* Uniform statistics typography: 11, Up to 50%, 3 years and 4. */
#rkc-phpp .rkc-stat>:first-child,#rkc-phpp .rkc-stat.phpp-stat-repaired>:first-child{font-size:26px!important;font-weight:800!important;line-height:1.2!important;color:#09263d!important;letter-spacing:-.025em!important}
#rkc-phpp .rkc-stat>:nth-child(2),#rkc-phpp .rkc-stat.phpp-stat-repaired>:nth-child(2){font-size:12px!important;font-weight:700!important;line-height:1.5!important;color:#476076!important}

/* Manta Bay and Ice Beach: source chart uses rkc-w-20, so explicitly size the 20% bar. */
#rkc-phpp #rkc-ranking .rkc-hbar>.rkc-w-20{display:block!important;width:20%!important;min-width:0!important}

/* Page-local RAK-wide comparison map shell, without inventing map pins outside Marjan. */
#phpp-local-map-dialog{position:fixed;inset:0;z-index:2147483647;background:#061729;color:#fff;display:flex;flex-direction:column;font-family:inherit}
#phpp-local-map-dialog header{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid #35516b;background:#08283f}
#phpp-local-map-dialog header strong{font-size:clamp(17px,2vw,23px)}
#phpp-local-map-dialog header span{color:#d1e0ed;font-size:13px}
#phpp-local-map-dialog header button{margin-left:auto;border:1px solid #cba65a;border-radius:50%;width:42px;height:42px;background:#15384f;color:#fff;font-size:27px;cursor:pointer}
#phpp-local-map-dialog .phpp-local-map-main{display:grid;grid-template-columns:minmax(230px,300px) minmax(0,1fr);flex:1;min-height:0}
#phpp-local-map-dialog nav{overflow:auto;padding:14px;background:#0b283e}
#phpp-local-map-dialog nav>div{padding:8px 0 12px;border-bottom:1px solid #35516b}
#phpp-local-map-dialog nav h3{font-size:14px;margin:3px 0 8px;color:#f1ce85}
#phpp-local-map-dialog .phpp-map-list-item{font-size:13px;padding:4px 0;color:#f0f5fa}
#phpp-local-map-dialog nav a{display:inline-block;margin-top:9px;font-size:12px;color:#ffda87;text-decoration:underline}
#phpp-local-map-dialog section{display:flex;flex-direction:column;min-height:0}
#phpp-local-map-dialog iframe{flex:1;width:100%;min-height:0;border:0;background:#071728}
#phpp-local-map-dialog section p{padding:9px 15px;margin:0;font-size:12px;color:#dae7f2;background:#102b40}
@media(max-width:700px){#phpp-local-map-dialog .phpp-local-map-main{display:flex;flex-direction:column}#phpp-local-map-dialog nav{flex:0 0 auto;max-height:33dvh}#phpp-local-map-dialog section{flex:1}#phpp-local-map-dialog header{gap:8px;padding:9px 12px}#phpp-local-map-dialog header span{font-size:11px}}

/* Only PHPP: move the existing project-map CTA above its cards. */
#rkc-phpp #rkc-projects .phpp-top-map-cta{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-width:100%!important;min-height:48px!important;margin:14px 0 22px!important;padding:12px 24px!important;white-space:normal!important;text-align:center!important;line-height:1.3!important}
@media(max-width:600px){#rkc-phpp #rkc-projects .phpp-top-map-cta{width:100%!important;box-sizing:border-box!important}}

/* Centered navy/gold CTA for this blog only */
#rkc-phpp #rkc-projects .phpp-top-map-cta{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:max-content!important;max-width:calc(100% - 24px)!important;margin:16px auto 24px!important;padding:13px 25px!important;min-height:48px!important;background:#08283f!important;color:#e6bf59!important;border:1px solid #c9a65c!important;border-radius:12px!important;font-size:15px!important;font-weight:800!important;box-shadow:0 8px 18px #08283f2e!important}
#rkc-phpp #rkc-projects .phpp-top-map-cta:hover{background:#12415e!important;color:#ffe09b!important}

/* Post-handover map: distinguish projects outside the island. */
#phpp-local-map-dialog #phpp-off-map-list{margin-top:15px;padding:12px;border:1px solid #ae8746;border-radius:11px;background:#163347}
#phpp-local-map-dialog #phpp-off-map-list h3{color:#f1cc79;margin:0 0 8px}
#phpp-local-map-dialog #phpp-off-map-list p{margin:0 0 9px;color:#e2e8f0;font-size:12px}
#phpp-local-map-dialog #phpp-off-map-list .phpp-map-list-item{padding:8px 0;border-top:1px solid #426074}
#phpp-local-map-dialog #phpp-off-map-list .phpp-map-list-item a{color:#f1cb78;font-weight:700;font-size:13px;display:block;margin:0}
#phpp-local-map-dialog #phpp-off-map-list .phpp-map-list-item small{display:block;font-size:11px;color:#d7e1ed;margin-top:3px}

/* Guaranteed visible overlay outside the map iframe (PHPP page only). */
#phpp-local-map-dialog #phpp-visible-off-map{position:absolute!important;z-index:2147483647!important;right:18px!important;bottom:25px!important;width:305px!important;max-width:calc(100vw - 30px)!important;max-height:46dvh!important;overflow:auto!important;background:#08283ff5!important;border:2px solid #d9b768!important;border-radius:12px!important;box-shadow:0 12px 35px #0009!important;padding:13px!important;color:#fff!important}
#phpp-local-map-dialog #phpp-visible-off-map h3{font-size:16px!important;color:#f2cf7c!important;margin:0 0 8px!important}
#phpp-local-map-dialog #phpp-visible-off-map p{font-size:12px!important;color:#edf3f7!important;margin:0 0 8px!important}
#phpp-local-map-dialog #phpp-visible-off-map .phpp-map-list-item{padding:7px 0;border-top:1px solid #45637a}
#phpp-local-map-dialog #phpp-visible-off-map a{font-size:13px!important;color:#ffdc8e!important;font-weight:700!important}
#phpp-local-map-dialog #phpp-visible-off-map small{display:block;font-size:11px;color:#d6e4ee}
@media(max-width:700px){#phpp-local-map-dialog #phpp-visible-off-map{right:10px!important;left:10px!important;bottom:10px!important;width:auto!important;max-height:25dvh!important;padding:9px 12px!important}#phpp-local-map-dialog #phpp-visible-off-map h3{font-size:13px!important}#phpp-local-map-dialog #phpp-visible-off-map .phpp-map-list-item{display:inline-block;width:49%;vertical-align:top;padding:4px}}

/* Restore the original two-column PHPP hero. Prevent injected map promo from becoming a third grid item. */
.legacy-post #rkc-phpp .rkc-overview{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr)!important;align-items:stretch!important}
.legacy-post #rkc-phpp .rkc-overview>.rkc-overview-copy{grid-column:1!important;grid-row:1!important;min-width:0!important}
.legacy-post #rkc-phpp .rkc-overview>.rkc-overview-panel{grid-column:2!important;grid-row:1!important;min-width:0!important}
.legacy-post #rkc-phpp .rkc-overview>:not(.rkc-overview-copy):not(.rkc-overview-panel){display:none!important}
@media(max-width:780px){.legacy-post #rkc-phpp .rkc-overview{grid-template-columns:minmax(0,1fr)!important}.legacy-post #rkc-phpp .rkc-overview>.rkc-overview-copy{grid-column:1!important;grid-row:1!important}.legacy-post #rkc-phpp .rkc-overview>.rkc-overview-panel{grid-column:1!important;grid-row:2!important}}

/* PHPP popup: one plain off-map list only in the left sidebar. */
#phpp-local-map-dialog #phpp-off-map-list{margin:12px 0 0!important;padding:12px 0 0!important;border:0!important;border-top:1px solid #406076!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#phpp-local-map-dialog #phpp-off-map-list h3{margin:0 0 10px!important;font-size:14px!important;color:#f1cc79!important}
#phpp-local-map-dialog #phpp-off-map-list p{display:none!important}
#phpp-local-map-dialog #phpp-off-map-list .phpp-map-list-item{padding:5px 0!important;border:0!important;background:none!important}
#phpp-local-map-dialog #phpp-off-map-list .phpp-map-list-item a{color:#f2d084!important;font-size:13px!important;font-weight:600!important;text-decoration:none!important;margin:0!important}
#phpp-local-map-dialog #phpp-off-map-list .phpp-map-list-item small{display:none!important}

/* PHPP map layout: original map and property detail on left, project lists on right. */
#phpp-local-map-dialog .phpp-local-map-main{grid-template-columns:minmax(0,1fr) 285px!important}
#phpp-local-map-dialog .phpp-local-map-main>section{grid-column:1!important;grid-row:1!important;min-width:0!important}
#phpp-local-map-dialog .phpp-local-map-main>nav{grid-column:2!important;grid-row:1!important;min-width:0!important;border-left:1px solid #35516b!important}
@media(max-width:700px){#phpp-local-map-dialog .phpp-local-map-main{display:flex!important;flex-direction:column!important}#phpp-local-map-dialog .phpp-local-map-main>section{order:1!important;flex:1 1 auto!important;min-height:38dvh!important}#phpp-local-map-dialog .phpp-local-map-main>nav{order:2!important;max-height:29dvh!important;flex:0 0 auto!important;border-left:0!important;border-top:1px solid #35516b!important}}

/* PHPP mobile viewport: keep the map visible while making the project list reachable. */
@media(max-width:700px){
 #phpp-local-map-dialog .phpp-local-map-main{position:relative!important;display:block!important;overflow:hidden!important}
 #phpp-local-map-dialog .phpp-local-map-main>section{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important}
 #phpp-local-map-dialog .phpp-local-map-main>nav{position:absolute!important;z-index:30!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:min(295px,85vw)!important;max-height:none!important;height:100%!important;overflow:auto!important;transform:translateX(101%);transition:transform .2s ease!important;box-shadow:-8px 0 24px #0007!important}
 #phpp-local-map-dialog[data-projects-open="true"] .phpp-local-map-main>nav{transform:translateX(0)!important}
 #phpp-local-map-dialog .phpp-map-mobile-toggle{display:inline-flex!important}
}
#phpp-local-map-dialog .phpp-map-mobile-toggle{display:none;align-items:center;justify-content:center;border:1px solid #d6b465;background:#163b55;color:#ffdc8f;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800;margin-left:auto}

/* Audit: contain large project facts, labels and media within their cards. */
#rkc-phpp #rkc-projects .rkc-property{min-width:0!important;overflow:hidden!important}
#rkc-phpp #rkc-projects .rkc-property :is(.rkc-property-body,.rkc-facts,.rkc-fact,.rkc-price-row,.rkc-payment,.rkc-post-highlight){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#rkc-phpp #rkc-projects .rkc-property :is(strong,small,span,b){overflow-wrap:anywhere!important;white-space:normal!important}
#rkc-phpp #rkc-projects .rkc-property img{max-width:100%!important}
#rkc-phpp #rkc-faqs{display:none!important}
#rkc-phpp #rkc-projects .rkc-projects-map-view:not(.phpp-top-map-cta){display:none!important}

/* Override legacy embedded FAQ display rule for this blog only. */
html body .legacy-post #rkc-phpp #rkc-faqs,html body .legacy-post #rkc-phpp .rkc-faq-section{display:none!important}
