/* Building Map Picker – front end */
.bmp,
.bmp__modal {
	--bmp-available: #4caf50;
	--bmp-reserved: #ff9800;
	--bmp-sold: #f44336;
	--bmp-tip-bg: #333;
	--bmp-tip-ink: #fff;
	--bmp-ink: #1c1f23;
	--bmp-muted: #6a7078;
	--bmp-line: #e3e5e8;
	--bmp-soft: #f4f5f6;
	--bmp-surface: #fff;
	--bmp-radius: 4px;
	color: var(--bmp-ink);
	font-size: 16px;
	line-height: 1.45;
	box-sizing: border-box;
}
.bmp *, .bmp *::before, .bmp *::after,
.bmp__modal *, .bmp__modal *::before, .bmp__modal *::after { box-sizing: inherit; }
.bmp [hidden], .bmp__modal[hidden], .bmp__modal [hidden] { display: none !important; }

.bmp {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(300px, 29%, 560px);
	gap: 20px;
	align-items: start;
	width: 100%;
}

/* stage */
.bmp__stage { position: relative; background: var(--bmp-surface); border: 1px solid var(--bmp-line); border-radius: var(--bmp-radius); overflow: hidden; min-height: 200px; }
.bmp__canvas { display: flex; align-items: center; justify-content: center; }
.bmp__svg { display: block; width: 100%; height: auto; max-height: 86vh; }
.bmp[data-view="floor"] .bmp__canvas { padding: 64px 24px 24px; }

.bmp__shape { fill: var(--bmp-available); fill-opacity: 0; stroke: var(--bmp-available); stroke-opacity: 0; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; outline: none; transition: fill-opacity .15s, stroke-opacity .15s; }
.bmp__shape:hover, .bmp__shape.is-hot, .bmp__shape:focus-visible { fill-opacity: .5; stroke-opacity: .7; }
.bmp__shape.is-available, .bmp__shape.is-reserved, .bmp__shape.is-sold { fill-opacity: .19; stroke-opacity: .7; }
.bmp__shape.is-reserved { fill: var(--bmp-reserved); stroke: var(--bmp-reserved); }
.bmp__shape.is-sold { fill: var(--bmp-sold); stroke: var(--bmp-sold); }
.bmp__shape.is-available:hover, .bmp__shape.is-available.is-hot, .bmp__shape.is-available:focus-visible,
.bmp__shape.is-reserved:hover, .bmp__shape.is-reserved.is-hot, .bmp__shape.is-reserved:focus-visible,
.bmp__shape.is-sold:hover, .bmp__shape.is-sold.is-hot, .bmp__shape.is-sold:focus-visible { fill-opacity: .5; stroke-opacity: 1; }
.bmp__shape.is-dimmed { fill: #9aa0a6; stroke: #9aa0a6; fill-opacity: .18; stroke-opacity: .3; }

.bmp__tip { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: max-content; max-width: min(420px, calc(100% - 12px)); padding: 10px 12px; border-radius: 4px; background: var(--bmp-tip-bg); color: var(--bmp-tip-ink); font-size: 14px; line-height: 1.3; pointer-events: none; transform: translate(-50%, calc(-100% - 16px)); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); white-space: normal; }
.bmp__tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--bmp-tip-bg); }
.bmp__tip.is-below { transform: translate(-50%, 22px); }
.bmp__tip.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--bmp-tip-bg); }
.bmp__tip strong { font-size: 15px; }

