/* BLOX Didi Digomi — demo styles, matched to blox.ge brand */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Georgian:wght@400;600&display=swap');

:root {
  --ink: #1c2b2a;          /* near-black charcoal text */
  --muted: #6b7a78;
  --line: #e5e9e8;
  --paper: #ffffff;
  --wash: #f5f7f7;         /* pale section wash */
  --pine: #2f7d6d;         /* BLOX action teal */
  --pine-dark: #276a5c;
  --bronze: #c1976b;       /* BOOK APARTMENT gold */
  --bronze-dark: #ad8459;
  --rose: #e9b7ac;         /* available-unit fill */
  --rose-line: #c9887b;
  --sold: #eceff0;         /* sold-unit fill */
  --sold-line: #c3cbcd;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(28, 43, 42, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", "Noto Sans Georgian", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 18px 40px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: .06em; }
.logo svg { display: block; }
.menu-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; font-weight: 600; letter-spacing: .14em; font-size: 14px; }
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-btn .bars i { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.header-spacer { flex: 1; }
.filter-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; font-weight: 600; letter-spacing: .14em; font-size: 15px; }
.lang { font-weight: 600; letter-spacing: .08em; font-size: 14px; color: var(--muted); }
.cta {
  background: var(--pine); color: #fff; border: 0;
  padding: 13px 26px; border-radius: 6px;
  font-weight: 700; letter-spacing: .1em; font-size: 13px;
  transition: background .15s;
}
.cta:hover { background: var(--pine-dark); }

