/* ==========================================================================
   Bearchell Orlando Vacation — mobile-first redesign
   (spec: design_handoff_orlando_redesign)
   ========================================================================== */

:root {
  --bg: #fdf9f3;
  --surface: #ffffff;
  --ink: #26211c;
  --ink-soft: #6b6259;
  --ink-faint: #9a9086;
  --line: #efe7dc;
  --card-line: #f2e9dc;
  --sun: #ff7847;
  --sun-deep: #f4511e;
  --flamingo: #ec4899;
  --violet: #7c3aed;
  --palm: #0e9f6e;
  --sky: #0ea5e9;
  --gold: #f59e0b;
  --hero-grad: linear-gradient(135deg, #ff9a5a 0%, #ff6a3d 34%, #f43f7b 68%, #8b5cf6 100%);
  --accent-grad: linear-gradient(135deg, #ff7847, #f43f7b);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  transition: background 0.2s ease;
}

body.hq-dark { background: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; }
a { color: var(--sun-deep); }

/* --------------------------------------------------------------------------
   Top tabs (desktop) + bottom nav (mobile)
   -------------------------------------------------------------------------- */
.top-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: none;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(253, 249, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tab:hover { background: rgba(255, 120, 71, 0.10); color: var(--sun-deep); }
.tab.active { background: var(--ink); color: #fff; }

body.hq-dark .top-tabs { background: rgba(38, 33, 28, 0.92); border-bottom-color: rgba(255, 255, 255, 0.08); }
body.hq-dark .tab { color: rgba(255, 255, 255, 0.65); }
body.hq-dark .tab.active { background: var(--accent-grad); color: #fff; }

.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0 16px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.bottomnav-bar {
  pointer-events: auto;
  background: var(--ink);
  border-radius: 999px;
  padding: 8px;
  display: flex;
  box-shadow: 0 10px 30px rgba(38, 33, 28, 0.25);
  max-width: 560px;
  margin: 0 auto;
}

body.hq-dark .bottomnav-bar { background: rgba(255, 255, 255, 0.08); box-shadow: none; }

.bn-item {
  flex: 1;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  transition: all 0.15s ease;
}
body.hq-dark .bn-item { color: rgba(255, 255, 255, 0.55); }
.bn-item .bn-emoji { font-size: 18px; line-height: 1.2; }
.bn-item .bn-label { font-size: 10px; font-weight: 700; }
.bn-item.active { background: var(--accent-grad); color: #fff; }
.bn-item.active .bn-label { font-weight: 800; }

@media (min-width: 700px) {
  .top-tabs { display: flex; }
  .bottomnav { display: none; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

@media (max-width: 699.98px) {
  main { padding: 0 18px 30px; }
  body { padding-bottom: 86px; } /* clear the floating nav */
}

.view { display: none; }
.view.active { display: block; animation: fadeUp 0.25s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

.page-head { padding: 22px 2px 8px; }
.page-head.center { text-align: center; }
.page-title { font-family: var(--font-display); font-weight: 900; font-size: 30px; letter-spacing: -0.02em; }
.page-sub { color: var(--ink-soft); font-size: 13.5px; font-weight: 600; margin-top: 2px; }

.empty {
  text-align: center;
  color: var(--ink-faint);
  padding: 34px 16px;
  font-size: 14.5px;
}

.hint { font-size: 13px; color: var(--ink-faint); margin-top: 8px; }

/* --------------------------------------------------------------------------
   HOME
   -------------------------------------------------------------------------- */
.home-wrap { display: flex; flex-direction: column; }

.home-hero {
  position: relative;
  background: linear-gradient(150deg, #ff9a5a 0%, #ff6a3d 38%, #f43f7b 75%, #8b5cf6 110%);
  color: #fff;
  padding: 26px 22px 56px;
  margin: 0 -18px;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.30) 0 38px, transparent 39px),
    radial-gradient(circle at 8% 85%, rgba(255, 255, 255, 0.12) 0, transparent 40%);
  pointer-events: none;
}

.home-hero-inner { position: relative; }

.home-brandrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.home-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-datepill {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.home-count {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.home-count-sub { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-top: 2px; }

.home-dots { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.home-dot { width: 22px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); }
.home-dot.on { background: rgba(255, 255, 255, 0.95); }

.home-body {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* First-up ticket */
.ticket {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(38, 33, 28, 0.12);
  overflow: hidden;
}
.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 10px;
  background: var(--ink);
  color: #fff;
}
.ticket-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb38a;
  white-space: nowrap;
}
.ticket-date { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.ticket-body { display: flex; gap: 14px; padding: 14px 18px 16px; align-items: center; }
.ticket-emoji { font-size: 36px; background: #fdf3ea; border-radius: 16px; padding: 10px; line-height: 1; }
.ticket-info { flex: 1; min-width: 0; }
.ticket-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.2; }
.ticket-when {
  color: var(--sun-deep);
  font-weight: 800;
  font-size: 13px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-who { color: var(--ink-faint); font-size: 12.5px; margin-top: 2px; }

/* Weather strip */
.wx { display: flex; gap: 8px; }
.wx-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 10px 4px;
  text-align: center;
  min-width: 0;
}
.wx-day { font-size: 10.5px; font-weight: 800; color: var(--ink-faint); letter-spacing: 0.06em; }
.wx-icon { font-size: 18px; margin: 3px 0 1px; }
.wx-temp { font-family: var(--font-display); font-weight: 800; font-size: 13px; }

/* Quick actions */
.qa { display: flex; gap: 12px; }
.qa-card {
  flex: 1;
  border-radius: 20px;
  padding: 16px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: transform 0.15s ease;
}
.qa-card:active { transform: scale(0.98); }
.qa-vote { background: var(--accent-grad); color: #fff; }
.qa-fav { background: var(--surface); border: 1.5px solid var(--card-line); }
.qa-emoji { font-size: 24px; }
.qa-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.qa-sub { font-size: 12px; font-weight: 600; }
.qa-vote .qa-sub { opacity: 0.9; }
.qa-fav .qa-sub { color: var(--sun-deep); font-weight: 800; }

/* Travelers row */
.trav {
  background: var(--surface);
  border: 1.5px solid var(--card-line);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trav-avatars { display: flex; }
.trav-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.trav-av + .trav-av { margin-left: -10px; }
.trav-text { flex: 1; font-size: 13px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trav-party { font-size: 18px; }

@media (min-width: 700px) {
  .home-wrap { max-width: 520px; margin: 0 auto; }
  .home-hero { margin: 0; border-radius: 28px; }
}

/* --------------------------------------------------------------------------
   PLAN
   -------------------------------------------------------------------------- */
.pf-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-row::-webkit-scrollbar { display: none; }

.pf-all {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--card-line);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.pf-all.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.pf-av {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--card-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: all 0.15s ease;
}
.pf-av.on { background: var(--ink); border-color: var(--ink); }

.daypicker { display: flex; gap: 8px; padding: 14px 0 6px; }
.dp {
  flex: 1;
  min-height: 56px;
  border-radius: 16px;
  background: var(--surface);
  border: 1.5px solid var(--card-line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  min-width: 0;
}
.dp-dow { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; opacity: 0.75; }
.dp-num { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.dp.on {
  background: linear-gradient(150deg, #ff7847, #f43f7b);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(244, 63, 123, 0.35);
}

.plan-days { display: flex; flex-direction: column; }
.plan-day { display: none; }
.plan-day.sel { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }

.day-h { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.day-chip {
  background: #ffe9df;
  color: var(--sun-deep);
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: middle;
  letter-spacing: 0.05em;
  margin-left: 8px;
  font-family: var(--font-body);
}

.ev {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(38, 33, 28, 0.08);
  overflow: hidden;
}
.ev-strip { height: 6px; background: linear-gradient(90deg, #ff7847, #f43f7b); }
.ev-body { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; }
.ev-emoji { font-size: 30px; background: #fdf3ea; border-radius: 14px; padding: 9px; line-height: 1; }
.ev-info { flex: 1; min-width: 0; }
.ev-time { color: var(--sun-deep); font-weight: 800; font-size: 12px; letter-spacing: 0.04em; }
.ev-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.ev-notes { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.ev-who { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ev-pill {
  font-size: 11.5px;
  font-weight: 700;
  background: #f4f1ec;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.ev-pill.all { border: 1px dashed #d8cfc3; color: var(--ink-soft); background: #f4f1ec; }

/* category theming for event cards */
.ev[data-cat="Universal"] .ev-strip { background: linear-gradient(90deg, #7c3aed, #f43f7b); }
.ev[data-cat="Universal"] .ev-emoji { background: #f0ebff; }
.ev[data-cat="Universal"] .ev-time { color: var(--violet); }
.ev[data-cat="Water Park"] .ev-strip { background: linear-gradient(90deg, #0ea5e9, #7c3aed); }
.ev[data-cat="Water Park"] .ev-emoji { background: #e0f4ff; }
.ev[data-cat="Water Park"] .ev-time { color: var(--sky); }
.ev[data-cat="Other"] .ev-strip { background: linear-gradient(90deg, #f59e0b, #ec4899); }
.ev[data-cat="Other"] .ev-emoji { background: #fff3d6; }
.ev[data-cat="Other"] .ev-time { color: #b45309; }
.ev[data-cat="Sports"] .ev-strip { background: linear-gradient(90deg, #0e9f6e, #0ea5e9); }
.ev[data-cat="Sports"] .ev-emoji { background: #ddf6ec; }
.ev[data-cat="Sports"] .ev-time { color: var(--palm); }

.day-open {
  border: 2px dashed #e8ddcd;
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 13.5px;
}

.plan-extra-h { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-top: 18px; }

@media (min-width: 700px) {
  .daypicker { display: none; }
  .plan-days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    align-items: start;
    padding-top: 10px;
  }
  .plan-day { display: flex; flex-direction: column; gap: 12px; padding-top: 0; }
}

/* --------------------------------------------------------------------------
   VOTE
   -------------------------------------------------------------------------- */
.vote-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.id-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--card-line);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  transition: all 0.15s ease;
  flex: 0 0 auto;
}
.id-chip:hover { border-color: var(--sun); }
.id-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffe9df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.id-name { font-weight: 800; font-size: 13px; white-space: nowrap; }

.cat-row { display: flex; gap: 8px; padding: 12px 0 4px; flex-wrap: wrap; align-items: center; }
.cat-pill {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--card-line);
  color: var(--ink-soft);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.cat-pill[data-cat="Disney"] { background: #ffe9df; color: #f4511e; border-color: transparent; }
.cat-pill[data-cat="Universal"] { background: #f0ebff; color: #7c3aed; border-color: transparent; }
.cat-pill[data-cat="Water Park"] { background: #e0f4ff; color: #0ea5e9; border-color: transparent; }
.cat-pill[data-cat="Other"] { background: #fff3d6; color: #b45309; border-color: transparent; }
.cat-pill[data-cat="Sports"] { background: #ddf6ec; color: #0e9f6e; border-color: transparent; }
.cat-pill.on { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }

.sort-select {
  border: 1.5px solid var(--card-line);
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  width: auto;
  min-height: 40px;
  margin-left: auto;
}

.vote-grid { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }

.vote-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(38, 33, 28, 0.10);
  overflow: hidden;
}

.vc-head {
  background: linear-gradient(135deg, #ff7847, #f59e0b);
  padding: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vote-card[data-cat="Universal"] .vc-head { background: linear-gradient(135deg, #7c3aed, #f43f7b); }
.vote-card[data-cat="Water Park"] .vc-head { background: linear-gradient(135deg, #0ea5e9, #7c3aed); }
.vote-card[data-cat="Other"] .vc-head { background: linear-gradient(135deg, #f59e0b, #ec4899); }
.vote-card[data-cat="Sports"] .vc-head { background: linear-gradient(135deg, #0e9f6e, #0ea5e9); }

.vc-wm {
  position: absolute;
  right: -12px;
  top: -16px;
  font-size: 96px;
  opacity: 0.25;
  transform: rotate(12deg);
  line-height: 1;
  pointer-events: none;
}
.vc-chips { display: flex; gap: 6px; margin-bottom: 8px; position: relative; flex-wrap: wrap; }
.vc-cat {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vc-cost { background: rgba(255, 255, 255, 0.92); color: #f4511e; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; }
.vote-card[data-cat="Universal"] .vc-cost { color: #7c3aed; }
.vote-card[data-cat="Water Park"] .vc-cost { color: #0ea5e9; }
.vote-card[data-cat="Other"] .vc-cost { color: #b45309; }
.vote-card[data-cat="Sports"] .vc-cost { color: #0e9f6e; }

.vc-name { font-family: var(--font-display); font-weight: 900; font-size: 24px; letter-spacing: -0.01em; position: relative; }
.vc-best { font-weight: 700; font-size: 13px; opacity: 0.95; position: relative; }

.vc-body { padding: 14px 18px 16px; }
.vc-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.vc-details { color: var(--ink-faint); font-size: 12px; margin-top: 6px; }
.vc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--sun-deep);
  text-decoration: none;
  background: #fdf3ea;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 32px;
  transition: all 0.15s ease;
}
.vc-link:hover { background: #ffe9df; transform: translateY(-1px); }

.vc-tally { display: flex; gap: 12px; margin: 10px 0 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-faint); white-space: nowrap; }
.vc-tally span { white-space: nowrap; }

.vc-row { display: flex; gap: 8px; }
.vbtn {
  flex: 1;
  min-height: 52px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.15s ease;
  padding: 0 4px;
}
.vbtn.must { flex: 1.3; }
.vbtn:disabled { opacity: 0.55; cursor: default; }
.vbtn:not(:disabled):hover { transform: translateY(-1px); }
.vbtn.must.on {
  background: linear-gradient(135deg, #ec4899, #f43f7b);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}
.vbtn.fun.on { background: #ddf6ec; border-color: var(--palm); color: #047857; }
.vbtn.pass.on { background: #f1f0ee; border-color: #b9b2a9; color: #57534e; }

@media (min-width: 700px) {
  .vote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
}
@media (min-width: 1080px) {
  .vote-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Rooms segment (Pick Your Room)
   -------------------------------------------------------------------------- */
.seg {
  display: flex;
  gap: 6px;
  background: #f4efe7;
  border-radius: 999px;
  padding: 5px;
  margin-top: 12px;
}
.seg-btn {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.seg-btn.on { background: var(--ink); color: #fff; }

.house-band {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1.5px solid var(--card-line);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 12px;
}
.house-img { width: 118px; min-height: 100%; object-fit: cover; flex: 0 0 118px; }
.house-info { padding: 12px 14px; min-width: 0; }
.house-link { margin-top: 8px; }
.house-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.house-sub { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

.room-mypicks {
  margin-top: 10px;
  background: #fff8ec;
  border: 1px solid #ffe1a8;
  color: #92610a;
  border-radius: 14px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}

.room-photo { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-photo.ph { display: flex; align-items: center; justify-content: center; }
.room-photo.ph span { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18)); }
.room-photo.ph.k0 { background: linear-gradient(135deg, #7c3aed, #f43f7b); }
.room-photo.ph.k1 { background: linear-gradient(135deg, #0ea5e9, #7c3aed); }
.room-photo.ph.k2 { background: linear-gradient(135deg, #ff7847, #f59e0b); }
.room-photo.ph.k3 { background: linear-gradient(135deg, #0e9f6e, #0ea5e9); }
.room-photo.ph.k4 { background: linear-gradient(135deg, #f59e0b, #ec4899); }

.room-name { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.room-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.room-chip {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 10px;
  background: #f4f1ec;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.room-chip.hot { background: #ffe9df; color: var(--sun-deep); }
.room-chip.lock { background: #f1f0ee; color: #57534e; }

.room-feats { margin-top: 8px; }

.room-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.pick-badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.pick-badge.b1 { background: #fff3d6; color: #92610a; }
.pick-badge.b2 { background: #f1f0ee; color: #57534e; }
.pick-badge.hot { background: #ffe4ec; color: #be185d; }
.pick-badge.none { background: #f4f1ec; color: var(--ink-faint); font-weight: 600; }

.rbtn {
  flex: 1;
  min-height: 52px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.15s ease;
  padding: 0 4px;
}
.rbtn.first { flex: 1.3; }
.rbtn:disabled { opacity: 0.55; cursor: default; }
.rbtn:not(:disabled):hover { transform: translateY(-1px); }
.rbtn.first.on {
  background: linear-gradient(135deg, #f59e0b, #ffb020);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}
.rbtn.second.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.room-card.locked .room-photo { filter: saturate(0.5); opacity: 0.85; }
.room-locked-note {
  background: #f4f1ec;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Identity picker panel (Vote view) + join / PIN forms
   -------------------------------------------------------------------------- */
.identity-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--card-line);
  border-radius: 20px;
  padding: 14px 16px;
  margin-top: 12px;
}

.identity-label { font-weight: 800; font-size: 13.5px; margin-right: 2px; }

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--card-line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.15s ease;
  min-height: 40px;
}
.person-chip:hover { border-color: var(--sun); color: var(--sun-deep); }
.person-chip.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.person-chip.add { border-style: dashed; color: var(--ink-faint); }

.claim-box {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff8ec;
  border: 1px solid #ffe1a8;
  border-radius: 14px;
  padding: 10px 14px;
}

/* --------------------------------------------------------------------------
   RANKS
   -------------------------------------------------------------------------- */
.podium { display: flex; align-items: flex-end; gap: 10px; padding: 22px 4px 0; }
.pod { flex: 1; text-align: center; min-width: 0; }
.pod.gold { flex: 1.15; }
.pod-emoji { font-size: 34px; line-height: 1.2; }
.pod.gold .pod-emoji { font-size: 42px; }
.pod-name {
  font-weight: 800;
  font-size: 12px;
  margin: 4px 0 6px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pod.gold .pod-name { font-size: 12.5px; }
.pod.clickable { cursor: pointer; transition: transform 0.15s ease; }
.pod.clickable:hover { transform: translateY(-2px); }

.pod-col { border-radius: 14px 14px 0 0; padding: 14px 6px 10px; }
.pod.silver .pod-col { background: linear-gradient(180deg, #d8d3cc, #c3bcb2); }
.pod.gold .pod-col { background: linear-gradient(180deg, #ffd66b, #f59e0b); padding: 26px 6px 12px; box-shadow: 0 -6px 24px rgba(245, 158, 11, 0.35); }
.pod.bronze .pod-col { background: linear-gradient(180deg, #e8b184, #cd7f52); padding: 8px 6px; }
.pod-medal { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #fff; line-height: 1.3; }
.pod.gold .pod-medal { font-size: 26px; }
.pod-pts { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #fff; }
.pod.gold .pod-pts { font-size: 15px; }

.pod-bar { height: 4px; background: var(--ink); margin: 0 2px; border-radius: 99px; }

.rank-list { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.rank-item {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--card-line);
  padding: 12px 14px;
  cursor: pointer;
}
.rank-main { display: flex; align-items: center; gap: 12px; }
.rank-n { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-faint); width: 22px; text-align: center; flex: 0 0 22px; }
.rank-emoji { font-size: 24px; line-height: 1; }
.rank-mid { flex: 1; min-width: 0; }
.rank-name { font-weight: 800; font-size: 14px; }
.rank-bar { height: 6px; border-radius: 99px; background: #f2ece3; overflow: hidden; margin-top: 5px; }
.rank-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff7847, #ec4899); transition: width 0.4s ease; }
.rank-pts { font-family: var(--font-display); font-weight: 800; color: var(--sun-deep); font-size: 14px; white-space: nowrap; }

.rank-detail { display: none; padding: 10px 2px 2px 34px; }
.rank-item.open .rank-detail { display: flex; flex-wrap: wrap; gap: 6px; }

.rank-hint { text-align: center; color: var(--ink-faint); font-size: 12.5px; font-weight: 700; padding: 8px 0 4px; }

.voter-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.voter-badge.p2 { background: #ffe4ec; color: #be185d; }
.voter-badge.p1 { background: #ddf6ec; color: #047857; }
.voter-badge.p0 { background: #f1f0ee; color: #78716c; }

@media (min-width: 700px) {
  .podium, .pod-bar, .rank-list, .rank-hint { max-width: 560px; margin-left: auto; margin-right: auto; }
  .rank-list, .podium { width: 100%; }
  .pod-bar { width: 100%; }
}

/* --------------------------------------------------------------------------
   TRIP HQ — lock screen
   -------------------------------------------------------------------------- */
.hq-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 48px 30px 0;
  text-align: center;
  color: #fff;
}
.hq-emoji { font-size: 44px; }
.hq-title { font-family: var(--font-display); font-weight: 900; font-size: 28px; letter-spacing: -0.01em; color: #fff; }
.hq-sub { color: rgba(255, 255, 255, 0.6); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }

.hq-dots { display: flex; gap: 14px; margin-bottom: 22px; justify-content: center; }
.hq-dots.shake { animation: shake 0.3s ease; }
.hq-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); }
.hq-dot.fill { background: var(--accent-grad); border: none; }

.hq-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; justify-content: center; }
.hq-key {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  transition: background 0.12s ease;
}
.hq-key:active { background: rgba(255, 255, 255, 0.2); }
.hq-key.ghost { background: transparent; border: none; cursor: default; }
.hq-key.del { background: transparent; border: none; font-size: 22px; color: rgba(255, 255, 255, 0.6); font-family: var(--font-body); }

.hq-unlock {
  margin-top: 20px;
  background: var(--accent-grad);
  color: #fff;
  border-radius: 999px;
  padding: 13px 42px;
  font-weight: 800;
  font-size: 15px;
  transition: all 0.15s ease;
}
.hq-unlock:hover { transform: translateY(-1px); }

.hq-alt {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}
.hq-altrow { display: flex; gap: 8px; margin-top: 14px; }
.hq-altrow input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  padding: 10px 16px;
  width: 200px;
}
.hq-altrow input:focus { outline: none; border-color: var(--sun); }

.hq-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 600;
  padding: 26px 30px 10px;
}

body.hq-dark .footer { display: none; }

/* --------------------------------------------------------------------------
   Admin (unlocked) — cards & forms
   -------------------------------------------------------------------------- */
.admin-section {
  background: var(--surface);
  border: 1px solid var(--card-line);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(38, 33, 28, 0.06);
  padding: 20px;
  margin-bottom: 20px;
}
.admin-section > h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); letter-spacing: 0.03em; text-transform: uppercase; }

input[type="text"], input[type="date"], input[type="time"], input[type="password"], input[type="url"], input[type="number"], select, textarea {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 3px rgba(255, 120, 71, 0.15);
}
textarea { resize: vertical; min-height: 64px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 800;
  transition: all 0.15s ease;
  min-height: 44px;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-sun { background: var(--accent-grad); color: #fff; }
.btn-sun:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); }
.btn-danger { background: transparent; color: #dc2626; border: 1.5px solid #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-small { padding: 7px 14px; font-size: 13px; min-height: 36px; }

.form-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.admin-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.admin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 10px 13px;
  background: #fffdfa;
  flex-wrap: wrap;
}
.admin-row .grow { flex: 1; min-width: 140px; }
.admin-row .row-title { font-weight: 800; font-size: 14.5px; }
.admin-row .row-sub { color: var(--ink-faint); font-size: 12.5px; }

.admin-day-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 12px 0 4px;
}

.attendee-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.attendee-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  background: #fff;
  min-height: 40px;
}
.attendee-check:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.attendee-check input { accent-color: var(--sun); margin: 0; width: auto; }

.attendee-vote { font-size: 12px; }

.vote-helper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Toast + footer
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(38, 33, 28, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #dc2626; }

@media (max-width: 699.98px) {
  .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

.footer {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  padding: 0 16px 30px;
}
