/* Guest Desk — shared styles */
:root {
  --ink: #12302f;
  --ink-2: #3d5654;
  --muted: #7a8b89;
  --teal: #0f4c4a;
  --teal-2: #17706c;
  --gold: #c8963e;
  --gold-soft: #f3e6cc;
  --sand: #f7f3ec;
  --card: #ffffff;
  --line: #e7e1d6;
  --danger: #b4443a;
  --ok: #2e7d5b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18,48,47,.05), 0 12px 32px -12px rgba(18,48,47,.18);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--sand); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--gold); }
.input, select.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink); background: #fcfbf8;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s; appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%237a8b89' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea.input { resize: vertical; min-height: 96px; }
.input:focus { outline: none; border-color: var(--teal-2); background: #fff; box-shadow: 0 0 0 4px rgba(23,112,108,.12); }
.input.has-error { border-color: var(--danger); }
.err { color: var(--danger); font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--sans); border: 0; border-radius: 12px; padding: 13px 22px; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -8px rgba(15,76,74,.6); }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-danger { background: #fbecea; color: var(--danger); }
.btn-danger:hover { background: #f6dad6; }
.btn-block { width: 100%; }

.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e6f3ec; color: var(--ok); }
.alert-error { background: #fbecea; color: var(--danger); }

/* ---------- Public page ---------- */
.public { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.hero {
  position: relative; overflow: hidden; color: #f4efe5; padding: 28px 20px 84px;
  background: radial-gradient(120% 90% at 0% 0%, #1a6b67 0%, var(--teal) 45%, #0a3433 100%);
}
.hero::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(200,150,62,.35); box-shadow: 0 0 0 40px rgba(200,150,62,.06), 0 0 0 90px rgba(200,150,62,.04); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gold); color: var(--teal); font-family: var(--serif); font-weight: 700; font-size: 18px; }
.hero-copy { position: relative; z-index: 1; margin-top: 40px; max-width: 460px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; color: var(--gold); font-weight: 600; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.06; margin: 12px 0 14px; color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero p { color: rgba(244,239,229,.78); margin: 0; max-width: 400px; }
.hero-points { display: none; list-style: none; padding: 0; margin: 36px 0 0; gap: 14px; flex-direction: column; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(244,239,229,.85); font-size: 14.5px; }
.hero-points svg { flex: none; margin-top: 2px; }

.form-wrap { padding: 0 14px 40px; margin-top: -56px; position: relative; z-index: 2; }
.form-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 24px 20px; max-width: 620px; margin: 0 auto; }
.form-card h2 { font-size: 24px; }
.form-card .sub { color: var(--muted); margin: 4px 0 22px; font-size: 14px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.section-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin: 8px 0 -4px; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fcfbf8; overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: transparent; font-size: 20px; color: var(--teal); cursor: pointer; }
.stepper button:hover { background: var(--gold-soft); }
.stepper input { flex: 1; border: 0; text-align: center; font: 600 16px var(--sans); background: transparent; color: var(--ink); min-width: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; }

.budget-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.budget-options label { position: relative; cursor: pointer; }
.budget-options input { position: absolute; opacity: 0; }
.budget-options span { display: block; padding: 11px 10px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: #fcfbf8; transition: all .15s; }
.budget-options input:checked + span { border-color: var(--teal); background: var(--teal); color: #fff; }
.budget-options input:focus-visible + span { box-shadow: 0 0 0 4px rgba(23,112,108,.18); }
.nights-chip { display: inline-block; font-size: 12.5px; background: var(--gold-soft); color: #7a5617; padding: 4px 10px; border-radius: 99px; font-weight: 600; }

.success-card { text-align: center; padding: 20px 4px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: #e6f3ec; display: grid; place-items: center; margin: 0 auto 16px; }
.summary { text-align: left; background: var(--sand); border-radius: 14px; padding: 14px 16px; margin: 20px 0; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.summary div:last-child { border: 0; }
.summary dt { color: var(--muted); }
.footer-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 18px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .budget-options { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 34px 32px; }
}
@media (min-width: 980px) {
  .public { grid-template-columns: minmax(380px, 5fr) 7fr; }
  .hero { padding: 40px 48px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; }
  .hero-copy { margin-top: auto; margin-bottom: auto; }
  .hero-points { display: flex; }
  .form-wrap { margin-top: 0; padding: 56px 40px; display: flex; align-items: center; }
  .form-card { width: 100%; }
}

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(100% 70% at 50% 0%, #1a6b67 0%, var(--teal) 50%, #0a3433 100%); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 32px 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.auth-card .brand { color: var(--ink); margin-bottom: 26px; }

/* ---------- Admin ---------- */
.admin { display: flex; min-height: 100vh; }
.sidebar { width: 248px; background: var(--teal); color: #e9e3d6; padding: 22px 16px; position: fixed; inset: 0 auto 0 0; z-index: 40; transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column; }
.sidebar.open { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
.sidebar .brand { color: #fff; padding: 4px 8px 22px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: rgba(233,227,214,.78); text-decoration: none; font-weight: 500; font-size: 14.5px; margin-bottom: 2px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(200,150,62,.18); color: #fff; }
.nav a.active svg { color: var(--gold); }
.sidebar-foot { margin-top: auto; font-size: 13px; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-foot strong { display: block; color: #fff; }
.scrim { position: fixed; inset: 0; background: rgba(10,30,30,.45); z-index: 30; display: none; }
.scrim.show { display: block; }

.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(247,243,236,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 21px; flex: 1; }
.menu-btn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.content { padding: 18px 16px 40px; max-width: 1280px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .value { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-top: 4px; line-height: 1.1; }
.stat .foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat.accent { background: var(--teal); color: #fff; }
.stat.accent .label, .stat.accent .foot { color: rgba(255,255,255,.7); }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.panel-head { padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 18px; }
.panel-body { padding: 16px 18px; }

.filters { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fcfbf8; }
.filters .search { grid-column: 1 / -1; }
.filters .input { padding: 10px 12px; font-size: 14px; }
.filters .actions { grid-column: 1 / -1; display: flex; gap: 8px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 12px 14px; background: #fcfbf8; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 14px; border-bottom: 1px solid #f0ebe2; vertical-align: top; }
table.data tr:hover td { background: #fdfbf7; }
.who strong { display: block; }
.who a { color: var(--muted); text-decoration: none; font-size: 13px; }
.purpose { max-width: 260px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-new { background: #e8eff9; color: #2f5fa0; }
.badge-contacted { background: var(--gold-soft); color: #7a5617; }
.badge-confirmed { background: #e6f3ec; color: var(--ok); }
.badge-cancelled { background: #f3eeee; color: #8d6b68; }
.budget-tag { font-size: 12.5px; color: var(--ink-2); background: var(--sand); padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.row-actions { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--teal-2); color: var(--teal); }
.icon-btn.del:hover { border-color: var(--danger); color: var(--danger); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.cur { min-width: 34px; height: 34px; padding: 0 10px; display: grid; place-items: center; border-radius: 9px; text-decoration: none; color: var(--ink-2); border: 1.5px solid var(--line); background: #fff; font-weight: 500; }
.pagination span.cur { background: var(--teal); border-color: var(--teal); color: #fff; }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; }
.bar-track { height: 10px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--teal-2), var(--teal)); border-radius: 99px; }
.bar-row .n { text-align: right; font-weight: 600; }
.two-col { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.upcoming li:last-child { border: 0; }
.date-chip { flex: none; width: 46px; text-align: center; background: var(--sand); border-radius: 10px; padding: 5px 0; line-height: 1.1; }
.date-chip b { display: block; font-family: var(--serif); font-size: 18px; }
.date-chip small { font-size: 10.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }

/* detail view */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.kv { background: var(--sand); border-radius: 12px; padding: 12px 14px; }
.kv dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.kv dd { margin: 4px 0 0; font-size: 15.5px; font-weight: 500; word-break: break-word; }
.kv.wide { grid-column: 1 / -1; }

/* Mobile: table rows become cards */
@media (max-width: 759px) {
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: 14px 18px; border-bottom: 1px solid var(--line); position: relative; }
  table.data td { padding: 3px 0; border: 0; }
  table.data td[data-l]::before { content: attr(data-l); display: inline-block; width: 92px; color: var(--muted); font-size: 12px; }
  table.data td.who { padding-right: 90px; margin-bottom: 4px; }
  table.data td.status-cell { position: absolute; top: 14px; right: 18px; width: auto; }
  table.data td.act { margin-top: 10px; }
  .purpose { max-width: none; display: inline; }
}
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; align-items: end; }
  .filters .search, .filters .actions { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .content { padding: 24px 28px 48px; }
  .topbar { padding: 16px 28px; }
}
@media (min-width: 1024px) {
  .sidebar { transform: none; position: sticky; top: 0; height: 100vh; }
  .menu-btn, .scrim { display: none !important; }
  .two-col { grid-template-columns: 3fr 2fr; }
}
@media print {
  .sidebar, .topbar, .filters, .pagination, .act, .row-actions { display: none !important; }
}
