/* Singapore 3D New Launch Map (samtastic-core 1.21.308) */
.slm {
	--slm-ink: #0b1b2e;
	--slm-muted: #5b6b7e;
	--slm-line: #e2e8f0;
	--slm-accent: #1d8fd6;
	--slm-accent-ink: #0f6fb0;
	--slm-h: calc(100vh - 170px);
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	height: var(--slm-h);
	min-height: 540px;
	max-height: 980px;
	background: #e8eef2;
	overflow: hidden;
	font-family: inherit;
	color: var(--slm-ink);
	isolation: isolate;
}
.slm *, .slm *::before, .slm *::after { box-sizing: border-box; }
.slm [hidden] { display: none !important; }
.slm__map { position: absolute; inset: 0; }
.slm__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; font-weight: 600; color: var(--slm-muted); }
.slm__loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #cfd9e2; border-top-color: var(--slm-accent); animation: slmSpin 0.9s linear infinite; }
@keyframes slmSpin { to { transform: rotate(360deg); } }

/* Page: give the map the whole width and drop the page's own bottom gap. */
body.samtastic-launch-map-page .page-content, body.samtastic-launch-map-page .entry-content { overflow: visible; }
body.samtastic-launch-map-page .slm { margin-top: 0; }
body.samtastic-launch-map-page .page-head { padding: 22px 0 18px !important; }
body.samtastic-launch-map-page .page-head__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 4px 0 0; }
body.samtastic-launch-map-page .page-head .page-views { display: none; }
body.samtastic-launch-map-page .page-head + .section { padding: 0 !important; }
body.samtastic-launch-map-page .page-head + .section .prose > *:not(.slm) { max-width: 760px; margin-inline: auto; }
body.samtastic-launch-map-page .tg-prompt { display: none !important; }
body.samtastic-launch-map-page .site-footer { margin-top: 0; }

