/* ============================================================================
   Plan One Browse — Unified CSS
   Same desktop design scales to tablet and mobile.
   Only difference: on mobile, sidebar becomes a slide-up drawer.
   Namespace: .po-shell + .pb-* (zero conflict with theme)
   ============================================================================ */

/* ── 1. SHELL — base styles ──────────────────────────────────────────────── */
.po-shell {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #0A1B40;
	background: #F6F7FB;
	direction: rtl;
	text-align: right;
	min-height: 100vh;
	box-sizing: border-box;

	--pb-brand: #1E40D7;
	--pb-brand-600: #1734B5;
	--pb-brand-50: #EEF2FF;
	--pb-brand-100: #DCE3FE;
	--pb-accent: #1FCFC0;
	--pb-accent-50: #E6FAF7;
	--pb-ink: #0A1B40;
	--pb-ink-700: #1F2D52;
	--pb-ink-500: #4A567A;
	--pb-muted: #6B7591;
	--pb-line: #E6E8F0;
	--pb-line-soft: #F0F2F8;
	--pb-bg: #F6F7FB;
	--pb-ok: #0F9F76;
	--pb-warn: #C97A0A;
}

.po-shell *,
.po-shell *::before,
.po-shell *::after {
	box-sizing: border-box;
}

.po-shell h1, .po-shell h2, .po-shell h3, .po-shell h4, .po-shell p {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	background: transparent;
	border: 0;
	letter-spacing: normal;
}
.po-shell a {
	color: inherit;
	text-decoration: none;
	background: transparent;
}
.po-shell button {
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.po-shell input[type="range"] { margin: 0; padding: 0; }
.po-shell ul, .po-shell ol { list-style: none; margin: 0; padding: 0; }
.po-shell svg { display: inline-block; vertical-align: middle; }
.po-shell .pb-num {
	font-family: 'IBM Plex Sans', system-ui, sans-serif;
	font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* ── 2. LAYOUT — sidebar (right in RTL) + main ───────────────────────────── */
.po-shell .pb-layout {
	display: grid !important;
	grid-template-columns: 280px 1fr;
	gap: 0;
	align-items: start;
	max-width: none;
	margin: 0;
	width: 100%;
	background: var(--pb-bg);
	min-height: 100vh;
}

/* Tablet portrait: smaller sidebar */
@media (max-width: 1024px) and (min-width: 768px) {
	.po-shell .pb-layout {
		grid-template-columns: 240px 1fr;
	}
	.po-shell .pb-sidebar {
		padding: 18px 14px;
	}
	.po-shell .pb-mapwrap {
		height: 460px;
		margin: 16px 20px 0;
	}
	.po-shell .pb-grid {
		padding: 8px 20px 50px;
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 14px;
	}
	.po-shell .pb-results {
		padding: 20px 20px 10px;
	}
	.po-shell .pb-results h2 {
		font-size: 20px;
	}
}

/* ─── Professional sticky sidebar ───
   Sticks below the site header while scrolling through the billboard list.
   Height follows its content; only scrolls internally if filters exceed the
   viewport. --pb-header-top is set dynamically by JS. */
.po-shell .pb-sidebar {
	background: #fff;
	padding: 24px 20px;
	position: -webkit-sticky;
	position: sticky;
	top: var(--pb-header-top, 76px);
	max-height: calc(100vh - var(--pb-header-top, 76px));
	overflow-y: auto;
	overflow-x: hidden;
	border-inline-start: 1px solid var(--pb-line);
	scrollbar-width: thin;
	scrollbar-color: var(--pb-line) transparent;
	scroll-behavior: smooth;
	align-self: start;
}
.po-shell .pb-sidebar::-webkit-scrollbar { width: 6px; }
.po-shell .pb-sidebar::-webkit-scrollbar-track { background: transparent; }
.po-shell .pb-sidebar::-webkit-scrollbar-thumb {
	background: var(--pb-line);
	border-radius: 999px;
}
.po-shell .pb-sidebar:hover::-webkit-scrollbar-thumb {
	background: #c7c9d4;
}

.po-shell .pb-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* ── 3. FILTERS HEAD ─────────────────────────────────────────────────────── */
.po-shell .pb-fhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0 14px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--pb-line-soft);
}
.po-shell .pb-fhead-l {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14px;
	color: var(--pb-ink);
}
.po-shell .pb-fhead-l svg {
	color: var(--pb-brand);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.po-shell .pb-pill {
	background: var(--pb-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	min-width: 22px;
	text-align: center;
	display: inline-block;
}
.po-shell .pb-clear {
	color: var(--pb-brand);
	font-size: 12.5px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 6px;
	line-height: 1.2;
}
.po-shell .pb-clear:hover:not(:disabled) {
	background: var(--pb-brand-50);
}
.po-shell .pb-clear:disabled {
	color: var(--pb-muted);
	opacity: .55;
	cursor: not-allowed;
}

/* ── 4. SECTIONS ─────────────────────────────────────────────────────────── */
.po-shell .pb-sec {
	border-bottom: 1px solid var(--pb-line-soft);
}
.po-shell .pb-sec:last-of-type { border-bottom: 0; }
.po-shell .pb-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	padding: 14px 0;
	text-align: right;
	line-height: 1.4;
}
.po-shell .pb-sec-title {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: flex-start;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pb-ink);
	text-align: right;
}
.po-shell .pb-sec-sub {
	font-size: 11px;
	font-weight: 500;
	color: var(--pb-muted);
}
.po-shell .pb-sec-right {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--pb-muted);
}
.po-shell .pb-sec-count {
	background: var(--pb-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 999px;
	min-width: 20px;
	text-align: center;
}
.po-shell .pb-sec-chev {
	font-size: 16px;
	color: var(--pb-muted);
	display: inline-block;
	transform: rotate(180deg);
	transition: transform .2s;
	width: 14px;
	text-align: center;
	line-height: 1;
}
.po-shell .pb-sec.is-open .pb-sec-chev {
	transform: rotate(270deg);
}
.po-shell .pb-sec-body {
	display: none;
	padding: 0 0 14px;
}
.po-shell .pb-sec.is-open .pb-sec-body {
	display: block;
}

/* ── 5. CHIPS ────────────────────────────────────────────────────────────── */
.po-shell .pb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.po-shell .pb-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 11px;
	background: #fff;
	border: 1px solid var(--pb-line);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--pb-ink-700);
	cursor: pointer;
	line-height: 1.2;
	font-family: inherit;
	transition: all .15s;
}
.po-shell .pb-chip:hover {
	border-color: var(--pb-brand);
	color: var(--pb-brand);
}
.po-shell .pb-chip.is-on {
	background: var(--pb-brand);
	border-color: var(--pb-brand);
	color: #fff;
}