/* buttons (reset whatever the theme does to <button>) */
.bmp__back, .bmp__btn, .bmp__tab, .bmp__item, .bmp__close, .bmp-projects__more {
	appearance: none; margin: 0; font: inherit; color: var(--bmp-ink); text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; min-height: 0; line-height: 1.3;
}
.bmp__bar { position: absolute; z-index: 2; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.bmp__bar > * { pointer-events: auto; }
.bmp__crumb { padding: 9px 14px; border-radius: var(--bmp-radius); background: rgba(255, 255, 255, .92); font-size: 14px; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmp__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 12px 16px; border-top: 1px solid var(--bmp-line); font-size: 13px; color: var(--bmp-muted); }
.bmp__legend-item { display: inline-flex; align-items: center; gap: 7px; }
.bmp__legend-item i { width: 14px; height: 14px; border-radius: 3px; background: var(--bmp-available); opacity: .75; }
.bmp__legend-item.is-reserved i { background: var(--bmp-reserved); }
.bmp__legend-item.is-sold i { background: var(--bmp-sold); }
.bmp__back { flex: none; padding: 10px 16px; border: 1px solid var(--bmp-line); border-radius: var(--bmp-radius); background: var(--bmp-surface); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.bmp__back:hover, .bmp__btn:hover { background: var(--bmp-soft); color: var(--bmp-ink); }
.bmp__btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid var(--bmp-line); border-radius: var(--bmp-radius); background: var(--bmp-surface); font-size: 14px; font-weight: 600; }
.bmp__btn--soft { background: var(--bmp-soft); border-color: var(--bmp-soft); text-transform: uppercase; font-size: 12px; }
.bmp__btn--main { gap: 8px; background: var(--bmp-soft); border-color: var(--bmp-soft); text-transform: uppercase; font-size: 13px; align-self: center; padding-inline: 22px; }
.bmp__btn--main:hover { background: #e6e8ea; }
.bmp__btn--wide { width: 100%; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.bmp :focus-visible, .bmp__modal :focus-visible { outline: 2px solid var(--bmp-ink); outline-offset: 2px; }

/* side */
.bmp__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-height: var(--bmp-stage-h, none); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b9bdc3 transparent; }
.bmp__side > * { flex: none; }
.bmp__side::-webkit-scrollbar { width: 8px; }
.bmp__side::-webkit-scrollbar-thumb { background: #b9bdc3; border-radius: 8px; }
.bmp__filter, .bmp__panel { background: var(--bmp-surface); border: 1px solid var(--bmp-line); border-radius: var(--bmp-radius); }
.bmp__filter { display: flex; flex-direction: column; gap: 14px; padding: 20px; margin: 0; }
.bmp__filter-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--bmp-line); }
.bmp__filter-head h3, .bmp__heading { margin: 0; padding: 0; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--bmp-ink); }
.bmp__label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; }
.bmp__range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bmp__filter select, .bmp__filter input { width: 100%; height: 42px; margin: 0; padding: 0 12px; border: 1px solid var(--bmp-line); border-radius: var(--bmp-radius); background-color: #fff; color: var(--bmp-ink); font: inherit; font-size: 14px; font-weight: 400; box-shadow: none; }
.bmp__filter input { text-align: center; }

.bmp__panel { padding: 0 20px 20px; }
.bmp[data-view="floor"] .bmp__panel { padding-top: 20px; }
.bmp__tabs { display: flex; flex-wrap: wrap; margin: 0 -20px 20px; background: var(--bmp-soft); border-bottom: 1px solid var(--bmp-line); }
.bmp__tab { padding: 14px 20px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-weight: 600; margin-bottom: -1px; }
.bmp__tab:hover { background: rgba(0, 0, 0, .04); color: var(--bmp-ink); }
.bmp__tab.is-active { background: var(--bmp-surface); border-bottom-color: var(--bmp-available); color: var(--bmp-available); }
.bmp__panel > .bmp__list:first-child, .bmp__panel > .bmp__empty:first-child { margin-top: 20px; }

.bmp__list { display: flex; flex-direction: column; border: 1px solid var(--bmp-line); border-radius: var(--bmp-radius); }
.bmp__list:empty { display: none; }
.bmp__item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 14px 16px; border: 0; border-left: 3px solid var(--bmp-available); border-radius: 0; background: var(--bmp-surface); text-align: left; }
.bmp__item + .bmp__item { border-top: 1px solid var(--bmp-line); }
.bmp__item:hover, .bmp__item.is-hot { background: #efefef; color: var(--bmp-ink); }
.bmp__item-title { font-size: 16px; font-weight: 400; }
.bmp__list--cards .bmp__item-title { font-size: 17px; font-weight: 600; }
.bmp__item.is-none { border-left-color: var(--bmp-sold); }
.bmp__list:not(.bmp__list--cards) .bmp__count { align-self: stretch; margin: 0 -6px; padding: 5px 6px; border-radius: 8px; }
.bmp__list:not(.bmp__list--cards) .bmp__item:hover .bmp__count, .bmp__list:not(.bmp__list--cards) .bmp__item.is-hot .bmp__count { background: var(--bmp-surface); }
.bmp__list--cards { gap: 10px; border: 0; }
.bmp__list--cards .bmp__item { border: 1px solid var(--bmp-line); border-left-width: 1px; border-radius: var(--bmp-radius); }
.bmp__list--cards .bmp__item + .bmp__item { border-top: 1px solid var(--bmp-line); }
.bmp__count { font-weight: 700; font-size: 15px; }
.bmp__count.is-available { color: var(--bmp-available); filter: brightness(.8); }
.bmp__count.is-sold { color: var(--bmp-sold); }
.bmp__fact { color: var(--bmp-muted); font-size: 14px; }
.bmp__pill { display: inline-block; padding: 4px 9px; border-radius: 3px; background: var(--bmp-available); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; }
.bmp__pill.is-reserved { background: var(--bmp-reserved); }
.bmp__pill.is-sold { background: var(--bmp-sold); }
.bmp__floorhead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bmp__floorhead-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.bmp__nav { appearance: none; flex: none; width: 40px; height: 40px; margin: 0; padding: 0 0 3px; border: 1px solid var(--bmp-line); border-radius: 50%; background: var(--bmp-surface); color: var(--bmp-ink); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: none; min-height: 0; }
.bmp__nav:hover { background: var(--bmp-soft); color: var(--bmp-ink); }
.bmp__nav[disabled] { opacity: .3; cursor: default; }
.bmp__desc { margin: 0 0 14px; color: var(--bmp-muted); font-size: 15px; }
.bmp__desc p { margin: 0 0 8px; }
.bmp__empty { margin: 0; padding: 24px 12px; color: var(--bmp-muted); text-align: center; }
.bmp-notice { padding: 12px 16px; border: 1px dashed #c9ccd1; color: #6a7078; }

/* details dialog */
html.bmp-locked { overflow: hidden; }
.bmp__modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; background: rgba(15, 17, 20, .65); overflow-y: auto; }
.bmp__dialog { position: relative; width: min(980px, 100%); padding: 28px; border-radius: 8px; background: var(--bmp-surface); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); outline: none; margin: auto; }
.bmp__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 28px; line-height: 1; }
.bmp__close:hover { background: var(--bmp-soft); color: var(--bmp-ink); }
.bmp__detail { display: grid; gap: 28px; }
.bmp__detail.has-media { grid-template-columns: fit-content(55%) minmax(0, 1fr); align-items: start; }
.bmp__detail-media { display: flex; align-items: center; justify-content: center; border: 1px solid var(--bmp-line); border-radius: var(--bmp-radius); background: #fff; overflow: hidden; }
.bmp__detail-media img, .bmp__cutout { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.bmp__detail-media { padding: 16px; min-width: 200px; }
.bmp__cutout { cursor: zoom-in; }
.bmp__detail.is-zoomed { grid-template-columns: minmax(0, 1fr); }
.bmp__detail.is-zoomed .bmp__cutout { width: 100% !important; max-height: none; cursor: zoom-out; }
.bmp__detail-media a { display: block; width: 100%; }
.bmp__cutout-line { fill: none; stroke: var(--bmp-available); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bmp__detail-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 28px; }
.bmp__detail-info h3 { margin: 0; padding: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--bmp-ink); }
.bmp__facts { display: grid; grid-template-columns: auto 1fr; gap: 0; width: 100%; margin: 0; }
.bmp__facts dt, .bmp__facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--bmp-line); font-size: 15px; }
.bmp__facts dt { padding-right: 24px; color: var(--bmp-muted); font-weight: 400; }
.bmp__facts dd { font-weight: 700; text-align: right; }
.bmp__enquiry { margin-top: 26px; padding: 20px; border: 1px solid var(--bmp-ink); border-radius: var(--bmp-radius); }
.bmp__enquiry h4 { margin: 0 0 14px; padding: 0; font-size: 18px; font-weight: 700; color: var(--bmp-ink); }

