:root {
  /* Aligned to fn-tokens — Home / Explore / Account share one chrome language */
  --bg: var(--fn-bg, #050608);
  --bg-elevated: var(--fn-surface, #0b0d10);
  --bg-panel: var(--fn-surface-2, #111419);
  --border: var(--fn-border, #252930);
  --text: var(--fn-text, #ffffff);
  --text-muted: var(--fn-text-secondary, #a7abb2);
  --accent: var(--fn-orange, #ff8a00);
  --accent-bright: #ff9a2e;
  --accent-purple: var(--fn-orange, #ff8a00); /* legacy alias → brand orange */
  --accent-purple-glow: var(--fn-orange-glow, rgba(255, 138, 0, 0.28));
  --accent-red: var(--fn-red, #ff2d2d);
  --accent-orange: var(--fn-orange, #ff8a00);
  --chip-bg: var(--fn-surface-2, #111419);
  --chip-bg-hover: var(--fn-surface-3, #161a20);
  --chip-active-bg: var(--fn-orange-soft, rgba(255, 138, 0, 0.16));
  --chip-active-text: #ffffff;
  --radius: var(--fn-radius-sm, 10px);
  --shadow: 0 14px 42px rgba(0, 0, 0, 0.55);
  --font: var(--fn-font, "Segoe UI", system-ui, -apple-system, sans-serif);
  --dock-bottom-extra: 0px;
  --dock-tier-extra: 0px;
  --popular-rail-height: 0px;
  --reviews-dock-height: 0px;
  --app-height: 100dvh;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: var(--app-height);
  max-height: var(--app-height);
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  touch-action: manipulation;
}

.app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem 0.65rem;
  background: linear-gradient(180deg, rgba(12, 12, 24, 0.98) 0%, rgba(5, 6, 8, 0.94) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 700;
  flex-shrink: 0;
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.topbar-row-head {
  justify-content: space-between;
  position: relative;
  min-height: 2.65rem;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.search-wrap-compact {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-box-compact {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  justify-content: center;
  gap: 0;
  border-radius: var(--fn-radius-control, 6px);
  cursor: pointer;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.search-box-compact .search-input {
  width: 0;
  min-width: 0;
  opacity: 0;
  flex: 0 0 auto;
  pointer-events: none;
}

.search-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(17, 20, 25, 0.92);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.search-close-btn[hidden] {
  display: none !important;
}

.search-close-btn .fn-icon {
  width: 1rem;
  height: 1rem;
}

.topbar-row-head.is-search-active .brand,
.topbar-row-head.is-search-active .topbar-geo-group,
.topbar-row-head.is-search-active .user-avatar {
  visibility: hidden;
  pointer-events: none;
}

.search-wrap-compact.is-search-active {
  position: absolute;
  inset: 0;
  z-index: 830;
  gap: 0.45rem;
  padding: 0;
}

.search-wrap-compact.is-search-active .search-box-compact {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 2.65rem;
  padding: 0 0.85rem;
  gap: 0.5rem;
  cursor: text;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.search-wrap-compact.is-search-active .search-input {
  width: 100%;
  opacity: 1;
  flex: 1 1 auto;
  pointer-events: auto;
  font-size: 16px;
}

.search-wrap-compact.is-search-active .search-close-btn {
  display: inline-flex;
}

.search-wrap-compact .search-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  width: auto;
}

@media (min-width: 721px) {
  .topbar-row-head.is-search-active .brand,
  .topbar-row-head.is-search-active .topbar-geo-group,
  .topbar-row-head.is-search-active .user-avatar {
    visibility: visible;
    pointer-events: auto;
  }

  .search-wrap-compact.is-search-active {
    position: absolute;
    inset: auto;
    right: 0;
    top: 50%;
    left: auto;
    width: min(22rem, calc(100vw - 12rem));
    transform: translateY(-50%);
    padding: 0;
  }

  .search-wrap-compact.is-search-active .search-close-btn {
    display: none !important;
  }

  .search-wrap-compact.is-search-active .search-box-compact {
    width: 100%;
  }
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: auto;
  height: 1.85rem;
  max-width: min(180px, 42vw);
  aspect-ratio: 922 / 256;
  object-fit: contain;
}

.search-wrap {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 2.65rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(17, 20, 25, 0.92);
  cursor: text;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.search-box:focus-within {
  background: rgba(22, 22, 38, 0.98);
}

.search-box-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.search-box:focus-within .search-box-icon {
  color: rgba(255, 255, 255, 0.78);
}

.search-box-icon .fn-icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 2;
}

.search-input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  box-shadow: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
}

.search-input:focus {
  outline: none;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 800;
  max-height: min(18rem, 42vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(8, 8, 12, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.62rem 0.85rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion:hover,
.search-suggestion.is-active {
  background: rgba(255, 138, 0, 0.18);
}

.search-suggestion-icon {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-orange);
}

.search-suggestion-icon .fn-icon,
.search-suggestion-icon .fn-icon-img {
  width: 1rem;
  height: 1rem;
}

.search-suggestion-body {
  min-width: 0;
}

.search-suggestion-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-subtitle {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestions-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  border: none;
  border-radius: var(--fn-radius-control, 6px);
  background: linear-gradient(145deg, #ff8a00 0%, #ff6b00 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(255, 138, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filter-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(255, 138, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.filter-toggle-btn.is-open {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    0 0 16px rgba(255, 138, 0, 0.45);
}

.filter-toggle-btn .fn-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.topbar-row-filters {
  min-width: 0;
}

.category-strip.is-top-mode .category-chip:not(.active),
.category-strip.is-events-mode .category-chip:not(.active):not(.category-chip-events) {
  opacity: 0.58;
}

.category-strip.is-top-mode .category-chip:not(.active):hover,
.category-strip.is-events-mode .category-chip:not(.active):not(.category-chip-events):hover {
  opacity: 0.82;
}

.bottom-nav-top-trophy {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  width: 0.72rem;
  height: 0.72rem;
  color: rgba(255, 210, 120, 0.92);
  opacity: 0.88;
}

.bottom-nav-item.is-top.is-active .bottom-nav-top-trophy {
  color: #ffe8a8;
  opacity: 1;
}

.category-chip-label {
  white-space: nowrap;
}

.category-chip-icon .fn-icon,
.category-chip-icon .fn-icon-img {
  width: 0.95rem;
  height: 0.95rem;
}

.category-strip-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.category-strip,
.category-secondary-band {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.category-strip::-webkit-scrollbar,
.category-secondary-band::-webkit-scrollbar {
  display: none;
}

.category-secondary-band[hidden] {
  display: none !important;
}

.category-chip[hidden],
.bottom-nav-item[hidden] {
  display: none !important;
}

.category-chip,
.bottom-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-height: 2.15rem;
  padding: 0.38rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(17, 20, 25, 0.88);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.category-chip:hover,
.bottom-nav-item:hover {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
}

.category-chip.active {
  /* Unified dark active: same family as idle, no --type-color / brand accents. */
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(17, 20, 25, 0.96);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.bottom-nav-item.active,
.bottom-nav-item.is-active {
  color: #ffffff;
  border-color: rgba(255, 154, 46, 0.75);
  background: rgba(255, 138, 0, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.35),
    0 0 18px rgba(255, 138, 0, 0.28);
}

.category-chip-icon,
.bottom-nav-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.category-chip-icon .fn-icon,
.bottom-nav-item-icon .fn-icon,
.category-chip-icon .fn-icon-img,
.bottom-nav-item-icon .fn-icon-img {
  width: 0.95rem;
  height: 0.95rem;
}

.topbar-geo-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.geo-region-btn,
.geo-locate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.5rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(17, 20, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.geo-locate-btn {
  padding: 0;
  width: 44px;
}

.geo-region-btn:hover,
.geo-locate-btn:hover {
  background: rgba(26, 26, 44, 0.96);
}

.geo-locate-btn .fn-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.geo-locate-btn.is-active {
  border-color: rgba(255, 138, 0, 0.55);
  color: rgba(167, 145, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 138, 0, 0.28),
    0 0 14px rgba(255, 138, 0, 0.22);
}

.geo-locate-btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.geo-locate-btn.is-denied {
  border-color: rgba(238, 28, 37, 0.45);
  color: rgba(255, 130, 130, 0.92);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--fn-radius-control, 6px);
  background: var(--chip-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.user-avatar:hover {
  background: var(--chip-bg-hover);
}

.user-avatar.is-authenticated {
  box-shadow: inset 0 0 0 2px rgba(129, 201, 149, 0.55);
}

.topbar-user-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.geo-region-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0;
}

.map-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.map-filter-rail {
  position: absolute;
  top: 0.35rem;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  padding: 0 0.85rem;
  overflow: visible;
  pointer-events: none;
  background: transparent;
}

.map-filter-rail > * {
  pointer-events: none;
}

.map-filter-rail-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.map-filter-rail .category-chip-top,
#top-filter-toggle.category-chip-top {
  display: inline-flex;
  box-sizing: border-box;
}

.map-filter-mode-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  overflow: visible;
  pointer-events: auto;
}

.map-filter-mode-row > * {
  flex: 0 0 auto;
}

.map-filter-rail .category-chip,
.map-filter-rail .map-filter-rail-lead,
.map-filter-rail .tour-lists-toggle-wrap,
.map-filter-rail .tour-lists-toggle,
.map-filter-rail .society-tours-toggle,
.map-filter-rail .category-chip-top {
  pointer-events: auto;
}

.tour-lists-toggle-wrap {
  position: relative;
  flex: 0 0 auto;
}

.tour-lists-guest-popover {
  position: absolute;
  top: 0;
  left: calc(100% + 0.42rem);
  z-index: 29;
  width: min(15rem, calc(100vw - 2rem));
  padding: 0.65rem 0.72rem;
  border: 1px solid rgba(255, 154, 46, 0.38);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(11, 13, 16, 0.98) 0%, rgba(5, 6, 8, 0.96) 100%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(255, 138, 0, 0.16);
  pointer-events: auto;
}

.tour-lists-guest-popover[hidden] {
  display: none;
}

.tour-lists-guest-popover-text {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.tour-lists-guest-popover-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 154, 46, 0.45);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.18);
  color: #e8deff;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tour-lists-guest-popover-link:hover {
  background: rgba(255, 138, 0, 0.32);
  color: #fff;
}

.category-chip-tours.is-guest-hint-open,
.tour-lists-toggle.is-guest-hint-open {
  color: #ffffff;
  border-color: rgba(255, 154, 46, 0.75);
  background: rgba(255, 138, 0, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.35),
    0 4px 16px rgba(255, 138, 0, 0.22);
}

.map-filter-scroll {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.map-filter-scroll::-webkit-scrollbar {
  display: none;
}

.map-filter-scroll .category-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  vertical-align: top;
  padding-bottom: 0;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.map-filter-scroll .category-strip::-webkit-scrollbar {
  display: none;
}

.map-filter-scroll .category-chip {
  touch-action: pan-x pan-y;
}

.category-chip-tours {
  flex: 0 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.map-filter-rail .tour-lists-toggle {
  gap: 0.35rem;
}

.map-filter-rail .tour-lists-toggle .tour-lists-toggle-label {
  display: inline;
}

.category-chip-tours.is-open,
.category-chip-tours.is-highlighting {
  color: #ffffff;
  border-color: rgba(255, 154, 46, 0.75);
  background: rgba(255, 138, 0, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.35),
    0 4px 16px rgba(255, 138, 0, 0.22);
}

.category-chip-tours.is-highlighting {
  border-color: rgba(255, 179, 71, 0.65);
}

.category-chip-society-tours.is-open,
.category-chip-society-tours.is-highlighting {
  color: #ffffff;
  border-color: rgba(255, 154, 46, 0.75);
  background: rgba(255, 138, 0, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.35),
    0 4px 16px rgba(255, 138, 0, 0.22);
}

.category-chip-society-tours.is-highlighting {
  border-color: rgba(255, 179, 71, 0.65);
}

.category-chip-top {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.category-chip-top-flag {
  font-size: 0.95rem;
  line-height: 1;
}

.category-chip-top-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.08rem;
  color: rgba(255, 255, 255, 0.72);
}

.category-chip-top-chevron .fn-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.category-chip-top.is-active .category-chip-top-chevron,
.category-chip-top.is-list-open .category-chip-top-chevron {
  color: #fff;
}

.category-chip-top-trophy,
.category-chip-top .category-chip-icon .fn-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: rgba(255, 210, 120, 0.92);
}

.category-chip-top.is-active,
.category-chip-top.active {
  color: #ffffff;
  border-color: rgba(255, 154, 46, 0.75);
  background: rgba(255, 138, 0, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.35),
    0 4px 16px rgba(255, 138, 0, 0.22);
}

.category-chip-top.is-active .category-chip-top-trophy,
.category-chip-top.active .category-chip-top-trophy,
.category-chip-top.is-active .category-chip-icon .fn-icon,
.category-chip-top.active .category-chip-icon .fn-icon {
  color: #ffe8a8;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0d0d12;
}

.map-init-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Map init failure (no WebGL, library/token missing): message + Retry + list fallback. */
.map-failure {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem calc(var(--fn-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 1rem);
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(255, 138, 0, 0.08), transparent 70%),
    #0d0d12;
}

.map-failure-card {
  width: min(420px, 100%);
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--fn-surface-2, #121218);
  border: 1px solid var(--fn-border, rgba(255, 255, 255, 0.1));
  text-align: left;
}

.map-failure-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fn-text, #f4f4f5);
}

.map-failure-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fn-text-secondary, #a1a1aa);
}

.map-failure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-failure-actions .fn-btn {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 10px;
}

.map-list-fallback {
  position: absolute;
  inset: 4.25rem 0 0;
  z-index: 26;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1rem calc(var(--fn-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 1rem);
  overflow-y: auto;
  background: #0d0d12;
}

.map-list-fallback[hidden] {
  display: none;
}

@media (max-width: 899px) {
  .map-list-fallback {
    padding-bottom: calc(var(--fn-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 9rem);
  }
}

@media (min-width: 900px) {
  .map-list-fallback {
    inset: 7.25rem 0 0;
    padding-bottom: 1.5rem;
  }
}

.map-list-fallback-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  background: #0d0d12;
}

.map-list-fallback-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fn-text, #f4f4f5);
  outline: none;
}

.map-list-fallback-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fn-border, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  background: transparent;
  color: var(--fn-text, #f4f4f5);
  cursor: pointer;
}

.map-list-fallback-close .fn-icon {
  width: 18px;
  height: 18px;
}

.map-list-fallback-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.map-list-fallback-link {
  display: grid;
  gap: 0.2rem;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--fn-surface-2, #121218);
  border: 1px solid var(--fn-border-soft, rgba(255, 255, 255, 0.06));
  color: inherit;
  text-decoration: none;
}

.map-list-fallback-link:hover,
.map-list-fallback-link:focus-visible {
  border-color: var(--fn-orange, #ff8a00);
}

.map-list-fallback-name {
  font-weight: 650;
  color: var(--fn-text, #f4f4f5);
  overflow-wrap: anywhere;
}

.map-list-fallback-meta,
.map-list-fallback-status,
.map-list-fallback-status-text {
  font-size: 0.8rem;
  color: var(--fn-text-secondary, #a1a1aa);
}

.map-list-fallback-status.is-open {
  color: #86efac;
}

.map-list-fallback-state {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed var(--fn-border, rgba(255, 255, 255, 0.12));
  color: var(--fn-text-secondary, #a1a1aa);
}

.map-list-fallback-state p {
  margin: 0;
}

.tariff-bar-shell {
  position: relative;
  width: 100%;
  max-width: min(100%, 980px);
  pointer-events: auto;
}

.tariff-bar {
  width: 100%;
  padding: 0.42rem 0.55rem;
  overflow: hidden;
  background: rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bottom-nav-item {
  flex-direction: column;
  gap: 0.18rem;
  min-height: 3.35rem;
  padding: 0.42rem 0.35rem 0.36rem;
  border-radius: var(--fn-radius-control, 6px);
  border-color: transparent;
  background: transparent;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bottom-nav-item-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.bottom-nav-item-icon .fn-icon,
.bottom-nav-item-icon .fn-icon-img {
  width: 1.05rem;
  height: 1.05rem;
}

.bottom-nav-item-label {
  display: block;
  line-height: 1.1;
}

.bottom-nav-item.is-top .bottom-nav-item-icon {
  position: relative;
}

.bottom-nav-top-flag {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  font-size: 0.62rem;
  line-height: 1;
}

.popular-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(4.65rem + env(safe-area-inset-bottom, 0px) + var(--dock-bottom-extra) + var(--dock-tier-extra));
  z-index: 590;
  padding: 0 0.75rem 0.45rem;
  pointer-events: none;
}

.popular-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  pointer-events: auto;
}

.popular-rail-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.popular-rail-see-all {
  border: none;
  background: transparent;
  color: rgba(255, 154, 46, 0.95);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.popular-rail-track {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.popular-rail-track::-webkit-scrollbar {
  display: none;
}

.popular-card {
  flex: 0 0 auto;
  width: min(11.5rem, 42vw);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(12, 12, 22, 0.94);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.popular-card-media {
  position: relative;
  height: 5.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 138, 0, 0.35), transparent 55%),
    linear-gradient(145deg, rgba(26, 26, 44, 0.95), rgba(10, 10, 18, 0.98));
}

.popular-card-type {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.popular-card-body {
  padding: 0.55rem 0.65rem 0.65rem;
}

.popular-card-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.22rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.tariff-filter-layout {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  width: 100%;
}

.tariff-filter-row {
  display: grid;
  grid-template-columns: repeat(var(--filter-columns, 4), minmax(0, 1fr));
  align-items: stretch;
  gap: 0.18rem;
  width: 100%;
}

.tariff-filter-band-secondary {
  padding: 0.18rem 0.22rem 0.2rem;
  border-radius: var(--fn-radius-control, 6px);
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tariff-filter-band-secondary[hidden] {
  display: none !important;
}

.tariff-more-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.2rem 0.1rem 0.16rem;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 130, 32, 0.92);
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.tariff-more-icon-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 1.15rem;
  border: none;
  border-radius: 0;
  background: transparent;
}

.tariff-more-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tariff-more-chevron-glyph {
  width: 0.95rem;
  height: 0.95rem;
  color: rgba(245, 130, 32, 0.95);
  transition: color 0.2s ease;
}

.tariff-more-label {
  width: 100%;
  font-size: clamp(0.46rem, 1.85vw, 0.56rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.tariff-more-card:hover {
  color: #ffb45a;
  background: rgba(0, 0, 0, 0.55);
}

.tariff-more-card:active {
  transform: scale(0.96);
}

.tariff-more-card.is-open,
.tariff-more-card.has-selection:not(.is-open) {
  color: #ffffff;
  background: #000000;
  border-color: rgba(255, 255, 255, 0.88);
}

.tariff-more-card.is-open .tariff-more-chevron-glyph,
.tariff-more-card.has-selection:not(.is-open) .tariff-more-chevron-glyph {
  color: #ffffff;
}

.tariff-filter-row-secondary {
  gap: 0.2rem;
}

.tariff-top-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.2rem 0.1rem 0.16rem;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 214, 120, 0.94);
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.tariff-top-card::after {
  content: "";
  position: absolute;
  top: 18%;
  right: -0.08rem;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.12) 18%,
    rgba(255, 255, 255, 0.12) 82%,
    transparent
  );
  pointer-events: none;
}

.tariff-top-icon-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 1.15rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tariff-top-trophy {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  width: 0.72rem;
  height: 0.72rem;
  color: rgba(255, 210, 120, 0.92);
  opacity: 0.88;
}

.tariff-top-flag {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.tariff-top-label {
  display: block;
  width: 100%;
  font-size: clamp(0.46rem, 1.85vw, 0.56rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.tariff-top-card:hover {
  color: #fff0cc;
  background: rgba(0, 0, 0, 0.55);
}

.tariff-top-card:active {
  transform: scale(0.96);
}

.tariff-top-card.is-active {
  color: #fff6df;
  background: #000000;
  border-color: rgba(255, 210, 120, 0.88);
}

.tariff-top-card.is-active .tariff-top-trophy {
  color: #ffe8a8;
  opacity: 1;
}

.tariff-bar.is-top-mode .tariff-card:not(.active) {
  opacity: 0.58;
}

.tariff-bar.is-top-mode .tariff-card:not(.active):hover {
  opacity: 0.82;
}

.tariff-bar.has-secondary-selection .tariff-filter-row-primary .tariff-card-primary:not(.active),
.tariff-bar.has-secondary-selection .tariff-top-card:not(.is-active) {
  opacity: 0.72;
}

.tariff-bar.has-secondary-selection .tariff-filter-row-primary .tariff-card-primary:not(.active):hover,
.tariff-bar.has-secondary-selection .tariff-top-card:not(.is-active):hover {
  opacity: 0.9;
}

.tariff-card-primary {
  min-height: 2.55rem;
}

.tariff-card-secondary {
  min-height: 2.35rem;
  gap: 0.08rem;
  padding: 0.16rem 0.1rem 0.14rem;
  color: rgba(255, 255, 255, 0.44);
}

.tariff-card-secondary .tariff-card-icon {
  height: 1.05rem;
  opacity: 0.92;
}

.tariff-card-secondary .tariff-card-label {
  font-size: clamp(0.42rem, 1.65vw, 0.52rem);
  letter-spacing: 0.03em;
}

.tariff-card-secondary:hover {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.55);
}

.tariff-card-secondary:hover .tariff-card-icon {
  opacity: 1;
}

.tariff-card-secondary.active {
  min-height: 2.35rem;
  color: #ffffff;
  background: #000000;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.tariff-card-secondary.active .tariff-card-icon {
  opacity: 1;
}

.tariff-bar::-webkit-scrollbar {
  display: none;
}

.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.2rem 0.1rem 0.16rem;
  box-sizing: border-box;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font: inherit;
  --type-color: var(--accent);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
}

.tariff-card:hover {
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
}

.tariff-card:active {
  transform: scale(0.96);
}

.tariff-card.active {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.tariff-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 1.15rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.tariff-card:hover .tariff-card-icon {
  transform: none;
}

.tariff-card.active .tariff-card-icon {
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
}

.tariff-card-label {
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.46rem, 1.85vw, 0.56rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tariff-card.active .tariff-card-label {
  color: #ffffff;
}

.venue-reviews-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(4.65rem + env(safe-area-inset-bottom, 0px) + var(--dock-bottom-extra) + var(--dock-tier-extra));
  z-index: 595;
  padding: 0 0.75rem 0.45rem;
  pointer-events: none;
}

.venue-reviews-dock-inner {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(5, 6, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.venue-reviews-dock-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.45rem 0.7rem;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.venue-reviews-dock-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.venue-reviews-dock-summary-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f4c15d;
}

.venue-reviews-dock-summary-meta {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.venue-reviews-dock-summary-provider {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 154, 46, 0.92);
  white-space: nowrap;
}

.venue-reviews-dock-summary.is-loading {
  cursor: default;
}

.venue-reviews-dock-expanded {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.venue-reviews-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem 0.35rem;
}

.venue-reviews-dock-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.15rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 255, 255, 0.05);
}

.venue-reviews-dock-tab {
  border: none;
  border-radius: var(--fn-radius-control, 6px);
  padding: 0.28rem 0.65rem;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.venue-reviews-dock-tab.is-active {
  background: rgba(255, 138, 0, 0.32);
  color: #ffffff;
}

.venue-reviews-dock-close {
  border: none;
  border-radius: var(--fn-radius-control, 6px);
  padding: 0.28rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.venue-reviews-dock-body {
  max-height: min(38vh, 17.5rem);
  overflow: auto;
  padding: 0 0.65rem 0.65rem;
}

.venue-reviews-dock-photos {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.venue-reviews-dock-photos::-webkit-scrollbar {
  display: none;
}

.venue-reviews-dock-photo {
  flex: 0 0 auto;
  width: min(9.5rem, 34vw);
  height: 5.4rem;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.venue-reviews-dock-photo.is-pressed {
  border-color: rgba(255, 154, 46, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.28);
}

.venue-reviews-dock-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.venue-reviews-photos-hint {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.venue-reviews-photo-preview {
  position: fixed;
  left: 50%;
  z-index: 820;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 24rem);
  padding: 0.35rem;
  transform: translateX(-50%) scale(0.96);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 8, 0.96);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(255, 138, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.14s ease,
    transform 0.14s ease,
    visibility 0.14s ease;
}

.venue-reviews-photo-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.venue-reviews-photo-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.venue-reviews-dock-empty {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.leaflet-bottom.leaflet-right,
.mapboxgl-ctrl-bottom-right {
  bottom: calc(
    3.85rem + env(safe-area-inset-bottom, 0px) + var(--dock-bottom-extra) + var(--dock-tier-extra) +
      var(--reviews-dock-height, 0px)
  );
  right: 0.5rem;
}

.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib,
.mapboxgl-compact {
  display: none !important;
}

body.map-basemap-osm .mapboxgl-ctrl-attrib {
  display: block !important;
  max-width: min(280px, calc(100vw - 1.5rem));
  margin: 0 0 calc(4.1rem + env(safe-area-inset-bottom, 0px) + var(--dock-bottom-extra) + var(--dock-tier-extra)) 0.55rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
}

/* Must stay absolute: content classes (e.g. .venue-cluster) must not override this
   or Mapbox transform positioning drifts on zoom/pan. */
.mapboxgl-marker,
.mapboxgl-marker.mapbox-venue-marker,
.mapboxgl-marker.venue-placemark-host,
.mapboxgl-marker.mapbox-organizer-event-marker,
.mapboxgl-marker.organizer-event-marker-host,
.mapboxgl-marker.venue-cluster {
  position: absolute !important;
  top: 0;
  left: 0;
  transition: none !important;
  will-change: transform;
}

.mapbox-venue-marker {
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1;
}

.mapboxgl-marker.mapbox-venue-marker:hover,
.mapboxgl-marker.venue-placemark-host:hover {
  z-index: 12;
}

.mapboxgl-marker.venue-placemark-host {
  z-index: 10;
}

.venue-info-panel {
  position: fixed;
  top: var(--fn-venue-panel-top, calc(env(safe-area-inset-top, 0px) + 3.55rem));
  left: 50%;
  z-index: 750;
  width: min(420px, calc(100% - 1.5rem));
  /* Center only — no entrance slide (avoids janky transforms on fixed children). */
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(155deg, rgba(22, 14, 48, 0.97) 0%, rgba(10, 8, 22, 0.98) 52%, rgba(6, 5, 15, 0.99) 100%);
  border: 1px solid rgba(255, 154, 46, 0.28);
  border-radius: var(--fn-radius-control, 6px);
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.08) inset,
    0 0 42px rgba(255, 138, 0, 0.14),
    0 22px 56px rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  /* Must stay hidden so max-height clips + inner scroll works (never spill off-screen). */
  overflow: hidden;
  transition: opacity 0.16s ease;
}

.venue-info-panel-accent {
  position: absolute;
  top: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  border-radius: var(--fn-radius-round, 999px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 154, 46, 0.15) 8%,
    rgba(255, 154, 46, 0.95) 34%,
    rgba(255, 179, 71, 0.92) 52%,
    rgba(255, 154, 46, 0.95) 68%,
    rgba(255, 154, 46, 0.15) 92%,
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(255, 154, 46, 0.55);
  pointer-events: none;
  z-index: 2;
}

.venue-info-panel.is-open {
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: auto;
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.12) inset,
    0 0 52px rgba(255, 138, 0, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.72);
}

.venue-info-panel.has-video-preview {
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.14) inset,
    0 0 48px rgba(255, 138, 0, 0.22),
    0 0 72px rgba(255, 154, 46, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.72);
}

.venue-info-toast {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  z-index: 3;
  max-width: calc(100% - 1.5rem);
  padding: 0.48rem 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 154, 46, 0.42);
  background: linear-gradient(135deg, rgba(72, 46, 168, 0.94) 0%, rgba(48, 32, 118, 0.96) 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(255, 138, 0, 0.32);
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.venue-info-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.venue-info-content {
  padding: 0.9rem 2.75rem 0.75rem 1rem;
}

.venue-info-panel-body {
  position: relative;
}

.venue-info-upper-grid {
  position: relative;
}

.venue-info-panel-body.has-video-layout {
  --venue-video-col: clamp(160px, 46%, 240px);
  --venue-side-col: 2rem;
  padding: 0.55rem 0.55rem 0.75rem 0.85rem;
}

.venue-info-panel-body.has-video-layout .venue-info-upper-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--venue-video-col) var(--venue-side-col);
  grid-template-rows: auto auto auto;
  column-gap: 0.5rem;
  row-gap: 0.35rem;
  align-items: start;
}

.venue-info-panel-body.has-video-layout .venue-info-toolbar {
  position: static;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  z-index: 5;
}

.venue-info-panel-body.has-video-layout .venue-info-video-preview:not([hidden]) {
  display: block;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: stretch;
  position: relative;
  width: 100%;
  max-width: var(--venue-video-col);
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 154, 46, 0.34);
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.12) inset,
    0 8px 28px rgba(0, 0, 0, 0.52),
    0 0 24px rgba(255, 138, 0, 0.16);
  background: #000;
  z-index: 1;
}

.venue-info-video-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.venue-info-panel-body.has-video-layout .venue-info-content {
  display: contents;
  padding: 0;
}

.venue-info-panel-body.has-video-layout .venue-popup {
  display: contents;
}

.venue-info-panel-body.has-video-layout .venue-popup-head {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin-bottom: 0;
  padding-right: 0.15rem;
}

.venue-info-panel-body.has-video-layout .venue-popup-title-wrap {
  min-width: 0;
  overflow: hidden;
}

.venue-info-panel-body.has-video-layout .venue-popup-engagement {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin-bottom: 0;
  align-self: start;
}

.venue-info-panel-body.has-video-layout .venue-popup-status {
  grid-column: 1 / 3;
  grid-row: 4;
  min-width: 0;
  margin-top: 0.1rem;
}

.venue-info-panel-body.has-video-layout .venue-popup-actions {
  display: contents;
}

.venue-info-panel-body.has-video-layout .venue-popup-actions-main {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  margin-bottom: 0;
  width: 100%;
}

.venue-info-panel-body.has-video-layout .venue-popup-actions-search {
  grid-column: 3;
  grid-row: 3;
  justify-self: end;
  align-self: center;
  z-index: 4;
  margin-left: 0;
}

.venue-info-panel-body.has-video-layout .venue-popup-actions-bookmark {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  align-self: start;
  z-index: 4;
  margin-left: 0;
}

.venue-info-panel-body.has-video-layout .venue-popup-actions-reviews:not([hidden]) {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  align-self: center;
  z-index: 4;
}

.venue-info-panel-body.has-video-layout .venue-popup-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-info-panel-body.has-video-layout .venue-popup-place {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-info-panel-body.has-video-layout .venue-popup-meta {
  flex-wrap: nowrap;
  overflow: hidden;
}

.venue-info-panel-body.has-video-layout .venue-info-video-preview:not([hidden]) iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
}

.venue-info-panel-body.has-video-layout .venue-action-btn-main {
  flex: 1 1 0;
  min-height: 2.35rem;
  padding: 0.55rem 0.65rem;
}

.venue-info-panel-body.has-video-layout .venue-popup-actions-bookmark .venue-engage-btn,
.venue-info-panel-body.has-video-layout .venue-popup-actions-search .venue-action-btn {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
}

.venue-info-details-host:not([hidden]) {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.65rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(255, 154, 46, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 138, 0, 0.06) 0%, rgba(255, 138, 0, 0.02) 100%);
  border-radius: 0 0 12px 12px;
}

.venue-info-reviews-host:not([hidden]) {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0;
  border-top: 1px solid rgba(255, 154, 46, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 138, 0, 0.06) 0%, rgba(255, 138, 0, 0.02) 100%);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.venue-info-reviews-panel {
  padding: 0.15rem 0.65rem 0.75rem;
}

.venue-info-reviews-panel-body {
  max-height: min(38vh, 20.5rem);
}

.venue-popup-actions-reviews {
  flex: 0 0 auto;
}

.venue-action-btn-reviews {
  flex: 0 0 auto;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--fn-radius-control, 6px);
  text-transform: none;
  letter-spacing: 0;
}

.venue-action-reviews-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  color: #f4c15d;
}

.venue-action-btn-reviews.is-active .venue-action-reviews-rating {
  color: #fff;
}

.venue-reviews-panel-photos,
.venue-reviews-photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.venue-reviews-photo-hero {
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 154, 46, 0.28);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.venue-reviews-photo-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-reviews-photo-thumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: none;
  padding-bottom: 0.15rem;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.venue-reviews-photo-thumb {
  flex: 0 0 3.6rem;
  width: 3.6rem;
  height: 3.6rem;
  margin: 0;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.venue-reviews-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.venue-reviews-photo-thumb:hover {
  border-color: rgba(255, 154, 46, 0.38);
  transform: translateY(-1px);
}

.venue-reviews-photo-thumb.is-active {
  border-color: rgba(255, 154, 46, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.28) inset,
    0 0 16px rgba(255, 138, 0, 0.22);
}

.venue-reviews-photo-gallery.is-single .venue-reviews-photo-hero {
  aspect-ratio: 16 / 10;
}

.venue-info-reviews-panel .venue-reviews-dock-head {
  justify-content: flex-start;
}

.venue-info-panel-body:not(.has-video-layout) .venue-info-details-host {
  display: none !important;
}

.venue-popup-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.venue-popup-actions-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  padding: 0.22rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 154, 46, 0.16);
}

.venue-popup-actions-search {
  flex: 0 0 auto;
  margin-left: auto;
}

.venue-popup-actions-bookmark {
  flex: 0 0 auto;
  margin-left: 0.35rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.venue-popup-actions-bookmark .venue-engage-btn {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
}

.venue-info-progress {
  padding: 0 1rem 0.72rem;
}

.venue-info-progress-track {
  height: 3px;
  border-radius: var(--fn-radius-round, 999px);
  background: rgba(255, 154, 46, 0.12);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.venue-info-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a00 0%, #ff9a2e 45%, #ffb347 100%);
  box-shadow: 0 0 14px rgba(255, 154, 46, 0.55);
  transition: width 0.26s ease;
}

.venue-info-progress-label {
  display: block;
  margin-top: 0.38rem;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(180, 170, 220, 0.88);
}

.venue-info-close {
  position: relative;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 154, 46, 0.28);
  border-radius: 10px;
  background: rgba(255, 138, 0, 0.1);
  color: rgba(220, 214, 255, 0.82);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.venue-info-toolbar {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
}

.venue-info-close:hover {
  background: rgba(255, 138, 0, 0.22);
  border-color: rgba(255, 154, 46, 0.52);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.28);
}

.venue-info-close:active {
  transform: scale(0.94);
}

.venue-info-video-preview {
  display: none;
}

.venue-info-video-preview iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mapboxgl-map {
  font: inherit;
}

.leaflet-bottom.leaflet-left {
  bottom: calc(3.85rem + env(safe-area-inset-bottom, 0px) + var(--dock-bottom-extra) + var(--dock-tier-extra));
  left: 0.5rem;
}

.venue-cluster {
  /* Do not set position here — this element is the Mapbox Marker root. */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--fn-radius-round, 999px);
  background: transparent;
  border: none;
  box-shadow: none;
}

.venue-cluster-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venue-cluster-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.45);
}

.venue-cluster-core {
  position: relative;
  z-index: 1;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.venue-cluster-count {
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.venue-cluster-small {
  width: 36px;
  height: 36px;
}

.venue-cluster-small .venue-cluster-core {
  font-size: 0.78rem;
}

.venue-cluster-medium {
  width: 42px;
  height: 42px;
}

.venue-cluster-medium .venue-cluster-core {
  font-size: 0.82rem;
}

.venue-cluster-large {
  width: 48px;
  height: 48px;
}

.venue-cluster-large .venue-cluster-core {
  font-size: 0.88rem;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent !important;
}

.venue-marker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.mapbox-venue-marker,
.venue-marker-wrap-host,
.venue-tour-marker-host {
  width: 38px;
  height: 38px;
}

.venue-marker-wrap-host {
  overflow: visible;
  pointer-events: none;
}

.venue-marker-wrap-host .venue-marker-wrap-labeled .venue-marker {
  pointer-events: auto;
  cursor: pointer;
}

.mapboxgl-marker.mapbox-venue-marker.venue-marker-wrap-host {
  overflow: visible;
}

.venue-tour-marker-host {
  overflow: visible;
  pointer-events: none;
  cursor: default;
}

.venue-tour-marker-body {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  overflow: visible;
}

.venue-tour-marker-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.venue-tour-marker-star {
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb347;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 138, 0, 0.65));
}

.venue-tour-marker-star-icon {
  width: 14px;
  height: 14px;
}

.venue-tour-marker-label {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #e8eaed;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  pointer-events: none;
  text-shadow:
    0 0 2px #0a0a0b,
    0 0 4px #0a0a0b,
    0 1px 2px rgba(0, 0, 0, 0.9),
    1px 0 1px rgba(0, 0, 0, 0.85),
    -1px 0 1px rgba(0, 0, 0, 0.85);
}

.venue-tonight-marker-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Hosted-event pin box must stay fixed size so Mapbox center anchor does not drift. */
.venue-tonight-marker-body.has-hosted-event {
  display: block;
  width: 38px;
  height: 38px;
  overflow: visible;
  pointer-events: none;
}

.venue-tonight-marker-body.has-hosted-event .venue-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.venue-tonight-marker-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fn-orange, #ff8a00);
  border: 2px solid #0b0d10;
  box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.35);
  color: transparent;
  font-size: 0;
  z-index: 2;
}

.venue-marker.is-night-pin,
.venue-tonight-marker-body.is-night-pin .venue-marker {
  box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.venue-marker.is-place-pin {
  filter: saturate(0.75);
  opacity: 0.92;
}

.map-panel.is-tonight-nights-focus .venue-marker.is-place-pin,
.map-panel.is-tonight-nights-focus .venue-marker-wrap.is-place-pin {
  opacity: 0.45;
  filter: grayscale(0.35);
}

.map-panel.is-tonight-places-focus .venue-tonight-marker-body.is-night-pin,
.map-panel.is-tonight-places-focus .venue-marker.is-night-pin {
  opacity: 0.55;
}

.venue-marker-wrap.has-tonight {
  position: relative;
}

/* Shared Events-mode language: venue-hosted + standalone */
.venue-event-marker-body {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  overflow: visible;
  pointer-events: none;
}

.venue-marker-wrap-host .venue-event-marker-body .venue-marker,
.venue-marker-wrap-host .venue-tonight-marker-body .venue-marker {
  pointer-events: auto;
  cursor: pointer;
}

.venue-event-marker-glyph {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--fn-radius-round, 999px);
  font-size: 0.62rem;
  line-height: 1;
  color: #fff;
  background: var(--fn-event-marker-color, #d97706);
  border: 1.5px solid #0b0d10;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.venue-marker-wrap.has-hosted-event,
.venue-tonight-marker-body.has-hosted-event {
  position: relative;
}

.venue-marker-wrap.has-hosted-event .venue-marker,
.venue-tonight-marker-body.has-hosted-event .venue-marker {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--fn-event-marker-color, #d97706) 48%, transparent),
    0 0 0 5px color-mix(in srgb, var(--fn-event-marker-color, #d97706) 20%, transparent),
    0 8px 20px rgba(0, 0, 0, 0.45);
}

/* Event title always paints directly under the round pin (not above / beside). */
.map-event-title-under {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 10rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  color: color-mix(in srgb, var(--fn-event-marker-color, #d97706) 72%, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  text-shadow:
    0 0 2px #0a0a0b,
    0 0 4px #0a0a0b,
    0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

/* Standalone organizer events — same round pin language + shared event accent.
   Do not set position on these roots — Mapbox requires absolute via .mapboxgl-marker. */
.mapbox-organizer-event-marker,
.organizer-event-marker-host {
  cursor: pointer;
  z-index: 2;
  overflow: visible;
}

.organizer-event-marker-host {
  width: 38px;
  height: 38px;
  pointer-events: none;
}

.organizer-event-marker-host .organizer-event-marker-pin,
.organizer-event-marker-host .organizer-event-marker {
  pointer-events: auto;
  cursor: pointer;
}

.organizer-event-marker-body {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  overflow: visible;
  pointer-events: none;
}

.organizer-event-marker-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.organizer-event-marker.venue-marker {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--fn-event-marker-color, var(--type-color, #d97706)) 48%, transparent),
    0 0 0 5px color-mix(in srgb, var(--fn-event-marker-color, var(--type-color, #d97706)) 20%, transparent),
    0 8px 20px rgba(0, 0, 0, 0.45);
}

.organizer-event-marker-glyph {
  line-height: 1;
  font-size: 0.9rem;
}

.organizer-event-marker-label {
  max-width: 9rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  color: #fff;
  background: rgba(12, 14, 18, 0.88);
  border: 1px solid color-mix(in srgb, var(--fn-event-marker-color, #d97706) 55%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.organizer-event-marker-wrap-labeled {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  overflow: visible;
}

.organizer-event-marker-side-label {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: 11.5rem;
  pointer-events: none;
}

.explore-venue-title-link {
  color: inherit;
  text-decoration: none;
}

.explore-venue-title-link:hover {
  text-decoration: underline;
}

.explore-venue-meta.is-event-when {
  color: color-mix(in srgb, var(--fn-event-marker-color, #d97706) 70%, #fbbf24);
  font-weight: 650;
}

.organizer-event-marker-host.is-selected .organizer-event-marker.venue-marker {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--type-color, #d97706) 45%, transparent),
    0 0 0 4px color-mix(in srgb, var(--type-color, #d97706) 28%, transparent),
    0 0 18px color-mix(in srgb, var(--type-color, #d97706) 55%, transparent),
    0 8px 20px rgba(0, 0, 0, 0.45);
}

.explore-event-meetup-create {
  margin-top: 12px;
  padding: 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 154, 46, 0.28);
  background:
    linear-gradient(165deg, rgba(255, 138, 0, 0.1), rgba(255, 255, 255, 0.03) 42%),
    rgba(12, 12, 16, 0.55);
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  animation: fn-meetup-sheet-in 0.28s ease-out;
}

@keyframes fn-meetup-sheet-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.explore-event-meetup-create.is-busy {
  opacity: 0.78;
  pointer-events: none;
}

.explore-event-meetup-sheet-head {
  margin-bottom: 0.75rem;
}

.explore-event-meetup-sheet-title {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.explore-event-meetup-sheet-meta {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: rgba(255, 215, 168, 0.88);
  line-height: 1.35;
}

.explore-event-meetup-sheet-lead {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.explore-event-meetup-create .fn-meetup-door {
  margin: 0 0 10px;
  border: 0;
  padding: 0;
}

.explore-event-meetup-create .fn-meetup-door-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.explore-event-meetup-create .fn-meetup-door-choice:has(input:checked) {
  border-color: rgba(255, 138, 0, 0.45);
  background: rgba(255, 138, 0, 0.1);
}

.explore-event-meetup-create .fn-meetup-door-choice input {
  margin-top: 0.2rem;
}

.explore-event-meetup-create .fn-meetup-door-choice strong {
  display: block;
  font-size: 0.875rem;
}

.explore-event-meetup-create .fn-meetup-door-choice small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.explore-event-meetup-note textarea {
  width: 100%;
  margin-top: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 8px 10px;
  resize: vertical;
}

.explore-event-meetup-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.explore-event-tickets .explore-event-ticket-price {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.explore-event-tickets .explore-event-ticket-price.is-free {
  color: #8dffb8;
  font-size: 1.05rem;
}

.explore-event-buy-ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  text-decoration: none;
}

.explore-event-buy-ticket.is-disabled,
.explore-event-buy-ticket:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.explore-venue-primary-cta.is-disabled,
.explore-venue-primary-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.explore-organizer-event-card .explore-venue-card-head {
  padding-bottom: 0.35rem;
}

.explore-event-when-primary {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #8dffb8;
}

.explore-venue-meta.is-event-until {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.56);
}

.explore-event-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0.35rem 0 0.45rem;
}

.explore-event-status-row .fn-event-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.12rem 0.55rem;
  border-radius: var(--fn-radius-control, 6px);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(255, 138, 0, 0.12);
  border: 1px solid rgba(255, 154, 46, 0.28);
  color: #ffd7a8;
}

.explore-event-status-row .fn-event-status-badge.is-live {
  color: #9dffc8;
  border-color: rgba(124, 255, 178, 0.45);
  background: rgba(20, 60, 40, 0.45);
}

.explore-event-status-row .fn-event-status-badge.is-tonight {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(70, 45, 10, 0.45);
}

.explore-event-status-row .fn-event-status-badge.is-ended {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.explore-event-status-row .fn-event-status-badge.is-type {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.explore-event-status-row .fn-event-status-badge.is-rave {
  background: rgba(217, 119, 6, 0.24);
  border-color: rgba(217, 119, 6, 0.5);
  color: #fbbf24;
}

.category-strip.is-events-mode .category-chip:not(.active):not(.category-chip-events) {
  opacity: 0.58;
}

.category-strip.is-events-mode .category-chip:not(.active):not(.category-chip-events):hover {
  opacity: 0.82;
}

#venue-info-panel.is-organizer-event .explore-venue-footer-inner {
  gap: 0.55rem;
}

#venue-info-panel.is-organizer-event .explore-venue-primary-cta {
  min-height: 44px;
}

#venue-info-panel.is-organizer-event .explore-venue-secondary-btn {
  min-width: 44px;
  min-height: 44px;
}

/* Event cards are taller (status + create social night) — keep hero compact. */
#venue-info-panel.is-organizer-event .explore-venue-media {
  max-height: min(22vh, 10rem);
}

@media (max-height: 900px) {
  #venue-info-panel.is-organizer-event .explore-venue-media {
    max-height: min(18vh, 7.5rem);
  }

  #venue-info-panel.is-organizer-event .explore-event-status-row {
    margin: 0.2rem 0 0.3rem;
  }
}

@media (max-height: 740px) {
  #venue-info-panel.is-organizer-event .explore-venue-media-wrap {
    max-height: 6.5rem;
    overflow: hidden;
  }
}

.explore-venue-media-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--fn-radius-control, 6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 10, 14, 0.62);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.explore-venue-media-pill-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #8dffb8;
}

.explore-venue-media-pill.is-event {
  border-color: rgba(217, 119, 6, 0.45);
}

.explore-venue-media-pill.is-event .explore-venue-media-pill-dot {
  background: #d97706;
}

#venue-info-panel.is-organizer-event .venue-info-video-preview {
  display: none;
}

#venue-info-panel.is-organizer-event .explore-venue-media-wrap {
  display: block;
}

.explore-venue-nearest-event {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0.45rem 0.15rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

a.explore-venue-nearest-event.is-link:hover .explore-venue-nearest-event-title {
  color: #ffd7a8;
}

.explore-venue-nearest-event-kicker {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 215, 168, 0.88);
}

.explore-venue-nearest-event-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.explore-venue-nearest-event-title {
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.explore-venue-nearest-event-when {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.58);
  font-variant-numeric: tabular-nums;
}

.venue-main-events,
.venue-main-meetups,
.venue-main-tours {
  margin-top: 12px;
}

.venue-main-event {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--fn-border, #252930);
}

.venue-main-event:last-child {
  border-bottom: 0;
}

.venue-main-event-title {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.venue-main-event-when,
.venue-main-event-meta {
  display: block;
  font-size: 11px;
  color: var(--fn-muted, #9aa3af);
}

.venue-main-tonight-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--fn-muted, #9aa3af);
}

.venue-main-meetup-leave {
  margin-top: 6px;
  background: transparent;
  border: 0;
  color: var(--fn-muted, #9aa3af);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.venue-marker-wrap-labeled {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  overflow: visible;
}

.venue-marker-wrap-labeled .venue-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.venue-marker-wrap-labeled .venue-map-label {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: 11.5rem;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  z-index: 1;
}

.venue-map-label {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.08rem;
  max-width: 11.5rem;
  white-space: normal;
}

.venue-marker-label-name,
.venue-placemark-label-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #f3f4f6;
  text-shadow:
    0 0 2px #0a0a0b,
    0 0 4px #0a0a0b,
    0 1px 2px rgba(0, 0, 0, 0.9),
    1px 0 1px rgba(0, 0, 0, 0.85),
    -1px 0 1px rgba(0, 0, 0, 0.85);
}

.venue-marker-label-meta,
.venue-placemark-label-meta {
  display: block;
  min-height: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: rgba(232, 234, 237, 0.82);
  text-shadow:
    0 0 2px #0a0a0b,
    0 0 4px #0a0a0b,
    0 1px 2px rgba(0, 0, 0, 0.88),
    1px 0 1px rgba(0, 0, 0, 0.82),
    -1px 0 1px rgba(0, 0, 0, 0.82);
}

.venue-marker-label-meta.is-empty {
  visibility: hidden;
}

.venue-marker-label-meta.is-event,
.venue-placemark-label-meta.is-event {
  color: color-mix(in srgb, var(--fn-event-marker-color, #d97706) 75%, #fbbf24);
  font-weight: 650;
}

.venue-placemark-label-name {
  font-size: 14px;
  font-weight: 600;
}

.venue-placemark-label-meta {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.venue-placemark-label {
  position: absolute;
  left: calc(100% + 8px);
  top: 42%;
  transform: translateY(-50%);
  max-width: 13rem;
  overflow: hidden;
  pointer-events: none;
}

.venue-placemark-label-stack {
  max-width: 13rem;
}

.venue-marker-wrap .venue-marker {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  font-size: 0.92rem;
}

.venue-placemark-host {
  /* Do not set position here — this element is the Mapbox Marker root. */
  width: 30px;
  height: 40px;
  overflow: visible;
  pointer-events: none;
}

.venue-placemark-host .venue-placemark-pin {
  position: relative;
}

.venue-placemark-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.42));
}

.venue-placemark-head.venue-marker {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  border-width: 2px;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--type-color, #171822) 22%, transparent),
    0 4px 10px rgba(0, 0, 0, 0.35);
}

.venue-placemark-head .fn-icon,
.venue-placemark-head .fn-icon-img {
  width: 15px;
  height: 15px;
  color: #fff;
}

.venue-placemark-pointer {
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #ffffff;
}

.venue-info-content .venue-popup-row {
  padding: 0.35rem 0;
}

.venue-popup-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.15rem 0 0.65rem;
  padding: 0.55rem 0.68rem;
  border: 1px solid rgba(255, 154, 46, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.1) 0%, rgba(255, 138, 0, 0.04) 100%);
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(230, 226, 255, 0.88);
}

.venue-popup-hint-status {
  margin: 0.1rem 0 0.5rem;
  padding: 0;
  border: none;
  background: transparent;
}

.venue-popup-type-stack {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  width: 38px;
}

.venue-popup-door-sign-slot {
  width: 100%;
  min-height: 2.55rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.venue-door-sign {
  display: inline-flex;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: center;
  width: 1.55rem;
  transform-origin: top center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transform: rotate(0deg);
}

.venue-door-sign .fn-icon,
.venue-door-sign .fn-icon-custom,
.venue-door-sign .fn-icon-img {
  width: 100%;
  height: auto;
  display: block;
}

.venue-door-sign-open {
  animation: venue-door-sign-open-settle 1.85s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

.venue-door-sign-closed {
  opacity: 0.88;
}

@keyframes venue-door-sign-open-settle {
  0% {
    transform: rotate(-16deg);
  }
  16% {
    transform: rotate(13deg);
  }
  32% {
    transform: rotate(-10deg);
  }
  48% {
    transform: rotate(7deg);
  }
  64% {
    transform: rotate(-4deg);
  }
  80% {
    transform: rotate(2deg);
  }
  92% {
    transform: rotate(-0.8deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.venue-popup-hours {
  margin-bottom: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 138, 0, 0.06);
  border: 1px solid rgba(255, 154, 46, 0.16);
}

.venue-popup-hours-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.venue-popup-hours-icon .venue-action-glyph {
  width: 0.9rem;
  height: 0.9rem;
}

.venue-popup-hours-body {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.venue-popup-hint-icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: var(--accent-orange);
}

.venue-popup-hint-icon .venue-action-glyph {
  width: 0.95rem;
  height: 0.95rem;
}

.venue-popup-engagement {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  padding: 0.28rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 154, 46, 0.14);
  width: fit-content;
  max-width: 100%;
}

@keyframes venue-engage-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.14);
  }
  65% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes venue-engage-glyph-bounce {
  0% {
    transform: scale(1) rotate(0deg);
  }
  30% {
    transform: scale(1.28) rotate(-8deg);
  }
  60% {
    transform: scale(0.92) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.venue-popup-engagement.is-busy {
  opacity: 0.62;
  pointer-events: none;
}

.venue-engage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 2.35rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.venue-engage-glyph-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.venue-engage-glyph-wrap .fn-icon,
.venue-engage-glyph-wrap .fn-icon-img {
  width: 1.25rem;
  height: 1.25rem;
}

:root {
  --engage-like-color: #5b9bff;
  --engage-dislike-color: #9b2c2c;
}

.venue-engage-like {
  border-color: color-mix(in srgb, var(--engage-like-color) 35%, transparent);
}

.venue-engage-like .venue-engage-glyph,
.venue-engage-like .fn-icon {
  color: var(--engage-like-color);
  stroke: currentColor;
}

.venue-engage-dislike {
  border-color: color-mix(in srgb, var(--engage-dislike-color) 40%, transparent);
}

.venue-engage-dislike .venue-engage-glyph,
.venue-engage-dislike .fn-icon {
  color: var(--engage-dislike-color);
  stroke: currentColor;
}

.venue-engage-bookmark {
  border-color: rgba(255, 255, 255, 0.28);
}

.venue-engage-bookmark .venue-engage-glyph,
.venue-engage-bookmark .fn-icon {
  color: rgba(255, 255, 255, 0.92);
  fill: none;
  stroke: currentColor;
}

.venue-engage-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.venue-engage-like:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--engage-like-color) 62%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--engage-like-color) 18%, transparent);
}

.venue-engage-dislike:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--engage-dislike-color) 58%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--engage-dislike-color) 16%, transparent);
}

.venue-engage-bookmark:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.55);
}

.venue-engage-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.venue-engage-btn.is-animating {
  animation: venue-engage-pop 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.venue-engage-btn.is-animating .venue-engage-glyph-wrap {
  animation: venue-engage-glyph-bounce 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.venue-engage-like.is-active {
  background: color-mix(in srgb, var(--engage-like-color) 28%, rgba(255, 138, 0, 0.12));
  border-color: color-mix(in srgb, var(--engage-like-color) 72%, rgba(255, 154, 46, 0.4));
  box-shadow: 0 0 18px color-mix(in srgb, var(--engage-like-color) 24%, rgba(255, 138, 0, 0.3));
}

.venue-engage-like.is-active .venue-engage-glyph,
.venue-engage-like.is-active .fn-icon {
  color: color-mix(in srgb, var(--engage-like-color) 75%, white);
  fill: currentColor;
}

.venue-engage-dislike.is-active {
  background: color-mix(in srgb, var(--engage-dislike-color) 42%, transparent);
  border-color: color-mix(in srgb, var(--engage-dislike-color) 82%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--engage-dislike-color) 28%, transparent);
}

.venue-engage-dislike.is-active .venue-engage-glyph,
.venue-engage-dislike.is-active .fn-icon {
  color: color-mix(in srgb, var(--engage-dislike-color) 55%, white);
  fill: currentColor;
}

.venue-engage-bookmark.is-active {
  background: rgba(255, 138, 0, 0.22);
  border-color: rgba(196, 184, 255, 0.72);
  box-shadow: 0 0 18px rgba(255, 138, 0, 0.28);
}

.venue-engage-bookmark.is-active .venue-engage-glyph,
.venue-engage-bookmark.is-active .fn-icon {
  color: #fff;
  fill: currentColor;
  stroke: currentColor;
}

.venue-engage-compare.is-active {
  background: rgba(255, 107, 0, 0.28);
  border-color: rgba(255, 160, 80, 0.75);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.28);
}

.venue-engage-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.venue-engage-btn .venue-engage-glyph,
.venue-engage-btn .venue-action-glyph {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.5;
}

.venue-engage-count {
  min-width: 0.45rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.venue-engage-like .venue-engage-count {
  color: #8ec0ff;
}

.venue-action-btn-main {
  flex: 0 1 auto;
}

.venue-action-btn {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0.48rem 0.65rem;
  border: 1px solid rgba(255, 154, 46, 0.22);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.08);
  color: rgba(240, 236, 255, 0.92);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    transform 0.12s ease;
}

.venue-action-btn-google {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin-left: 0.15rem;
  padding: 0;
  border: 1px solid rgba(255, 154, 46, 0.2);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.1);
  box-shadow: none;
  opacity: 0.88;
}

.venue-action-btn-google .venue-action-glyph {
  width: 0.95rem;
  height: 0.95rem;
  color: rgba(196, 184, 255, 0.88);
  stroke-width: 1.85;
}

.venue-action-btn-google:hover:not(:disabled) {
  background: rgba(255, 138, 0, 0.2);
  border-color: rgba(255, 154, 46, 0.42);
  opacity: 1;
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.22);
}

.venue-action-btn-google:active:not(:disabled) {
  opacity: 0.85;
  transform: scale(0.96);
}

.venue-action-btn-main:hover:not(:disabled) {
  background: rgba(255, 138, 0, 0.16);
  border-color: rgba(255, 154, 46, 0.42);
  color: #fff;
}

.venue-action-btn.is-active {
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.92) 0%, rgba(255, 138, 0, 0.88) 100%);
  border-color: rgba(196, 184, 255, 0.55);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 4px 18px rgba(255, 138, 0, 0.42);
}

.venue-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.venue-action-btn .venue-action-glyph {
  width: 1rem;
  height: 1rem;
  color: var(--accent-bright);
  stroke-width: 2;
}

.venue-action-btn.is-active .venue-action-glyph,
.venue-action-btn[data-venue-action="info"].is-active .venue-action-glyph {
  color: #fff;
}

.venue-action-label {
  line-height: 1;
}

.venue-popup-details {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 154, 46, 0.14);
}

.venue-popup-details[hidden] {
  display: none;
}

.venue-popup-empty {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  font-size: 0.78rem;
  color: rgba(180, 176, 200, 0.82);
  background: rgba(255, 138, 0, 0.06);
  border: 1px dashed rgba(255, 154, 46, 0.22);
  text-align: center;
}

.venue-popup-copy-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.48rem 0.55rem;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 154, 46, 0.12);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.venue-popup-copy-row:last-child {
  margin-bottom: 0;
}

.venue-popup-copy-row:hover {
  background: rgba(255, 138, 0, 0.08);
  border-color: rgba(255, 154, 46, 0.24);
}

.venue-popup-copy-leading {
  display: inline-flex;
  color: var(--accent-bright);
}

.venue-popup-copy-leading .venue-action-glyph {
  width: 0.95rem;
  height: 0.95rem;
}

.venue-popup-copy-value {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #ece8ff;
  word-break: normal;
  overflow-wrap: anywhere;
}

.venue-popup-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 154, 46, 0.28);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.12);
  color: var(--accent-bright);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.venue-popup-copy-btn:hover {
  background: rgba(255, 138, 0, 0.22);
  border-color: rgba(255, 154, 46, 0.48);
  box-shadow: 0 0 12px rgba(255, 138, 0, 0.2);
}

.venue-popup-copy-btn.is-copied {
  color: #b8f0c8;
  border-color: rgba(129, 201, 149, 0.45);
  background: rgba(52, 168, 83, 0.16);
}

.venue-popup-copy-btn .venue-action-glyph {
  width: 0.9rem;
  height: 0.9rem;
}

@media (min-width: 900px) {

  .tariff-bar {
    padding: 0.38rem 0.52rem;
  }

  .tariff-filter-layout {
    gap: 0.26rem;
  }

  .tariff-card-primary,
  .tariff-top-card,
  .tariff-more-card {
    min-height: 2.75rem;
  }

  .tariff-card-secondary {
    min-height: 2.45rem;
  }

  .tariff-card-icon {
    height: 1.25rem;
  }

  .tariff-top-flag {
    font-size: 1.08rem;
  }
}

@media (min-width: 640px) {
  .venue-info-content .venue-popup {
    display: block;
  }
}

.venue-popup-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.35rem;
  min-width: 0;
}

.venue-popup-title-wrap {
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
}

.venue-popup-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.35rem;
}

.venue-popup-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: var(--fn-radius-control, 6px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(220, 220, 230, 0.88);
}

.venue-popup-badge-verified {
  background: rgba(255, 138, 0, 0.16);
  border-color: rgba(255, 154, 46, 0.38);
  color: #c4b8ff;
  box-shadow: 0 0 12px rgba(255, 138, 0, 0.18);
}

.venue-popup-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.venue-popup-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.venue-popup-label {
  color: #9aa0a6;
  font-weight: 500;
}

.venue-popup-value {
  color: #e8eaed;
  word-break: break-word;
}

.venue-popup-value a {
  color: var(--accent-bright);
  text-decoration: none;
}

.venue-popup-value a:hover {
  text-decoration: underline;
}

.venue-popup-type {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  padding: 0.12rem 0.45rem;
  border-radius: var(--fn-radius-control, 6px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(196, 184, 255, 0.92);
  background: rgba(255, 138, 0, 0.14);
  border: 1px solid rgba(255, 154, 46, 0.22);
}

.venue-popup-place {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(180, 176, 200, 0.82);
}

.venue-popup-unknown {
  color: var(--text-muted);
  font-weight: 600;
}

.venue-popup-google {
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.venue-popup-google-section {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.06);
  border: 1px solid rgba(255, 154, 46, 0.16);
}

.venue-popup-google-section-head {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(196, 184, 255, 0.82);
}

.venue-popup-google-section .venue-popup-google {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.venue-popup-google-loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.4rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.venue-popup-google-loading::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent-bright);
  animation: venue-google-loading-spin 0.85s linear infinite;
  flex-shrink: 0;
}

.venue-popup-google-loading-text {
  line-height: 1.35;
}

.venue-popup-google-empty {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

@keyframes venue-google-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.venue-popup-google-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #f4c15d;
  margin-bottom: 0.45rem;
}

.venue-popup-google-rating .fn-rating-meta {
  font-weight: 500;
  color: rgba(244, 193, 93, 0.82);
}

.venue-popup-review-summary {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #d2d6dc;
}

.venue-popup-review-disclosure {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  color: rgba(154, 160, 166, 0.88);
}

.venue-popup-reviews {
  display: grid;
  gap: 0.55rem;
}

.venue-popup-review {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 154, 46, 0.12);
}

