/* ==================================================================
   River Oaks District — kiosk styles
   Single stylesheet. No Bootstrap, no framework, no build step.
   The kiosk is authored at its native 1080 x 1920 portrait size and
   scaled to fit whatever window it is opened in.
   ================================================================== */

:root {
  --ink:        #101010;
  --ink-soft:   #4a4a4a;
  --ink-faint:  #8d8d8d;
  --rule:       #e3e3e3;
  --paper:      #ffffff;
  --paper-warm: #f6f5f3;
  --brand:      #e5173f;
  --black:      #000000;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gap: 40px;
  --stage-w: 1080px;
  --stage-h: 1920px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: #17181a;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ---------- the fit-to-window rig -------------------------------- */

#viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
}

#stage {
  position: relative;
  width: var(--stage-w);
  height: var(--stage-h);
  flex: none;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  transform-origin: center center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* When the window cannot fit the kiosk even at the minimum scale we
   let #viewport scroll rather than clipping the kiosk off-screen. */
#viewport.is-scrolling { place-items: start center; padding: 20px; }

/* Small badge sitting on the page chrome, outside the kiosk itself. */
#stagebar {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  gap: 8px;
  align-items: center;
  font: 500 12px/1 var(--sans);
  color: #9aa0a6;
}
#stagebar button {
  font: inherit;
  color: #d7dade;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
}
#stagebar button:hover { background: rgba(255, 255, 255, .15); }
#stagebar button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- header ----------------------------------------------- */

.k-header {
  flex: none;
  height: 210px;
  padding: 34px 60px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 3px solid var(--black);
  background: var(--paper);
}
.k-header .wordmark { height: 96px; margin-top: 6px; }
.k-header .wordmark img { height: 100%; display: block; }

.k-meta { text-align: right; padding-top: 8px; }
.k-clock {
  font: 300 52px/1 var(--sans);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.k-clock .ampm { font-size: 26px; margin-left: 6px; color: var(--ink-faint); }
.k-date {
  margin-top: 10px;
  font: 600 18px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.k-langswap {
  margin-top: 16px;
  display: inline-flex;
  gap: 6px;
}
.k-langswap button {
  font: 600 17px/1 var(--sans);
  padding: 10px 16px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink-faint);
  border-radius: 4px;
  cursor: pointer;
}
.k-langswap button[aria-pressed="true"] {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* ---------- screens ---------------------------------------------- */

.k-body { flex: 1 1 auto; position: relative; overflow: hidden; }

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--paper);
}
.screen.is-active { display: flex; animation: fade .32s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.screen-title {
  flex: none;
  padding: 46px 60px 26px;
}
.screen-title h1 {
  margin: 0;
  font: 400 62px/1.05 var(--serif);
  letter-spacing: .01em;
}
.screen-title p {
  margin: 14px 0 0;
  font: 400 24px/1.4 var(--sans);
  color: var(--ink-soft);
}
.screen-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 60px 50px;
  -webkit-overflow-scrolling: touch;
}
.screen-scroll::-webkit-scrollbar { width: 8px; }
.screen-scroll::-webkit-scrollbar-thumb { background: #d2d2d2; border-radius: 4px; }

/* ---------- attract / language select ---------------------------- */

#screen-attract {
  background: var(--paper);
  padding: 0;
}
.attract-mark {
  flex: none;
  padding: 74px 0 40px;
  text-align: center;
  border-bottom: 3px solid var(--brand);
}
.attract-mark img { width: 720px; max-width: 78%; }
.attract-hero {
  flex: none;
  height: 780px;
  background: url('../img/hero.jpg') center top / cover no-repeat;
  position: relative;
}
.attract-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 92%);
}
.attract-langs {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: 0 92px;
  margin-top: -70px;
  position: relative;
  z-index: 2;
}
.attract-langs #attract-langs-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.attract-langs .tagline {
  text-align: center;
  font: 400 26px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.lang-btn {
  display: block;
  width: 100%;
  padding: 44px 0;
  background: var(--black);
  color: #fff;
  border: 0;
  font: 400 46px/1 var(--sans);
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, .18);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.lang-btn:active { transform: translate(6px, 6px); box-shadow: 4px 4px 0 rgba(0,0,0,.18); }
.lang-btn:hover { background: #1e1e1e; }

.attract-foot {
  flex: none;
  height: 96px;
  background: var(--black);
  color: #cfcfcf;
  display: grid;
  place-items: center;
  font: 400 22px/1 var(--sans);
  letter-spacing: .14em;
  border-top: 4px solid var(--brand);
}

/* ---------- home tiles ------------------------------------------- */

#screen-home .screen-scroll {
  display: flex;
  flex-direction: column;
}