/* projects list */
.bmp-projects__grid { display: grid; grid-template-columns: repeat(var(--bmp-columns, 4), minmax(0, 1fr)); gap: 24px; }
.bmp-projects__card { display: flex; flex-direction: column; border: 1px solid #e3e5e8; border-radius: 4px; background: #fff; color: #1c1f23; text-decoration: none; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.bmp-projects__card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .12); transform: translateY(-2px); color: #1c1f23; }
.bmp-projects__image { display: block; aspect-ratio: 16 / 10; background: #f4f5f6; }
.bmp-projects__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bmp-projects__body { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.bmp-projects__title { font-size: 18px; }
.bmp-projects__meta { color: #6a7078; font-size: 14px; }
.bmp-projects__more { display: block; margin: 24px auto 0; padding: 12px 28px; border: 1px solid #1c1f23; border-radius: 4px; background: #1c1f23; color: #fff; font-weight: 600; }
.bmp-projects__more[disabled] { opacity: .6; }
.bmp-single, .bmp-archive { max-width: 1600px; margin: 0 auto; padding: 32px 16px; }
.bmp-single__title, .bmp-archive__title { margin: 0 0 20px; }
.bmp-single__content { margin-bottom: 24px; }
.bmp-archive .navigation { margin-top: 28px; }

@media (max-width: 1024px) {
	.bmp-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.bmp { grid-template-columns: minmax(0, 1fr); }
	.bmp__side { max-height: none; overflow: visible; }
	.bmp__crumb { display: none; }
	.bmp[data-view="floor"] .bmp__canvas { padding: 60px 8px 12px; }
	.bmp__detail.has-media { grid-template-columns: minmax(0, 1fr); }
	.bmp__dialog { padding: 20px 16px; }
	.bmp__detail-info { padding-right: 0; }
	.bmp__detail-info h3 { padding-right: 36px; }
	.bmp__tip { white-space: normal; }
}
@media (max-width: 560px) {
	.bmp-projects__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.bmp__shape, .bmp-projects__card { transition: none; }
}