.venue-popup-review p {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #c8ccd2;
}

.venue-popup-review footer {
  font-size: 0.68rem;
  color: rgba(154, 160, 166, 0.92);
}

.venue-popup-review-rating {
  font-size: 0.74rem;
  font-weight: 600;
  color: #f4c15d;
}

.venue-popup-google-link {
  display: inline-flex;
  margin-top: 0.55rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent-bright);
  text-decoration: none;
}

.venue-popup-google-link:hover {
  text-decoration: underline;
}

.venue-popup-status {
  margin: 0.35rem 0 0;
  padding-left: 0.15rem;
  font-size: 0.82rem;
  color: rgba(180, 176, 200, 0.88);
}

.venue-popup-loading .venue-popup-status {
  position: relative;
  padding-left: 1.15rem;
}

.venue-popup-loading .venue-popup-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 154, 46, 0.18);
  border-top-color: var(--accent-bright);
  animation: venue-google-loading-spin 0.85s linear infinite;
}

.venue-popup-claim {
  margin: 0.55rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 154, 46, 0.14);
  text-align: center;
}

.venue-popup-claim-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: var(--fn-radius-control, 6px);
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(196, 184, 255, 0.72);
  text-decoration: none;
  border: 1px solid rgba(255, 154, 46, 0.18);
  background: rgba(255, 138, 0, 0.06);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.venue-popup-claim-link:hover {
  color: #fff;
  border-color: rgba(255, 154, 46, 0.42);
  background: rgba(255, 138, 0, 0.14);
  text-decoration: none;
}

