/* tower-explorer.css – interactive tower (pick a tower, a floor, then a unit).
   Shared by the landing page and the Resident Portal's Towers page. Each page maps
   its own design tokens onto the --tx-* variables below, so it blends into both. */
.tx-sec{
  --tx-tower:#1A1C22;--tx-cell:#2E3139;--tx-open:#FFC23D;--tx-dim:#5A5040;--tx-home:#3FCF7A;--tx-ground:rgba(255,255,255,.05)}
[data-theme="light"] .tx-sec{--tx-tower:#2A2520;--tx-cell:#4A433B;--tx-dim:#9A8A70;--tx-ground:rgba(26,20,13,.05)}

.tx-pick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:28px}
.tx-card{display:flex;flex-direction:column;gap:12px;padding:22px;border-radius:22px;color:var(--tx-ink);text-align:left;font:inherit;cursor:pointer;transition:border-color .15s,transform .15s}
.tx-card:hover{border-color:rgba(var(--brand-rgb, 255,138,0),.55)!important;transform:translateY(-2px)}
.tx-card[aria-pressed="true"]{border-color:var(--tx-accent)!important;box-shadow:0 0 0 2px var(--tx-accent),0 20px 50px rgba(0,0,0,.35)}
.tx-top{display:flex;align-items:center;gap:14px}
.tx-top strong{display:block;font-size:20px;font-weight:800;line-height:1.15}
.tx-letter{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:22px;font-weight:800;color:var(--tx-on-accent);flex:none}
.tx-rent{background:#FFC23D}.tx-sale{background:var(--tx-accent)}
.tx-mode{display:inline-block;margin-top:4px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(var(--brand-rgb, 255,138,0),.16);color:var(--tx-accent2)}
.tx-you{display:inline-block;margin-left:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(63,207,122,.16);color:var(--tx-home)}
.tx-meta{font-size:14px;color:var(--tx-muted)}
.tx-bar{height:6px;border-radius:6px;background:var(--tx-line2);overflow:hidden}.tx-bar i{display:block;height:100%;background:linear-gradient(90deg,#FFC23D,var(--tx-accent))}
.tx-open{font-size:15px;color:var(--tx-ink2)}.tx-open b{color:var(--tx-accent2);font-weight:800}

/* tower and unit list side by side, about half each – the tower drawing stretches to fill its card
   (tower-explorer.js matches the drawing to the card's shape, so wide towers like D get bigger windows) */
.tx-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,3vw,40px);align-items:start}
.tx-col{position:sticky;top:var(--tx-sticky,120px)}
.tx-wrap{display:flex;gap:12px;align-items:stretch;justify-content:center;height:min(72vh,680px);min-height:420px;padding:20px 14px;border-radius:22px;background:var(--tx-ground);border:1px solid var(--tx-line)}
#tx-tower{flex:1 1 auto;height:100%;width:100%;min-width:0;touch-action:manipulation;font-family:inherit}
#tx-tower .tx-cell{transition:fill .15s}
#tx-tower .tx-hit{fill:transparent;cursor:pointer}
.tx-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px;font-size:13px;color:var(--tx-muted)}
.tx-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}

#tx-floor{-webkit-appearance:none;appearance:none;writing-mode:vertical-lr;direction:rtl;width:30px;height:100%;margin:0;padding:0;border:0;background:transparent;cursor:pointer;box-shadow:none}
#tx-floor::-webkit-slider-runnable-track{width:4px;border-radius:4px;background:var(--tx-line2)}
#tx-floor::-moz-range-track{width:4px;border-radius:4px;background:var(--tx-line2)}
#tx-floor::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;margin-left:-10px;border-radius:50%;background:var(--tx-accent);border:4px solid var(--tx-bg);box-shadow:0 0 0 2px var(--tx-accent),0 4px 12px rgba(0,0,0,.35)}
#tx-floor::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--tx-accent);border:4px solid var(--tx-bg);box-shadow:0 0 0 2px var(--tx-accent)}

.tx-filters{display:inline-flex;flex-wrap:wrap;gap:6px;padding:6px;border-radius:18px}
.tx-filters button{height:44px;padding:0 20px;border-radius:13px;font:inherit;font-weight:800;font-size:15px;border:0;background:transparent;color:var(--tx-ink);cursor:pointer}
.tx-filters button[aria-pressed="true"]{background:var(--tx-accent);color:var(--tx-on-accent)}
.tx-readout{display:flex;align-items:flex-end;gap:18px;margin-top:24px;padding-bottom:16px;border-bottom:1px solid var(--tx-line2)}
.tx-floor-num{font-size:clamp(64px,8vw,96px);font-weight:800;line-height:.85;letter-spacing:-.04em;min-width:2ch;color:var(--tx-accent)}
.tx-floor-title{margin:0;font-size:20px;font-weight:800}
.tx-floor-sub{margin:3px 0 0;color:var(--tx-muted)}

