/* ==========================================================================
   Maikazaka — day: soft steel grey · night: Man of Steel black
   Tokens · base · components · nav · explorer (globe) · pages · auth
   ========================================================================== */

:root {
  --bg: #e3e5e8;
  --bg-2: #dfe2e6;
  --bg-3: #d2d6dc;
  --panel: rgba(238, 240, 242, 0.84);
  --panel-solid: #eef0f2;
  --panel-hi: rgba(242, 243, 245, 0.96);
  --line: rgb(var(--ink-rgb) / 0.09);
  --line-2: rgb(var(--ink-rgb) / 0.15);
  --text: #23272d;
  --text-2: #4f5660;
  --muted: #6f7681;
  --ink: #23272d;
  --accent: #a8323c;
  --accent-deep: #8a2630;
  --accent-2: #b9c0c9;
  --aqua: #5f7a8f;
  --violet: #7d84a6;
  --gold: #a88742;
  --success: #4d8566;
  --warning: #a8812f;
  --danger: #a8323c;
  --bg-rgb: 227 229 232;
  --panel-rgb: 238 240 242;
  --ink-rgb: 35 39 45;
  --shadow-rgb: 35 39 45;
  --featured: var(--aqua);
  --land-dot: #edf1f6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -30px rgb(var(--shadow-rgb) / 0.22), 0 0 0 1px var(--line);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --nav-h: 72px;
  color-scheme: light;
}

/* Night: "Man of Steel" — cool steel-black, gunmetal panels, silver text,
   cape crimson for actions, shield gold and Kryptonian steel blue as quiet accents */
:root[data-theme="dark"] {
  --bg: #0a0c0f;
  --bg-2: #0d1014;
  --bg-3: #171b21;
  --panel: rgba(20, 24, 29, 0.82);
  --panel-solid: #14181d;
  --panel-hi: rgba(26, 31, 38, 0.96);
  --line: rgba(196, 206, 218, 0.08);
  --line-2: rgba(196, 206, 218, 0.15);
  --text: #e3e7ec;
  --text-2: #a9b2bd;
  --muted: #76808c;
  --ink: #e3e7ec;
  --accent: #c0303a;
  --accent-deep: #9e2530;
  --accent-2: #3a4757;
  --aqua: #6f8ba3;
  --violet: #8a93b8;
  --gold: #c8a24e;
  --success: #6fa58a;
  --warning: #c8a24e;
  --danger: #d4505a;
  --bg-rgb: 10 12 15;
  --panel-rgb: 20 24 29;
  --ink-rgb: 196 206 218;
  --shadow-rgb: 0 0 0;
  --featured: var(--gold);
  --land-dot: #9eabbd;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--line);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(168, 50, 60, 0.18); }

.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
.display em { font-style: italic; color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; font-weight: 700; color: var(--accent); }
.muted { color: var(--muted); }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--b);
  background: transparent; font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent);
  color: #fff; box-shadow: 0 8px 20px -12px rgba(168, 50, 60, .55);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 10px 24px -12px rgba(168, 50, 60, .6); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-ghost { --b: var(--line-2); color: var(--text); background: var(--panel-solid); }
.btn-ghost:hover { --b: rgb(var(--ink-rgb) / .28); background: var(--bg-2); }
.btn-icon { width: 40px; height: 40px; padding: 0; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.label { font-size: 12.5px; font-weight: 700; color: var(--text-2); letter-spacing: .02em; }
.input, .select {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--radius-sm);
  background: var(--panel-solid); border: 1px solid var(--line-2);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input::placeholder { color: #a0a4b3; }
.input:hover, .select:hover { border-color: rgb(var(--ink-rgb) / .26); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); background: var(--panel-solid); box-shadow: 0 0 0 4px rgba(168, 50, 60, .12); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.select option { background: var(--panel-solid); }
.error-text { color: var(--danger); font-size: 12.5px; min-height: 0; }
.error-text:empty { display: none; }
.input-group { position: relative; }
.input-group .input { padding-right: 52px; }
.input-group .btn { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; padding: 0; border: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--line-2); transition: background .25s; }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--warning); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--aqua); }
.pw-meter[data-score="4"] i { background: var(--success); }

/* ---------- Alerts, chips, cards ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; margin-bottom: 18px; }
.alert svg { flex: none; margin-top: 2px; }
.alert-success { background: rgba(95, 127, 82, .07); border-color: rgba(95, 127, 82, .28); color: #2f6a4c; }
.alert-danger { background: rgba(169, 68, 58, .06); border-color: rgba(169, 68, 58, .28); color: #8f312c; }
.alert-info { background: rgba(95, 122, 143, .07); border-color: rgba(95, 122, 143, .28); color: #3b5468; }
.alert-warning { background: rgba(184, 134, 47, .08); border-color: rgba(184, 134, 47, .32); color: #7d561b; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge-success { background: rgba(95, 127, 82, .12); color: var(--success); }
.badge-warning { background: rgba(184, 134, 47, .14); color: #9a6a20; }
.badge-danger { background: rgba(169, 68, 58, .1); color: var(--danger); }
.badge-muted { background: rgb(var(--ink-rgb) / .06); color: var(--text-2); }
.card { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 50px -30px rgb(var(--shadow-rgb) / .22); border-radius: var(--radius); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 12px; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.rating b { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--aqua); color: #fff; font-weight: 800; font-size: 13px; }
.skeleton { background: linear-gradient(90deg, rgb(var(--ink-rgb) / .04), rgb(var(--ink-rgb) / .08), rgb(var(--ink-rgb) / .04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 100; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--panel-hi); border: 1px solid var(--line-2); backdrop-filter: blur(16px); box-shadow: var(--shadow); font-size: 14px; animation: rise .35s cubic-bezier(.2, .8, .2, 1); max-width: 360px; }
.toast-danger { border-color: rgba(169, 68, 58, .4); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

:root[data-theme="dark"] .alert-success { color: #a9d1bd; }
:root[data-theme="dark"] .alert-danger { color: #f0aeb3; }
:root[data-theme="dark"] .alert-info { color: #bccbd9; }
:root[data-theme="dark"] .alert-warning { color: #e6d09c; }
:root[data-theme="dark"] .badge-warning { color: var(--warning); }
:root[data-theme="dark"] .city-art { filter: brightness(.62) saturate(.55) contrast(1.08); }
:root[data-theme="dark"] .display em, :root[data-theme="dark"] .eyebrow { color: #d9474f; }
:root[data-theme="dark"] .stars { color: var(--gold); }
:root[data-theme="dark"] .explorer::before {
  background:
    radial-gradient(55% 50% at 70% 45%, rgba(111, 139, 163, .10), transparent 70%),
    radial-gradient(35% 30% at 10% 90%, rgba(192, 48, 58, .07), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
:root[data-theme="dark"] .page { background: radial-gradient(60% 40% at 80% 0%, rgba(111, 139, 163, .09), transparent 70%), radial-gradient(40% 30% at 0% 10%, rgba(192, 48, 58, .05), transparent 70%), var(--bg); }
:root[data-theme="dark"] .auth-visual { background: radial-gradient(70% 60% at 50% 50%, rgba(111, 139, 163, .12), transparent 70%), var(--bg); }
:root[data-theme="dark"] .step::before { color: var(--gold); opacity: .85; }

/* Smooth cross-fade when switching day / night (only while switching, so hovers stay snappy) */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, box-shadow .45s ease !important;
}