/* ── 6. CITY RADIOS ──────────────────────────────────────────────────────── */
.po-shell .pb-radios { display: flex; flex-direction: column; gap: 4px; }
.po-shell .pb-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	cursor: pointer;
}
.po-shell .pb-radio:hover:not(.is-soon) { background: var(--pb-line-soft); }
.po-shell .pb-radio.is-on { background: var(--pb-brand-50); }
.po-shell .pb-radio.is-soon { opacity: .55; cursor: not-allowed; }
.po-shell .pb-radio input { display: none; }
.po-shell .pb-radio-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--pb-line);
	background: #fff;
	flex-shrink: 0;
	position: relative;
}
.po-shell .pb-radio.is-on .pb-radio-dot { border-color: var(--pb-brand); }
.po-shell .pb-radio.is-on .pb-radio-dot::after {
	content: '';
	position: absolute;
	top: 3px; left: 3px; right: 3px; bottom: 3px;
	background: var(--pb-brand);
	border-radius: 50%;
}
.po-shell .pb-radio-label {
	flex: 1;
	font-weight: 500;
	font-size: 13.5px;
	color: var(--pb-ink);
	display: flex;
	align-items: center;
	gap: 6px;
}
.po-shell .pb-radio.is-on .pb-radio-label {
	font-weight: 700;
	color: var(--pb-brand);
}
.po-shell .pb-soon-tag {
	font-size: 10px;
	font-weight: 600;
	color: var(--pb-muted);
	background: var(--pb-line-soft);
	padding: 1px 6px;
	border-radius: 4px;
}
.po-shell .pb-radio-count {
	background: #fff;
	border: 1px solid var(--pb-line);
	color: var(--pb-muted);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 999px;
	min-width: 22px;
	text-align: center;
}
.po-shell .pb-radio.is-on .pb-radio-count {
	background: var(--pb-brand);
	border-color: var(--pb-brand);
	color: #fff;
}