.venue-live-rating-chip {
  gap: 0.2rem;
}

.venue-engage-fn-rating.fn-rating-badge {
  --fn-badge-h: 1.45rem;
}

.venue-engage-fn-rating .fn-rating-badge-inner {
  border-width: 1px;
}

.mapboxgl-marker.mapbox-venue-marker.is-venue-selected,
.mapboxgl-marker.venue-placemark-host.is-venue-selected {
  z-index: 11;
}

.mapbox-venue-marker.is-venue-selected .venue-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  border-radius: var(--fn-radius-round, 999px);
  border: 1px solid rgba(255, 154, 46, 0.42);
  background: radial-gradient(
    circle,
    rgba(255, 138, 0, 0.24) 0%,
    rgba(255, 138, 0, 0.1) 52%,
    rgba(255, 138, 0, 0.02) 70%,
    transparent 74%
  );
  box-shadow:
    0 0 0 1px rgba(255, 138, 0, 0.14) inset,
    0 0 22px rgba(255, 138, 0, 0.34),
    0 0 40px rgba(255, 154, 46, 0.2);
  pointer-events: none;
  z-index: -1;
}

.venue-marker {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--fn-radius-round, 999px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: var(--type-color, #171822);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--type-color, #171822) 28%, transparent),
    0 0 18px color-mix(in srgb, var(--type-color, #ff8a00) 55%, transparent),
    0 8px 20px rgba(0, 0, 0, 0.45);
  font-size: 1rem;
}

.user-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--fn-radius-round, 999px);
  background: #4285f4;
  border: 2px solid #fff;
  box-shadow: 0 0 0 6px rgba(66, 133, 244, 0.35);
}

@media (max-width: 720px) {
  :root {
    --dock-bottom-extra: 0px;
  }

  .popular-rail {
    bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px) + var(--dock-tier-extra));
  }

  .bottom-nav-item {
    min-height: 3.15rem;
    font-size: 0.58rem;
  }
}

