@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Fira+Sans:wght@400;500;600&display=swap");
:root {
  --navy: #0b1f3a;
  --gold: #c4a35a;
  --cream: #f4efe4;
  --paper: #fffdf8;
  --line: #e4dccb;
  --ink: #1b2430;
  --muted: #667085;
  --vd: #8a5a44;
  --vc: #c4a35a;
  --vi: #2f6f4e;
  --od: #1e4a86;
  --ooo: #9b3b32;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: "Fira Sans", sans-serif; color: var(--ink); background: var(--cream); }
body { display: grid; grid-template-columns: 240px 1fr; }
aside { background: var(--navy); color: #eef3fb; padding: 22px 16px; display: flex; flex-direction: column; }
.logo { font-family: "Cormorant Garamond", serif; font-size: 26px; margin: 0; color: var(--gold); }
.prop { font-size: 12px; color: #c9d4e5; margin: 4px 0 18px; }
nav button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  color: #d7deea; padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit;
}
nav button.on { background: rgba(196,163,90,.2); color: var(--gold); }
.guest { margin-top: auto; color: var(--gold); text-decoration: none; font-size: 13px; }
.bar { display: flex; justify-content: space-between; align-items: flex-end; padding: 22px 28px 0; }
h1 { font-family: "Cormorant Garamond", serif; font-size: 34px; margin: 0; }
.sub { margin: 4px 0 0; color: var(--muted); }
.pin { display: flex; gap: 8px; align-items: center; }
.pin input, button.act, select {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; background: #fff;
}
button.act, .pin button, .chip {
  cursor: pointer; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px;
}
#view { padding: 20px 28px 40px; }
.error { color: var(--ooo); padding: 0 28px; }
.grid { display: grid; gap: 10px; }
.rooms { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.meta { color: var(--muted); font-size: 12px; }
.tag { display: inline-block; background: #efe6d2; color: #5a4a28; border-radius: 999px; padding: 2px 8px; margin: 2px 4px 0 0; font-size: 11px; }
.st { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.st.VD { color: var(--vd); } .st.VC { color: var(--vc); } .st.VI { color: var(--vi); }
.st.OD { color: var(--od); } .st.OOO { color: var(--ooo); }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; }
.call-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.call-filters button {
  cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 12px;
}
.call-filters button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.call-summary { max-width: 460px; font-weight: 500; }
.cat {
  display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 11px;
  font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.cat-complaint { background: #f8d9d6; color: #7a2e28; }
.cat-guest-request { background: #dce8f8; color: #1e4a86; }
.cat-maintenance { background: #f3e0c8; color: #8a5a20; }
.cat-stay-change { background: #dcefe4; color: #2f6f4e; }
.cat-sales { background: #efe6d2; color: #5a4a28; }
.cat-inquiry { background: #ece7f7; color: #4b3d7a; }
.cat-other { background: #ececec; color: #555; }
.call-brief { display: flex; gap: 8px; align-items: center; margin: 6px 0 0; flex-wrap: wrap; }
.call-brief span { font-size: 15px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.building { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: stretch; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.floor-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 10px; cursor: pointer; font: inherit; text-align: left;
}
.floor-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.floor-btn .fl { font-family: "Cormorant Garamond", serif; font-size: 22px; line-height: 1; }
.floor-btn .fl-sub { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.plan-card { background: #0b1f3a; border-radius: 18px; padding: 14px 16px 16px; color: #eef3fb; }
.plan-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; }
.plan-head strong { font-family: "Cormorant Garamond", serif; font-size: 22px; }
.plan-head span { font-size: 12px; color: #c9d4e5; }
.floor-plan {
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  grid-template-rows: auto 64px auto;
  gap: 8px;
  min-height: 280px;
}
.core {
  grid-row: 1 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #143056; border-radius: 12px; color: var(--gold); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; text-align: center; padding: 10px 6px;
}
.core svg { width: 28px; height: 28px; }
.stairwell { grid-column: 1; }
.lift { grid-column: 3; }
.wing-wrap { display: flex; flex-direction: column; gap: 4px; }
.wing-wrap.north { grid-column: 2; grid-row: 1; }
.wing-wrap.south { grid-column: 2; grid-row: 3; }
.wing { display: grid; gap: 6px; }
.wing-label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #9eb0c9;
}
.tile.room {
  border: 0; border-radius: 10px; min-height: 58px; cursor: pointer; color: #fff; text-align: left;
  padding: 8px; font: inherit; display: flex; flex-direction: column; justify-content: space-between;
}
.tile.room b { font-size: 14px; }
.tile.room i { font-style: normal; font-size: 10px; opacity: .85; }
.tile.room.VI { background: var(--vi); }
.tile.room.VC { background: var(--vc); color: var(--navy); }
.tile.room.VD { background: var(--vd); }
.tile.room.OD { background: var(--od); }
.tile.room.OOO { background: var(--ooo); }
.tile.room.on { box-shadow: 0 0 0 2px #e8d5a3; }
.hall {
  grid-column: 2; grid-row: 2; position: relative;
  display: flex; align-items: center; gap: 8px;
  background: repeating-linear-gradient(90deg, #1a3358 0 12px, #16304f 12px 24px);
  border: 1px dashed #c4a35a66; border-radius: 10px; padding: 6px 8px; overflow: hidden;
}
.hall-name {
  flex: 1; text-align: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #e8d5a3;
}
.amen {
  display: flex; align-items: center; gap: 6px; background: #0f2747; color: #e8d5a3;
  border-radius: 8px; padding: 6px 8px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.amen svg { width: 16px; height: 16px; flex: none; }
.bot {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(196,163,90,.25); transform: translate(-50%, -50%);
  transition: left 1.2s ease, top 1.2s ease, right 1.2s ease;
  z-index: 2;
}
.inspect { margin-top: 12px; }
.pipeline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pipe { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 110px; }
.pipe b { display: block; font-size: 22px; }
.waiting { background: #fff7e6; border: 1px solid var(--gold); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.draft { white-space: pre-wrap; background: #fff; border-radius: 10px; padding: 12px; border: 1px solid var(--line); }
.row-actions { display: flex; gap: 6px; }
.call-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}
.call-modal[hidden] { display: none !important; }
.call-modal-backdrop {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgba(11, 31, 58, .58);
  cursor: pointer;
}
.call-sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 22px;
}
.call-modal-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  margin: 0;
  box-shadow: 0 28px 80px rgba(11, 31, 58, .32);
}
body.modal-on { overflow: hidden; }
.call-sheet-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  position: sticky; top: -18px; z-index: 2;
  background: var(--paper); padding-top: 4px; padding-bottom: 10px;
}
.call-sheet-head h2 { font-family: "Cormorant Garamond", serif; font-size: 26px; margin: 0; }
.call-sheet audio { width: 100%; margin: 8px 0 4px; }
.call-block { margin-top: 16px; }
.call-block h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.talk { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.talk .who { display: inline-block; min-width: 56px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.action-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.action-row strong { display: block; }
.action-row .meta { text-align: right; }
tr.picked td { background: #efe6d2; }
button.ghost {
  cursor: pointer; background: transparent; color: var(--navy); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font: inherit;
}
@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  aside { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  nav { display: flex; flex-wrap: wrap; }
  .building { grid-template-columns: 1fr; }
  .stack { flex-direction: row; overflow-x: auto; }
  .floor-plan { grid-template-columns: 56px 1fr 56px; }
}