/* ---------- Side list ---------- */
.slm__side {
	position: absolute; z-index: 3; top: 16px; left: 16px; bottom: 16px; width: 316px;
	display: flex; flex-direction: column; background: rgba(255, 255, 255, .96);
	border: 1px solid var(--slm-line); border-radius: 18px; box-shadow: 0 20px 50px -24px rgba(11, 27, 46, .45);
	backdrop-filter: blur(10px); transition: transform .3s ease;
}
.slm__side.is-closed { transform: translateX(calc(-100% + 0px)); }
.slm__side-toggle {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--slm-line);
	background: none; font: 700 .95rem/1.2 inherit; color: var(--slm-ink); cursor: pointer; text-align: left; border-radius: 18px 18px 0 0;
}
.slm__side.is-closed .slm__side-toggle {
	position: absolute; left: 100%; top: 0; width: auto; margin-left: 10px; white-space: nowrap; border: 1px solid var(--slm-line);
	border-radius: 999px; background: #fff; box-shadow: 0 10px 24px -14px rgba(11, 27, 46, .5); padding: 10px 16px;
}
.slm__side-grip { width: 18px; height: 12px; flex-shrink: 0; background: linear-gradient(currentColor 0 0) top/100% 2px no-repeat, linear-gradient(currentColor 0 0) center/100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat; }
.slm__side-body { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 12px 12px 0; }
.slm__search input {
	width: 100%; padding: 11px 14px; border: 1px solid var(--slm-line); border-radius: 12px; font: inherit; font-size: .92rem; background: #f6f8fb;
}
.slm__search input:focus { outline: 2px solid var(--slm-accent); outline-offset: 1px; background: #fff; }
.slm__filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.slm__filters button {
	padding: 6px 11px; border-radius: 999px; border: 1px solid var(--slm-line); background: #fff; color: var(--slm-ink);
	font: 600 .78rem/1 inherit; cursor: pointer;
}
.slm__filters button.is-active { background: var(--slm-ink); border-color: var(--slm-ink); color: #fff; }
.slm__list { list-style: none; margin: 0 -12px; padding: 0 8px 12px; overflow-y: auto; flex: 1; min-height: 0; }
.slm__list li > a { display: block; padding: 8px; text-decoration: none; color: inherit; } /* no-JS fallback */
.slm__list li > a small { display: block; color: var(--slm-muted); }
.slm__list li button {
	display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px;
	background: none; text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.slm__list li button:hover { background: #f1f5f9; }
.slm__list li.is-selected button { background: #e6f3fc; }
.slm__list li.is-pending { opacity: .6; }
.slm__thumb { width: 52px; height: 42px; border-radius: 9px; background: #dfe7ee center/cover no-repeat; }
.slm__li-body { min-width: 0; display: flex; flex-direction: column; }
.slm__li-body strong { font-size: .9rem; line-height: 1.25; }
.slm__li-body small { font-size: .76rem; color: var(--slm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slm__li-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.slm__li-tags em { font-style: normal; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 999px; background: #eef2f6; color: var(--slm-muted); white-space: nowrap; }
.slm__li-tags b { font-size: .64rem; padding: 3px 7px; border-radius: 999px; background: var(--slm-ink); color: #fff; }
.slm__empty { padding: 16px; color: var(--slm-muted); font-size: .9rem; }

/* Status colours (list tags, banners, card) */
.is-selling, .is-launching { --slm-status: #0e9f6e; }
.is-preview { --slm-status: #d98a00; }
.is-upcoming { --slm-status: #1d8fd6; }
.is-top_soon { --slm-status: #7c5cc4; }
.is-fully_sold { --slm-status: #8a97a6; }
.slm__li-tags em[class*="is-"] { background: color-mix(in srgb, var(--slm-status, #8a97a6) 14%, #fff); color: var(--slm-status, #5b6b7e); }

/* ---------- Tools, legend, basemaps ---------- */
.slm__tools {
	position: absolute; z-index: 3; top: 16px; left: 50%; transform: translateX(-50%);
	display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 10px 30px -16px rgba(11, 27, 46, .5); border: 1px solid var(--slm-line);
}
.slm__tools button, .slm__basemaps button {
	padding: 8px 14px; border: 0; border-radius: 999px; background: none; font: 700 .82rem/1 inherit; color: var(--slm-ink); cursor: pointer;
}
.slm__tools button:hover, .slm__basemaps button:hover { background: #f1f5f9; }
.slm__tools button.is-active, .slm__basemaps button.is-active { background: var(--slm-ink); color: #fff; }
.slm__basemaps { display: flex; gap: 2px; margin-left: 4px; padding-left: 6px; border-left: 1px solid var(--slm-line); }
.slm__basemaps button { padding: 6px 10px; font-size: .74rem; }
.slm__legend {
	position: absolute; z-index: 2; left: 348px; bottom: 70px; display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px; max-width: 420px;
	border-radius: 12px; background: rgba(255, 255, 255, .94); border: 1px solid var(--slm-line); font-size: .76rem; font-weight: 600;
}
.slm__legend span { display: inline-flex; align-items: center; gap: 6px; }
.slm__legend i { width: 12px; height: 12px; border-radius: 3px; }
.slm__side.is-closed ~ .slm__legend { left: 16px; }

/* ---------- Project card ---------- */
.slm__card {
	position: absolute; z-index: 4; top: 16px; right: 62px; width: 310px; overflow: hidden;
	background: #fff; border-radius: 18px; border: 1px solid var(--slm-line); box-shadow: 0 24px 60px -24px rgba(11, 27, 46, .55);
	animation: slmIn .3s ease backwards;
}
@keyframes slmIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.slm__card-close {
	position: absolute; top: 10px; right: 10px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, .92); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--slm-ink);
}
.slm__card-img { position: relative; aspect-ratio: 16 / 9; background: #dfe7ee center/cover no-repeat; }
.slm__card-status {
	position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: var(--slm-status, var(--slm-ink)); color: #fff;
	font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.slm__card-body { padding: 16px 18px 18px; }
.slm__card-meta { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slm-accent-ink); }
.slm__card h3 { margin: 4px 0 6px; font-size: 1.3rem; line-height: 1.15; }
.slm__card-count { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px; background: #e6f3fc; color: var(--slm-accent-ink); font-size: .78rem; font-weight: 700; }
.slm__card dl { display: flex; gap: 18px; margin: 4px 0 14px; padding-top: 10px; border-top: 1px solid var(--slm-line); }
.slm__card dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slm-muted); }
.slm__card dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; }
.slm__card-pending { color: var(--slm-muted); font-size: .88rem; }
.slm__card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.slm__btn {
	display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--slm-line);
	font-weight: 700; font-size: .86rem; text-decoration: none; color: var(--slm-ink) !important; background: #fff; flex: 1; white-space: nowrap;
}
.slm__btn--primary { background: var(--slm-accent); border-color: var(--slm-accent); color: #fff !important; }
.slm__btn:hover { filter: brightness(.96); }

/* ---------- Banners (map markers) ---------- */
.slm-banner { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.slm-banner__card {
	pointer-events: auto; position: relative; display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 6px 12px 6px 6px;
	border: 0; border-radius: 14px; background: #fff; color: var(--slm-ink); cursor: pointer; text-align: left; font: inherit;
	box-shadow: 0 10px 26px -10px rgba(11, 27, 46, .55), 0 0 0 1px rgba(11, 27, 46, .06);
	transition: transform .18s ease, box-shadow .18s ease;
	border-top: 4px solid var(--slm-status, var(--slm-accent));
}
.slm-banner__card:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 32px -12px rgba(11, 27, 46, .6); }
.slm-banner__img { width: 54px; height: 44px; flex-shrink: 0; border-radius: 9px; background: #dfe7ee center/cover no-repeat; }
.slm-banner__body { display: flex; flex-direction: column; min-width: 0; }
.slm-banner__name { font-weight: 800; font-size: .88rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.slm-banner__meta { font-size: .72rem; color: var(--slm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.slm-banner__status {
	position: absolute; top: -12px; left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--slm-status, var(--slm-accent)); color: #fff;
	font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.slm-banner__3d {
	position: absolute; top: -12px; right: 10px; padding: 2px 7px; border-radius: 999px; background: var(--slm-ink); color: #fff; font-size: .6rem; font-weight: 800;
}
.slm-banner__stem { width: 2px; height: 16px; background: linear-gradient(var(--slm-status, var(--slm-accent)), rgba(11, 27, 46, .25)); }
.slm-banner__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--slm-status, var(--slm-accent)); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.slm-banner.is-selected { z-index: 5; }
.slm-banner.is-selected .slm-banner__card { transform: scale(1.06); box-shadow: 0 0 0 3px var(--slm-status, var(--slm-accent)), 0 18px 36px -12px rgba(11, 27, 46, .6); }
.slm-banner.is-dimmed .slm-banner__card { opacity: .82; }
.slm-banner.is-filtered { display: none; }
.slm-banner:hover { z-index: 6; }

/* Zoomed out: banners shrink to name pills, then to dots. */
.slm--compact .slm-banner__img, .slm--compact .slm-banner__meta, .slm--compact .slm-banner__status, .slm--compact .slm-banner__3d { display: none; }
.slm--compact .slm-banner__card { padding: 5px 10px; border-radius: 999px; border-top: 0; border-left: 4px solid var(--slm-status, var(--slm-accent)); }
.slm--compact .slm-banner__name { font-size: .76rem; max-width: 150px; }
.slm--compact.slm--tiny .slm-banner:not(:hover):not(.is-selected) .slm-banner__card { display: none; }
.slm--compact.slm--tiny .slm-banner__stem { height: 0 !important; }

/* Tower tooltip */
.slm-tip .maplibregl-popup-content { padding: 6px 10px; border-radius: 10px; font-size: .78rem; font-weight: 600; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }

.slm__note {
	position: absolute; z-index: 2; left: 50%; bottom: 8px; transform: translateX(-50%); margin: 0; max-width: min(620px, calc(100% - 360px));
	padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .85); font-size: .66rem; line-height: 1.35; color: var(--slm-muted); text-align: center;
}
.slm .maplibregl-ctrl-top-right { top: 6px; }
.slm .maplibregl-ctrl-group { border-radius: 12px; overflow: hidden; }

/* ---------- Phones: list becomes a bottom sheet ---------- */
@media (max-width: 759px) {
	/* Map fills the screen between the site header and the app bar. */
	body.samtastic-launch-map-page .page-head { display: none; }
	body.samtastic-launch-map-page .float-stack { display: none; }
	.slm { --slm-h: calc(100svh - 72px - 64px); min-height: 460px; }
	.slm__side { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 62%; border-radius: 18px; }
	.slm__side.is-closed { transform: translateY(calc(100% - 48px)); }
	.slm__side.is-closed .slm__side-toggle { position: static; margin: 0; border: 0; border-bottom: 1px solid var(--slm-line); border-radius: 18px 18px 0 0; box-shadow: none; width: 100%; background: none; }
	.slm__side-toggle { justify-content: center; }
	.slm__tools { top: 10px; left: 10px; transform: none; }
	.slm__tools button { padding: 7px 10px; font-size: .76rem; }
	.slm__basemaps { display: none; }
	.slm .maplibregl-ctrl-top-right { top: 0; }
	.slm__card { top: auto; bottom: 58px; left: 8px; right: 8px; width: auto; }
	.slm__card.has-img { display: grid; grid-template-columns: 110px 1fr; }
	.slm__card-img { aspect-ratio: auto; min-height: 100%; }
	.slm__card-body { padding: 12px 14px; }
	.slm__card h3 { font-size: 1.05rem; padding-right: 24px; }
	.slm__card dl { display: none; }
	.slm__card-actions .slm__btn { padding: 8px 10px; font-size: .78rem; }
	.slm__legend { display: none !important; }
	.slm__note { display: none; }
	.slm-banner__name { max-width: 120px; }
	.slm-banner__img { width: 40px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	.slm__side, .slm-banner__card { transition: none; }
	.slm__card { animation: none; }
}

/* ==========================================================================
   1.21.309: project mode (units, sun, drone), compass, budget calculator
   ========================================================================== */

/* Card: project tools + unit detail */
.slm__card { max-height: calc(100% - 32px); overflow-y: auto; }
.slm__hint { margin: 0 0 8px; font-size: .8rem; color: var(--slm-muted); }
.slm__tools-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.slm__chip {
	padding: 8px 12px; border-radius: 999px; border: 1px solid var(--slm-line); background: #fff; color: var(--slm-ink);
	font: 700 .8rem/1 inherit; cursor: pointer; white-space: nowrap;
}
.slm__chip:hover { border-color: var(--slm-ink); }
.slm__chip.is-active { background: var(--slm-ink); border-color: var(--slm-ink); color: #fff; }
.slm__btn--wide { display: flex; width: 100%; margin-top: 10px; }
.slm__card.is-unit .slm__card-img, .slm__card.is-unit .slm__card-meta, .slm__card.is-unit h3, .slm__card.is-unit dl,
.slm__card.is-unit .slm__card-count, .slm__card.is-unit .slm__card-actions, .slm__card.is-unit [data-role="card-budget"] { display: none; }
.slm__unit-back { padding: 0; margin: 0 0 8px; border: 0; background: none; color: var(--slm-accent-ink); font: 700 .8rem/1.2 inherit; cursor: pointer; text-align: left; }
.slm__unit h4 { margin: 0; font-size: 1.2rem; }
.slm__unit-sub { margin: 4px 0 10px; font-size: .85rem; color: var(--slm-muted); }
.slm__unit-floors { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; font-size: .8rem; font-weight: 700; }
.slm__unit-floors button { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--slm-line); background: #fff; font: 700 .75rem/1 inherit; cursor: pointer; color: var(--slm-ink); }
.slm__unit-floors button:disabled { opacity: .35; cursor: default; }
.slm__unit-grid { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; }
.slm__unit-face { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; text-align: center; }
.slm__unit-compass { width: 88px; height: 88px; }
.slm__unit-plan { border: 1px solid var(--slm-line); border-radius: 12px; overflow: hidden; background: #fff; min-height: 88px; display: grid; place-items: center; }
.slm__unit-plan img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.slm__unit-plan span { padding: 10px; font-size: .78rem; color: var(--slm-muted); }
.slm__unit-sun { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff7e6; font-size: .82rem; line-height: 1.45; }
.slm__unit-sun small { display: block; margin-top: 4px; color: var(--slm-muted); font-size: .7rem; }
.slm__unit-price { margin: 8px 0 0; font-size: .78rem; color: var(--slm-muted); }

/* Facility markers on the site plan (shown when zoomed in) */
.slm-fac {
	display: none; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; border: 1.5px solid #fff; background: #c0392b; color: #fff;
	font: 800 .6rem/15px system-ui, sans-serif; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.slm--close.slm--fac .slm-fac { display: block; }
.slm--sun .slm__legend { display: none !important; }
.slm--drone .slm-fac, .slm--drone .slm-banner { opacity: 0; pointer-events: none; }

/* Compass (bottom-left of the map) */
.slm__compass {
	position: absolute; z-index: 2; left: 348px; bottom: 120px; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%;
	background: none; cursor: pointer; filter: drop-shadow(0 6px 12px rgba(11, 27, 46, .25));
}
.slm__compass svg { width: 100%; height: 100%; }
.slm--side-closed .slm__compass, .slm--side-closed .slm__legend { left: 16px; }

/* Sun dock */
.slm__sun {
	position: absolute; z-index: 4; left: 50%; bottom: 58px; transform: translateX(-50%); width: min(560px, calc(100% - 700px));
	min-width: 360px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .97); border: 1px solid var(--slm-line);
	box-shadow: 0 20px 44px -22px rgba(11, 27, 46, .55);
}
.slm__sun-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-right: 26px; position: relative; }
.slm__sun-top strong { font-size: .92rem; }
.slm__sun-top span { font-size: .78rem; color: var(--slm-muted); }
.slm__sun-close { position: absolute; right: -4px; top: -4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f1f5f9; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.slm__sun-dates { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.slm__sun-dates button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--slm-line); background: #fff; font: 700 .74rem/1 inherit; cursor: pointer; color: var(--slm-ink); }
.slm__sun-dates button.is-active { background: #ffb000; border-color: #ffb000; color: #2b1a00; }
.slm__sun-time { display: flex; align-items: center; gap: 10px; }
.slm__sun-time button { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--slm-ink); color: #fff; cursor: pointer; font-size: .85rem; }
.slm__sun-time input { flex: 1; accent-color: #ffb000; }
.slm__sun-time span { min-width: 64px; text-align: right; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.slm__sun-note { margin: 6px 0 0; font-size: .68rem; color: var(--slm-muted); }
.slm-sunlbl { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .9); font: 800 .7rem/1.2 system-ui, sans-serif; color: var(--slm-ink); pointer-events: none; }
.slm-sunlbl--n { color: #d64545; }
.slm-sunlbl--time { background: #ffb000; color: #2b1a00; font-weight: 700; white-space: nowrap; }
.slm-sunmark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #fff6c2 0 30%, #ffc233 32% 60%, rgba(255, 176, 0, .25) 62%); pointer-events: none; }

/* Drone HUD */
.slm__drone {
	position: absolute; z-index: 5; left: 50%; top: 64px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
	padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(11, 27, 46, .86); color: #fff; font-size: .84rem; font-weight: 700;
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); white-space: nowrap;
}
.slm__drone-rec { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; animation: slmRec 1s infinite; }
@keyframes slmRec { 50% { opacity: .25; } }
.slm__drone-bar { width: 110px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.slm__drone-bar i { display: block; height: 100%; width: 0; background: #7fd6ff; }
.slm__drone button { padding: 6px 12px; border-radius: 999px; border: 0; background: #fff; color: var(--slm-ink); font: 800 .76rem/1 inherit; cursor: pointer; }
.slm--drone .slm__side, .slm--drone .slm__card, .slm--drone .slm__sun { opacity: .3; transition: opacity .4s; }
.slm--drone .slm__side:hover, .slm--drone .slm__card:hover { opacity: 1; }
.slm--drone .slm__legend, .slm--drone .slm__note { opacity: 0; pointer-events: none; }

/* Budget */
.slm__tools .slm__budget-btn.is-active { background: #0e9f6e; color: #fff; }
.slm__budget {
	position: absolute; z-index: 6; top: 64px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); max-height: calc(100% - 80px);
	overflow-y: auto; padding: 16px 18px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--slm-line);
	box-shadow: 0 30px 70px -26px rgba(11, 27, 46, .6); animation: slmIn .25s ease backwards;
}
.slm__budget-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.slm__budget-head strong { display: block; font-size: 1.1rem; }
.slm__budget-head small { color: var(--slm-muted); font-size: .8rem; }
.slm__budget .slm__card-close { position: static; background: #f1f5f9; flex-shrink: 0; }
.slm__bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 12px; }
.slm__bf { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; font-weight: 700; color: var(--slm-muted); }
.slm__bf input, .slm__bf select {
	width: 100%; padding: 9px 11px; border: 1px solid var(--slm-line); border-radius: 10px; background: #f8fafc;
	font: 600 .92rem/1.2 inherit; color: var(--slm-ink);
}
.slm__bf input:focus, .slm__bf select:focus { outline: 2px solid var(--slm-accent); outline-offset: 0; background: #fff; }
.slm__bf small { font-weight: 500; font-size: .68rem; }
.slm__budget-out { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--slm-line); }
.slm__budget-big { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #e7f7f0, #eef6fd); }
.slm__budget-big small { font-size: .78rem; color: var(--slm-muted); font-weight: 700; }
.slm__budget-big strong { font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; }
.slm__budget-big span { font-size: .82rem; font-weight: 700; color: #0e7a55; }
.slm__budget-limit { margin: 8px 0; font-size: .8rem; color: var(--slm-muted); }
.slm__budget-dl { margin: 0 0 12px; }
.slm__budget-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--slm-line); font-size: .84rem; }
.slm__budget-dl dt { color: var(--slm-muted); }
.slm__budget-dl dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.slm__budget-dl .is-total { border-bottom: 0; font-size: .92rem; }
.slm__budget-dl .is-total dt { color: var(--slm-ink); font-weight: 700; }
.slm__row { display: flex; gap: 8px; flex-wrap: wrap; }
.slm__budget-note { margin: 10px 0 0; font-size: .7rem; line-height: 1.45; color: var(--slm-muted); }
.slm__fit { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; font-size: .8rem; font-weight: 600; line-height: 1.4; }
.slm__fit.is-yes { background: #e7f7f0; color: #0b6b4a; }
.slm__fit.is-no { background: #fdf0ec; color: #9a3b1d; }
.slm-banner.is-in-budget .slm-banner__card { box-shadow: 0 0 0 2px #0e9f6e, 0 10px 26px -10px rgba(11, 27, 46, .55); }
.slm-banner.is-in-budget .slm-banner__name::before { content: "✓ "; color: #0e9f6e; }
.slm-banner.is-over-budget { opacity: .45; }
.slm-banner.is-over-budget:hover { opacity: 1; }
.slm__list li.is-in-budget .slm__li-body strong::after { content: " ✓"; color: #0e9f6e; }
.slm__list li.is-over-budget { opacity: .55; }

@media (max-width: 1100px) {
	.slm__sun { width: calc(100% - 32px); min-width: 0; left: 16px; transform: none; }
}
@media (max-width: 759px) {
	.slm__compass { left: auto; right: 10px; bottom: auto; top: 150px; width: 46px; height: 46px; }
	.slm__sun { top: 54px; bottom: auto; left: 8px; right: 8px; width: auto; padding: 10px 12px; }
	.slm__sun-note { display: none; }
	.slm__drone { top: 54px; font-size: .74rem; }
	.slm__drone-bar { width: 60px; }
	.slm__budget { top: 8px; max-height: calc(100% - 16px); }
	.slm__bgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.slm__card { max-height: 55%; }
	.slm__card.is-unit { display: block; }
	.slm__unit-grid { grid-template-columns: 72px 1fr; }
	.slm__unit-compass { width: 68px; height: 68px; }
	.slm__unit-plan img { max-height: 150px; }
}

/* In project mode the project's own banner steps aside so the towers and units are clear. */
.slm--project .slm-banner.is-selected, .slm--project .slm-banner.is-selected .slm-banner__card { opacity: 0; pointer-events: none; }

/* 1.21.310: "Align on map" (editors only) */
.slm__btn--align { flex-basis: 100%; border-style: dashed; color: var(--slm-accent-ink) !important; }
.slm__align {
	position: absolute; z-index: 6; top: 16px; right: 62px; width: 360px; max-height: calc(100% - 32px); overflow-y: auto;
	padding: 14px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--slm-accent); box-shadow: 0 24px 60px -24px rgba(11, 27, 46, .6);
}
.slm__align-top strong { display: block; font-size: 1rem; }
.slm__align-top span { font-size: .78rem; color: var(--slm-muted); }
.slm__align-grid { display: grid; grid-template-columns: 132px 1fr; font-size: .9em; gap: 14px; margin: 12px 0 8px; align-items: center; }
.slm__align-pad { display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 40px); gap: 4px; }
.slm__align-pad button { border: 1px solid var(--slm-line); border-radius: 10px; background: #f6f9fc; font-size: 1rem; cursor: pointer; color: var(--slm-ink); }
.slm__align-pad button:hover { background: var(--slm-ink); color: #fff; }
.slm__align-pad [data-mv="0,1"] { grid-column: 2; grid-row: 1; }
.slm__align-pad [data-mv="-1,0"] { grid-column: 1; grid-row: 2; }
.slm__align-pad [data-mv="1,0"] { grid-column: 3; grid-row: 2; }
.slm__align-pad [data-mv="0,-1"] { grid-column: 2; grid-row: 3; }
.slm__align-col { display: flex; flex-direction: column; gap: 8px; font-size: .8rem; font-weight: 700; }
.slm__align-col select { margin-left: 6px; padding: 4px 6px; border: 1px solid var(--slm-line); border-radius: 8px; font: inherit; }
.slm__align-row { display: flex; gap: 6px; align-items: center; }
.slm__align-row button { flex: 1; padding: 7px 8px; border: 1px solid var(--slm-line); border-radius: 10px; background: #fff; font: 700 .78rem/1 inherit; cursor: pointer; color: var(--slm-ink); }
.slm__align-row button:hover { border-color: var(--slm-ink); }
.slm__align-op { display: flex; align-items: center; gap: 8px; }
.slm__align-op input { flex: 1; }
.slm__align-read { margin: 4px 0; font-size: .8rem; font-weight: 700; color: var(--slm-accent-ink); }
.slm__align-tip { margin: 0 0 10px; font-size: .7rem; color: var(--slm-muted); }
.slm__align-status { margin: 8px 0 0; font-size: .8rem; font-weight: 700; }
.slm--aligning .slm-banner, .slm--aligning .slm__card, .slm--aligning .slm__sun, .slm--aligning .slm__legend, .slm--aligning .slm__note, .slm--aligning .slm-fac { display: none !important; }
.slm--aligning .slm__map { cursor: move; }
@media (max-width: 759px) {
	.slm__align { top: auto; bottom: 8px; left: 8px; right: 8px; width: auto; max-height: 48%; padding: 10px 12px; }
	.slm__align-grid { grid-template-columns: 1fr; }
	.slm__align-pad { justify-content: center; }
	.slm__align-tip { display: none; }
}