/* ── 7. MUNICIPALITY ROWS ────────────────────────────────────────────────── */
.po-shell .pb-mun-list { display: flex; flex-direction: column; gap: 2px; }
.po-shell .pb-mun {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid var(--pb-line);
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	text-align: right;
	width: 100%;
	line-height: 1.3;
	font-family: inherit;
}
.po-shell .pb-mun:hover { border-color: var(--pb-brand); }
.po-shell .pb-mun.is-on {
	background: var(--pb-brand-50);
	border-color: var(--pb-brand);
}
.po-shell .pb-mun-name {
	font-weight: 600;
	color: var(--pb-ink);
	flex: 1;
	text-align: right;
}
.po-shell .pb-mun.is-on .pb-mun-name { color: var(--pb-brand); }
.po-shell .pb-mun-tag {
	font-size: 10.5px;
	font-weight: 600;
	color: var(--pb-muted);
	background: var(--pb-line-soft);
	padding: 2px 7px;
	border-radius: 4px;
}
.po-shell .pb-mun-count {
	font-size: 11px;
	font-weight: 700;
	color: var(--pb-muted);
	background: var(--pb-line-soft);
	padding: 2px 8px;
	border-radius: 999px;
}
.po-shell .pb-mun.is-on .pb-mun-count {
	background: var(--pb-brand);
	color: #fff;
}

/* ── 8. 2-COL TYPE CARDS ─────────────────────────────────────────────────── */
.po-shell .pb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.po-shell .pb-tcard {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 12px 10px;
	background: #fff;
	border: 1px solid var(--pb-line);
	border-radius: 10px;
	cursor: pointer;
	transition: all .15s;
	font-family: inherit;
	line-height: 1.3;
}
.po-shell .pb-tcard:hover { border-color: var(--pb-brand); }
.po-shell .pb-tcard.is-on {
	background: var(--pb-brand-50);
	border-color: var(--pb-brand);
}
.po-shell .pb-tcard-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--pb-line-soft);
	color: var(--pb-ink-700);
	font-size: 16px;
}
.po-shell .pb-tcard.is-on .pb-tcard-icon {
	background: var(--pb-brand);
	color: #fff;
}
.po-shell .pb-tcard-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--pb-ink);
	text-align: center;
}
.po-shell .pb-tcard-count {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--pb-muted);
	background: var(--pb-line-soft);
	padding: 1px 6px;
	border-radius: 999px;
}
.po-shell .pb-tcard.is-on .pb-tcard-count {
	background: #fff;
	color: var(--pb-brand);
}
.po-shell .pb-tcard.is-compact { padding: 8px 10px; }
.po-shell .pb-tcard.is-compact .pb-tcard-icon {
	width: 24px;
	height: 24px;
	font-size: 14px;
}

/* ── 9. PRICE RANGE ──────────────────────────────────────────────────────── */
.po-shell .pb-price { padding-top: 4px; }
.po-shell .pb-range {
	width: 100%;
	height: 4px;
	-webkit-appearance: none;
	appearance: none;
	background: var(--pb-line);
	border-radius: 999px;
	outline: none;
	cursor: pointer;
}
.po-shell .pb-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	background: var(--pb-brand);
	border-radius: 50%;
	cursor: pointer;
	border: 0;
}
.po-shell .pb-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	background: var(--pb-brand);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.po-shell .pb-price-meta {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 12px;
	color: var(--pb-muted);
}
.po-shell .pb-price-val strong {
	color: var(--pb-brand);
	font-weight: 700;
}

/* ── 10. MAP WRAP ────────────────────────────────────────────────────────── */
.po-shell .pb-mapwrap {
	height: 560px;
	margin: 24px 32px 0;
	border-radius: 16px;
	border: 1px solid var(--pb-line);
	background: #EFF1F6;
	overflow: hidden;
	position: relative;
	box-shadow: 0 1px 0 rgba(10,27,64,.04), 0 16px 40px -22px rgba(10,27,64,.18);
}
.po-shell .pb-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.po-shell .leaflet-container {
	font-family: 'IBM Plex Sans Arabic', sans-serif !important;
	background: #F4F6FA;
}
.po-shell .leaflet-control-attribution {
	font-size: 10px;
	background: rgba(255,255,255,.85);
	color: var(--pb-ink-500);
	padding: 2px 6px;
	border-radius: 4px;
}
.po-shell .leaflet-control-zoom {
	border: 1px solid rgba(15,27,64,.06) !important;
	border-radius: 14px !important;
	overflow: hidden;
	box-shadow: 0 14px 32px -10px rgba(10,27,64,.28), 0 2px 6px rgba(10,27,64,.08) !important;
	background: rgba(255,255,255,.92) !important;
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	padding: 4px;
	margin: 16px !important;
}
.po-shell .leaflet-control-zoom a {
	background: transparent !important;
	color: var(--pb-ink) !important;
	width: 36px !important;
	height: 36px !important;
	line-height: 36px !important;
	font-size: 18px !important;
	border-radius: 8px !important;
	border: 0 !important;
}
.po-shell .leaflet-control-zoom a:hover {
	background: var(--pb-brand-50) !important;
	color: var(--pb-brand) !important;
}
.po-shell .leaflet-control-zoom-in {
	border-bottom: 1px solid rgba(15,27,64,.08) !important;
}

