/* Creaition Places shared theme */
:root {
  --cp-bg: #0b0e14;
  --cp-bg-elevated: #141a24;
  --cp-card: #171d29;
  --cp-border: rgba(255, 255, 255, 0.08);
  --cp-text: #f4f1ea;
  --cp-muted: #9aa3b5;
  --cp-accent: #c4a574;
  --cp-accent-dark: #1a1510;
  --cp-check: #e0894a;
  --cp-danger: #e57373;
  --cp-ok: #7dcea0;
  --cp-radius: 16px;
  --cp-font: 'DM Sans', system-ui, sans-serif;
  --cp-display: 'Outfit', system-ui, sans-serif;
  --cp-script: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-family: var(--cp-font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  color-scheme: dark;
}
a { color: var(--cp-accent); text-decoration: none; }
a:hover { color: #e0c9a0; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  color-scheme: dark;
}
select, .cp-select {
  background-color: #1b2230;
  color: #f4f1ea;
}
select option, .cp-select option {
  background-color: #1b2230;
  color: #f4f1ea;
}
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: filter .15s ease, background .15s ease;
}
.cp-btn:hover { filter: brightness(1.06); }
.cp-btn-primary {
  background: var(--cp-accent);
  color: var(--cp-accent-dark);
}
.cp-btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.cp-btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: var(--cp-border);
  color: #fff;
}
.cp-input, .cp-select, .cp-textarea {
  width: 100%;
  background: #1b2230;
  color: #f4f1ea;
  border: 1px solid var(--cp-border);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
}
.cp-input:focus, .cp-select:focus, .cp-textarea:focus {
  border-color: rgba(196,165,116,.55);
}
.cp-label {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cp-muted);
  margin-bottom: 6px;
}
.cp-card {
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 20px;
}
.cp-muted { color: var(--cp-muted); }
.cp-error { color: var(--cp-danger); }
.cp-ok { color: var(--cp-ok); }
.cp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cp-accent);
  color: var(--cp-accent-dark);
}
.cp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,14,20,.88);
  border-bottom: 1px solid var(--cp-border);
}
.cp-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 40px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px 28px;
}
.cp-logo {
  font-family: var(--cp-display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  letter-spacing: .02em;
}
.cp-logo span {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--cp-muted);
  font-weight: 500;
  margin-top: 2px;
}
.cp-logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.cp-logo-brand:hover { color: inherit; }
.cp-logo-mark {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 36px;
  display: block;
}
.cp-logo-brand .cp-logo {
  line-height: 1.1;
  font-size: 20px;
}
.cp-nav-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 14px;
  color: #c8cdd8;
  min-width: 0;
}
.cp-nav-links a { color: #c8cdd8; }
.cp-nav-links a:hover, .cp-nav-links a.active { color: #fff; }
.cp-nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--cp-border);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex: 0 0 44px;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-root.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-root.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-root.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 8, 14, 0.56);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(360px, 88vw);
  height: 100dvh;
  background: #121822;
  border-left: 1px solid var(--cp-border);
  transform: translateX(110%);
  transition: transform .28s ease;
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-root.is-open .nav-backdrop { opacity: 1; pointer-events: auto; }
.nav-root.is-open .nav-drawer { transform: translateX(0); pointer-events: auto; }
.nav-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.nav-drawer-close {
  width: 40px; height: 40px; border: 1px solid var(--cp-border); border-radius: 10px;
  background: transparent; color: #fff; font-size: 22px; cursor: pointer;
}
.nav-drawer nav { display: grid; gap: 6px; }
.nav-drawer nav a {
  color: #e7e3f4; padding: 13px 12px; border-radius: 12px; font-size: 16px; font-weight: 600;
}
.nav-drawer nav a:hover, .nav-drawer nav a.active { background: rgba(196,165,116,.16); color: #fff; }
.nav-drawer .cp-btn { width: 100%; margin-top: 8px; }
body.nav-lock { overflow: hidden; }
@media (max-width: 980px) {
  .cp-nav-links, .cp-nav-actions { display: none; }
  .nav-burger { display: grid; }
}
.cp-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 64px;
}
.cp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) {
  .cp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cp-grid-4 { grid-template-columns: 1fr; }
}
.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cp-table th, .cp-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cp-border);
  color: var(--cp-text);
  vertical-align: top;
}
.cp-table th { color: var(--cp-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.cp-table select,
.cp-table button {
  background: #1b2230;
  color: #f4f1ea;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 6px 10px;
}
.cp-table select option {
  background: #1b2230;
  color: #f4f1ea;
}
.cp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cp-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--cp-border);
  background: transparent;
  color: var(--cp-muted);
  cursor: pointer;
}
.cp-tab.active {
  background: rgba(196,165,116,.15);
  border-color: rgba(196,165,116,.45);
  color: #fff;
}
.cp-progress {
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.cp-progress > span {
  display: block;
  height: 100%;
  background: var(--cp-accent);
}
.cp-progress.warn > span { background: #e0a050; }
.cp-progress.danger > span { background: var(--cp-danger); }

.hub-app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--cp-bg);
}
.hub-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 16px;
  background: #10151e;
  border-right: 1px solid var(--cp-border);
  z-index: 40;
}
.hub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 14px;
  color: #fff;
  text-decoration: none;
}
.hub-brand:hover { color: #fff; }
.hub-brand .cp-logo { font-size: 17px; }
.hub-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 34px;
  display: block;
}
.hub-nav {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  align-content: start;
  /* The scrollbar only shows while the menu is pointed at. */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.hub-nav::-webkit-scrollbar { width: 6px; }
.hub-nav::-webkit-scrollbar-track { background: transparent; }
.hub-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.hub-side:hover .hub-nav { scrollbar-color: rgba(255,255,255,.2) transparent; }
.hub-side:hover .hub-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); }
.hub-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #b7bfcc;
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
}
.hub-nav a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: .85;
}
.hub-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.hub-nav a.active {
  color: #fff;
  background: rgba(196,165,116,.14);
}
.hub-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: var(--cp-accent);
}
.hub-nav .side-label {
  margin: 12px 12px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c4a574;
}
.hub-nav .side-label:first-child { margin-top: 2px; }
.hub-nav .side-label.is-help {
  color: #ffe14a;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
  font-weight: 800;
}
.hub-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 4px;
  margin-top: auto;
  flex: 0 0 auto;
}
.hub-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(196,165,116,.22);
  color: #e8d3ad;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 34px;
}
.hub-user strong { display: block; font-size: 13px; color: #fff; }
.hub-user span { display: block; font-size: 11px; color: var(--cp-muted); }
.hub-tagline {
  margin: 0 8px 4px;
  padding: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #8a93a5;
  flex: 0 0 auto;
}
.hub-stage { min-width: 0; display: flex; flex-direction: column; }
.hub-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(11,14,20,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cp-border);
}
.hub-bar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
}
.hub-bar-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}
.hub-bar-title {
  flex: 1;
  min-width: 0;
  font-family: var(--cp-display);
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hub-shell {
  max-width: none;
  width: 100%;
  padding: 24px 28px 72px;
}
@media (max-width: 980px) {
  .hub-app { grid-template-columns: 1fr; }
  .hub-side {
    position: fixed;
    left: 0;
    top: 0;
    width: min(300px, 88vw);
    transform: translateX(-110%);
    transition: transform .28s ease;
    z-index: 80;
    height: 100dvh;
    overflow: auto;
  }
  .hub-app.is-open .hub-side { transform: translateX(0); }
  .hub-bar .nav-burger { display: grid; }
  .hub-bar-actions .hub-desktop-act { display: none; }
  .hub-shell { padding: 14px 12px 56px; }
  .hub-bar { padding: 10px 12px; gap: 8px; }
  .hub-bar-title { font-size: 15px; }
}

/* Walking guide (walk-guide.js): compass, distance and which way to walk to the next stop. */
.walk-nav {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 16px 10px 10px;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(10,12,18,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; text-align: left; font: inherit; cursor: pointer;
}
.walk-nav-dial { position: relative; flex: 0 0 52px; width: 52px; height: 52px; }
.walk-nav-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22); background: radial-gradient(circle, #1a2230 0 58%, #11161f 60%);
  transition: transform .35s ease-out;
}
.walk-nav-ring i {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  font-style: normal; font-size: 9px; font-weight: 800; color: #ff6b5a; letter-spacing: .02em;
}
.walk-nav-arrow {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  fill: #4285F4; filter: drop-shadow(0 0 6px rgba(66,133,244,.55));
  transition: transform .35s ease-out, opacity .3s ease;
}
.walk-nav.is-idle .walk-nav-arrow { opacity: .35; }
.walk-nav.is-here .walk-nav-arrow { fill: #12c48b; filter: drop-shadow(0 0 6px rgba(18,196,139,.6)); }
.walk-nav-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.walk-nav-to {
  font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #d8b877;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.walk-nav-to:empty { display: none; }
.walk-nav-text strong { font-family: var(--cp-display); font-size: 20px; line-height: 1.1; }
.walk-nav-text small { font-size: 13px; font-weight: 700; color: #e8d7b5; }
@media (prefers-reduced-motion: reduce) { .walk-nav-ring, .walk-nav-arrow { transition: none; } }

/* Visitor insights (admin site traffic + hub analytics) */
.vi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.vi-chip { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--cp-border); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--cp-muted); }
.vi-chip b { color: var(--cp-text); font-weight: 700; }
.vi-chip em { font-style: normal; font-size: 11px; font-weight: 700; }
.vi-chip em.up { color: var(--cp-ok); }
.vi-chip em.down { color: var(--cp-danger); }
.vi-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin: 0 0 12px; }
.vi-fact { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-radius: 10px; background: rgba(196, 165, 116, 0.07); border: 1px solid rgba(196, 165, 116, 0.18); font-size: 12.5px; line-height: 1.35; color: var(--cp-text); }
.vi-fact svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--cp-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vi-fact.is-good { background: rgba(125, 206, 160, 0.07); border-color: rgba(125, 206, 160, 0.22); }
.vi-fact.is-good svg { stroke: var(--cp-ok); }
.vi-fact.is-bad { background: rgba(229, 115, 115, 0.07); border-color: rgba(229, 115, 115, 0.22); }
.vi-fact.is-bad svg { stroke: var(--cp-danger); }
.vi-grid { column-width: 250px; column-gap: 10px; }
.vi-grid > .vi-panel { break-inside: avoid; margin: 0 0 10px; }
.vi-panel { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--cp-border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.vi-panel.vi-wide { margin: 0 0 10px; }
.vi-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 18px; }
.vi-panel h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cp-muted); font-weight: 700; }
.vi-sub { font-size: 11px; color: var(--cp-muted); margin: 8px 0 4px; }
.vi-sub:first-of-type { margin-top: 0; }
.vi-note { margin: 6px 0 0; font-size: 11px; color: var(--cp-muted); }
.vi-note b { color: var(--cp-text); }
.vi-empty { margin: 0; font-size: 13px; color: var(--cp-muted); }
.vi-flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; flex: 0 0 auto; vertical-align: -1px; margin-right: 5px; }
.vi-flag-none { display: inline-flex; align-items: center; justify-content: center; }
.vi-flag-none svg { width: 12px; height: 12px; fill: none; stroke: var(--cp-muted); stroke-width: 2; }
.vi-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 34px; align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; }
.vi-row-label { display: flex; align-items: center; min-width: 0; }
.vi-row-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-row-label small { display: block; font-size: 10.5px; color: var(--cp-muted); overflow: hidden; text-overflow: ellipsis; }
.vi-row-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.vi-row-bar span { display: block; height: 100%; border-radius: 3px; }
.vi-row b { text-align: right; font-size: 12px; }
.vi-seg { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.vi-seg.thin { height: 6px; margin: 4px 0 3px; }
.vi-seg span { display: block; height: 100%; min-width: 2px; }
.vi-seg span + span { box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.35); }
.vi-legend { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; font-size: 11px; color: var(--cp-muted); }
.vi-legend span { display: inline-flex; align-items: center; white-space: nowrap; }
.vi-legend i { width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; flex: 0 0 auto; }
.vi-legend b { color: var(--cp-text); font-weight: 600; margin-left: 3px; }
.vi-place { padding: 5px 0; border-top: 1px solid var(--cp-border); min-width: 0; }
.vi-place-head { display: flex; align-items: baseline; gap: 6px; font-size: 13px; min-width: 0; }
.vi-place-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-place-head small { font-size: 10.5px; color: var(--cp-muted); white-space: nowrap; }
.vi-place-head > span { margin-left: auto; font-size: 11px; color: var(--cp-muted); white-space: nowrap; }
.vi-place-top { display: flex; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--cp-muted); }
.vi-dot { margin: 0 6px; opacity: 0.6; }
.vi-heat { display: grid; grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.vi-heat i { display: block; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.04); }
.vi-heat-day { font-size: 10px; color: var(--cp-muted); }
.vi-heat-day.is-top { color: var(--cp-accent); font-weight: 700; }
.vi-heat em { font-style: normal; font-size: 9.5px; color: var(--cp-muted); }
.vi-funnel-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 6px; align-items: center; margin: 4px 0; }
.vi-funnel-bar { position: relative; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); overflow: hidden; display: flex; align-items: center; padding: 0 8px; font-size: 12px; }
.vi-funnel-bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(196, 165, 116, 0.55), rgba(196, 165, 116, 0.25)); border-radius: 6px; }
.vi-funnel-bar label { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-funnel-bar b { position: relative; }
.vi-funnel-row em { font-style: normal; font-size: 11px; color: var(--cp-muted); text-align: right; }