.tour-lists-dock {
  position: absolute;
  top: calc(5.75rem + 0.35rem);
  left: 0.85rem;
  z-index: 28;
  width: min(17.5rem, calc(100vw - 1.3rem));
  max-height: min(44vh, 22rem);
  overflow: auto;
  padding: 0.7rem;
  border: 1px solid rgba(255, 154, 46, 0.28);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(11, 13, 16, 0.96) 0%, rgba(5, 6, 8, 0.94) 100%);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 138, 0, 0.12);
}

.map-panel:has(.category-chip-top:not([hidden])) .tour-lists-dock {
  top: calc(5.75rem + 0.35rem);
}

.top-venues-dock {
  width: min(35vw, calc(100vw - 1.7rem));
  max-height: none;
  overflow: visible;
  padding: 0;
}

.top-venues-dock.is-expanded {
  max-height: min(52vh, 28rem);
  overflow: auto;
}

.top-venues-shell {
  display: grid;
  gap: 0;
}

.top-venues-panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 0;
  border-radius: var(--fn-radius-control, 6px);
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.top-venues-dock:not(.is-expanded) .top-venues-panel-toggle:hover:not(:disabled) {
  background: rgba(255, 138, 0, 0.1);
}

.top-venues-dock.is-expanded .top-venues-panel-toggle {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 0 0;
  background: linear-gradient(165deg, rgba(11, 13, 16, 0.98) 0%, rgba(5, 6, 8, 0.96) 100%);
}