/* ── 11. PINS ────────────────────────────────────────────────────────────── */
.po-shell .pb-pin-wrap { background: transparent !important; border: 0 !important; overflow: visible !important; }
.po-shell .pb-pin {
	position: relative;
	width: max-content;
	min-width: 40px;
	height: 50px;
	transform-origin: 50% 100%;
	filter: drop-shadow(0 4px 6px rgba(10,27,64,.28));
	display: flex;
	flex-direction: column;
	align-items: center;
}
.po-shell .pb-pin-body {
	min-width: 36px;
	height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--pin);
	border: 2.5px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	box-shadow: 0 2px 6px rgba(10,27,64,.28);
	white-space: nowrap;
}
.po-shell .pb-pin-dot {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
}
.po-shell .pb-pin-stem {
	width: 0;
	height: 0;
	margin: -3px auto 0;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 11px solid var(--pin);
	filter: drop-shadow(0 1px 0 #fff);
}

/* ── 12. CITY TABS (top-right of map) ────────────────────────────────────── */
.po-shell .pb-citytabs {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	background: #fff;
	border: 1px solid var(--pb-line);
	border-radius: 12px;
	padding: 4px;
	z-index: 401;
	box-shadow: 0 1px 2px rgba(10,27,64,.04);
}
.po-shell .pb-citytabs button {
	height: 30px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pb-ink-500);
	font-family: inherit;
	line-height: 30px;
}
.po-shell .pb-citytabs button.is-on {
	background: var(--pb-ink);
	color: #fff;
}

/* ── 13. LEGEND (bottom-left in RTL) ─────────────────────────────────────── */
.po-shell .pb-legend {
	position: absolute;
	bottom: 18px;
	left: 18px;
	right: auto;
	background: rgba(255,255,255,.92);
	border: 1px solid rgba(15,27,64,.06);
	border-radius: 14px;
	padding: 10px 14px;
	box-shadow: 0 14px 32px -10px rgba(10,27,64,.28), 0 2px 6px rgba(10,27,64,.08);
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	z-index: 401;
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	flex-wrap: wrap;
}
.po-shell .pb-legend-title {
	font-size: 11px;
	font-weight: 700;
	color: var(--pb-ink);
	letter-spacing: .04em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px 0 0;
	border-inline-end: 1px dashed rgba(15,27,64,.18);
}
.po-shell .pb-legend-title::before {
	content: '';
	width: 14px;
	height: 14px;
	border-radius: 4px;
	background: linear-gradient(135deg, var(--pb-brand) 0% 33%, var(--pb-accent) 33% 66%, #5C6AE0 66% 100%);
	flex-shrink: 0;
}
.po-shell .pb-legend-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--pb-ink-700);
	white-space: nowrap;
}
.po-shell .pb-legend-dot {
	width: 11px;
	height: 11px;
	border-radius: 4px;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(15,27,64,.12), 0 4px 8px -2px rgba(15,27,64,.18);
	flex-shrink: 0;
}

