/* "Daylight glass", copied from the ELARAPLANS sales suite (explorer-glass-preview/src/glass.css):
   frosted white panels over the 3D scene on a sky-lit page, slate grey for what is chosen. Hanken Grotesk.
   Sized for buyers 55+: 17 px body, 48 px targets, plain labels, one bold action colour. */
:root {
  --ink: #141a24;
  --sheet: rgb(255 255 255 / 0.62);     /* glass */
  --solid: rgb(255 255 255 / 0.8);      /* glass-strong: buttons, the tab strip */
  --sky: #e9f1fb;
  --cream: rgb(255 255 255 / 0.7);      /* hover inside glass */
  --taupe: #e2e4e9;                     /* blue-soft */
  --green: #656a79;                     /* navy (slate grey): selected, primary, focus. Name kept so app.js-built markup still matches */
  --stone: #5a6475;
  --line: rgb(20 26 36 / 0.09);
  --muted: rgb(20 26 36 / 0.05);
  --mint: #e2e4e9;
  --glass-line: rgb(255 255 255 / 0.85);
  --glass-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 24px 60px -28px rgb(32 64 120 / 0.35);
  --chosen-shadow: 0 8px 18px -10px rgb(20 27 43 / 0.7);
  --r: 22px;
  --gap: 16px;
  --left-w: 360px;
  --rail-w: 152px;
  --top-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--sky); color: var(--ink);
  font: 400 17px/1.45 'Hanken Grotesk', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

