:root {
  color-scheme: dark;
  --bg: #000; --bg2: #0c0c0f;
  --surface: rgba(28,28,32,.72); --surface2: rgba(44,44,50,.72);
  --line: rgba(255,255,255,.10);
  --text: #f5f5f7; --muted: #a1a1a6;
  --accent: #0a84ff; --ok: #30d158; --warm: #ffd60a;
  --glow1: rgba(41,151,255,.18); --glow2: rgba(191,90,242,.10);
  --grad: linear-gradient(100deg, #64d2ff, #0a84ff, #bf5af2, #5e5ce6);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: #0c0c0f; }
body {
  font-family: var(--font); color: var(--text); font-size: 15px; line-height: 1.45;
  background:
    radial-gradient(1200px 620px at 78% -10%, var(--glow1), transparent 60%),
    radial-gradient(900px 520px at 12% 108%, var(--glow2), transparent 60%),
    linear-gradient(var(--bg), var(--bg2));
  background-color: var(--bg); background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(0,0,0,.6); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.3px; font-size: 18px; }
.brand canvas { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); border: 1px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(10,132,255,.4); }
.spacer { flex: 1; }
.top .menu-btn { display: none; }
@media (max-width: 820px) {
  .nav { position: fixed; top: 60px; left: 0; right: 0; flex-direction: column; background: rgba(0,0,0,.94);
    padding: 10px 16px 16px; margin: 0; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .top .menu-btn { display: inline-flex; }
  .top .auth-slot .btn.ghost { display: none; }
}

/* ── Type ── */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.04; margin: 10px 0 14px; }
h2 { font-size: 28px; font-weight: 800; letter-spacing: -.6px; margin: 6px 0 10px; }
h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Controls ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 600;
  font-size: 15px; cursor: pointer; box-shadow: 0 6px 18px rgba(10,132,255,.35); white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: none; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { height: 36px; min-width: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--text); }