/* ── 14. POPUP ───────────────────────────────────────────────────────────── */
.po-shell .pb-pop-wrap .leaflet-popup-content-wrapper {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 50px -16px rgba(10,27,64,.35);
	padding: 0;
	overflow: hidden;
}
.po-shell .pb-pop-wrap .leaflet-popup-content {
	margin: 0;
	line-height: 1.4;
	width: auto !important;
}
.po-shell .pb-pop-wrap .leaflet-popup-close-button {
	width: 28px !important;
	height: 28px !important;
	top: 8px !important;
	left: 8px !important;
	right: auto !important;
	background: rgba(15,27,64,.06) !important;
	border-radius: 50%;
	color: var(--pb-ink) !important;
	font-size: 18px !important;
	line-height: 26px !important;
	text-align: center;
}
.po-shell .pb-pop {
	width: 260px;
	padding: 0;
	direction: rtl;
	font-family: 'IBM Plex Sans Arabic', sans-serif;
	overflow: hidden;
}
.po-shell .pb-pop-img {
	width: 100%;
	height: 140px;
	background: #0a1530;
	overflow: hidden;
}
.po-shell .pb-pop-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.po-shell .pb-pop-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	padding: 14px 16px 0;
}
.po-shell .pb-pop > .pb-pop-title,
.po-shell .pb-pop > .pb-pop-meta { padding-inline: 16px; }
.po-shell .pb-pop > .pb-pop-foot { padding: 0 16px 14px; }
.po-shell .pb-pop-tag {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--pb-brand);
	background: var(--pb-brand-50);
	padding: 3px 8px;
	border-radius: 5px;
}
.po-shell .pb-pop-type {
	font-size: 11px;
	font-weight: 600;
	color: var(--pb-muted);
}
.po-shell .pb-pop-title {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--pb-ink);
	margin: 0 0 8px;
	direction: rtl;
	text-align: right;
}
.po-shell .pb-pop-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 11.5px;
	color: var(--pb-ink-500);
	padding-bottom: 12px;
	border-bottom: 1px dashed rgba(15,27,64,.12);
	margin-bottom: 12px;
}
.po-shell .pb-pop-meta-i {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.po-shell .pb-pop-meta-i svg {
	color: var(--pb-muted);
	flex-shrink: 0;
}
.po-shell .pb-pop-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.po-shell .pb-pop-price {
	font-family: 'IBM Plex Sans', sans-serif;
	font-weight: 800;
	font-size: 18px;
	color: var(--pb-ink);
}
.po-shell .pb-pop-price-u {
	font-size: 11px;
	color: var(--pb-muted);
	margin-right: 4px;
	font-weight: 500;
}
.po-shell .pb-pop-btn {
	background: var(--pb-brand);
	color: #fff !important;
	padding: 8px 14px;
	border-radius: 9px;
	font-size: 12.5px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	text-decoration: none !important;
}
.po-shell .pb-pop-btn:hover { background: var(--pb-brand-600); }

/* ── 15. RESULTS BAR ─────────────────────────────────────────────────────── */
.po-shell .pb-results {
	padding: 24px 32px 12px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}
.po-shell .pb-results h2 {
	font-size: 22px;
	font-weight: 800;
	color: var(--pb-ink);
	line-height: 1.2;
}
.po-shell .pb-results-muted {
	color: var(--pb-muted);
	font-size: 14px;
	margin-inline-start: 8px;
}

/* ── 16. CARDS GRID ──────────────────────────────────────────────────────── */
.po-shell .pb-grid {
	padding: 8px 32px 60px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}
.po-shell .pb-card {
	background: #fff;
	border: 1px solid var(--pb-line);
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.po-shell .pb-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -8px rgba(10,27,64,.12);
	border-color: var(--pb-ink-500);
}
.po-shell .pb-card-visual {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 62.5%;
	background: #0A1530;
	overflow: hidden;
	flex-shrink: 0;
}
.po-shell .pb-card-visual > svg,
.po-shell .pb-card-visual > img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}
.po-shell .pb-card-visual-tag {
	position: absolute;
	bottom: 8px;
	left: 8px;
	background: rgba(10, 27, 64, .75);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 6px;
	letter-spacing: .04em;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 1;
}
.po-shell .pb-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	background: #fff;
}
.po-shell .pb-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.po-shell .pb-code {
	font-size: 11px;
	font-weight: 700;
	color: var(--pb-muted);
	letter-spacing: .04em;
	font-family: 'IBM Plex Mono', monospace;
}
.po-shell .pb-card-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--pb-ink);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 44px;
}
.po-shell .pb-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
}
.po-shell .pb-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px dashed var(--pb-line);
	margin-top: auto;
}
.po-shell .pb-price-num {
	font-size: 20px;
	font-weight: 800;
	color: var(--pb-ink);
}
.po-shell .pb-price-num.pb-price-quote {
	font-size: 16px;
	font-weight: 600;
	color: var(--pb-brand);
}
.po-shell .pb-price-unit {
	font-size: 12px;
	color: var(--pb-muted);
	margin-right: 4px;
}
.po-shell .pb-card-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: var(--pb-brand-50);
	color: var(--pb-brand);
	line-height: 1;
}
.po-shell .pb-card-chip svg { flex-shrink: 0; }
.po-shell .pb-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--pb-ink-500);
	font-weight: 500;
}
.po-shell .pb-tag svg {
	color: var(--pb-muted);
	flex-shrink: 0;
}