.top-venues-panel-toggle:disabled {
  cursor: default;
  opacity: 0.92;
}

.top-venues-panel-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.top-venues-panel-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-venues-panel-hint {
  font-size: 0.66rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.56);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-venues-panel-chevron {
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 154, 46, 0.38);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.16);
  color: #e8deff;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.15s ease;
}

.top-venues-panel-toggle:hover:not(:disabled) .top-venues-panel-chevron {
  background: rgba(255, 138, 0, 0.28);
}

.top-venues-dock.is-expanded .top-venues-panel-chevron {
  transform: rotate(90deg);
}

.top-venues-body {
  padding: 0.55rem 0.65rem 0.7rem;
}

.top-venues-body[hidden] {
  display: none;
}

.top-venues-head {
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.top-venues-empty {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.top-venues-groups {
  display: grid;
  gap: 0.62rem;
}

.top-venues-group-title {
  margin: 0 0 0.28rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(196, 184, 255, 0.72);
}

.top-venues-items {
  display: grid;
  gap: 0.28rem;
}

.top-venues-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  padding: 0.52rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.12s ease;
}

.top-venues-item.is-preview {
  border-color: rgba(255, 154, 46, 0.72);
  background: rgba(255, 138, 0, 0.18);
}

.top-venues-item:hover {
  border-color: rgba(255, 179, 71, 0.45);
  background: rgba(255, 138, 0, 0.12);
}

.top-venues-item-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.top-venues-item-rank {
  flex: 0 0 auto;
  min-width: 1.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f4c15d;
}

.top-venues-item-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.top-venues-item-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-venues-item-meta {
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-venues-item-chevron {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.34);
  font-size: 1rem;
  line-height: 1;
}

.tour-lists-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.tour-lists-actions-guest {
  flex-wrap: wrap;
}

.tour-lists-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 154, 46, 0.42);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.18);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.12s ease;
}