/* Accent presets (Admin → Settings → Appearance); crimson is the default above. */
:root[data-accent="steel"] { --accent: #4f6d85; --accent-deep: #3d566b; }
:root[data-accent="gold"] { --accent: #9a7a2e; --accent-deep: #7d6223; }
:root[data-accent="forest"] { --accent: #3f7a5a; --accent-deep: #2f6047; }
:root[data-theme="dark"][data-accent="steel"] { --accent: #6f8ba3; --accent-deep: #5a768e; }
:root[data-theme="dark"][data-accent="gold"] { --accent: #c8a24e; --accent-deep: #ad8a3c; }
:root[data-theme="dark"][data-accent="forest"] { --accent: #5f9c78; --accent-deep: #4c8463; }
:root[data-accent]:not([data-accent="crimson"]) .display em, :root[data-accent]:not([data-accent="crimson"]) .eyebrow { color: var(--accent); }

/* Announcement bar */
.announcement { position: fixed; z-index: 41; inset: 0 0 auto 0; height: 36px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; font-weight: 600; background: var(--ink); color: var(--bg); text-align: center; overflow: hidden; white-space: nowrap; }
.announcement span { overflow: hidden; text-overflow: ellipsis; }
.announcement a { color: inherit; text-decoration: underline; text-underline-offset: 3px; flex: none; }
.has-announcement { --announce-h: 36px; }
.has-announcement .nav { top: var(--announce-h); }
.has-announcement .page { padding-top: calc(var(--nav-h) + var(--announce-h) + 28px); }
.has-announcement .crumbs { top: calc(var(--nav-h) + var(--announce-h) + 18px); }
.has-announcement .drawer { top: calc(var(--nav-h) + var(--announce-h) + 12px); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative; width: 40px; height: 40px; padding: 0; border-radius: 999px; flex: none;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--text-2);
  background: var(--panel-solid); border: 1px solid var(--line-2);
  transition: color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: rgb(var(--ink-rgb) / .28); }
.theme-toggle:active { transform: scale(.95); }
.theme-toggle svg { grid-area: 1 / 1; transition: opacity .35s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.auth-main { position: relative; }
.auth-main > .theme-toggle { position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); right: clamp(20px, 3vw, 36px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 40; inset: 0 0 auto 0; height: var(--nav-h);
  padding: env(safe-area-inset-top, 0px) clamp(16px, 3vw, 36px) 0;
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(to bottom, rgb(var(--bg-rgb) / .92), rgb(var(--bg-rgb) / 0));
  transition: background .3s, backdrop-filter .3s;
}
.nav.is-solid { background: rgb(var(--bg-rgb) / .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.brand-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 72%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 62%, #000)); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 6px; margin-right: auto; }
.nav > .theme-toggle { margin-right: -14px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--accent); background: rgba(168, 50, 60, .07); }
.nav-account { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent-2); color: var(--accent-deep); }
.menu { position: relative; }
.menu-btn { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-solid); cursor: pointer; font-weight: 700; font-size: 13.5px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; }
.menu-pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; }
.menu-pop .who b { display: block; font-size: 14px; }
.menu-pop a, .menu-pop button { text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 0; background: none; cursor: pointer; color: var(--text-2); }
.menu-pop a:hover, .menu-pop button:hover { background: rgba(168, 50, 60, .07); color: var(--accent); }

/* ==========================================================================
   Explorer (home)
   ========================================================================== */
.explorer { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.explorer::before { /* nebula wash behind the canvas */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 50% at 70% 45%, rgba(185, 192, 201, .16), transparent 70%),
    radial-gradient(35% 30% at 92% 92%, rgba(95, 122, 143, .06), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.globe-canvas { position: absolute; inset: 0; z-index: -1; cursor: grab; touch-action: pan-y; }
.globe-canvas.is-dragging { cursor: grabbing; }
.globe-canvas.is-pointing { cursor: pointer; }
.globe-canvas canvas { display: block; width: 100%; height: 100%; }

.globe-loader { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none; transition: opacity .6s; }
.globe-loader span { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line-2); border-top-color: var(--accent); animation: spin 1.2s linear infinite; }
.globe-loader.is-done { opacity: 0; }

.hero-copy {
  position: absolute; z-index: 2; left: clamp(20px, 5vw, 72px); top: 50%; transform: translateY(-46%);
  width: min(520px, calc(100% - 40px)); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.hero-copy h1 { font-size: clamp(46px, 6.2vw, 88px); margin: 14px 0 18px; }
.hero-copy p.lead { font-size: 17px; color: var(--text-2); max-width: 420px; margin: 0 0 30px; }
.explorer[data-mode="country"] .hero-copy,
.explorer[data-mode="city"] .hero-copy { opacity: 0; transform: translate(-40px, -46%); pointer-events: none; }

/* Search capsule */
.search {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr auto; align-items: stretch;
  padding: 7px; border-radius: 22px; background: rgb(var(--panel-rgb) / .9); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 60px -30px rgb(var(--shadow-rgb) / .3);
  width: min(860px, calc(100vw - 40px));
}
.search-cell { position: relative; padding: 9px 16px; border-radius: 15px; transition: background .2s; min-width: 0; }
.search-cell + .search-cell::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.search-cell:focus-within { background: rgba(168, 50, 60, .06); }
.search-cell label { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.search-cell input, .search-cell select { width: 100%; border: 0; background: none; padding: 3px 0 0; font-weight: 700; font-size: 14.5px; outline: none; }
.search-cell select option { background: var(--panel-solid); }
.search-cell input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; }
.search .btn { height: auto; border-radius: 16px; padding: 0 22px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 12px); z-index: 5; padding: 6px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-height: 320px; overflow: auto; }
.suggest button { display: flex; width: 100%; gap: 12px; align-items: center; padding: 10px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; }
.suggest button:hover, .suggest button[aria-selected="true"] { background: rgba(168, 50, 60, .07); }
.suggest .flag { font-size: 20px; }
.suggest small { display: block; color: var(--muted); font-size: 12px; }

.explorer-search-dock { position: absolute; z-index: 3; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); transition: opacity .4s, transform .5s; }
.explorer[data-mode="world"] .explorer-search-dock { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }

/* Breadcrumb */
.crumbs { position: absolute; z-index: 3; left: clamp(20px, 5vw, 72px); top: calc(var(--nav-h) + 18px); display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgb(var(--panel-rgb) / .8); border: 1px solid var(--line); backdrop-filter: blur(14px); transition: opacity .35s, transform .35s; }
.explorer[data-mode="world"] .crumbs { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.crumbs button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; }
.crumbs button:hover { background: rgb(var(--ink-rgb) / .05); color: var(--text); }
.crumbs button[aria-current="page"] { background: var(--accent); color: #fff; }
.crumbs .sep { color: var(--muted); font-size: 12px; }

/* Hover tooltip */
.globe-tip { position: absolute; z-index: 4; pointer-events: none; padding: 8px 12px; border-radius: 12px; background: rgb(var(--panel-rgb) / .96); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -14px rgb(var(--shadow-rgb) / .3); font-size: 13px; font-weight: 700; transform: translate(14px, 14px); white-space: nowrap; transition: opacity .15s; }
.globe-tip small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.globe-tip small.ok { color: var(--accent); }

/* City labels projected from 3D */
.globe-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.city-label {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
  padding: 6px 12px 6px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  background: rgb(var(--panel-rgb) / .94); border: 1px solid var(--line-2); box-shadow: 0 8px 20px -12px rgb(var(--shadow-rgb) / .35); font-size: 12.5px; font-weight: 800;
  white-space: nowrap; transition: opacity .25s, background .2s, border-color .2s; will-change: transform;
}
.city-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(168, 50, 60, .18); }
.city-label small { color: var(--muted); font-weight: 700; }
.city-label:hover, .city-label.is-active { background: var(--accent); color: #fff; border-color: transparent; }
.city-label:hover small, .city-label.is-active small { color: rgba(255, 255, 255, .8); }
.city-label:hover i, .city-label.is-active i { background: var(--panel-solid); box-shadow: none; }

/* Side drawer */
.drawer {
  position: absolute; z-index: 5; top: calc(var(--nav-h) + 12px); right: clamp(12px, 2vw, 28px); bottom: 20px;
  width: min(430px, calc(100vw - 24px)); display: flex; flex-direction: column;
  background: rgb(var(--panel-rgb) / .88); border: 1px solid var(--line-2); border-radius: 26px;
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 40px 100px -40px rgb(var(--shadow-rgb) / .35);
  transform: translateX(calc(100% + 40px)); transition: transform .65s cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
}
.explorer[data-mode="country"] .drawer, .explorer[data-mode="city"] .drawer { transform: none; }
.drawer-head { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); position: relative; }
.drawer-head .close { position: absolute; right: 14px; top: 14px; }
.drawer-head h2 { font-size: 40px; margin: 6px 40px 4px 0; }
.drawer-head p { margin: 0; color: var(--text-2); font-size: 14px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.stay-pill { display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); font-weight: 700; }

.city-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 10px; border-radius: 16px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.city-card + .city-card { margin-top: 4px; }
.city-card:hover { background: var(--panel-solid); border-color: var(--line); box-shadow: 0 10px 30px -18px rgb(var(--shadow-rgb) / .3); }
.city-art {
  position: relative; display: grid; place-items: center; overflow: hidden; width: 76px; height: 76px; border-radius: 12px;
  background:
    radial-gradient(120% 90% at 20% 15%, hsl(calc(var(--h) + 30) 35% 80% / .85), transparent 55%),
    radial-gradient(90% 80% at 85% 90%, hsl(var(--h) 30% 55% / .8), transparent 60%),
    linear-gradient(160deg, hsl(35 25% 66%), hsl(var(--h) 22% 42%));
}
.city-art::after { content: ""; position: absolute; inset: -30%; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 0 0 14px rgba(255,255,255,.03), 0 0 0 22px rgba(255,255,255,.04); transform: translate(38%, 30%); }
.city-art b { position: relative; z-index: 1; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 34px; color: rgba(255,255,255,.92); text-shadow: 0 4px 20px rgba(0,0,0,.35); }
.dest-art { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.dest-art b { font-size: clamp(90px, 12vw, 180px); opacity: .5; transform: translateY(-14%); }
.dest:hover .dest-art { transform: scale(1.06); }
.city-card h3 { margin: 0; font-size: 16px; }
.city-card p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.city-card .count { font-size: 12px; font-weight: 800; color: var(--accent); white-space: nowrap; }

.hotel-card { display: block; border-radius: 18px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); transition: transform .25s, border-color .25s, background .25s; }
.hotel-card + .hotel-card { margin-top: 14px; }
.hotel-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 18px 40px -22px rgb(var(--shadow-rgb) / .35); }
.hotel-card .media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3); }
.hotel-card .media img { width: 100%; height: 100%; object-fit: cover; }
.hotel-card .media .rating { position: absolute; left: 12px; top: 12px; padding: 4px 10px 4px 4px; border-radius: 10px; background: rgb(var(--panel-rgb) / .9); backdrop-filter: blur(8px); }
.hotel-card .body { padding: 14px 16px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: end; }
.hotel-card h3 { margin: 0; font-size: 16.5px; line-height: 1.3; }
.hotel-card .meta { font-size: 12.5px; color: var(--muted); }
.price { text-align: right; }
.price b { font-size: 20px; font-weight: 800; }
.price small { display: block; font-size: 11.5px; color: var(--muted); }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .display { font-size: 30px; color: var(--text); margin-bottom: 8px; }

.globe-hint { position: absolute; z-index: 2; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 18px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; transition: opacity .4s; }
.globe-hint span { display: inline-flex; align-items: center; gap: 7px; }
.globe-hint kbd { font: inherit; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); }
.explorer:not([data-mode="world"]) .globe-hint { opacity: 0; }