/* ── 17. BUTTONS ─────────────────────────────────────────────────────────── */
.po-shell .pb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
}
.po-shell .pb-btn-primary {
	background: var(--pb-brand);
	color: #fff;
}
.po-shell .pb-btn-primary:hover { background: var(--pb-brand-600); }
.po-shell .pb-btn-ghost {
	background: #fff;
	color: var(--pb-ink);
	border: 1px solid var(--pb-line);
}
.po-shell .pb-btn-sm {
	height: 32px;
	font-size: 12px;
	padding: 0 12px;
	border-radius: 8px;
}

/* ── 18. AVAILABILITY DOTS ───────────────────────────────────────────────── */
.po-shell .pb-dots {
	display: flex;
	gap: 4px;
	align-items: center;
	margin-top: 2px;
}
.po-shell .pb-dot {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--pb-line);
	display: block;
	flex-shrink: 0;
}
.po-shell .pb-dot.is-ok { background: var(--pb-ok); }
.po-shell .pb-dot.is-warn { background: var(--pb-warn); }
.po-shell .pb-dot.is-no { background: var(--pb-line); opacity: .85; }

/* ── 19. EMPTY STATE ─────────────────────────────────────────────────────── */
.po-shell .pb-empty {
	padding: 80px 32px;
	text-align: center;
	color: var(--pb-muted);
}
.po-shell .pb-empty p { font-size: 17px; }

