/* Suna Studios booking demo.
   Brand: black and Suna red (#BE0000) with Mulish, as on sunastudios.ca.
   Red means free, like the brand colour on an arena seat map. Grey hatch means taken. */

:root {
  --black: #000;
  --red: #be0000;
  --red-dark: #960000;
  --red-soft: #f7cdc8;
  --red-ink: #7d0000;
  --page: #ecedea;
  --floor: #fbfbf9;
  --taken: #cfd0ca;
  --taken-line: #b3b4ae;
  --off: #e2e3df;
  --off-ink: #a9aaa4;
  --text: #262626;
  --muted: #5d5e59;
  --line: #d3d4ce;
  --white: #fff;
  --focus: #2457f5;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --stencil: 'Big Shoulders Stencil Display', var(--display);
  --body: 'Mulish', system-ui, sans-serif;

  --r-control: 6px;
  --r-card: 14px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(16px, calc((100vw - 1280px) / 2 + 24px));
  background: var(--black);
  color: var(--white);
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.wm-suna {
  font: 900 34px/0.85 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.wm-studios {
  font: 800 10px/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  margin-top: 4px;
}

.where {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  padding-left: 24px;
  border-left: 1px solid #3a3a3a;
}

.where strong {
  font-weight: 800;
}

.where span {
  font-size: 14px;
  color: #b9b9b9;
}

.requests-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid #555;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
}

.requests-btn:hover {
  border-color: var(--white);
}

.count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--red);
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

/* ---------- Page ---------- */

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}

h1 {
  font: 900 clamp(42px, 5vw, 64px) / 0.92 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--black);
}

.lede {
  max-width: 60ch;
  margin: 12px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.mode {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.mode button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 148px;
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  line-height: 1.2;
}

.mode strong {
  font: 800 22px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mode span {
  font-size: 14px;
  color: var(--muted);
}

.mode button[aria-checked='true'] {
  background: var(--black);
  color: var(--white);
}

.mode button[aria-checked='true'] span {
  color: #c9c9c9;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field > span {
  font-size: 14px;
  font-weight: 700;
}

.field em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.field small {
  font-size: 13px;
  color: var(--muted);
}

select,
input,
textarea {
  min-height: 44px;
  padding: 9px 12px;
  border: 1.5px solid #b9bab4;
  border-radius: var(--r-control);
  background: var(--white);
}

select {
  min-width: 128px;
  padding-right: 34px;
  appearance: none;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23262626' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  font-weight: 700;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--black);
}

textarea {
  resize: vertical;
}

/* ---------- Map + panel ---------- */

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.map-card {
  min-width: 0;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--line);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.floors {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--page);
}

.floors button {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
}

.floors button[aria-selected='true'] {
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.tab-count {
  font-size: 13px;
  color: var(--red);
  font-weight: 800;
}

.switch-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
}

.switch-view:hover {
  background: var(--page);
}

.map-scroll {
  margin-top: 12px;
  overflow: auto;
}

.pan-hint {
  display: none;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.plan {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74vh;
  margin: 0 auto;
}

.plan-floor {
  fill: var(--floor);
}

.plan-walls {
  fill: none;
  stroke: var(--black);
  stroke-width: 7;
  pointer-events: none;
}

.plan-stairs,
.plan-fixture {
  stroke: #55564f;
  stroke-width: 2;
}

.plan-fixture {
  fill: #f1f1ee;
}

.plan-fixture-label,
.plan-office-label,
.plan-label {
  font: 700 15px var(--body);
  fill: var(--muted);
  text-anchor: middle;
  dominant-baseline: central;
}

.plan-office-label {
  font-size: 20px;
}

.plan-label {
  font-size: 17px;
}

.plan-street {
  stroke: var(--red);
  stroke-width: 5;
}

.plan-street-label {
  font: 800 34px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  fill: var(--black);
  text-anchor: middle;
}

.plan-compass path {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-compass text {
  font: 900 26px var(--display);
  fill: var(--black);
  text-anchor: middle;
  dominant-baseline: central;
}

/* Rooms */

.room-shape {
  stroke: var(--black);
  stroke-width: 3;
  transition: fill 0.15s;
}

.room-num {
  font-family: var(--stencil);
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.room-sub {
  font-family: var(--body);
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.room-note {
  font: italic 600 14px var(--body);
  text-anchor: middle;
  pointer-events: none;
  opacity: 0.85;
}

.room.is-live {
  cursor: pointer;
}

.room:focus {
  outline: none;
}

.room[data-state='free'] .room-shape {
  fill: var(--red);
}
.room[data-state='free'] text {
  fill: var(--white);
}
.room[data-state='free'].is-live:hover .room-shape {
  fill: var(--red-dark);
}

.room[data-state='soon'] .room-shape {
  fill: var(--red-soft);
}
.room[data-state='soon'] text {
  fill: var(--red-ink);
}
.room[data-state='soon']:hover .room-shape {
  fill: #f0b3ac;
}

.room[data-state='taken'] .room-shape {
  fill: url(#hatch);
}
.room[data-state='taken'] text {
  fill: #4f504b;
}
.room[data-state='taken']:hover .room-shape {
  fill: #c2c3bd;
}

.room[data-state='requested'] .room-shape {
  fill: var(--white);
}
.room[data-state='requested'] text {
  fill: var(--red);
}

.room[data-state='off'] .room-shape {
  fill: var(--off);
}
.room[data-state='off'] text {
  fill: var(--off-ink);
}

/* Extra selectors so "picked" beats every state's hover rule. */
.room.is-selected.is-live[data-state] .room-shape,
.room.is-selected.is-live[data-state]:hover .room-shape {
  fill: var(--black);
  stroke: var(--red);
  stroke-width: 7;
}
.room.is-selected.is-live[data-state] text {
  fill: var(--white);
}

.room:focus-visible .room-shape {
  stroke: var(--focus);
  stroke-width: 7;
}

/* List view */

.room-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.list-row {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 110px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  text-align: left;
}

.list-row strong {
  font: 800 22px/1 var(--display);
  text-transform: uppercase;
}

.list-row span {
  color: var(--muted);
  font-size: 14px;
}

.list-row em {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

.list-row em::first-letter {
  text-transform: uppercase;
}

.list-row[data-state='free'] em {
  color: var(--red);
}

.list-row:hover {
  border-color: var(--black);
}

.list-row[aria-pressed='true'] {
  border: 2px solid var(--black);
}

/* Legend */

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 0;
  padding: 12px 4px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sw {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid var(--black);
  border-radius: 3px;
}

.sw-free {
  background: var(--red);
}
.sw-soon {
  background: var(--red-soft);
}
.sw-taken {
  background: repeating-linear-gradient(45deg, var(--taken) 0 3px, var(--taken-line) 3px 6px);
}
.sw-requested {
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--red);
}
.sw-selected {
  background: var(--black);
  border-color: var(--red);
}
.sw-off {
  background: var(--off);
  border-color: var(--off-ink);
}