.legend { position: absolute; z-index: 2; right: clamp(20px, 4vw, 56px); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); transition: opacity .4s; }
.legend span { display: flex; align-items: center; gap: 9px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.explorer:not([data-mode="world"]) .legend { opacity: 0; }

/* ---------- Home sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(38px, 4.6vw, 62px); margin: 10px 0 0; }
.section-head p { max-width: 380px; color: var(--text-2); margin: 0; }
.dest-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.dest { text-align: left; padding: 0; color: inherit; font: inherit; position: relative; grid-column: span 3; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: var(--bg-3); color: #fff; }
.dest:nth-child(1), .dest:nth-child(6) { grid-column: span 6; aspect-ratio: auto; }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,42,37,.62), rgba(46,42,37,0) 50%); }
.dest .cap { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; }
.dest .cap h3 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0; line-height: 1; }
.dest .cap p { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, .82); }
.dest .cap .chip { position: absolute; right: 0; bottom: 0; background: rgb(var(--panel-rgb) / .92); border-color: transparent; color: var(--text); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; border-radius: 22px; background: linear-gradient(180deg, var(--panel-solid), var(--bg-2)); border: 1px solid var(--line); box-shadow: 0 18px 50px -34px rgb(var(--shadow-rgb) / .25); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--display); font-size: 54px; line-height: 1; color: var(--accent-2); -webkit-text-stroke: 0; display: block; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   Content pages (hotel, checkout, trips)
   ========================================================================== */
.page { padding: calc(var(--nav-h) + 28px) 0 90px; min-height: 100vh; background: radial-gradient(60% 40% at 80% 0%, rgba(168, 50, 60, .08), transparent 70%), radial-gradient(40% 30% at 0% 10%, rgba(185, 192, 201, .10), transparent 70%), var(--bg-2); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 700; font-size: 13.5px; margin-bottom: 20px; }
.back-link:hover { color: var(--accent); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; border-radius: 26px; overflow: hidden; margin-bottom: 34px; }
.gallery > * { background: var(--bg-3); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.gallery > *:hover img { transform: scale(1.04); }
.gallery > :first-child { grid-row: span 2; }
.hotel-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.hotel-title h1 { font-size: clamp(40px, 5vw, 64px); margin: 8px 0 12px; }
.hotel-title .row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--text-2); font-size: 14px; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.prose { color: var(--text-2); font-size: 16px; line-height: 1.7; max-width: 680px; }
.h-sub { font-size: 28px; margin: 44px 0 16px; }
.rooms { display: grid; gap: 12px; }
.room { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel-solid); cursor: pointer; transition: border-color .2s, background .2s; }
.room:hover { border-color: var(--line-2); }
.room.is-selected { border-color: var(--accent); background: rgba(168, 50, 60, .04); box-shadow: 0 0 0 4px rgba(168, 50, 60, .1); }
.room h3 { margin: 0; font-size: 17px; }
.room .specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.room .perks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.room .perks .chip { height: 26px; font-size: 12px; }
.room input { position: absolute; opacity: 0; pointer-events: none; }
.book-card { position: sticky; top: calc(var(--nav-h) + 20px); padding: 22px; }
.book-card .price b { font-size: 30px; }
.book-card .price { text-align: left; margin-bottom: 18px; }
.lines { display: grid; gap: 10px; margin: 18px 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.lines .total { color: var(--text); font-weight: 800; font-size: 16px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }

.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.panel { padding: 28px; }
.panel h2 { font-size: 30px; margin: 0 0 6px; }
.panel > p.muted { margin: 0 0 22px; }
.summary-hotel { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; margin-bottom: 6px; }
.summary-hotel img { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; background: var(--bg-3); }
.summary-hotel h3 { margin: 0 0 4px; font-size: 17px; }
.secure { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; justify-content: center; }

.trip { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; align-items: center; padding: 14px; border-radius: 20px; }
.trip + .trip { margin-top: 12px; }
.trip img { width: 160px; height: 112px; border-radius: 14px; object-fit: cover; background: var(--bg-3); }
.trip h3 { margin: 0 0 4px; font-size: 18px; }
.trip .meta { font-size: 13.5px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.trip .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.result { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 26px 28px; margin-bottom: 30px; }
.orb { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.orb.ok { background: radial-gradient(circle at 35% 30%, #9fd0b0, var(--success)); color: #fff; box-shadow: 0 12px 34px -8px rgba(95, 127, 82, .5); }
.orb.bad { background: radial-gradient(circle at 35% 30%, #e6a29d, var(--danger)); color: #fff; box-shadow: 0 12px 34px -8px rgba(169, 68, 58, .5); }
.orb.wait { border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.result h2 { font-size: 34px; margin: 0 0 4px; }
.result p { margin: 0; color: var(--text-2); }


/* ==========================================================================
   Auth
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-visual { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(70% 60% at 50% 50%, rgba(168, 50, 60, .10), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(185, 192, 201, .14), transparent 70%), var(--bg-2); border-right: 1px solid var(--line); }
.auth-visual .globe-canvas { cursor: default; }
.auth-visual .quote { position: absolute; z-index: 2; left: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.auth-visual .quote h2 { font-size: clamp(34px, 3.6vw, 52px); margin: 0 0 10px; }
.auth-visual .quote p { color: var(--text-2); margin: 0; max-width: 420px; }
.auth-visual .brand { position: absolute; z-index: 2; top: calc(28px + env(safe-area-inset-top, 0px)); left: clamp(28px, 4vw, 56px); }
.auth-main { display: grid; place-items: center; padding: 48px clamp(20px, 5vw, 64px); }
.auth-card { width: min(420px, 100%); }
.auth-card .brand { display: none; margin-bottom: 30px; }
.auth-card h1 { font-size: 50px; margin: 0 0 6px; }
.auth-card .sub { margin: 0 0 30px; color: var(--muted); }
.auth-foot { margin-top: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-foot a, .link { color: var(--accent); font-weight: 700; }
.auth-foot a:hover, .link:hover { text-decoration: underline; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.state { text-align: center; }
.state .orb { width: 76px; height: 76px; margin: 0 auto 22px; }

/* ==========================================================================
   Rich content: home sections, info pages, search, account & admin
   ========================================================================== */
.scroll-cue { position: absolute; z-index: 2; left: clamp(20px, 5vw, 72px); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: opacity .4s, color .2s; }
.scroll-cue:hover { color: var(--accent); }
.scroll-cue i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid currentColor; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.explorer:not([data-mode="world"]) .scroll-cue { opacity: 0; pointer-events: none; }

.band { background: var(--panel-solid); border-block: 1px solid var(--line); }
.stat-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.stat-band > div { padding: 34px 20px; text-align: center; }
.stat-band > div + div { border-left: 1px solid var(--line); }
.stat-band b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; color: var(--text); }
.stat-band span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button, .tabs a { border: 0; background: none; cursor: pointer; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--text-2); transition: background .2s, color .2s; }
.tabs button:hover, .tabs a:hover { color: var(--text); }
.tabs [aria-selected="true"], .tabs .is-active { background: var(--ink); color: var(--bg); }

.hotel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hotel-grid .hotel-card + .hotel-card { margin-top: 0; }
.hotel-card .media .save { position: absolute; right: 10px; top: 10px; }
.hotel-card .loc { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.save { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(var(--panel-rgb) / .9); color: var(--text-2); backdrop-filter: blur(8px); transition: transform .2s, color .2s; }
.save:hover { transform: scale(1.08); color: var(--accent); }
.save[aria-pressed="true"] { color: var(--accent); }
.save[aria-pressed="true"] svg { fill: currentColor; }

.styles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.style-card { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 5; color: #fff; display: flex; align-items: flex-end; padding: 22px; border: 1px solid var(--line); background: var(--bg-3); }
.style-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.style-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 17, 21, .78), rgba(15, 17, 21, 0) 60%); }
.style-card:hover img { transform: scale(1.06); }
.style-card div { position: relative; z-index: 1; }
.style-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; }
.style-card p { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, .82); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: 22px; background: var(--panel-solid); border: 1px solid var(--line); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: var(--accent); background: rgb(var(--ink-rgb) / .05); border: 1px solid var(--line); }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--text-2); font-size: 14.5px; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-card { padding: 28px; border-radius: 22px; background: var(--panel-solid); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.quote-card blockquote { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.3; color: var(--text); }
.quote-card footer { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); margin-top: auto; }
.quote-card footer b { display: block; color: var(--text); font-size: 14px; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--accent); background: rgb(var(--ink-rgb) / .05); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.faq details > div p { margin: 0 0 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }

.newsletter { border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; border: 1px solid rgb(var(--bg-rgb) / .14); box-shadow: 0 0 0 60px rgb(var(--bg-rgb) / .03), 0 0 0 120px rgb(var(--bg-rgb) / .025); }
.newsletter h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 8px 0 8px; }
.newsletter p { margin: 0; opacity: .75; }
.newsletter .eyebrow { color: var(--accent-2); }
:root[data-theme="dark"] .newsletter { background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-2); }
:root[data-theme="dark"] .newsletter .eyebrow { color: var(--gold); }
.newsletter form { position: relative; display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgb(var(--bg-rgb) / .1); border: 1px solid rgb(var(--bg-rgb) / .22); }
:root[data-theme="dark"] .newsletter form { background: var(--bg); border-color: var(--line-2); }
.newsletter input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 16px; font-weight: 600; outline: none; color: inherit; }
.newsletter input::placeholder { color: inherit; opacity: .55; }
.newsletter .form-note { position: absolute; left: 18px; top: calc(100% + 10px); font-size: 13px; opacity: .85; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--text-2); font-size: 14px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { margin: 14px 0 18px; max-width: 320px; color: var(--muted); }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--panel-solid); }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-pay { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.card-icons { display: inline-flex; gap: 8px; }
.card-icon { width: 48px; height: 30px; display: block; border-radius: 4px; box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px -2px rgb(var(--shadow-rgb) / .25); }

/* Info pages */
.page-hero { padding: 26px 0 40px; }
.page-hero h1 { font-size: clamp(42px, 5.4vw, 72px); margin: 12px 0 14px; }
.page-hero p.lead { font-size: 17px; color: var(--text-2); max-width: 640px; margin: 0; }
.prose-page { max-width: 780px; color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.prose-page h2 { font-family: var(--display); font-weight: 400; color: var(--text); font-size: 32px; margin: 42px 0 10px; line-height: 1.1; }
.prose-page h3 { color: var(--text); font-size: 17px; margin: 26px 0 6px; }
.prose-page ul { padding-left: 20px; }
.prose-page li { margin: 6px 0; }
.prose-page a { color: var(--accent); font-weight: 700; }
.prose-page .meta-line { font-size: 13px; color: var(--muted); }
.info-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 4px; font-size: 14px; }
.toc a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; }
.toc a:hover { background: rgb(var(--ink-rgb) / .05); color: var(--text); }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line); margin: 22px 0; color: var(--text-2); }
.callout svg { flex: none; color: var(--accent); margin-top: 3px; }
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { padding: 20px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.contact-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: rgb(var(--ink-rgb) / .05); }
.contact-card h3 { margin: 0 0 4px; font-size: 15px; }
.contact-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
textarea.input { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.55; }