.icon-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(10,132,255,.4); }
.tag { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
.tag.blue { color: #fff; background: rgba(10,132,255,.22); border-color: rgba(10,132,255,.5); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ── Forms ── */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,.35); padding: 0 14px; font-size: 15px; outline: none; }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,132,255,.25); }
.form-card { max-width: 440px; margin: 40px auto; padding: 28px; }
.err { color: #ff6961; font-size: 13px; font-weight: 600; min-height: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.3); margin-bottom: 18px; }
.seg button { border: 0; background: none; height: 32px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ── Hero ── */
.hero > * { min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: 24px; padding: 56px 0 30px; }
.hero-orb { width: 100%; aspect-ratio: 1; max-width: 460px; justify-self: center; cursor: pointer; position: relative; }
.hero-orb canvas { width: 100%; height: 100%; display: block; }
.hero-orb .hint { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); max-width: 90%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbar { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(18px); max-width: 560px; margin-top: 22px; }
.searchbar input { flex: 1; border: 0; background: none; outline: none; padding: 0 14px; font-size: 15px; min-width: 0; }
@media (max-width: 820px) { .hero { grid-template-columns: minmax(0,1fr); padding-top: 24px; } .hero-orb { max-width: 300px; order: -1; } }
.section { padding: 40px 0; }
.stat { font-size: 30px; font-weight: 800; letter-spacing: -.6px; }

/* ── Listing cards ── */
.listing { display: block; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.listing:hover, .listing.hot { border-color: rgba(10,132,255,.7); }
.listing .thumb { aspect-ratio: 16/10; display: block; width: 100%; position: relative; }
.listing .thumb svg { width: 100%; height: 100%; display: block; }
.listing .badge { position: absolute; top: 10px; left: 10px; }
.listing .body { display: block; padding: 12px 14px 14px; }
.listing .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.price b { font-weight: 800; }
.star { color: var(--text); font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ── Map page ── */
.map-layout { display: grid; grid-template-columns: 430px 1fr; gap: 16px; height: calc(100vh - 60px - 76px); min-height: 520px; padding-bottom: 16px; }
.map-list { overflow: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; min-height: 0; }
.map-list .listing { flex: none; }
#map { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #0c0c0f; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; height: auto; } #map { height: 56vh; order: -1; } }
.leaflet-container { font-family: var(--font); background: #0c0c0f; }
.pin { background: rgba(28,28,32,.95); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  font-weight: 700; font-size: 12px; padding: 4px 9px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.4); transform: translate(-50%, -50%); display: inline-block; }
.pin.hot, .pin:hover { background: var(--accent); border-color: var(--accent); }
.leaflet-div-icon { background: none; border: 0; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: rgba(28,28,32,.97); color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 10px 12px; }
.leaflet-control-zoom a { background: rgba(28,28,32,.95) !important; color: #fff !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(0,0,0,.6) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }

/* ── Stay page ── */
.stay-hero { border-radius: 14px; overflow: hidden; aspect-ratio: 21/8; border: 1px solid var(--line); margin-top: 18px; }
.stay-hero svg { width: 100%; height: 100%; display: block; }
.stay-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 22px 0 40px; }
@media (max-width: 900px) { .stay-grid { grid-template-columns: 1fr; } .stay-hero { aspect-ratio: 16/9; } }
.facts { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: 14px; }
.facts span { display: inline-flex; gap: 6px; align-items: center; }
.book-card { position: sticky; top: 76px; align-self: start; }
.line { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; }
.save { color: var(--ok); font-weight: 600; }

/* ── Agent ── */
.agent { display: grid; grid-template-rows: auto 1fr auto; height: calc(100vh - 60px); max-width: 820px; margin: 0 auto; padding: 0 16px; }
.agent-orb { display: flex; justify-content: center; align-items: center; }
.agent-orb canvas { width: clamp(220px, 40vh, 380px); height: clamp(220px, 40vh, 380px); cursor: pointer; }
.agent-status { text-align: center; margin-top: -6px; min-height: 20px; }
.transcript { overflow: auto; padding: 8px 2px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.xenia { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-cards { align-self: stretch; display: grid; gap: 8px; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 6px 0 14px; }
.composer { display: flex; gap: 8px; align-items: center; padding: 10px 0 18px; }
.composer .bar { flex: 1; display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 6px 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(18px); }
.composer input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; min-width: 0; }
.mic { width: 50px; height: 50px; border-radius: 999px; border: 0; cursor: pointer; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); box-shadow: 0 6px 18px rgba(10,132,255,.4); flex: none; }
.mic.live { background: #ff453a; box-shadow: 0 6px 18px rgba(255,69,58,.4); }
.flight { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; }
.flight .times { font-weight: 800; font-size: 17px; letter-spacing: -.2px; }
.flight .meta { font-size: 13px; color: var(--muted); font-weight: 500; }
.mini-stays { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.mini-stays .listing .body { padding: 8px 10px 10px; }
.conf { border-color: rgba(48,209,88,.5); }

/* Floating Xenia button */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px 0 6px;
  border-radius: 999px; background: rgba(20,20,24,.85); border: 1px solid var(--line); backdrop-filter: blur(18px); font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.fab canvas { width: 42px; height: 42px; }

/* ── Owners ── */
.service { display: grid; gap: 10px; padding: 22px; }
.service .ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(10,132,255,.16); color: var(--accent); }
.service .ic svg.i { width: 22px; height: 22px; }
.service ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.service li { margin: 3px 0; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare td, .compare th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

/* ── Host dashboard ── */
.kpi .label { margin-bottom: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td, .table th { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-size: 12px; font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; border-radius: 14px; background: rgba(28,28,32,.96);
  color: #fff; font-size: 14px; font-weight: 600; padding: 12px 16px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); border: 1px solid var(--line); }
.demo-note { font-size: 12px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 26px 0 90px; margin-top: 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.hidden { display: none !important; }