.tiles {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 30px;
}
/* An odd number of tiles would otherwise leave a hole in the grid. */
.tiles .tile:last-child:nth-child(odd) { grid-column: span 2; }

.tile {
  position: relative;
  min-height: 300px;
  padding: 36px 34px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--black);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-left-color .15s ease, transform .12s ease, background .15s ease;
  font-family: inherit;
}
.tile:hover { background: #fff; border-left-color: var(--brand); }
.tile:active { transform: translateY(3px); }
.tile .tile-kicker {
  position: absolute;
  top: 30px;
  left: 34px;
  font: 700 16px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}
.tile h2 { margin: 0; font: 400 42px/1.1 var(--serif); }
.tile p { margin: 12px 0 0; font: 400 21px/1.35 var(--sans); color: var(--ink-soft); }

.cat-summary {
  flex: none;
  margin-top: 40px;
  border-top: 2px solid var(--black);
  padding-top: 26px;
}
.cat-summary h3 {
  margin: 0 0 18px;
  font: 700 16px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cat-count {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 12px;
  border: 1px solid var(--rule);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.cat-count:hover { background: var(--paper-warm); border-color: var(--black); }
.cat-count .n { font: 400 34px/1 var(--serif); }
.cat-count .l { font: 500 15px/1.25 var(--sans); color: var(--ink-faint); }

/* ---------- directory -------------------------------------------- */

.search-row {
  flex: none;
  padding: 0 60px 22px;
  display: flex;
  gap: 16px;
}
.search-row input {
  flex: 1 1 auto;
  font: 400 28px/1 var(--sans);
  padding: 22px 24px;
  border: 2px solid var(--black);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
.search-row input::placeholder { color: var(--ink-faint); }
.search-row button {
  flex: none;
  font: 600 22px/1 var(--sans);
  padding: 0 28px;
  border: 2px solid var(--black);
  background: #fff;
  cursor: pointer;
}

.chips {
  flex: none;
  padding: 0 60px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  font: 500 21px/1 var(--sans);
  padding: 15px 24px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
}
.chip[aria-pressed="true"] {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.cols {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 130px 340px;
  gap: 20px;
  padding: 0 68px 12px;
  font: 700 15px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tenant-list { border-top: 2px solid var(--black); }
.tenant {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 130px 340px;
  gap: 20px;
  align-items: baseline;
  padding: 24px 8px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.tenant:hover { background: var(--paper-warm); }
.tenant .c-name  { font: 400 33px/1.15 var(--serif); }
.tenant .c-suite { font: 500 24px/1.2 var(--sans); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tenant .c-type  { font: 400 19px/1.35 var(--sans); color: var(--ink-faint); }

.empty { padding: 60px 0; font: 400 26px/1 var(--sans); color: var(--ink-faint); text-align: center; }

/* ---------- events ----------------------------------------------- */

.ev-cols, .event {
  display: grid;
  grid-template-columns: 250px 260px 1fr 110px;
  gap: 20px;
  align-items: baseline;
}
.ev-cols {
  padding: 0 8px 12px;
  font: 700 15px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 2px solid var(--black);
}
.event {
  width: 100%;
  padding: 28px 8px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.event:hover { background: var(--paper-warm); }
.event .c-time { font: 500 22px/1.3 var(--sans); color: var(--ink-soft); }
.event .c-day  { font: 500 22px/1.3 var(--sans); color: var(--ink-faint); }
.event .c-name { font: 400 32px/1.2 var(--serif); }
.event .c-loc  { font: 500 24px/1.2 var(--sans); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- floor map -------------------------------------------- */

#screen-map .screen-scroll { display: flex; flex-direction: column; }

.map-frame {
  flex: 1 1 auto;
  position: relative;
  border: 1px solid var(--rule);
  background: #1b1b1b;
  overflow: hidden;
}
.map-canvas {
  position: absolute;
  transform-origin: 0 0;
  background-repeat: no-repeat;
}
/* The plan is drawn from the real .i<SUITE> coordinates in floors.css.
   The original artwork underneath it is gone from the server. */

/* Building envelopes, from the bounding box of each letter's suites. */
.map-groups { position: absolute; inset: 0; }
.map-groups .bldg {
  position: absolute;
  border: 1px solid #dcd9d4;
  border-radius: 18px;
  background: #fff;
}
.map-groups .bldg span {
  position: absolute;
  top: 12px;
  left: 18px;
  font: 400 38px/1 var(--serif);
  color: #c6c3be;
}

/* One tap target per mapped suite. The artwork already prints every
   suite number, so these stay invisible until touched -- a dot on each
   would just sit on top of the label it duplicates. Only the selected
   suite gets a visible marker. */
.map-schematic { position: absolute; inset: 0; }
.map-schematic .dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.map-schematic .dot i {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: transparent;
  transition: background .12s ease;
}
.map-schematic .dot:hover i { background: rgba(255, 255, 255, .18); }
.map-schematic .dot.vacant { cursor: default; }
.map-schematic .dot.vacant:hover i { background: transparent; }

.map-schematic .dot.sel { z-index: 4; }
.map-schematic .dot.sel i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  animation: pinpulse 1.6s ease-in-out infinite;
}
@keyframes pinpulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(229, 23, 63, .40); }
  50%      { box-shadow: 0 0 0 16px rgba(229, 23, 63, 0); }
}

/* Name chip on the selected suite. */
.map-schematic .dot b {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 15px;
  background: #fff;
  color: var(--ink);
  font: 600 21px/1 var(--sans);
  white-space: nowrap;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.map-schematic .dot b::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #fff;
}

.map-legend {
  flex: none;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 21px/1 var(--sans);
  color: var(--ink-faint);
}
.map-legend .key {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
}

#screen-map.has-map .map-groups { display: none; }
#screen-map.has-map .map-frame { background: #fff; }

/* ---------- 360 viewer ------------------------------------------- */

#screen-tour .screen-scroll {
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

.pano-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 700px;
  background: #0b0b0c;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.pano-frame.dragging { cursor: grabbing; }
.pano-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pano-frame.no-webgl {
  background-size: cover;
  background-position: center;
}

.pano-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 500 20px/1 var(--sans);
  letter-spacing: .06em;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity .4s ease;
}
.pano-hint.hidden { opacity: 0; }
.pano-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 16px 26px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 400 30px/1 var(--serif);
  letter-spacing: .04em;
  pointer-events: none;
}
.pano-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0b0b0c;
  color: #9a9a9a;
  font: 500 22px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: opacity .3s ease;
}
.pano-loading.hidden { opacity: 0; pointer-events: none; }

.scene-strip {
  flex: none;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.scene-btn {
  padding: 18px 14px;
  border: 1px solid var(--rule);
  background: #fff;
  font: 500 20px/1.25 var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 78px;
}
.scene-btn[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }

/* ---------- tenant detail sheet ---------------------------------- */

.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 40;
  display: none;
}
.sheet-scrim.is-open { display: block; animation: fade .2s ease both; }

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 5px solid var(--brand);
  padding: 44px 60px 48px;
  max-height: 82%;
  overflow-y: auto;
  animation: rise .28s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet h2 { margin: 0; font: 400 54px/1.1 var(--serif); }
.sheet .cat {
  margin-top: 10px;
  font: 700 16px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}
.sheet .shot {
  margin: 24px 0 0;
  height: 300px;
  display: grid;
  place-items: center;
  background: var(--paper-warm) center / cover no-repeat;
  border: 1px dashed #d4d4d4;
  text-align: center;
}
.sheet .shot span { font: 400 19px/1.6 var(--sans); color: var(--ink-faint); }
.sheet .shot code { font-size: 17px; color: #b0b0b0; }
.sheet .shot.loaded { border-style: solid; border-color: var(--rule); }
.sheet .shot.loaded span { display: none; }

.facts {
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}
.fact dt {
  font: 700 15px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.fact dd { margin: 8px 0 0; font: 400 26px/1.35 var(--sans); }
.fact.wide { grid-column: 1 / -1; }

.sheet-actions { margin-top: 34px; display: flex; gap: 16px; }
.btn {
  flex: 1 1 0;
  padding: 26px 20px;
  font: 500 25px/1 var(--sans);
  border: 2px solid var(--black);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.btn.primary { background: var(--black); color: #fff; }
.btn.ghost { border-color: var(--rule); color: var(--ink-soft); flex: 0 0 190px; }

/* ---------- footer nav ------------------------------------------- */

#stage.is-attract .k-nav { display: none; }

.k-nav {
  flex: none;
  height: 168px;
  background: var(--black);
  border-top: 5px solid var(--brand);
  display: flex;          /* item count varies, so no fixed column grid */
}
.k-nav button { flex: 1 1 0; }
.k-nav button {
  background: none;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .12);
  color: #b9b9b9;
  font: 500 24px/1 var(--sans);
  letter-spacing: .06em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: inherit;
}
.k-nav button:last-child { border-right: 0; }
.k-nav button svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.k-nav button[aria-current="true"] { color: #fff; background: #1c1c1c; }
.k-nav button[aria-current="true"] svg { stroke: var(--brand); }

/* ---------- misc -------------------------------------------------- */



@media (prefers-reduced-motion: reduce) {
  .screen.is-active, .sheet, .sheet-scrim.is-open { animation: none; }
}