/* unit dropdown (one per floor) */
.tx-pickunit{display:grid;gap:8px;margin:18px 0 0}
.tx-pickunit>span{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--tx-muted)}
.tx-unit-select{width:100%;min-height:54px;padding:0 44px 0 16px;border-radius:14px;border:1px solid var(--tx-line2);font:inherit;font-size:16px;font-weight:700;
  color:var(--tx-ink);background:var(--tx-ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23FF8A00' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/20px no-repeat;
  -webkit-appearance:none;appearance:none;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.tx-unit-select:hover{border-color:rgba(var(--brand-rgb, 255,138,0),.55)}
.tx-unit-select:focus-visible{outline:none;border-color:var(--tx-accent);box-shadow:0 0 0 3px rgba(var(--brand-rgb, 255,138,0),.22)}
.tx-unit-select option{background:#17181C;color:#F4F1EC}
[data-theme="light"] .tx-unit-select option{background:#fff;color:#1A140D}
.tx-pickunit+.tx-detail{margin-top:16px}
/* browsers with styled dropdowns (assets/css/hive-ui.css) draw their own orange ▾ – no second arrow */
@supports (appearance:base-select){.tx-unit-select{background-image:none;padding-right:14px}}
.tx-units{margin:8px 0 0;padding:0;list-style:none;max-height:min(60vh,520px);overflow:auto}
.tx-unit{display:grid;grid-template-columns:auto 1fr auto;gap:3px 16px;align-items:center;width:100%;padding:14px 12px;border:0;border-bottom:1px solid var(--tx-line);border-radius:12px;background:transparent;color:var(--tx-ink);font:inherit;text-align:left;cursor:pointer;transition:background .15s}
.tx-unit:hover{background:rgba(var(--brand-rgb, 255,138,0),.08)}
.tx-unit[aria-pressed="true"]{background:rgba(var(--brand-rgb, 255,138,0),.14);box-shadow:inset 4px 0 0 var(--tx-accent)}
.tx-uid{font-size:18px;font-weight:800;min-width:3.2ch}
.tx-uwhat{color:var(--tx-muted);font-size:15px}
.tx-uside{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.tx-uprice{font-weight:800}
.tx-tag{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid var(--tx-line2);color:var(--tx-muted)}
.tx-tag-open{background:rgba(var(--brand-light-rgb, 255,194,61),.18);border-color:#FFC23D;color:#FFC23D}
.tx-tag-home{background:rgba(63,207,122,.16);border-color:var(--tx-home);color:var(--tx-home)}

.tx-detail{margin-top:24px;padding:26px;border-radius:22px}
.tx-detail h3{margin:0;font-size:26px;font-weight:800}
.tx-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:18px 0 20px}
.tx-detail dt{font-size:13px;color:var(--tx-muted)}
.tx-detail dd{margin:0;font-weight:700}
.tx-actions{display:flex;flex-wrap:wrap;gap:10px}
.tx-fine{margin:12px 0 0;font-size:13px;color:var(--tx-muted)}

/* Optional: the units/details panel scrolls on its own, as tall as the tower drawing,
   so the whole explorer fits in one screen (used on the landing page: class="tx-panel tx-scroll") */
.tx-scroll{height:min(72vh,680px);overflow-y:auto;overscroll-behavior:auto;padding-right:10px;border-radius:14px}
.tx-scroll::-webkit-scrollbar{width:8px}
.tx-scroll::-webkit-scrollbar-thumb,.tx-media-sec .tx-thumbs::-webkit-scrollbar-thumb{background:var(--tx-line2);border-radius:8px}
.tx-scroll::-webkit-scrollbar-thumb:hover,.tx-media-sec .tx-thumbs::-webkit-scrollbar-thumb:hover{background:var(--tx-accent)}
.tx-media-sec .tx-thumbs::-webkit-scrollbar{width:8px}
/* Firefox only – in Chrome / Edge these two would bring back the browser's grey bar with arrow buttons */
@supports not selector(::-webkit-scrollbar){.tx-scroll,.tx-media-sec .tx-thumbs{scrollbar-width:thin;scrollbar-color:var(--tx-line2) transparent}}
.tx-scroll:focus-visible{outline:3px solid var(--tx-accent);outline-offset:4px}
.tx-scroll .tx-units{max-height:none;overflow:visible}          /* one scroll area, not a scroll inside a scroll */
.tx-scroll .tx-readout{position:sticky;top:0;z-index:2;background:var(--tx-bg);margin-top:16px;padding-top:10px}
@media (max-width:1024px){ .tx-scroll{height:min(78vh,640px)} }

/* floor plans (shown under the selected tower) */
.tx-plans{margin:0 0 32px}
.tx-plans-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;margin-bottom:14px}
.tx-plans-head h3{margin:0;font-size:20px;font-weight:800}
.tx-plans-head span{font-size:13px;color:var(--tx-muted)}
.tx-plans-note{margin:-6px 0 14px;font-size:14px;color:var(--tx-muted)}
.tx-plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tx-plan{display:flex;flex-direction:column;border-radius:20px;overflow:hidden;border:1px solid var(--tx-line2);background:var(--tx-ground);color:var(--tx-ink);text-decoration:none;transition:border-color .15s,transform .15s,opacity .15s}
.tx-plan:hover{border-color:var(--tx-accent);transform:translateY(-2px);color:var(--tx-ink)}
.tx-plan.is-dim{opacity:.45}
.tx-plan.is-dim:hover{opacity:.8}
.tx-plan-img{display:block;aspect-ratio:4/3;background:#fff;padding:10px}
.tx-plan-img img{display:block;width:100%;height:100%;object-fit:contain}
.tx-plan-body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px}
.tx-plan-body strong{font-size:17px;font-weight:800}
.tx-plan-area{font-size:14px;font-weight:700;color:var(--tx-accent2)}
.tx-plan-rooms{display:grid;gap:4px;margin-top:4px;font-size:13px;color:var(--tx-muted)}
.tx-plan-rooms > span{display:flex;justify-content:space-between;gap:10px;padding-bottom:4px;border-bottom:1px dashed var(--tx-line)}
.tx-plan-rooms b{color:var(--tx-ink);font-weight:700;white-space:nowrap}
@media (max-width:1024px){.tx-plans-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.tx-plans-grid{grid-template-columns:1fr}}

/* model-unit video & photos: a wide section under the tower and the unit list */
.tx-media-sec{margin-top:clamp(24px,4vw,40px)}
.tx-media-sec[hidden]{display:none}
/* compact: the player on the left, the thumbnails in a column beside it – about half a screen tall,
   so it doesn't get in the way of scrolling through the landing page */
.tx-media-sec .tx-media{margin:0;padding:clamp(16px,2vw,22px);border:1px solid var(--tx-line);border-radius:22px;background:var(--tx-ground);
  display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);grid-template-areas:"head head" "main thumbs" "note note";gap:12px 16px}
.tx-media-sec .tx-media-head{grid-area:head;margin:0}
.tx-media-sec .tx-media-head h4{font-size:18px}
.tx-media-sec .tx-media-main,.tx-media-sec .tx-media-main.is-video{grid-area:main;aspect-ratio:auto;height:clamp(220px,42vh,400px);max-height:none}
.tx-media-sec .tx-thumbs{grid-area:thumbs;margin:0;align-content:start;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  max-height:clamp(220px,42vh,400px);overflow-y:auto}
.tx-media-sec .tx-fine{grid-area:note;margin:0}
.tx-media-sec .tx-media-main img{object-fit:cover}
@media (max-width:820px){
  .tx-media-sec .tx-media{grid-template-columns:1fr;grid-template-areas:"head" "main" "thumbs" "note"}
  .tx-media-sec .tx-media-main,.tx-media-sec .tx-media-main.is-video{height:clamp(200px,34vh,300px)}
  .tx-media-sec .tx-thumbs{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none;overflow:visible}
}
.tx-media-link{color:var(--tx-accent2);font-weight:700;text-decoration:none}
.tx-media-link:hover{text-decoration:underline}
/* model-unit gallery */
.tx-media{margin-top:22px;padding-top:20px;border-top:1px solid var(--tx-line)}
.tx-media-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.tx-media-head h4{margin:0;font-size:17px;font-weight:800}
.tx-media-head span{font-size:13px;color:var(--tx-muted)}
.tx-media-main{position:relative;aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:#000}
.tx-media-main img,.tx-media-main video{display:block;width:100%;height:100%;object-fit:cover;background:#000}
.tx-media-main.is-video{aspect-ratio:auto;height:min(70vh,600px)}
.tx-media-main video{object-fit:contain}
.tx-thumbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:10px}
.tx-thumb{position:relative;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;aspect-ratio:1;background:var(--tx-line);cursor:pointer;opacity:.75;transition:opacity .15s,border-color .15s}
.tx-thumb img,.tx-thumb video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.tx-thumb:hover{opacity:1}
.tx-thumb[aria-pressed="true"]{border-color:var(--tx-accent);opacity:1}
.tx-thumb.is-video::after{content:"";position:absolute;inset:0;margin:auto;width:28px;height:28px;border-radius:50%;background:rgba(0,0,0,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23fff'/%3E%3C/svg%3E") center/18px no-repeat}
@media (max-width:640px){.tx-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}}

[data-theme="light"] .tx-sec{--tx-home:#1F8A4C}
[data-theme="light"] .tx-tag-open{background:rgba(var(--brand-light-rgb, 255,194,61),.3);border-color:#D99A00;color:#7A4E00}
[data-theme="light"] .tx-card[aria-pressed="true"]{box-shadow:0 0 0 2px var(--tx-accent),0 18px 40px rgba(60,40,15,.12)}

@media (max-width:1024px){
  .tx-pick{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tx-grid{grid-template-columns:1fr}
  .tx-col{position:static}
  .tx-wrap{height:min(64vh,560px);min-height:380px}
}
@media (max-width:640px){
  .tx-pick{gap:12px}
  .tx-card{padding:16px}
  .tx-detail dl{grid-template-columns:1fr}
}

/* Each tower's own photo at the top of its card (Admin → Site Media → Towers) */
.tx-card{overflow:hidden}
.tx-photo{display:block;margin:-22px -22px 2px;height:120px;overflow:hidden;position:relative;background:#15171C}
.tx-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.tx-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.45))}
.tx-card:hover .tx-photo img{transform:scale(1.06)}
.tx-card[aria-pressed="true"] .tx-photo img{transform:scale(1.04)}
@media (max-width:640px){.tx-photo{height:96px}}
@media (prefers-reduced-motion:reduce){.tx-photo img{transition:none}}[data-tone="medium"] .tx-unit-select option{background:#3A3B40;color:#F5F5F5}

/* the pop-up over a window (2026-10-24): replaces the browser's plain tooltip – dark on the dark themes, cream on Light */
.tx-wrap{position:relative}
.tx-tip{position:absolute;left:0;top:0;z-index:5;display:grid;gap:2px;min-width:150px;max-width:240px;padding:10px 13px 11px;border-radius:10px;pointer-events:none;
  background:#141518;color:#F2EEE8;border:1px solid rgba(255,255,255,.14);box-shadow:0 16px 34px -14px rgba(0,0,0,.6);font-size:12.5px;line-height:1.35;
  opacity:0;transition:opacity .15s ease}
.tx-tip.on{opacity:1}
.tx-tip b{font-size:14.5px;font-weight:700}
.tx-tip > span{color:#CFC9BF}
.tx-tip .tx-tip-st{display:inline-flex;align-items:center;gap:7px;margin-top:3px;font-weight:600}
.tx-tip .tx-tip-st i{width:9px;height:9px;border-radius:2px;background:currentColor;flex:none}
.tx-tip .tx-tip-open{color:#F2D21C} .tx-tip .tx-tip-mine{color:#3FCF7A} .tx-tip .tx-tip-taken{color:#A59E93}
[data-tone="medium"] .tx-tip{background:#1F2023;border-color:#55575D}
[data-theme="light"] .tx-tip{background:#FFFDF8;color:#242424;border-color:#E2DACB;box-shadow:0 16px 34px -16px rgba(60,40,10,.35)}
[data-theme="light"] .tx-tip > span{color:#55514B}
[data-theme="light"] .tx-tip .tx-tip-open{color:#8A6D00} [data-theme="light"] .tx-tip .tx-tip-mine{color:#1E8A4C} [data-theme="light"] .tx-tip .tx-tip-taken{color:#66625C}
html.hc .tx-tip{background:#000;color:#fff;border:2px solid #fff;box-shadow:none}
@media (prefers-reduced-motion:reduce){.tx-tip{transition:none}}
.tx-closed{cursor:default}