.card { background: var(--sheet); border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
::selection { background: var(--taupe); color: var(--ink); }
/* side panels: stronger glass (as the sales suite's rail) so text stays crisp over the satellite map */
.left, .rail { background: rgb(255 255 255 / 0.7); scrollbar-color: rgb(20 26 36 / 0.18) transparent; scrollbar-width: thin; }

/* Buttons: glass capsules; the chosen one in slate */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--solid); border: 1px solid var(--glass-line); font-size: 16px; font-weight: 600;
  box-shadow: 0 6px 16px -10px rgb(32 64 120 / 0.4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { background: rgb(255 255 255 / 0.95); }
.btn[aria-pressed="true"], .btn.primary { background: var(--green); color: #fff; border-color: var(--green); box-shadow: var(--chosen-shadow); }
.btn.primary:hover { background: #555a68; }

/* Left column: the credits card (project, builder, architect: always on screen) over the details panel */
.side { position: fixed; top: var(--gap); left: var(--gap); bottom: var(--gap); width: var(--left-w); z-index: 4;
  display: flex; flex-direction: column; gap: 12px; }
.brand { flex: none; padding: 18px 20px 16px; }
.brand-name { margin: 0; line-height: 0; }
.brand-logo { display: block; width: 200px; height: auto; }
.brand-sub { margin: 8px 0 0; color: var(--stone); font-size: 15px; }
.credits { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.credits div { display: grid; line-height: 1.3; }
.credits dt { font-size: 13px; color: var(--stone); }
.credits dd { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.rera { margin: 12px 0 0; font-size: 12px; color: var(--stone); }

/* Top of the centre column: Amenities and Help */
.topbar { position: fixed; top: var(--gap); left: calc(var(--left-w) + 2 * var(--gap)); right: calc(var(--rail-w) + 2 * var(--gap)); z-index: 4;
  display: flex; justify-content: flex-end; align-items: center; gap: 12px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.actions-top { display: flex; gap: 8px; }

/* Floor picker */
.rail { position: fixed; top: var(--gap); right: var(--gap); bottom: var(--gap); width: var(--rail-w); z-index: 4;
  display: flex; flex-direction: column; padding: 14px 10px; gap: 6px; }
.rail-title { font-size: 16px; font-weight: 600; text-align: center; padding-bottom: 2px; }
.rail-step { height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); background: var(--solid);
  border: 1px solid var(--glass-line); }
.rail-step svg { width: 24px; height: 24px; stroke-width: 2.2; }
.rail-step:hover { background: #fff; }
.rail-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none;
  mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.rail-scroll::-webkit-scrollbar { display: none; }
#floorList { list-style: none; margin: 0; padding: 8px 0; display: grid; gap: 2px; }
#floorList button { width: 100%; min-height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 19px; }
#floorList button small { font-size: 13px; color: var(--stone); }
#floorList button i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
#floorList button:hover { background: var(--cream); }
#floorList button[aria-current="true"] { background: var(--green); color: #fff; font-weight: 600; box-shadow: var(--chosen-shadow); }
#floorList button[aria-current="true"] small { color: rgb(255 255 255 / .8); }
#floorList button[aria-current="true"] i { background: #fff; }
.rail-all { min-height: 48px; border-radius: 18px; line-height: 1.2; border: 1px solid var(--glass-line); background: var(--solid); font-size: 15px; font-weight: 600; }
.rail-all:hover { background: var(--cream); }

/* Left panel */
.left { flex: 1; min-height: 0; overflow-y: auto; padding: 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; margin-left: -10px;
  border-radius: 999px; font-size: 16px; font-weight: 600; }
.back:hover { background: var(--cream); }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--stone); margin-top: 18px; }
.h1 { font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; margin: 4px 0 8px; text-wrap: balance; }
.sub { color: var(--stone); font-size: 16px; }
.lead { font-size: 17px; margin: 14px 0 0; }
.list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.row { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 14px 16px; min-height: 64px; border: 1px solid transparent; border-radius: 16px; background: rgb(255 255 255 / 0.55);
  transition: background-color .2s, border-color .2s, box-shadow .2s; }
.row:hover, .row.hot { border-color: rgb(101 106 121 / 0.25); background: var(--taupe); box-shadow: 0 8px 20px -12px rgb(101 106 121 / 0.55); }
.row b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.row .meta { grid-column: 1; color: var(--stone); font-size: 15px; }
.row .go { grid-row: 1 / span 2; grid-column: 2; font-size: 15px; font-weight: 600; color: var(--green); }
.cta { width: 100%; justify-content: center; margin-top: 16px; }

.unit-title { display: flex; gap: 14px; align-items: baseline; margin-top: 6px; }
.unit-no { font-size: 52px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.unit-type { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0; }
.facts div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--stone); }
.facts dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.rooms { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 16px; }
.rooms td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rooms td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.note { margin-top: 18px; font-size: 15px; color: var(--stone); }

/* Centre */
.centre { position: fixed; top: calc(var(--gap) + var(--top-h) + 12px); left: calc(var(--left-w) + 2 * var(--gap));
  right: calc(var(--rail-w) + 2 * var(--gap)); bottom: var(--gap); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.centre > * { pointer-events: auto; }
.tabs { display: flex; gap: 4px; background: var(--solid); padding: 5px; border-radius: 999px; border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.tabs button { white-space: nowrap; padding: 0 20px; min-height: 44px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--ink); }
.tabs button:hover { background: rgb(20 26 36 / 0.05); }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; box-shadow: var(--chosen-shadow); }
/* drawings sit on white paper: the plan card is solid, so the scene never shows through a plan */
.plan-box { position: relative; flex: 1; width: 100%; overflow: hidden; background: #fff; }
.plan-host { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.plan-host:active { cursor: grabbing; }
.plan-host svg { width: 100%; height: 100%; display: block; fill: revert; stroke: revert; stroke-width: revert; }
.key-plan { position: absolute; top: 14px; right: 14px; width: 190px; z-index: 1; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 12px 30px -20px rgb(32 64 120 / 0.35); }
.key-plan > div { position: relative; }
.key-plan img { display: block; width: 100%; height: auto; opacity: .75; }
.key-plan svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: revert; stroke: revert; }
.zoom { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.zoom button { min-width: 48px; height: 48px; border-radius: 999px; border: 0; background: #fff; font-size: 22px;
  box-shadow: 0 6px 16px -8px rgb(20 27 43 / 0.45); }
.zoom button[data-zoom="fit"] { white-space: nowrap; padding: 0 18px; font-size: 16px; font-weight: 600; }
.zoom button:hover { background: var(--taupe); }

/* Tooltip, single place marker, help */
.tip { position: fixed; z-index: 5; pointer-events: none; background: rgb(20 26 36 / 0.88); color: #fff; padding: 10px 14px;
  border-radius: 14px; font-size: 16px; transform: translate(-50%, calc(-100% - 16px)); white-space: nowrap;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 30px -12px rgb(20 26 36 / 0.5); }
.tip b { font-size: 18px; font-weight: 600; }
.tip span { display: block; font-size: 14px; color: rgb(255 255 255 / .8); }
.marker { position: absolute; transform: translate(-50%, -100%); background: var(--green); color: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 16px; font-weight: 600; white-space: nowrap; box-shadow: var(--chosen-shadow); }
.marker::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--green);
  transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.help { padding: 28px; max-width: 520px; width: calc(100vw - 32px); color: var(--ink); background: rgb(255 255 255 / 0.96); border-radius: 26px; }
.help::backdrop { background: rgb(20 26 36 / .4); }
.help h2 { margin: 0 0 12px; font-size: 30px; font-weight: 500; letter-spacing: -0.04em; }
.help ol { padding-left: 22px; margin: 0 0 12px; display: grid; gap: 10px; font-size: 18px; }
.help p { font-size: 17px; color: var(--stone); }
.help form { margin-top: 18px; text-align: right; }

.attrib { position: fixed; left: calc(var(--left-w) + 2 * var(--gap)); bottom: 2px; z-index: 2; font-size: 11px; color: var(--stone);
  background: rgb(255 255 255 / .7); padding: 1px 6px; border-radius: 4px; }
.attrib a { color: inherit; }
.attrib b { font-weight: 700; letter-spacing: -.02em; }

.loading { position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; gap: 14px; text-align: center;
  background: linear-gradient(180deg, var(--sky) 0%, #f6f9fd 55%, #eef3f8 100%); color: var(--stone); font-size: 17px; transition: opacity .4s; }
.loading .bar { width: 240px; height: 4px; background: var(--taupe); border-radius: 4px; overflow: hidden; }
.loading i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
.loading.done { opacity: 0; pointer-events: none; }

/* Tablets: slimmer side panels */
@media (max-width: 1180px) { :root { --left-w: 320px; --rail-w: 132px; } .btn span { display: none; } .btn { padding: 0 14px; } }

/* Phones: rail becomes a strip, panels stack at the bottom */
@media (max-width: 820px) {
  :root { --gap: 10px; --top-h: 132px; } /* top-h: the credits card's height on a phone */
  /* the credits card stays at the top, compact; Amenities and Help sit to its right */
  .side { display: contents; }
  .brand { position: fixed; z-index: 4; top: var(--gap); left: var(--gap); right: calc(var(--gap) + 58px); padding: 10px 14px; }
  .brand-logo { width: 132px; }
  .brand-sub { margin-top: 4px; font-size: 13px; }
  .credits { margin-top: 8px; padding-top: 8px; gap: 4px; }
  .credits div { grid-template-columns: auto 1fr; gap: 6px; align-items: baseline; }
  .credits dt { font-size: 12px; }
  .credits dt::after { content: ":"; }
  .credits dd { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rera { display: none; }
  .topbar { left: auto; right: var(--gap); }
  .actions-top { flex-direction: column; }
  .btn { min-height: 44px; padding: 0 12px; }
  .rail { top: auto; bottom: var(--gap); left: var(--gap); right: var(--gap); width: auto; height: 60px; flex-direction: row;
    padding: 6px; align-items: center; border-radius: 999px; }
  .rail-title, .rail-step { display: none; }
  .rail-scroll { overflow-x: auto; overflow-y: hidden; mask-image: none; }
  #floorList { display: flex; padding: 0; gap: 2px; }
  #floorList li { flex: 0 0 auto; }
  #floorList button { min-width: 48px; padding: 0 12px; font-size: 17px; }
  #floorList button small { display: none; }
  .rail-all { margin-left: 4px; white-space: nowrap; padding: 0 12px; border-radius: 999px; }
  .left { position: fixed; z-index: 3; top: auto; bottom: 80px; left: var(--gap); right: var(--gap); width: auto; max-height: 40vh; padding: 16px 18px; }
  body.unit .left { max-height: 30vh; }
  .centre { left: var(--gap); right: var(--gap); top: calc(var(--gap) + var(--top-h) + 8px); bottom: calc(80px + 30vh + 8px); }
  .h1 { font-size: 26px; }
  .unit-no { font-size: 40px; }
  .key-plan { width: 112px; }
  .tabs button { padding: 0 12px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
