/* MRH Listing Display — V3 single listing layout (approved mockup V3-Rental). */
.mrh-v3 {
	--mrh-navy: #0B1F3A; --mrh-ink: #14213D; --mrh-blue: #0349A6; --mrh-amber: #F5A524;
	--mrh-bg: #F3F5F9; --mrh-muted: #475569; --mrh-line: #E2E8F0;
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	background: var(--mrh-bg); color: var(--mrh-ink); font-size: 15px; line-height: 1.55;
	padding-bottom: 40px; width: 100%;
}
.mrh-v3 *, .mrh-v3 *::before, .mrh-v3 *::after { box-sizing: border-box; }
.mrh-v3 h1, .mrh-v3 h2, .mrh-v3 h3 { font-family: inherit; letter-spacing: 0; text-transform: none; }

/* Theme's own sticky property menu duplicates our section bar on V3 pages. */
.mrh-v3-page .wpestate_top_property_navigation, body:has(.mrh-v3) .wpestate_top_property_navigation { display: none !important; }

.admin-bar { --mrh-admin: 32px; }
@media (max-width: 782px) { .admin-bar { --mrh-admin: 46px; } }
@media (max-width: 600px) { .admin-bar { --mrh-admin: 0px; } }
/* Main menu stays on top of V3 pages (the theme hides it on listings in favour of its own property bar). */
.mrh-v3-page .master_header_sticky.sticky_property_menu { top: var(--mrh-admin, 0px) !important; z-index: 60; }

/* Sticky section bar */
.mrh-v3-tabs { position: sticky; top: calc(var(--mrh-admin, 0px) + var(--mrh-hdr, 0px)); z-index: 50; background: #fff; border-bottom: 1px solid var(--mrh-line); box-shadow: 0 2px 8px rgba(11, 31, 58, .06); }
.mrh-v3-tabs__inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mrh-v3-tabs__inner::-webkit-scrollbar { display: none; }
.mrh-v3-tabs a { flex: none; padding: 14px 12px 12px; font-size: 13.5px; font-weight: 700; color: var(--mrh-muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.mrh-v3-tabs a:hover { color: var(--mrh-blue); }
.mrh-v3-tabs a.is-active { color: var(--mrh-blue); border-bottom-color: var(--mrh-amber); }

.mrh-v3-wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
.mrh-v3 [id] { scroll-margin-top: calc(var(--mrh-admin, 0px) + var(--mrh-hdr, 0px) + 64px); }

/* Breadcrumbs */
.mrh-v3-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 14px; font-size: 13px; }
.mrh-v3-back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--mrh-blue); text-decoration: none; }
.mrh-v3-crumbs__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; color: var(--mrh-muted); }
.mrh-v3-crumbs__list li { margin: 0; }
.mrh-v3-crumbs__list li + li::before { content: '›'; margin: 0 6px; color: #94A3B8; }
.mrh-v3-crumbs__list a { color: var(--mrh-muted); text-decoration: none; }
.mrh-v3-crumbs__list a:hover { color: var(--mrh-blue); text-decoration: underline; }

/* Grid */
.mrh-v3-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.mrh-v3-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mrh-v3-side { flex: 1 1 320px; min-width: 0; align-self: stretch; }
.mrh-v3-side__sticky { position: sticky; top: calc(var(--mrh-admin, 0px) + var(--mrh-hdr, 0px) + 66px); display: flex; flex-direction: column; gap: 16px; }
.mrh-v3 .mrh-ld-ask { position: static; margin: 0; }
.mrh-v3 .mrh-ld-panel, .mrh-v3 .mrh-ld-fare-summary, .mrh-v3 .mrh-ld-rented-notice { margin: 0; }
.mrh-v3 .mrh-ld-rented-notice { margin-bottom: 14px; }

/* Cards */
.mrh-v3-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 10px rgba(0, 0, 0, .07); padding: 18px 20px; min-width: 0; }
.mrh-v3-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mrh-v3-span2 { grid-column: 1 / -1; }
.mrh-v3-transit > .mrh-ld-panel { height: 100%; }
.mrh-v3-head-note { margin-left: auto; font-size: 12.5px; color: var(--mrh-muted); }
.mrh-v3-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--mrh-blue); text-decoration: none; }
.mrh-v3-link:hover { text-decoration: underline; }