/* ── Breadcrumb ── */
.crumbs {
  max-width: 1440px; margin: 0 auto; padding: 22px 40px 0;
  font-size: 14px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.crumbs a:hover { color: var(--pine); }
.crumbs .here { color: var(--ink); font-weight: 600; }

/* ── Layout helpers ── */
.page { max-width: 1440px; margin: 0 auto; padding: 28px 40px 80px; }
.two-col { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.three-col {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.flat-page { max-width: 1720px; }

h1.page-title { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.card-value { font-weight: 700; font-family: "Noto Sans Georgian", "Manrope", sans-serif; }

/* ── Building page ── */
.hero-wrap { position: relative; display: grid; grid-template-columns: 220px 1fr 260px; gap: 18px; }
.building-stage { position: relative; display: flex; justify-content: center; }
.building-stage svg { width: min(680px, 100%); height: auto; }
.floor-band { fill: transparent; cursor: pointer; transition: fill .12s; }
.floor-band:hover, .floor-band.active { fill: rgba(47, 125, 109, .28); }

.floor-tip {
  width: 100%; box-sizing: border-box; margin-bottom: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
  display: none;
}
.floor-tip.show { display: block; }
.floor-tip p { font-size: 16px; margin-bottom: 8px; }
.floor-tip b { font-weight: 800; }
.tip-btn {
  margin-top: 10px; width: 100%;
  background: var(--pine); color: #fff; border: 0; border-radius: 6px;
  padding: 14px 0; font-weight: 700; letter-spacing: .18em; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.tip-btn:hover { background: var(--pine-dark); }

.about { margin-top: 70px; max-width: 900px; }
.about h2 { font-size: 15px; letter-spacing: .22em; color: var(--pine); margin-bottom: 18px; }
.about p { font-size: 17px; line-height: 1.75; color: #33413f; margin-bottom: 14px; }
.benefits { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 12px; }
.benefit {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: #33413f;
  display: flex; align-items: center; gap: 8px;
}
.benefit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); }

/* ── Floor plan page ── */
.plan-stage { position: relative; }
.plan-stage svg { width: 100%; height: auto; }
.unit { cursor: pointer; }
.unit rect, .unit path { fill: var(--rose); stroke: var(--rose-line); stroke-width: 1.6; transition: fill .12s; }
.unit:hover rect, .unit:hover path { fill: #dfa093; }
.unit.sold { cursor: default; }
.unit.sold rect, .unit.sold path { fill: var(--sold); stroke: var(--sold-line); }
.unit .tag { fill: #fff; }
.unit .badge { fill: var(--rose-line); }
.unit.sold .badge { fill: var(--sold-line); }

.floor-picker {
  margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.floor-picker .fp-label { position: absolute; transform: translateY(-34px); font-size: 14px; color: var(--muted); }
.fp-num {
  width: 46px; height: 46px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: #9aa7a5; font-weight: 700; font-size: 16px;
}
.fp-num:hover { color: var(--ink); }
.fp-num.current { border-color: var(--ink); color: var(--ink); }
.fp-arrow { background: none; border: 0; font-size: 20px; color: var(--ink); padding: 0 8px; }
.picker-wrap { position: relative; padding-top: 34px; }
.compass { position: absolute; left: 40px; bottom: 8px; color: var(--pine-dark); }

/* ── Flat page ── */
.flat-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.flat-title h1 { font-size: 32px; font-weight: 800; }
.icon-chip {
  width: 38px; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  background: none; display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.spec-card { margin-bottom: 14px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.price-grid .k { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-grid .v { font-size: 22px; font-weight: 800; }
.currency-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.currency-toggle button { border: 0; background: none; padding: 7px 12px; font-weight: 700; font-size: 13px; color: var(--muted); }
.currency-toggle button.on { background: var(--ink); color: #fff; }

.btn-book {
  width: 100%; margin-top: 10px;
  background: var(--bronze); color: #fff; border: 0; border-radius: 8px;
  padding: 17px 0; font-weight: 800; letter-spacing: .16em; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-book:hover { background: var(--bronze-dark); }
.btn-manager {
  width: 100%; margin-top: 12px;
  background: var(--pine); color: #fff; border: 0; border-radius: 8px;
  padding: 15px 0; font-weight: 800; letter-spacing: .14em; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-manager:hover { background: var(--pine-dark); }

.viewer {
  position: relative;
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
}
.viewer-compass { position: absolute; top: 26px; right: 26px; width: 72px; height: 72px; color: var(--pine-dark); }
.fav-btn {
  position: absolute; top: 26px; left: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  box-shadow: var(--shadow);
}

.mode-toggle {
  margin: 20px auto 0; width: max-content;
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.mode-toggle button {
  border: 0; background: none; padding: 13px 44px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--ink);
}
.mode-toggle button.on { background: var(--ink); color: #fff; }
.mode-toggle button.tour-mode.on { background: var(--pine); }

/* Tour overlay states */
#tourStage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1413;
}
#tourStage.show { display: block; }
#vagonFrame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tour-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, #12201d, #0d1413);
  color: #e8efee; text-align: center; padding: 30px;
  transition: opacity .5s;
}
.tour-loading.gone { opacity: 0; pointer-events: none; }
.tour-loading .spin {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18); border-top-color: var(--bronze);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tour-loading h3 { font-size: 22px; font-weight: 700; }
.tour-loading p { color: #9db3ae; font-size: 14px; max-width: 380px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .tour-loading .spin { animation: none; } }

/* Right column */
.side-block { margin-bottom: 22px; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.side-head h3 { font-size: 17px; font-weight: 800; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.side-head span { color: var(--muted); font-size: 14px; }
.mini-picker { display: flex; align-items: center; justify-content: center; gap: 8px; }
.full-plan {
  width: 100%; margin-top: 20px;
  border: 1px solid var(--line); background: none; border-radius: 8px;
  padding: 14px 0; font-weight: 600; font-size: 15px;
}
.full-plan:hover { border-color: var(--ink); }
.mini-plan { width: 100%; height: auto; margin-top: 8px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); background: var(--wash); margin-top: 60px; }
.footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 44px 40px;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  font-size: 14px; color: var(--muted); line-height: 2;
}
.footer-inner b { color: var(--ink); display: block; margin-bottom: 6px; letter-spacing: .1em; font-size: 13px; }

/* Demo ribbon so nobody mistakes this for the live site */
.demo-ribbon {
  position: fixed; bottom: 18px; left: 18px; z-index: 90;
  background: var(--ink); color: #fff; border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  opacity: .85;
}

@media (max-width: 1200px) {
  .three-col { grid-template-columns: 1fr; }
  .three-col > * { min-width: 0; }
}

@media (max-width: 1100px) {
  .two-col, .three-col, .hero-wrap { grid-template-columns: 1fr; }
  .three-col > *, .two-col > *, .hero-wrap > * { min-width: 0; }
  .header-inner, .page, .crumbs, .footer-inner { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 700px) {
  .header-inner { gap: 16px; padding-top: 13px; padding-bottom: 13px; }
  .header-inner .filter-btn, .header-inner .lang { display: none; }
  .header-inner .header-spacer { display: none; }
  .header-inner .menu-btn { margin-left: auto; }
  .header-inner .cta { padding: 11px 14px; font-size: 11px; }

  .page { padding-top: 20px; padding-bottom: 48px; }
  .crumbs { padding-top: 15px; font-size: 12px; }
  h1.page-title, .flat-title h1 { font-size: 26px; }
  .flat-title { flex-wrap: wrap; }

  .viewer, #tourStage { border-radius: 6px; }
  .viewer-compass { width: 52px; height: 52px; top: 12px; right: 12px; }
  .fav-btn { width: 40px; height: 40px; top: 12px; left: 12px; }
  .mode-toggle { width: 100%; }
  .mode-toggle button { flex: 1; padding: 12px 20px; }
  .tour-loading { gap: 10px; padding: 18px; }
  .tour-loading .spin { width: 34px; height: 34px; }
  .tour-loading h3 { font-size: 17px; }
  .tour-loading p { font-size: 12px; line-height: 1.4; }

  .floor-tip { min-width: min(280px, calc(100vw - 40px)); padding: 16px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .currency-toggle { grid-column: 1 / -1; width: max-content; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .demo-ribbon { left: 10px; bottom: 10px; max-width: calc(100vw - 20px); }
}

@media (max-width: 430px) {
  .logo { font-size: 18px; }
  .logo svg { width: 22px; height: 22px; }
  .menu-btn { font-size: 0; }
  .header-inner .cta { padding-inline: 10px; }
  .page, .crumbs, .header-inner, .footer-inner { padding-left: 14px; padding-right: 14px; }
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

/* ── Real render layering (page 1) ── */
.building-stage { width: 100%; }
.building-stage .b-base, .building-stage .b-hl {
  width: 100%; height: auto; display: block; user-select: none;
}
.building-stage .b-hl {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .18s ease;
  pointer-events: none;
}
.building-stage .b-hl.show { opacity: 1; }
.b-hotspots { position: absolute; inset: 0; }
.b-strip { position: absolute; left: 18%; right: 4%; cursor: pointer; }