/* ── 20. MOBILE BAR (hidden on desktop, shown on mobile) ─────────────────── */
.po-shell .pb-mobile-bar { display: none; }
.po-shell .pb-drawer { display: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   TABLET & MOBILE (≤ 1100px)
   Layout: SAME structure - sidebar becomes off-canvas drawer (filter button shows)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
	/* On mobile the sidebar is a drawer (not sticky), so we can safely
	   clip horizontal overflow to prevent any sideways scroll. */
	.po-shell {
		overflow-x: hidden;
	}
	/* Layout becomes single column: main only */
	.po-shell .pb-layout {
		display: grid !important;
		grid-template-columns: 1fr;
	}

	/* Sidebar hidden, becomes drawer */
	.po-shell .pb-sidebar {
		display: none;
	}

	/* Mobile filter pill (sticky at top of main) */
	.po-shell .pb-mobile-bar {
		display: block;
		position: sticky;
		top: 12px;
		z-index: 500;
		margin: 12px 16px 0;
	}
	.po-shell .pb-mobile-bar.is-hidden {
		transform: translateY(calc(-100% - 16px));
		opacity: 0;
		pointer-events: none;
		transition: opacity .25s, transform .25s;
	}
	.po-shell .pb-mb-bar {
		display: flex;
		align-items: center;
		gap: 8px;
		background: rgba(255,255,255,.96);
		border: 1px solid rgba(15,27,64,.08);
		border-radius: 14px;
		padding: 6px;
		box-shadow: 0 10px 28px -10px rgba(15,27,64,.22);
		backdrop-filter: blur(14px) saturate(140%);
		-webkit-backdrop-filter: blur(14px) saturate(140%);
		position: relative;
	}
	.po-shell .pb-mb-main {
		flex: 1;
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 8px 10px;
		border-radius: 10px;
		text-align: right;
	}
	.po-shell .pb-mb-icon {
		width: 36px;
		height: 36px;
		border-radius: 10px;
		background: var(--pb-brand);
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}
	.po-shell .pb-mb-text {
		display: flex;
		flex-direction: column;
		gap: 2px;
		flex: 1;
		min-width: 0;
		text-align: right;
	}
	.po-shell .pb-mb-title {
		font-size: 14px;
		font-weight: 700;
		color: var(--pb-ink);
	}
	.po-shell .pb-mb-sub {
		font-size: 11.5px;
		color: var(--pb-muted);
		font-weight: 500;
	}
	.po-shell .pb-mb-sub .pb-num {
		font-weight: 700;
		color: var(--pb-brand);
	}
	.po-shell .pb-mb-count {
		background: var(--pb-brand);
		color: #fff;
		padding: 2px 9px;
		border-radius: 999px;
		font-size: 11.5px;
		font-weight: 700;
		flex-shrink: 0;
	}
	.po-shell .pb-mb-sort {
		width: 42px;
		height: 42px;
		background: var(--pb-ink);
		color: #fff;
		border-radius: 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}
	.po-shell .pb-mb-sort.is-on { background: var(--pb-brand); }
	.po-shell .pb-mb-pop {
		position: absolute;
		top: calc(100% + 6px);
		right: 0;
		left: auto;
		background: #fff;
		border: 1px solid rgba(15,27,64,.08);
		border-radius: 12px;
		padding: 6px;
		box-shadow: 0 16px 36px -10px rgba(15,27,64,.28);
		z-index: 502;
		flex-direction: column;
		min-width: 200px;
		display: flex;
	}
	.po-shell .pb-mb-pop[hidden] { display: none !important; }
	.po-shell .pb-mb-opt {
		padding: 10px 12px;
		text-align: right;
		border-radius: 8px;
		font-size: 13px;
		color: var(--pb-ink-700);
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.po-shell .pb-mb-opt:hover { background: var(--pb-line-soft); }
	.po-shell .pb-mb-opt.is-on {
		background: var(--pb-brand-50);
		color: var(--pb-brand);
		font-weight: 700;
	}
	.po-shell .pb-mb-chips {
		display: flex;
		gap: 6px;
		margin-top: 8px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.po-shell .pb-mb-chips::-webkit-scrollbar { display: none; }
	.po-shell .pb-mb-chip {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		flex-shrink: 0;
		background: #fff;
		border: 1px solid var(--pb-brand);
		color: var(--pb-brand);
		padding: 5px 11px;
		border-radius: 999px;
		font-size: 12px;
		font-weight: 600;
	}
	.po-shell .pb-mb-chip.is-clear {
		background: var(--pb-ink);
		color: #fff;
		border-color: var(--pb-ink);
	}

	/* Map: KEEP the same design - just adjusted height + margin */
	.po-shell .pb-mapwrap {
		height: 440px;
		margin: 16px;
		border-radius: 14px;
	}
	.po-shell .pb-citytabs {
		top: 12px;
		right: 12px;
		padding: 3px;
	}
	.po-shell .pb-citytabs button {
		height: 28px;
		padding: 0 10px;
		font-size: 12px;
		line-height: 28px;
	}
	.po-shell .pb-legend {
		bottom: 12px;
		left: 12px;
		padding: 8px 10px;
		gap: 6px 10px;
		border-radius: 10px;
	}
	.po-shell .pb-legend-title {
		font-size: 9.5px;
		padding: 0 8px 0 0;
	}
	.po-shell .pb-legend-title::before { width: 10px; height: 10px; }
	.po-shell .pb-legend-row { font-size: 10.5px; }
	.po-shell .pb-legend-dot { width: 8px; height: 8px; }

	/* Results bar */
	.po-shell .pb-results {
		padding: 20px 16px 8px;
	}
	.po-shell .pb-results h2 {
		font-size: 20px;
	}

	/* Cards grid: SAME design - just smaller padding */
	.po-shell .pb-grid {
		padding: 8px 16px 40px;
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 14px;
	}

	/* Filter drawer (off-canvas, slides up from bottom) */
	.po-shell .pb-drawer {
		display: flex;
		position: fixed;
		inset: 0;
		background: rgba(10,27,64,0);
		z-index: 9999;
		align-items: flex-end;
		opacity: 1;
		pointer-events: none;
		transition: background .28s ease;
	}
	.po-shell .pb-drawer.is-open {
		background: rgba(10,27,64,.55);
		pointer-events: auto;
	}
	.po-shell .pb-drawer[hidden] { display: none !important; }
	.po-shell .pb-drawer-card {
		background: #fff;
		width: 100%;
		max-height: 90vh;
		border-radius: 18px 18px 0 0;
		display: flex;
		flex-direction: column;
		transform: translateY(100%);
		transition: transform .35s cubic-bezier(.22, 1, .36, 1);
		box-shadow: 0 -8px 32px -8px rgba(10,27,64,.25);
		will-change: transform;
	}
	.po-shell .pb-drawer.is-open .pb-drawer-card {
		transform: translateY(0);
	}
	.po-shell .pb-drawer-handle {
		width: 40px;
		height: 4px;
		background: var(--pb-line);
		border-radius: 999px;
		margin: 10px auto 4px;
		flex-shrink: 0;
	}
	.po-shell .pb-drawer-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 8px 16px 12px;
		border-bottom: 1px solid var(--pb-line);
	}
	.po-shell .pb-drawer-top h3 {
		font-size: 16px;
		font-weight: 700;
	}
	.po-shell .pb-drawer-close {
		width: 32px;
		height: 32px;
		background: var(--pb-line-soft);
		color: var(--pb-ink);
		border-radius: 8px;
		font-size: 16px;
	}
	.po-shell .pb-drawer-body {
		flex: 1;
		overflow-y: auto;
		padding: 14px 16px;
	}
	.po-shell .pb-drawer-foot {
		padding: 12px 16px;
		border-top: 1px solid var(--pb-line);
		display: flex;
		gap: 8px;
	}
	.po-shell .pb-drawer-foot .pb-btn {
		flex: 1;
		height: 44px;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHONE ONLY (≤ 600px) — tighter spacing, single-column cards
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
	.po-shell .pb-mapwrap {
		height: 360px;
		margin: 12px;
	}
	.po-shell .leaflet-control-zoom { display: none !important; }
	.po-shell .pb-grid {
		grid-template-columns: 1fr;
		padding: 8px 12px 40px;
		gap: 14px;
	}
	.po-shell .pb-results {
		padding: 16px 12px 8px;
	}
	.po-shell .pb-results h2 {
		font-size: 18px;
	}
	.po-shell .pb-mobile-bar {
		margin: 12px 12px 0;
	}
}

/* ─── Card zoom button (browse grid) ─── */
.po-shell .pb-card-visual { position: relative; }
.po-shell .pb-card-zoom {
	position: absolute;
	top: 8px;
	inset-inline-start: 8px;
	z-index: 6;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(10, 27, 64, .55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s, background .2s, transform .15s;
	backdrop-filter: blur(3px);
}
.po-shell .pb-card-zoom svg { width: 16px; height: 16px; }
.po-shell .pb-card-visual:hover .pb-card-zoom { opacity: 1; }
.po-shell .pb-card-zoom:hover { background: rgba(10, 27, 64, .82); transform: scale(1.08); }
@media (hover: none) { .po-shell .pb-card-zoom { opacity: .9; } }

/* ─── Lightbox (shared style, not namespaced so it works on body) ─── */
.pb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(6, 12, 30, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}
.pb-lightbox[hidden] { display: none; }
.pb-lightbox-figure {
	margin: 0;
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.pb-lightbox-figure img {
	max-width: 92vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.pb-lightbox-cap {
	color: #fff;
	font-family: 'IBM Plex Sans Arabic', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}
.pb-lightbox-close {
	position: absolute;
	top: 18px;
	inset-inline-end: 18px;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.12);
	color: #fff;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s;
}
.pb-lightbox-close:hover { background: rgba(255,255,255,.24); }
.pb-lightbox-close svg { width: 22px; height: 22px; }
.pb-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px; height: 50px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.12);
	color: #fff;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s;
}
.pb-lightbox-nav:hover { background: rgba(255,255,255,.24); }
.pb-lightbox-nav svg { width: 26px; height: 26px; }
.pb-lightbox-prev { inset-inline-end: 18px; }
.pb-lightbox-next { inset-inline-start: 18px; }
.pb-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 0; right: 0;
	text-align: center;
	color: rgba(255,255,255,.75);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
}
.pb-lightbox.is-single .pb-lightbox-nav,
.pb-lightbox.is-single .pb-lightbox-counter { display: none; }

/* ─── Browse card image carousel ─── */
.po-shell .pb-card-carousel { position: absolute; inset: 0; }
.po-shell .pb-card-carousel-track { position: absolute; inset: 0; }
.po-shell .pb-card-slide {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .35s ease;
}
.po-shell .pb-card-slide.is-active { opacity: 1; }
.po-shell .pb-card-carousel-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 30px; height: 30px;
	border: none; border-radius: 50%;
	background: rgba(10, 27, 64, .5);
	color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .2s, background .2s;
	z-index: 4; backdrop-filter: blur(3px);
}
.po-shell .pb-card-carousel-arrow svg { width: 16px; height: 16px; }
.po-shell .pb-card-carousel-arrow:hover { background: rgba(10, 27, 64, .8); }
.po-shell .pb-card-visual:hover .pb-card-carousel-arrow { opacity: 1; }
.po-shell .pb-card-carousel-prev { inset-inline-start: 8px; }
.po-shell .pb-card-carousel-next { inset-inline-end: 8px; }
.po-shell .pb-card-carousel-dots {
	position: absolute; bottom: 8px; left: 0; right: 0;
	display: flex; gap: 5px; justify-content: center;
	z-index: 4;
}
.po-shell .pb-card-carousel-dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: rgba(255,255,255,.5);
	cursor: pointer; transition: background .2s, transform .2s;
}
.po-shell .pb-card-carousel-dot.is-active { background: #fff; transform: scale(1.3); }
@media (hover: none) { .po-shell .pb-card-carousel-arrow { opacity: .85; } }