/* Gallery */
.mrh-v3-gallery { padding: 0; overflow: hidden; }
.mrh-v3-frame { position: relative; height: 440px; background: var(--mrh-navy); overflow: hidden; touch-action: pan-y; }
.mrh-v3-slide { position: absolute; inset: 0; margin: 0; }
.mrh-v3-slide[hidden] { display: none; }
.mrh-v3-slide__fill { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px) brightness(.7); }
.mrh-v3-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.mrh-v3-slide--empty { display: flex; align-items: center; justify-content: center; color: #CBD5E1; font-weight: 700; }
.mrh-v3-frame__status { position: absolute; top: 14px; left: 14px; z-index: 2; }
.mrh-v3-frame__count { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(11, 31, 58, .75); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.mrh-v3-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--mrh-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); padding: 0; }
.mrh-v3-nav--prev { left: 14px; }
.mrh-v3-nav--next { right: 14px; }
.mrh-v3-nav:focus-visible, .mrh-v3-thumb:focus-visible, .mrh-v3-act:focus-visible { outline: 3px solid var(--mrh-amber); outline-offset: 2px; }
.mrh-v3-frame__tabs { position: absolute; bottom: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; }
.mrh-v3-frame__tabs > * { background: rgba(255, 255, 255, .92); color: var(--mrh-ink); border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.mrh-v3-frame__tabs .is-on { background: var(--mrh-amber); color: #1A1200; }
.mrh-v3-thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 8px; background: #fff; }
.mrh-v3-thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: #E2E8F0; }
.mrh-v3-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mrh-v3-thumb.is-active { border-color: var(--mrh-amber); }
.mrh-v3-thumb__more { position: absolute; inset: 0; background: rgba(11, 31, 58, .65); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Expand + lightbox */
.mrh-v3-zoom { cursor: zoom-in; }
.mrh-v3-expand { position: absolute; bottom: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .92); color: var(--mrh-ink); border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.mrh-v3-lb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #060E1C; color: #fff; display: none; flex-direction: column; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.mrh-v3-lb[open] { display: flex; }
.mrh-v3-lb::backdrop { background: rgba(6, 14, 28, .96); }
.mrh-v3-lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.mrh-v3-lb__count { font-size: 14px; font-weight: 700; }
.mrh-v3-lb__close { background: transparent; border: 0; color: #fff; font-size: 34px; line-height: 1; width: 48px; height: 48px; cursor: pointer; }
.mrh-v3-lb__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 72px; touch-action: pan-y; }
.mrh-v3-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; user-select: none; }
.mrh-v3-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: #14213D; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mrh-v3-lb__nav--prev { left: 12px; }
.mrh-v3-lb__nav--next { right: 12px; }
.mrh-v3-lb__close:focus-visible, .mrh-v3-lb__nav:focus-visible, .mrh-v3-lb__tile:focus-visible { outline: 3px solid #F5A524; outline-offset: 2px; }
.mrh-v3-lb__strip { display: flex; gap: 6px; padding: 10px 16px 14px; overflow-x: auto; justify-content: safe center; }
.mrh-v3-lb__tile { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #1E293B; cursor: pointer; opacity: .6; }
.mrh-v3-lb__tile.is-active { border-color: #F5A524; opacity: 1; }
.mrh-v3-lb__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
	.mrh-v3-lb__stage { padding: 0; }
	.mrh-v3-lb__nav { width: 40px; height: 40px; background: rgba(255, 255, 255, .85); }
	.mrh-v3-lb__tile { width: 64px; height: 46px; }
	.mrh-v3-expand { bottom: 10px; right: 10px; }
}

/* Pills */
.mrh-v3-pill { display: inline-block; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1; padding: 6px 11px; color: #fff; background: #475569; white-space: nowrap; }
.mrh-v3-pill--sm { font-size: 11px; padding: 4px 8px; }
.mrh-v3-status--available, .mrh-v3-status--active { background: #16A34A; }
.mrh-v3-status--rented { background: #DC2626; }
.mrh-v3-status--sold { background: #B91C1C; }
.mrh-v3-status--pending, .mrh-v3-status--under-contract, .mrh-v3-status--in-contract { background: #F5A524; color: #1A1200; }
.mrh-v3-status--coming-soon { background: #7C3AED; }
.mrh-v3-status--withdrawn, .mrh-v3-status--expired, .mrh-v3-status--off-market { background: #64748B; }

/* Info bar */
.mrh-v3-info { background: var(--mrh-navy); color: #fff; border-radius: 14px; border-bottom: 5px solid var(--mrh-amber); padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: center; }
.mrh-v3-info__line1 { font-size: 18px; font-weight: 800; line-height: 1.3; }
.mrh-v3-info__line2 { font-size: 13px; color: #CBD5E1; margin-top: 2px; }
.mrh-v3-info__price { font-size: 24px; font-weight: 800; text-align: right; white-space: nowrap; }
.mrh-v3-info__price small, .mrh-v3-info__price .mrh-v3-per { font-size: 13px; font-weight: 600; color: #CBD5E1; }
.mrh-v3-info__chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mrh-v3-chip { background: #DCE8FB; color: var(--mrh-ink); font-size: 12.5px; font-weight: 800; padding: 6px 11px; border-radius: 999px; }
.mrh-v3-info__actions { margin-left: auto; display: flex; gap: 6px; }
.mrh-v3-act { background: var(--mrh-amber); color: #1A1200; border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; min-height: 36px; }
.mrh-v3-act:hover { filter: brightness(1.05); }
.mrh-v3-act.isfavorite { background: #fff; color: var(--mrh-blue); }

/* Description */
.mrh-v3-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mrh-v3-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #E0ECFF; color: var(--mrh-blue); line-height: 1; }
.mrh-v3-tag--solid { background: var(--mrh-blue); color: #fff; }
.mrh-v3-tag--amber { background: #FEF3C7; color: #78350F; }
.mrh-v3-tags .mrh-v3-tag.mrh-v3-pill { color: #fff; font-weight: 800; }
.mrh-v3-tags .mrh-v3-status--available, .mrh-v3-tags .mrh-v3-status--active { background: #16A34A; }
.mrh-v3-tags .mrh-v3-status--rented { background: #DC2626; }
.mrh-v3-title { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0 0 12px; color: var(--mrh-ink); }
.mrh-v3-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mrh-muted); margin-bottom: 6px; }
.mrh-v3-content { font-size: 15px; color: #1F2937; }
.mrh-v3-content p { margin: 0 0 10px; }
.mrh-v3-content .mena-fare-disclosure { display: none !important; }

/* Details */
.mrh-v3-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.mrh-v3-dl dt { color: var(--mrh-muted); font-weight: 600; margin: 0; }
.mrh-v3-dl dd { margin: 0; font-weight: 700; text-align: right; }

/* Features */
.mrh-v3-feat { display: flex; flex-wrap: wrap; gap: 6px; }
.mrh-v3-feat__chip { font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; line-height: 1.1; }
.mrh-v3-feat__chip--amber { background: #FEF3C7; color: #78350F; }
.mrh-v3-feat__chip--blue { background: #E0ECFF; color: #0349A6; }
.mrh-v3-feat__chip--teal { background: #CCFBF1; color: #115E59; }

/* Map + video */
.mrh-v3-map { height: 260px; border-radius: 10px; overflow: hidden; background: #E2E8F0; }
.mrh-v3-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.mrh-v3-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.mrh-v3-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Neighborhood */
.mrh-v3-nb { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.mrh-v3-nb__tile { border-radius: 10px; padding: 12px; min-width: 0; }
.mrh-v3-nb__tile[hidden] { display: none; }
.mrh-v3-nb__tile--shopping { background: #F0FDF4; color: #166534; }
.mrh-v3-nb__tile--parks { background: #EFF6FF; color: #0349A6; }
.mrh-v3-nb__tile--schools { background: #FFFBEB; color: #78350F; }
.mrh-v3-nb__tile--dining { background: #F5F3FF; color: #5B21B6; }
.mrh-v3-nb__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.mrh-v3-nb__list { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--mrh-ink); }
.mrh-v3-nb__list li { margin: 0 0 5px; line-height: 1.35; }
.mrh-v3-nb__list small { display: block; color: var(--mrh-muted); font-size: 11.5px; }
.mrh-v3-nb__loading { color: var(--mrh-muted); }

/* Register band */
.mrh-v3-register { background: var(--mrh-blue); color: #fff; border-radius: 14px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.mrh-v3-register__copy { flex: 2 1 340px; }
.mrh-v3-register__badge { display: inline-block; background: var(--mrh-amber); color: #1A1200; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; }
.mrh-v3-register h2 { color: #fff; font-size: 22px; font-weight: 800; margin: 8px 0 6px; }
.mrh-v3-register p { margin: 0 0 8px; font-size: 14px; color: #E0ECFF; }
.mrh-v3-register ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: #fff; }
.mrh-v3-register__cta { flex: 1 1 200px; text-align: center; }
.mrh-v3-register__btn { width: 100%; min-height: 52px; border: 0; border-radius: 10px; background: var(--mrh-amber); color: #1A1200; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }

/* Similar */
.mrh-v3-similar__title { font-size: 17px; font-weight: 800; margin: 0 0 10px; color: var(--mrh-ink); }
.mrh-v3-similar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mrh-v3-similar li { margin: 0; }
.mrh-v3-similar a:not(.mrh-v3-link) { display: flex; gap: 10px; text-decoration: none; color: var(--mrh-ink); }
.mrh-v3-similar__img { flex: none; width: 84px; height: 64px; border-radius: 8px; background: #E2E8F0 center / cover no-repeat; }
.mrh-v3-similar__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.mrh-v3-similar__name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.mrh-v3-similar__price { font-size: 13px; font-weight: 800; color: var(--mrh-blue); }
.mrh-v3-similar__price .mrh-v3-per, .mrh-v3-similar__price small { font-weight: 600; color: var(--mrh-muted); }

/* Register drawer */
.mrh-v3-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, 100vw); height: 100vh; height: 100dvh; max-height: none; max-width: none; border: 0; padding: 0; background: #fff; display: none; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .3); }
.mrh-v3-drawer[open] { display: flex; animation: mrhV3Slide .25s ease-out; }
.mrh-v3-drawer::backdrop { background: rgba(11, 31, 58, .55); }
@keyframes mrhV3Slide { from { transform: translateX(100%); } to { transform: none; } }
.mrh-v3-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--mrh-blue); color: #fff; }
.mrh-v3-drawer__head h2 { margin: 0; font-size: 18px; font-weight: 800; color: #fff; }
.mrh-v3-drawer__close { background: transparent; border: 0; color: #fff; font-size: 30px; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
.mrh-v3-drawer__frame { flex: 1; width: 100%; border: 0; }

/* Toast */
.mrh-v3-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--mrh-navy); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 99999; box-shadow: 0 4px 20px rgba(0, 0, 0, .3); }

/* Responsive */
@media (max-width: 991px) {
	.mrh-v3-side__sticky { position: static; }
}
@media (max-width: 700px) {
	.mrh-v3-wrap { padding: 12px 16px; }
	.mrh-v3-frame { height: 260px; }
	.mrh-v3-nav { width: 38px; height: 38px; }
	.mrh-v3-thumbs { grid-template-columns: repeat(4, 1fr); }
	.mrh-v3-thumb:nth-child(n+5) { display: none; }
	.mrh-v3-cards { grid-template-columns: 1fr; }
	.mrh-v3-nb { grid-template-columns: 1fr 1fr; }
	.mrh-v3-info { grid-template-columns: 1fr; }
	.mrh-v3-info__price { text-align: left; }
	.mrh-v3-info__actions { margin-left: 0; width: 100%; }
	.mrh-v3-act { flex: 1; }
	.mrh-v3-title { font-size: 22px; }
	.mrh-v3-dl dd { text-align: left; }
}

/* Print */
@media print {
	.mrh-v3-tabs, .mrh-v3-nav, .mrh-v3-thumbs, .mrh-v3-frame__tabs, .mrh-v3-info__actions, .mrh-v3-side, .mrh-v3-register, .mrh-v3-drawer, .mrh-v3-back, .mrh-v3-map, .mrh-v3-video { display: none !important; }
	.mrh-v3 { background: #fff; }
	.mrh-v3-card, .mrh-v3-info { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
	.mrh-v3-frame { height: 320px; }
	details.mrh-ld-upfront > .mrh-ld-panel__body { display: flex !important; }
}