.tour-lists-add-btn:hover {
  background: rgba(255, 138, 0, 0.32);
  border-color: rgba(255, 179, 71, 0.55);
}

.tour-lists-add-btn.is-disabled,
.tour-lists-add-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.tour-lists-add-btn .tour-lists-inline-icon,
.tour-lists-add-btn .fn-icon {
  width: 1rem;
  height: 1rem;
}

.tour-lists-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 154, 46, 0.35);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.12);
  color: #e8deff;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tour-lists-signin-btn:hover {
  background: rgba(255, 138, 0, 0.24);
  color: #fff;
}

.tour-lists-guest-hint {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.tour-lists-head {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.tour-lists-items {
  display: grid;
  gap: 0.4rem;
}

.tour-lists-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  padding: 0.6rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.tour-lists-item-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.tour-lists-item-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.tour-lists-item-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.16);
  color: #c4b5ff;
}

.tour-lists-item-icon .fn-icon,
.tour-lists-inline-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.tour-lists-item-name {
  font-weight: 700;
  line-height: 1.2;
}

.tour-lists-item-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.12rem 0.42rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(245, 130, 32, 0.14);
  border: 1px solid rgba(245, 130, 32, 0.32);
  color: #ffc285;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tour-lists-item.is-today {
  border-color: rgba(245, 130, 32, 0.28);
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.08) 0%, rgba(255, 138, 0, 0.08) 100%);
}