/* Search & destinations */
.search-bar { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr auto; gap: 10px; padding: 10px; border-radius: 20px; background: var(--panel-solid); border: 1px solid var(--line); margin-bottom: 28px; }
.search-bar .field { margin: 0; }
.search-bar .btn { height: 50px; align-self: end; }
.search-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 20px); padding: 20px; }
.filters h3 { margin: 0 0 14px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.filter-group { padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group > b { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; color: var(--text-2); }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 30px; }
.results-head .select { width: auto; height: 42px; }
.country-block { margin-bottom: 40px; }
.country-block h2 { font-size: 30px; margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline; }
.country-block h2 small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 600; }
.city-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.city-tile { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.city-tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.city-tile .city-art { width: 54px; height: 54px; }
.city-tile .city-art b { font-size: 24px; }
.city-tile h3 { margin: 0; font-size: 15px; }
.city-tile p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* Hotel page extras */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.policy-grid > div { padding: 16px 18px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.policy-grid b { display: block; color: var(--text); margin-bottom: 4px; }
.review-bars { display: grid; gap: 10px; max-width: 560px; }
.review-bars div { display: grid; grid-template-columns: 130px 1fr 36px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.review-bars i { height: 6px; border-radius: 6px; background: rgb(var(--ink-rgb) / .08); overflow: hidden; }
.review-bars i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--aqua); border-radius: 6px; }

/* Dashboards (account + admin) */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.dash-nav { position: sticky; top: calc(var(--nav-h) + 20px); padding: 10px; display: grid; gap: 2px; }
.dash-nav .who { padding: 12px 12px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.dash-nav .who b { display: block; font-size: 14px; }
.dash-nav button, .dash-nav a { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; cursor: pointer; padding: 10px 12px; border-radius: 12px; font-weight: 650; font-size: 14px; color: var(--text-2); }
.dash-nav button:hover, .dash-nav a:hover { background: rgb(var(--ink-rgb) / .05); color: var(--text); }
.dash-nav [aria-selected="true"] { background: rgb(var(--ink-rgb) / .07); color: var(--text); }
.dash-nav [aria-selected="true"] svg { color: var(--accent); }
.dash-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--accent); color: #fff; }
.dash-main { min-width: 0; }
.dash-main > h2 { font-size: 34px; margin: 0 0 4px; }
.dash-main > p.muted { margin: 0 0 22px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 18px 20px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.kpi b { display: block; margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.kpi small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.panel-card { padding: 22px; border-radius: 20px; background: var(--panel-solid); border: 1px solid var(--line); margin-bottom: 16px; min-width: 0; }
.panel-card > h3 { margin: 0 0 14px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.grid-2-panels { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { height: 42px; width: auto; flex: 1 1 200px; }
.toolbar .select { flex: 0 1 200px; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-solid); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgb(var(--ink-rgb) / .025); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table td b { color: var(--text); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr[data-open] { cursor: pointer; }
.table tr[data-open]:hover td { background: rgb(var(--ink-rgb) / .03); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.list-plain li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list-plain li:last-child { border-bottom: 0; }
.attention a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.attention a:hover { border-color: var(--line-2); }
.attention a b { font-size: 18px; }
.attention a.hot b { color: var(--accent); }
.chart { width: 100%; height: 220px; display: block; }
.chart .grid line { stroke: var(--line); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: var(--accent-deep); }
.chart .bar.zero { fill: rgb(var(--ink-rgb) / .08); }
.chart-tip { position: fixed; z-index: 120; pointer-events: none; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; background: var(--panel-hi); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
dialog.sheet { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel-solid); color: var(--text); box-shadow: var(--shadow); }
dialog.sheet::backdrop { background: rgba(10, 12, 15, .5); backdrop-filter: blur(4px); }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--panel-solid); }
.sheet-head h3 { margin: 0; font-size: 18px; }
.sheet-body { padding: 20px 22px 24px; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 14px; margin: 0 0 18px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--text); }
.log-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; }
.log-item summary { cursor: pointer; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.log-item pre { margin: 10px 0 0; padding: 12px; border-radius: 10px; background: var(--bg); overflow: auto; max-height: 260px; font-size: 12px; }
.next-trip { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.next-trip img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; background: var(--bg-3); }
.next-trip h3 { margin: 6px 0 6px; font-size: 22px; }
.receipt-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 1080px) {
  .stat-band { grid-template-columns: repeat(3, 1fr); }
  .stat-band > div:nth-child(4) { border-left: 0; }
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
  .features, .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .search-layout, .contact-layout, .info-layout, .two-col, .grid-2-panels { grid-template-columns: 1fr; }
  .filters, .toc { position: static; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .field:first-child, .search-bar .btn { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .dash-nav .who { display: none; }
  .dash-nav button, .dash-nav a { white-space: nowrap; }
  .newsletter { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat-band > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .styles-grid, .features, .quotes, .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none; }
  .next-trip { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .search-bar { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hotel-layout, .checkout-layout { grid-template-columns: 1fr; }
  .book-card { position: static; }
  .dest { grid-column: span 6; }
  .dest:nth-child(1), .dest:nth-child(6) { grid-column: span 12; aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav > .theme-toggle { margin-left: auto; }
  .search { grid-template-columns: 1fr 1fr; }
  .search-cell:first-child { grid-column: 1 / -1; }
  .search-cell:nth-child(4)::before { display: none; }
  .search .btn { grid-column: 1 / -1; height: 48px; margin-top: 4px; }
  .search-cell:nth-child(2)::before { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-card .brand { display: inline-flex; }
  .steps { grid-template-columns: 1fr; }
  .legend { display: none; }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav { gap: 12px; }
  .nav-account .btn-ghost { display: none; }
  .menu-btn span.name { display: none; }
  .hero-copy { top: auto; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .hero-copy p.lead { font-size: 15px; margin-bottom: 20px; }
  .explorer[data-mode="country"] .hero-copy, .explorer[data-mode="city"] .hero-copy { transform: translateX(-40px); }
  .explorer .hero-copy .search { display: none; }
  .globe-hint { display: none; }
  .drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 56vh; border-radius: 24px; transform: translateY(calc(100% + 30px)); }
  .drawer-head h2 { font-size: 32px; }
  .crumbs { left: 12px; right: 12px; overflow-x: auto; }
  .explorer-search-dock { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 120px; }
  .gallery > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery > :nth-child(n+4) { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .trip { grid-template-columns: 1fr; }
  .trip img { width: 100%; height: 160px; }
  .trip .right { text-align: left; justify-items: start; }
  .dest, .dest:nth-child(1), .dest:nth-child(6) { grid-column: span 12; aspect-ratio: 4 / 3; }
  .section { padding: 72px 0; }
  .result { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Admin: settings, email templates, activity ---------- */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 38px; height: 22px; flex: none; border-radius: 999px; background: rgb(var(--ink-rgb) / .16); position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel-solid); box-shadow: 0 1px 3px rgb(var(--shadow-rgb) / .3); transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + i { opacity: .5; }
.settings-tabs { margin-bottom: 16px; }
.setting-row { display: grid; grid-template-columns: 260px 1fr; gap: 6px 24px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.setting-row:first-of-type { border-top: 0; padding-top: 4px; }
.setting-row > label, .setting-row > .label { font-weight: 700; font-size: 14px; color: var(--text); padding-top: 12px; }
.setting-row .help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.setting-row.is-bool > .label { padding-top: 0; }
.repeater { display: grid; gap: 10px; }
.repeater-item { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.repeater-item .tools { display: flex; gap: 6px; justify-content: flex-end; }
.save-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--panel-hi); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.event-card { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: start; }
.event-card h3 { margin: 0 0 4px; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.event-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.event-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.event-controls .select { height: 38px; width: auto; min-width: 180px; }
.template-list { grid-column: 1 / -1; display: grid; gap: 6px; }
.template-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 13.5px; }
.template-item.is-active { border-color: var(--accent); }
.template-item .actions { display: flex; gap: 6px; flex-wrap: wrap; }
dialog.sheet.wide { width: min(1180px, calc(100vw - 24px)); }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editor textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; min-height: 380px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.chips button { border: 1px solid var(--line-2); background: var(--bg); color: var(--text-2); border-radius: 999px; padding: 4px 10px; font: 600 12px/1.2 ui-monospace, Menlo, monospace; cursor: pointer; }
.chips button:hover { border-color: var(--accent); color: var(--accent); }
.preview-frame { width: 100%; height: 560px; border: 1px solid var(--line-2); border-radius: 14px; background: #e3e5e8; }
.preview-subject { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.preview-subject b { color: var(--text); }
.export-row { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 16px; }
@media (max-width: 900px) {
  .setting-row, .editor, .event-card { grid-template-columns: 1fr; }
  .event-controls { justify-content: flex-start; }
  .setting-row > label, .setting-row > .label { padding-top: 0; }
}
.setting-section { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 15px; display: grid; gap: 2px; }
.setting-section:first-of-type { margin-top: 6px; border-top: 0; padding-top: 0; }
.setting-section small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.setting-section + .setting-row { border-top: 0; }
.sender-line { margin-top: 6px !important; font-size: 12.5px !important; }
.sender-line b { color: var(--text-2); font-weight: 650; }

/* Admin console uses the full screen */
.wrap-wide { width: calc(100% - clamp(24px, 4vw, 64px)); max-width: none; }
.wrap-wide.dash { grid-template-columns: 250px minmax(0, 1fr); }
.wrap-wide .grid-2-panels { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
.wrap-wide .kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (min-width: 1500px) { .wrap-wide .event-card { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 1080px) { .wrap-wide .grid-2-panels { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .wrap-wide.dash { grid-template-columns: 1fr; } }

/* Homepage "Where to next?" */
.place-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.place-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.place-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 40px -24px rgb(var(--shadow-rgb) / .45); }
.place-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden; }
.place-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.place-card:hover .place-media img { transform: scale(1.05); }
.place-badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: rgb(var(--panel-rgb) / .92); color: var(--text); backdrop-filter: blur(8px); }
.place-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.place-body h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; }
.place-loc { margin: 0; font-size: 12.5px; color: var(--muted); }
.place-note { margin: 4px 0 6px; font-size: 13.5px; color: var(--text-2); flex: 1; }
.place-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.place-meta b { color: var(--text); font-size: 14px; }
@media (max-width: 1080px) { .place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .place-grid { grid-template-columns: 1fr; } }
.setting-row .input, .setting-row .select { max-width: 680px; }
.setting-row .repeater { max-width: 820px; }

/* Admin performance chart */
:root { --series-prev: #3f6fa8; }
:root[data-theme="dark"] { --series-prev: #5b8fd1; }
.an-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.an-head h3 { margin: 0; font-size: 16px; }
.an-metrics button { padding: 7px 12px; font-size: 12.5px; }
.an-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 14px; }
.an-filters label { display: grid; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.an-filters .input, .an-filters .select { height: 38px; width: auto; min-width: 140px; font-size: 13.5px; }
.an-filters .an-compare { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); letter-spacing: 0; padding-bottom: 8px; }
.an-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.an-stat { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 10px 12px; cursor: pointer; color: inherit; font: inherit; transition: border-color .2s; }
.an-stat:hover { border-color: var(--line-2); }
.an-stat.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.an-stat span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.an-stat b { display: block; font-size: 19px; margin-top: 2px; color: var(--text); }
.an-stat small { font-size: 11.5px; color: var(--muted); }
.an-stat small.up { color: var(--success); }
.an-stat small.down { color: var(--danger); }
.an-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.an-legend span, .chart-tip div { display: inline-flex; align-items: center; gap: 7px; }
.chart-tip div { display: flex; margin-top: 3px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sw-cur { background: var(--accent); }
.sw-prev { background: transparent; border: 2px solid var(--series-prev); border-radius: 50%; width: 10px; height: 10px; }
.an-chart { width: 100%; min-height: 280px; overflow: hidden; }
.an-svg { display: block; max-width: 100%; height: 280px; }
.an-svg .bar { fill: var(--accent); transition: opacity .15s; }
.an-svg .bar.is-hover { fill: var(--accent-deep); }
.an-svg .prev-line { fill: none; stroke: var(--series-prev); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 5 4; }
.an-svg .prev-dot { fill: var(--series-prev); stroke: var(--panel-solid); stroke-width: 2; pointer-events: none; }
.an-svg .hover-band { fill: rgb(var(--ink-rgb) / .05); }
.an-svg .peak { fill: var(--text); font-weight: 700; font-size: 11.5px; }
.an-table summary { cursor: pointer; font-size: 13px; margin-top: 8px; }
.wrap-wide .grid-2-panels:has(.analytics) { grid-template-columns: minmax(0, 2.4fr) minmax(300px, 1fr); }
@media (max-width: 1280px) { .an-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .an-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Guest picker (adults / children with ages) */
.guest-picker { position: relative; }
.gp-toggle { width: 100%; text-align: left; border: 0; background: none; padding: 3px 0 0; font: 700 14.5px/1.4 var(--font); color: var(--text); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-field .gp-toggle { height: 50px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--panel-solid); font-weight: 600; font-size: 14.5px; }
.gp-field .gp-toggle:hover { border-color: rgb(var(--ink-rgb) / .26); }
.gp-pop { position: absolute; z-index: 30; right: 0; top: calc(100% + 12px); width: 320px; max-width: calc(100vw - 32px); padding: 14px 16px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); cursor: default; }
.gp-field .gp-pop { left: 0; right: auto; }
.gp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.gp-row + .gp-row { border-top: 1px solid var(--line); }
.gp-row b { display: block; font-size: 14.5px; color: var(--text); }
.gp-row small { font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.stepper button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 18px; text-align: center; font-weight: 800; font-size: 15px; }
.gp-ages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 10px 0 4px; border-top: 1px solid var(--line); }
.gp-ages p { grid-column: 1 / -1; margin: 0 0 2px; font-size: 12px; color: var(--muted); }
.gp-ages label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.gp-ages .select { height: 38px; font-size: 13px; }
.gp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.gp-foot small { font-size: 12px; color: var(--muted); }
.label-like { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.explorer .gp-pop { top: auto; bottom: calc(100% + 14px); }

/* Hotel price calendar */
.price-cal { padding: 18px; }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pc-head > div { text-align: center; }
.pc-head b { display: block; font-size: 16px; }
.pc-head small { font-size: 12px; color: var(--muted); }
.pc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pc-w { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); padding-bottom: 2px; }
.pc-day { position: relative; min-height: 62px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.pc-day:hover:not(:disabled) { border-color: var(--accent); }
.pc-day span { font-size: 12px; color: var(--muted); font-weight: 700; }
.pc-day b { font-size: 12.5px; font-weight: 800; }
.pc-day em { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--accent); }
.pc-day.is-blank { border: 0; background: none; }
.pc-day.is-past { opacity: .35; cursor: default; }
.pc-day.is-low { background: rgba(77, 133, 102, .1); border-color: rgba(77, 133, 102, .35); }
.pc-day.is-low b { color: var(--success); }
.pc-day.is-sold { cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 6px, rgb(var(--ink-rgb) / .06) 6px 7px); }
.pc-day.is-sold b { color: var(--muted); }
.pc-day.in-stay { background: rgb(from var(--accent) r g b / .12); border-color: var(--accent); }
.pc-day.is-start { box-shadow: inset 0 0 0 2px var(--accent); }
.pc-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-key { display: inline-flex; gap: 8px; align-items: center; }
.pc-key i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.pc-key .k-low { background: rgba(77, 133, 102, .25); border: 1px solid rgba(77, 133, 102, .5); }
.pc-key .k-sold { background: repeating-linear-gradient(135deg, transparent 0 3px, rgb(var(--ink-rgb) / .2) 3px 4px); border: 1px solid var(--line-2); }
.scarcity { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--accent); }
@media (max-width: 560px) { .pc-day { min-height: 52px; } .pc-day b { font-size: 10.5px; } }

/* Search: modes, map, flexible dates, compare */
.search-modes { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.map-wrap { position: relative; margin-bottom: 24px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); }
.map { height: min(62vh, 560px); background: var(--bg-3); }
.map-area-btn { position: absolute; z-index: 500; top: 14px; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow); }
.price-pin span { display: inline-block; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 999px; background: var(--panel-solid); color: var(--text); font: 800 12.5px/1 var(--font); white-space: nowrap; border: 1px solid var(--line-2); box-shadow: 0 6px 16px -6px rgb(var(--shadow-rgb) / .5); transition: background .15s, color .15s; }
.price-pin:hover span, .leaflet-marker-icon.price-pin:focus span { background: var(--accent); color: #fff; border-color: transparent; }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--panel-solid); color: var(--text); }
.leaflet-popup-tip { background: var(--panel-solid); }
.leaflet-popup-content { margin: 10px; }
.pin-card { display: grid; gap: 3px; width: 200px; color: var(--text) !important; }
.pin-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.pin-card span { font-size: 12px; color: var(--muted); }
.pin-card em { font-style: normal; font-weight: 800; color: var(--accent); }
.flex-best { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 16px 14px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; color: var(--text-2); background: rgba(77, 133, 102, .1); border: 1px solid rgba(77, 133, 102, .3); }
.flex-best b { color: var(--text); }
.compare-btn { position: absolute; left: 12px; bottom: 12px; padding: 6px 11px; border-radius: 999px; border: 0; font: 800 12px/1 var(--font); cursor: pointer; background: rgb(var(--panel-rgb) / .92); color: var(--text); backdrop-filter: blur(8px); }
.compare-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.compare-tray { position: fixed; z-index: 60; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(880px, calc(100vw - 24px)); display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 18px; background: var(--panel-hi); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.ct-items { display: flex; gap: 8px; min-width: 0; overflow-x: auto; }
.ct-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; white-space: nowrap; }
.ct-item img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.ct-item b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.ct-item button { border: 0; background: none; cursor: pointer; color: var(--muted); }
.ct-item.is-empty { color: var(--muted); border-style: dashed; padding: 12px 14px; }
.ct-actions { display: flex; gap: 8px; flex: none; }
.btn.is-disabled { opacity: .5; }
@media (max-width: 720px) { .ct-item.is-empty { display: none; } }
.compare-table { min-width: 760px; table-layout: fixed; }
.compare-table th:first-child { width: 170px; }
.compare-table thead th { vertical-align: top; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); background: var(--panel-solid); }
.compare-table thead th img { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; display: block; }
.compare-table thead th b { display: block; font-size: 15px; }
.compare-table thead th span { display: block; font-weight: 500; margin: 2px 0 8px; }
.compare-table tbody th { font-size: 12.5px; font-weight: 700; color: var(--text-2); text-transform: none; letter-spacing: 0; background: rgb(var(--ink-rgb) / .02); }
.compare-table .win { color: var(--success); }
.compare-table .yes { color: var(--success); }
:root[data-theme="dark"] .map .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.85) contrast(.9) saturate(.6); }
:root[data-theme="dark"] .map { background: #0d1014; }

/* City photos on destination tiles (generated art stays as the fallback underneath) */
.city-art img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.city-art.has-img::after, .city-art.has-img b { display: none; }
.dest-art.has-img img { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.dest .cap { z-index: 2; }
.dest::after { z-index: 1; }
:root[data-theme="dark"] .city-art.has-img { filter: none; }
:root[data-theme="dark"] .city-art.has-img img { filter: brightness(.88) saturate(.92); }
