/* Big Boss Township pages: layout viewer, plot sheet, phase cards, 360 viewer. Mobile first. */
.bb h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 600; margin-bottom: 14px; }
.bb h1 small { display: block; font: 500 15px/1.4 var(--font-ui, var(--font-body)); color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.bb h2 { font-size: clamp(24px, 3vw, 34px); }
.badge.live { color: var(--success); border-color: rgba(52,211,153,.35); background: var(--success-soft); }
.badge.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.bb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.bb-stats .st { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 8px; text-align: center; }
.bb-stats b { display: block; font: 700 clamp(22px, 4vw, 32px)/1.1 var(--font-ui, var(--font-body)); color: var(--ink); font-variant-numeric: tabular-nums; }
.bb-stats span { font-size: 12px; color: var(--muted); }
.bb-stats .av b { color: var(--red); }

/* status palette (works on the navy UI and over satellite tiles) */
.bb { --pl-av: #22A55B; --pl-bk: #60A5FA; --pl-hd: #F97316; --pl-sd: #64748B; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; margin: 12px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend i.av { background: var(--pl-av); } .legend i.bk { background: var(--pl-bk); } .legend i.hd { background: var(--pl-hd); } .legend i.sd { background: var(--pl-sd); }
.legend i.pn { border: 2px dashed #fff; }
.bb-match { margin-left: auto; }

.bb-viewer { padding: 16px; }
@media (min-width: 768px) { .bb-viewer { padding: 28px; } }
.bb-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bb-tools .seg button { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 6px 14px; border: 0; background: transparent; color: var(--text); border-radius: 999px; font: 600 14px/1 var(--font-ui, var(--font-body)); cursor: pointer; }
.bb-tools .seg button.on { background: var(--red); color: var(--on-red); }
.fcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: var(--on-red); font-size: 12px; }
.bb-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.bb-filters .chip { grid-column: 1 / -1; margin-bottom: 12px; }
.bb-filters .field { margin-bottom: 10px; }
@media (min-width: 900px) { .bb-filters { grid-template-columns: repeat(5, 1fr) auto; align-items: end; } .bb-filters .chip { grid-column: 1 / -1; } }

.bb-stage { position: relative; background: var(--surface-2); border-radius: 18px; overflow: hidden; }
.bb-svg { width: auto; max-width: 100%; margin: 0 auto; background: #F7F8FA; height: min(72vh, 760px); min-height: 420px; touch-action: none; cursor: grab; user-select: none; display: block; }
.bb-svg:active { cursor: grabbing; }
.bb-svg .pl { stroke: #0A1830; stroke-width: 1.2; fill-opacity: .96; transition: fill-opacity .15s; cursor: pointer; }
.bb-svg .pl.available { fill: var(--pl-av); }
.bb-svg .pl.booked { fill: var(--pl-bk); cursor: default; }
.bb-svg .pl.hold { fill: var(--pl-hd); cursor: default; }
.bb-svg .pl.sold { fill: var(--pl-sd); cursor: default; }
.bb-svg .pl.has-pano { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 6 4; }
.bb-svg .pl.dim { fill: #CBD5E1; fill-opacity: .92; stroke: #94A3B8; }
.bb-svg .pl.available:hover, .bb-svg .pl:focus { fill-opacity: 1; stroke: #0A1830; stroke-width: 2.5; outline: none; }
.bb-svg .pl.flash { animation: flash .6s 4; }
@keyframes flash { 50% { fill: #fff; } }
.bb-me circle:first-child { fill: rgba(37,99,235,.25); stroke: #2563EB; stroke-width: 2; }
.bb-me circle:last-child { fill: #2563EB; stroke: #fff; stroke-width: 2; }
.bb-zoom { position: absolute; right: 10px; top: 10px; z-index: 2; display: grid; gap: 6px; }
.bb-zoom .icon-btn { background: #fff; color: #0A1830; border-color: #D5D9E0; width: 40px; height: 40px; }
.bb-hint { position: absolute; left: 12px; bottom: 8px; margin: 0; font-size: 12px; color: #475569; background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 999px; }
.bb-locate-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--info-soft); color: var(--ink); border: 1px solid rgba(96,165,250,.35); }
.bb-sat #bbMap { height: min(72vh, 760px); min-height: 420px; border-radius: 18px; }
.bb-sat .pl { fill-opacity: .55; stroke: #fff; }
.bb-sat .pl.available { fill: var(--pl-av); } .bb-sat .pl.booked { fill: var(--pl-bk); } .bb-sat .pl.hold { fill: var(--pl-hd); } .bb-sat .pl.sold { fill: var(--pl-sd); }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); max-height: 70vh; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th { position: sticky; top: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; font-weight: 600; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--red-soft); }
.tbl tr:not(.available) { opacity: .55; }
.st-available { color: var(--red); font-weight: 600; } .st-booked { color: var(--pl-bk); } .st-hold { color: var(--pl-hd); } .st-sold { color: var(--muted); }
.badge.st-available { background: var(--red-soft); color: var(--red); } .badge.st-booked { color: var(--pl-bk); } .badge.st-hold { color: var(--pl-hd); }
.badge.pano { font-size: 10px; padding: 1px 6px; }

/* bottom sheet on phones, side card on desktop */
.bb-sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.bb-sheet .shade { position: absolute; inset: 0; background: rgba(3,8,18,.55); opacity: 0; transition: opacity .2s; }
.bb-sheet .card { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s; max-height: 88vh; overflow-y: auto; }
.bb-sheet.open { visibility: visible; } .bb-sheet.open .shade { opacity: 1; } .bb-sheet.open .card { transform: none; }
.bb-sheet .x { position: absolute; right: 14px; top: 14px; }
.bb-sheet h3 { font-size: 30px; margin: 10px 0 14px; }
@media (min-width: 900px) { .bb-sheet .card { left: auto; right: 24px; bottom: 24px; width: 380px; border-radius: 24px; } }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.kv div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font: 600 17px/1.3 var(--font-ui, var(--font-body)); color: var(--ink); }
.kv dd.big { color: var(--red); }
.kv dd small { display: block; font: 400 11px/1.3 var(--font-body); color: var(--muted); }
.btn-col { display: grid; gap: 8px; }

.grid2 { display: grid; gap: 20px; }
@media (min-width: 960px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.near, .amen { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.near li, .amen li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
.near li span { flex: 1; } .near li b { color: var(--red); font-size: 14px; }
.amen { grid-template-columns: 1fr; } @media (min-width: 600px) { .amen { grid-template-columns: 1fr 1fr; } }
.amen li svg, .near li svg { color: var(--red); }
.map-embed { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 12px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.sec-h { margin: 8px 4px 14px; }

.bb-cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .bb-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.bb-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 24px; background: var(--bg); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.bb-card:hover { border-color: var(--red); transform: translateY(-2px); }
.bb-card h3 { font-size: 26px; margin: 0; }
.bb-card .meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bb-card .meter i { display: block; height: 100%; background: var(--red-deep); }
.bb-card .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.bb-card .row b { color: var(--ink); }

/* 360 viewer */
.pano-box { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .pano-box { aspect-ratio: 4 / 5; } }
.pano-box .pnlm-container { width: 100%; height: 100%; }
.pano-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; }
.pano-thumbs button { flex: none; width: 120px; border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; background: none; cursor: pointer; }
.pano-thumbs button.on { border-color: var(--red); }
.tours { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tour { display: block; border-radius: 18px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.tour img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }
.tour div { padding: 12px 14px; }
.tour b { color: var(--ink); }

/* Elite home */
.el-hero .hero-right img { border-radius: 24px; width: 100%; object-fit: cover; }
.founder-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .founder-grid { grid-template-columns: .8fr 1.2fr; } }
.founder-ph img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--border-strong); background: var(--surface); }
.founder h2 { font-size: clamp(32px, 4vw, 48px); }
.area-tile span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }

/* Home: phases as a left-right swipe rail */
.bb-cards.rail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 4px 2px 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.bb-cards.rail::-webkit-scrollbar { display: none; }
.bb-cards.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .bb-cards.rail { grid-auto-columns: calc(50% - 7px); } }
@media (min-width: 1024px) { .bb-cards.rail { grid-auto-columns: calc(33.333% - 10px); } }
.rail-head { display: flex; align-items: center; gap: 14px; }
.rail-head .arrows { display: flex; gap: 8px; flex: none; }
@media (min-width: 1024px) { .rail-head .arrows { display: none; } }
.bb-card { box-shadow: var(--shadow); }
.bb-card h3 { font-size: 28px; }

/* Developer's plot numbers and measurements, drawn above the coloured plots */
.bb-labels { pointer-events: none; }
.bb-labels text { font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-weight: 700; fill: #0B1B36; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 1.6px; stroke-linejoin: round; white-space: pre; }
.bb-labels text.n { fill: #061028; stroke-width: 2.4px; }
.bb-labels text.d { font-weight: 600; fill: #1E293B; stroke-width: 1.2px; }
.bb-labels text.o { fill: #334155; font-weight: 600; }
.bb-svg .pl { fill-opacity: .82; }
/* mobile: let the plan take its own aspect ratio so there is no empty band above/below */
@media (max-width: 700px) { .bb-svg { width: 100%; height: auto; min-height: 0; max-height: 82vh; } }