.tour-lists-item.is-today.is-active {
  border-color: rgba(245, 130, 32, 0.55);
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.14) 0%, rgba(255, 138, 0, 0.22) 100%);
  box-shadow: 0 0 0 1px rgba(245, 130, 32, 0.18);
}

.tour-lists-item.is-active {
  border-color: rgba(255, 154, 46, 0.62);
  background: rgba(255, 138, 0, 0.24);
  box-shadow: 0 0 0 1px rgba(255, 154, 46, 0.22);
}

.tour-lists-item-preview {
  cursor: default;
  opacity: 0.88;
}

.tour-lists-item-count {
  flex-shrink: 0;
  min-width: 1.35rem;
  padding: 0.18rem 0.42rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.tour-lists-item.is-active .tour-lists-item-count {
  background: rgba(255, 154, 46, 0.28);
  color: #fff;
}

.tour-lists-item-new {
  cursor: default;
  border-style: dashed;
  border-color: rgba(255, 154, 46, 0.28);
  background: rgba(255, 138, 0, 0.06);
}

.tour-lists-item-new input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
}

.tour-lists-item-new input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}

.tour-lists-item-new input:disabled {
  opacity: 0.65;
}

.tour-lists-empty {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}

.society-tours-dock {
  max-height: min(52vh, 28rem);
}

.society-tours-head,
.society-tours-empty {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.society-tours-items {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.society-tours-item-wrap {
  display: grid;
  gap: 0.2rem;
  padding: 0.15rem 0.15rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
}

.society-tours-item-wrap.is-active {
  border-color: rgba(255, 179, 71, 0.62);
  background: rgba(255, 138, 0, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.28);
}

.society-tours-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.6rem 0.2rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: #fff;
  text-align: left;
}

.society-tours-item:hover {
  background: rgba(255, 138, 0, 0.1);
}

.society-tours-item.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.society-tours-item-agent-row {
  padding: 0 0.7rem 0.35rem;
}

.society-tours-item-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.society-tours-item-kicker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.society-tours-item-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: var(--fn-radius-control, 6px);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.society-tours-item-badge.is-tour {
  color: #efe7ff;
  background: rgba(255, 138, 0, 0.42);
  border: 1px solid rgba(255, 179, 71, 0.38);
}

.society-tours-item-badge.is-meetup {
  color: #dff8ef;
  background: rgba(34, 140, 110, 0.38);
  border: 1px solid rgba(90, 210, 170, 0.4);
}

.society-tours-item-title {
  font-size: 0.86rem;
  font-weight: 700;
}

.society-tours-meetup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.society-tours-meetup-party {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.15rem;
}

.society-tours-meetup-chip,
.fn-meetup-host-chip,
.fn-meetup-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--fn-radius-control, 6px);
  border: 1px solid rgba(255, 154, 46, 0.32);
  background: rgba(255, 138, 0, 0.16);
  color: #efe7ff;
  font-size: 0.74rem;
  font-weight: 700;
}

.society-tours-meetup-chip .fn-icon,
.fn-meetup-host-chip .fn-icon,
.fn-meetup-count-chip .fn-icon,
.society-tours-party-icon .fn-icon,
.society-tours-gender-chip .fn-icon,
.society-tours-gender-known .fn-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.society-tours-meetup-chip-label {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.society-tours-join-label,
.fn-meetup-join-label {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.society-tours-join-hint,
.fn-meetup-join-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.4;
}

.society-tours-join-mode,
.fn-join-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.society-tours-join-btn,
.fn-join-mode-btn {
  min-height: 44px;
  border-radius: var(--fn-radius-control, 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}

.society-tours-join-btn.is-active,
.fn-join-mode-btn.is-active {
  border-color: rgba(214, 92, 255, 0.5);
  background: rgba(214, 92, 255, 0.16);
  color: #fff;
}

.society-tours-gender-pick,
.fn-gender-pick {
  margin: 0;
  padding: 0;
  border: 0;
}

.society-tours-gender-pick legend {
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
}

.society-tours-gender-chips,
.fn-gender-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.society-tours-gender-chip,
.fn-gender-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--fn-radius-control, 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: #efe7ff;
  font-size: 0.84rem;
  font-weight: 700;
}

.society-tours-gender-chip:has(input:checked),
.fn-gender-chip:has(input:checked) {
  border-color: rgba(214, 92, 255, 0.5);
  background: rgba(214, 92, 255, 0.16);
}

.society-tours-gender-chip input,
.fn-gender-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.society-tours-gender-known,
.fn-gender-known {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  color: #c4b5fd;
  font-size: 0.86rem;
  font-weight: 700;
}

.society-tours-gender-from-account,
.fn-gender-from-account {
  padding: 0.12rem 0.45rem;
  border-radius: var(--fn-radius-control, 6px);
  border: 1px solid rgba(255, 154, 46, 0.28);
  background: rgba(255, 138, 0, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
}

.society-tours-party-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.society-tours-party-preview,
.fn-party-preview {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 154, 46, 0.22);
  background: rgba(255, 138, 0, 0.12);
  color: #efe7ff;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.4;
}

.society-tours-party-value-display,
.fn-party-value-display {
  min-width: 1.6rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
}

.society-tours-book-btn:disabled,
.account-venue-invite-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.society-tours-party,
.fn-party-steppers {
  display: grid;
  gap: 0.5rem;
}

.society-tours-party[hidden],
.fn-party-steppers[hidden],
.society-tours-gender-pick[hidden],
.fn-gender-pick[hidden],
[data-meetup-you][hidden],
[data-meetup-gender][hidden],
.society-tours-join-hint[hidden],
.fn-meetup-join-hint[hidden] {
  display: none !important;
}

.society-tours-party-hint,
.fn-party-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.4;
}

.fn-party-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.society-tours-party-row,
.fn-party-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.35rem 0.45rem 0.35rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 154, 46, 0.22);
  background: rgba(8, 8, 20, 0.45);
}

.society-tours-party-name,
.fn-party-name {
  font-size: 0.84rem;
  font-weight: 700;
}

.society-tours-party-stepper,
.fn-party-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.society-tours-party-btn,
.fn-party-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--fn-radius-control, 6px);
  border: 1px solid rgba(214, 92, 255, 0.38);
  background: rgba(214, 92, 255, 0.12);
  color: #f3e8ff;
}

.society-tours-party-btn .fn-icon,
.fn-party-btn .fn-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.society-tours-party-value,
.fn-party-value {
  width: 2.1rem;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  appearance: textfield;
}

.society-tours-party-value::-webkit-outer-spin-button,
.society-tours-party-value::-webkit-inner-spin-button,
.fn-party-value::-webkit-outer-spin-button,
.fn-party-value::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.society-tours-message-btn {
  min-height: 2.2rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 154, 46, 0.4);
  border-radius: var(--fn-radius-control, 6px);
  background: transparent;
  color: #e8deff;
  font-size: 0.78rem;
  font-weight: 700;
}

.society-tours-message-btn:hover {
  background: rgba(255, 138, 0, 0.18);
}

.society-tours-item-meta,
.society-tours-item-agent {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.68);
}

.society-tours-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.society-tours-fact {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.1rem 0.42rem;
  border-radius: var(--fn-radius-control, 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
  font-weight: 700;
}

.society-tours-fact.is-kind {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
}

.society-tours-fact.is-seats {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.14);
  color: #a7f3d0;
}

.society-tours-fact.is-full {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.society-tours-fact.is-price {
  border-color: rgba(255, 179, 71, 0.4);
  background: rgba(255, 138, 0, 0.16);
  color: #ffd9a8;
}

.society-tours-item-status-row {
  padding: 0 0.7rem 0.4rem;
}

.society-tours-item-status {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fcd34d;
}

.society-tours-item-status.is-confirmed {
  color: #86efac;
}

.society-tours-agent-link {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.society-tours-agent-link:hover {
  color: #bae6fd;
}

.society-tours-detail-agent {
  margin: 0;
}

.society-tours-detail-agent-page {
  margin: 0.15rem 0 0;
}

.society-tours-detail-agent-page .society-tours-agent-link {
  font-size: 0.78rem;
}

.society-tours-detail-agent .society-tours-item-agent {
  font-size: 0.8rem;
}

.society-tours-item-chevron .fn-icon {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.72;
}

.society-tours-detail {
  display: grid;
  gap: 0.65rem;
}

.society-tours-back-btn,
.society-tours-book-btn,
.society-tours-signin-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.society-tours-signin-btn {
  border-color: rgba(255, 154, 46, 0.45);
  background: rgba(255, 138, 0, 0.18);
  color: #e8deff;
}

.society-tours-signin-btn:hover {
  background: rgba(255, 138, 0, 0.32);
  color: #fff;
}

.society-tours-book-btn {
  border-color: rgba(255, 179, 71, 0.45);
  background: rgba(255, 138, 0, 0.28);
}

.society-tours-detail-title {
  margin: 0;
  font-size: 0.95rem;
}

.society-tours-detail-meta,
.society-tours-detail-description {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.society-tours-detail-meeting,
.society-tours-detail-capacity {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
}

.society-tours-detail-route {
  display: grid;
  gap: 0.35rem;
}

.society-tours-detail-route-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.society-tours-detail-stops {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
}

.society-tours-detail-stop {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.45rem;
  align-items: start;
}

.society-tours-detail-stop-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #a5f3fc;
  font-size: 0.68rem;
  font-weight: 800;
}

.society-tours-book-trust {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.society-tours-form-status,
.society-tours-booking-status {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.76rem;
  line-height: 1.4;
}

.society-tours-form-status.is-error,
.society-tours-booking-status.is-full {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.society-tours-form-status.is-success,
.society-tours-booking-status.is-confirmed {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.society-tours-form-status.is-busy,
.society-tours-booking-status.is-pending {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.society-tours-booking-status-lead {
  margin: 0;
  font-weight: 700;
}

.society-tours-booking-status-meta {
  margin: 0.25rem 0 0;
  opacity: 0.85;
}

.society-tours-signin-prompt {
  margin-top: 0.15rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(255, 154, 46, 0.32);
  border-radius: 0.85rem;
  background: linear-gradient(165deg, rgba(11, 13, 16, 0.72) 0%, rgba(5, 6, 8, 0.58) 100%);
}

.society-tours-signin-prompt-lead {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.society-tours-signin-prompt-text {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.society-tours-guest-hint {
  margin: 0.75rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.society-tours-book-form {
  display: grid;
  gap: 0.55rem;
}

.society-tours-meetup-reply {
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 154, 46, 0.16);
}

.society-tours-meetup-progress {
  margin: 0 0 0.35rem;
  color: #c4b5fd;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.society-tours-detail .society-tours-book-btn[data-meetup-reply-next] {
  width: 100%;
  margin-top: 0.35rem;
}

.society-tours-party-preview:empty,
.fn-party-preview:empty {
  display: none;
}

.society-tours-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.78);
}

.society-tours-field input,
.society-tours-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0.45rem 0.55rem;
  font: inherit;
}

.tour-lists-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.55rem 0 0.65rem;
}

.tour-lists-tab {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.tour-lists-tab.is-active {
  background: rgba(255, 138, 0, 0.35);
  border-color: rgba(255, 179, 71, 0.45);
  color: #fff;
}

.tour-lists-selected {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-lists-selected-label {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
}

.tour-lists-selected-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tour-lists-action-btn,
.tour-lists-back-btn,
.tour-lists-submit-btn,
.tour-lists-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.74rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.tour-lists-action-btn-primary,
.tour-lists-submit-btn {
  background: rgba(255, 138, 0, 0.45);
  border-color: rgba(255, 179, 71, 0.45);
}

.tour-lists-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.tour-lists-form-title {
  margin: 0;
  font-size: 0.92rem;
}

.tour-lists-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.78);
}

.tour-lists-field input,
.tour-lists-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0.45rem 0.55rem;
  font: inherit;
}

.tour-lists-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tour-lists-offers {
  display: grid;
  gap: 0.55rem;
}

.tour-lists-offer-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
}

.tour-lists-offer-title {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
}

.tour-lists-offer-meta,
.tour-lists-offer-message,
.tour-lists-offer-contact {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.mapbox-venue-marker.is-tour-planned .venue-marker::before {
  content: "";
  position: absolute;
  inset: -35%;
  border-radius: var(--fn-radius-round, 999px);
  background: radial-gradient(circle, rgba(255, 138, 0, 0.52) 0%, rgba(255, 138, 0, 0) 72%);
  pointer-events: none;
  animation: tour-marker-glow 2.2s ease-in-out infinite;
}

.mapbox-venue-marker.is-tour-planned .venue-marker {
  box-shadow:
    0 0 0 2px rgba(255, 179, 71, 0.55),
    0 0 14px rgba(255, 138, 0, 0.45);
}

@keyframes tour-marker-glow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.venue-researcher-marker-host .venue-researcher-marker-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.venue-researcher-marker-host .venue-marker-researcher {
  box-shadow:
    0 0 0 2px rgba(110, 18, 18, 0.9),
    0 0 14px rgba(110, 18, 18, 0.45);
}

.venue-researcher-marker-host .venue-marker-researcher-pending {
  box-shadow:
    0 0 0 2px rgba(58, 8, 8, 0.95),
    0 0 10px rgba(20, 4, 4, 0.55);
  opacity: 0.82;
}

.venue-researcher-marker-host .venue-researcher-marker-body.is-pending .venue-researcher-marker-label {
  opacity: 0.72;
}

.venue-popup-badge-researcher-pending {
  background: rgba(58, 8, 8, 0.35);
  color: #b56a6a;
}

.venue-popup-researcher.is-pending {
  opacity: 0.94;
}

.venue-researcher-marker-host .venue-researcher-marker-label {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
}

.venue-popup-badge-researcher {
  background: rgba(110, 18, 18, 0.22);
  color: #e08a8a;
}

.venue-popup-actions-researcher {
  padding-top: 0.35rem;
}

.venue-researcher-names {
  display: grid;
  gap: 0.55rem;
  margin: 0.65rem 0 0.35rem;
}

.venue-researcher-name-field {
  display: grid;
  gap: 0.25rem;
}

.venue-researcher-name-field > span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
}

.venue-researcher-name-preview {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.venue-researcher-name-preview strong {
  color: #fff;
}

.venue-rating-sources {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.venue-action-btn-rating-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--fn-radius-control, 6px);
}

.venue-rating-source-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fn-rating-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.venue-popup-actions-bookmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.venue-engage-tour.is-active {
  border-color: rgba(255, 154, 46, 0.55);
  background: rgba(255, 138, 0, 0.18);
}

/* Region & currency picker: venues/css/fn-region-picker.css (venue-card size/place) */

.venue-tour-list-sheet {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
}

.venue-tour-list-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(4, 4, 10, 0.62);
  cursor: pointer;
}

.venue-tour-list-sheet-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  max-height: min(72vh, 520px);
  border: 1px solid rgba(255, 154, 46, 0.28);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(10, 10, 18, 0.98);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.venue-tour-list-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.venue-tour-list-sheet-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.venue-tour-list-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.venue-tour-list-sheet-close .venue-action-glyph {
  width: 1rem;
  height: 1rem;
}

.venue-tour-list-sheet-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.55rem 0.75rem 0.85rem;
}

.venue-tour-list-sheet-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(42vh, 280px);
  overflow-y: auto;
  padding-right: 0.1rem;
}

.venue-tour-list-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
}

.venue-tour-list-sheet-item:disabled {
  opacity: 0.65;
  cursor: wait;
}

.venue-tour-list-sheet-item.is-selected {
  border-color: rgba(255, 154, 46, 0.55);
  background: rgba(255, 138, 0, 0.16);
}

.venue-tour-list-sheet-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.venue-tour-list-sheet-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-tour-list-sheet-item-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.venue-tour-list-sheet-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  color: #b49cff;
}

.venue-tour-list-sheet-check .venue-action-glyph {
  width: 1rem;
  height: 1rem;
}

.venue-tour-list-sheet-empty {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

.venue-tour-list-sheet-item-new {
  cursor: default;
  border-style: dashed;
  border-color: rgba(255, 154, 46, 0.28);
  background: rgba(255, 138, 0, 0.06);
}

.venue-tour-list-sheet-item-plus {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.16);
  color: #c4b5ff;
}

.venue-tour-list-sheet-item-plus .venue-action-glyph {
  width: 0.95rem;
  height: 0.95rem;
}

.venue-tour-list-sheet-item-new input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}

.venue-tour-list-sheet-item-new input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.venue-tour-list-sheet-item-new input:disabled {
  opacity: 0.65;
}

.venue-tour-list-sheet-guest {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.35rem 0.15rem 0.15rem;
}

.venue-tour-list-sheet-guest-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.venue-tour-list-sheet-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 154, 46, 0.88);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 640px) {
  .venue-tour-list-sheet {
    align-items: center;
    padding: 1rem;
  }

  .venue-tour-list-sheet-panel {
    border-bottom: 1px solid rgba(255, 154, 46, 0.28);
    border-radius: 16px;
    max-height: min(70vh, 520px);
  }
}

.venue-tour-list-menu {
  margin-top: 0.65rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 154, 46, 0.24);
  border-radius: 12px;
  background: rgba(5, 6, 8, 0.88);
}

.venue-tour-list-menu-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.venue-tour-list-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.venue-tour-list-menu-item.is-active {
  border-color: rgba(255, 154, 46, 0.55);
  background: rgba(255, 138, 0, 0.18);
}

.venue-tour-list-menu-count {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.venue-tour-list-menu-empty,
.venue-tour-list-menu-link {
  margin: 0;
  font-size: 0.8rem;
}

.venue-tour-list-menu-link {
  display: inline-block;
  margin-top: 0.45rem;
  color: #ff9a2e;
}

@media (pointer: coarse) {

  /* Keep nav/lift clearance when keyboard offset is 0; add offset when keyboard is open. */

}

.venue-popup-actions-reviews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.venue-action-btn-rating-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding-inline: 0.55rem;
}

.venue-rating-source-label {
  font-size: 0.72rem;
  opacity: 0.85;
}

.fn-rating-empty {
  opacity: 0.62;
}

.venue-researcher-names {
  display: grid;
  gap: 0.55rem;
  margin: 0.65rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.venue-researcher-name-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
}

.venue-researcher-name-preview {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
