/* VR Travel Club - 2050.earth-inspired map + feed layout */

:root {
  --vtc-header-h: 40px;
}

.vtc-app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--vtc-header-h);
  padding: 0 12px;
  box-sizing: border-box;
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid var(--vrtc-border);
  backdrop-filter: blur(10px);
}

.vtc-app-header__brand {
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.vtc-app-header__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vtc-view-toggle {
  display: flex;
  border: 1px solid var(--vrtc-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--vrtc-bg-elevated);
}

.vtc-view-toggle__btn {
  border: none;
  background: transparent;
  color: var(--vrtc-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.vtc-view-toggle__btn--active {
  background: var(--vrtc-club);
  color: #fff;
}

.vtc-app-header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.vtc-view-map .vtc-app-header__nav a:not([href='#about']):not(.vtc-edit-entry) {
  display: none;
}

.vtc-app-header__nav a {
  color: var(--vrtc-text-muted);
  text-decoration: none;
}

.vtc-app-header__nav a:hover {
  color: var(--vrtc-text);
}

/* Main split: sidebar + map */
.vtc-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding-top: var(--vtc-header-h);
  overflow: hidden;
}

.vtc-map-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.vtc-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(16, 20, 28, 0.97);
  border-right: 1px solid var(--vrtc-border);
  z-index: 2;
}

.vtc-sidebar__head {
  padding: 10px 12px 6px;
  border-bottom: 1px solid var(--vrtc-border);
}

.vtc-view-map .vtc-sidebar__head {
  padding: 8px 10px 4px;
}

.vtc-sidebar__title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
}

.vtc-view-map .vtc-sidebar__title {
  margin: 0;
  font-size: 0.82rem;
}

.vtc-view-map .vtc-sidebar__intro {
  display: none;
}

.vtc-sidebar__tagline,
.vtc-sidebar__intro {
  margin: 0;
  font-size: 0.78rem;
  color: var(--vrtc-text-muted);
  line-height: 1.45;
}

.vtc-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.vtc-panel--active {
  display: flex;
}

.vtc-panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--vrtc-border);
  flex-shrink: 0;
}

.vtc-panel__back,
.vtc-panel__close {
  border: none;
  background: transparent;
  color: var(--vrtc-text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 6px;
}

.vtc-panel__back:hover,
.vtc-panel__close:hover {
  color: var(--vrtc-text);
}

.vtc-panel__title {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 0;
}

.vtc-panel__desc {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.76rem;
  color: var(--vrtc-text-muted);
  line-height: 1.4;
  border-bottom: 1px solid var(--vrtc-border);
}

.vtc-panel__search-wrap {
  padding: 10px 12px;
  border-bottom: 1px solid var(--vrtc-border);
}

.vtc-panel__search {
  width: 100%;
  border: 1px solid var(--vrtc-border);
  border-radius: 999px;
  background: var(--vrtc-bg-elevated);
  color: var(--vrtc-text);
  padding: 8px 14px;
  font-size: 0.82rem;
}

.vtc-layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.vtc-view-map .vtc-layer-list {
  gap: 4px;
  padding: 6px 8px;
}

.vtc-view-map .vtc-layer-btn {
  padding: 6px 8px;
  border-radius: 8px;
}

.vtc-view-map .vtc-layer-btn__sub {
  display: none;
}

.vtc-view-map .vtc-layer-btn__thumb {
  width: 36px;
  height: 28px;
}

.vtc-layer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.vtc-layer-btn:hover {
  background: rgba(139, 92, 246, 0.1);
}

.vtc-layer-btn--active {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.14);
}

.vtc-layer-btn__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.vtc-layer-btn__title {
  font-size: 0.88rem;
  font-weight: 600;
}

.vtc-layer-btn__sub {
  font-size: 0.72rem;
  color: var(--vrtc-text-muted);
}

.vtc-layer-btn__thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #30363d center / cover no-repeat;
}

.vtc-route-grid {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vtc-route-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--vrtc-border);
  border-radius: 10px;
  padding: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.vtc-route-card--active {
  border-color: var(--vrtc-club);
  background: var(--vrtc-club-muted);
}

.vtc-route-card__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #30363d center / cover no-repeat;
}

.vtc-route-card__meta {
  font-size: 0.62rem;
  color: var(--vrtc-club);
  text-transform: uppercase;
}

.vtc-route-card__title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.vtc-route-card__pano {
  font-size: 0.65rem;
  color: #fbbf24;
}

.vtc-detail.vtc-panel {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.vtc-detail__body {
  overflow-y: auto;
  flex: 1;
  padding: 0 12px 12px;
}

.vtc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--vrtc-border);
}

.vtc-filter-btn {
  border: 1px solid var(--vrtc-border);
  background: transparent;
  color: var(--vrtc-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.vtc-filter-btn--active {
  border-color: var(--vrtc-club);
  color: #c4b5fd;
  background: var(--vrtc-club-muted);
}

.vtc-feed {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: none;
}

.vtc-view-feed .vtc-feed {
  display: block;
}

.vtc-feed-item {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.vtc-feed-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.vtc-feed-item--active {
  border-color: var(--vrtc-club);
  background: var(--vrtc-club-muted);
}

.vtc-feed-item--hidden {
  display: none;
}

.vtc-feed-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #30363d center / cover no-repeat;
}

.vtc-feed-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vtc-feed-item__meta {
  font-size: 0.68rem;
  color: var(--vrtc-club);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vtc-feed-item__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.vtc-feed-item__pano {
  font-size: 0.68rem;
  color: #fbbf24;
}

.vtc-detail {
  margin: 0 12px 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--vrtc-border);
  background: var(--vrtc-bg-card);
  display: none;
}

.vtc-detail--open {
  display: flex;
  flex-direction: column;
}

.vtc-detail__close {
  float: right;
  border: none;
  background: transparent;
  color: var(--vrtc-text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  margin: -4px 0 8px 8px;
}

.vtc-detail__thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #30363d center / cover no-repeat;
  margin-bottom: 8px;
}

.vtc-detail__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 4px;
}

.vtc-detail__meta {
  margin: 0 0 4px;
  font-size: 0.72rem;
  color: var(--vrtc-club);
}

.vtc-detail__title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.vtc-detail__text {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--vrtc-text-muted);
}

.vtc-detail__link {
  width: 100%;
  text-align: center;
}

.vtc-sidebar__map-tools {
  display: flex;
  gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--vrtc-border);
}

.vtc-map-pane {
  position: relative;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  background: #080b10;
  overflow: hidden;
}

.vtc-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.vtc-map .maplibregl-map,
.vtc-map .maplibregl-canvas-container,
.vtc-map .maplibregl-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.vtc-map .maplibregl-canvas-container {
  background: radial-gradient(ellipse at 50% 92%, #1a3a6e 0%, #0c1a33 35%, #04060e 68%);
}

.vtc-map .maplibregl-marker,
.vtc-map .maplibregl-marker-anchor {
  z-index: 3;
  pointer-events: auto;
}

/* MapLibre positions markers via inline transform on .maplibregl-marker — no transform/transition here */
.vtc-map .maplibregl-marker.vtc-pin {
  transition: opacity 0.2s ease;
}

.vtc-map .maplibregl-marker:has(.vtc-pin--active) {
  z-index: 6;
}

.vtc-map .maplibregl-ctrl-bottom-left {
  z-index: 2;
}

.vtc-map .maplibregl-ctrl-bottom-right {
  display: none;
}

/* Photo pins + popups (MapLibre) */
.vtc-pin {
  position: relative;
  display: block;
  width: 52px;
  cursor: pointer;
  touch-action: none;
}

.vtc-pin__stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(calc(-4px * var(--vtc-marker-scale, 1))) scale(var(--vtc-marker-scale, 1));
  transform-origin: center bottom;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.vtc-pin:hover .vtc-pin__stack {
  transform: translateY(calc(-8px * var(--vtc-marker-scale, 1))) scale(calc(var(--vtc-marker-scale, 1) * 1.04));
}

.vtc-pin:hover {
  z-index: 5;
}

.vtc-pin--active .vtc-pin__stack {
  transform: translateY(calc(-10px * var(--vtc-marker-scale, 1))) scale(calc(var(--vtc-marker-scale, 1) * 1.1));
}

.vtc-pin--active {
  z-index: 7;
}

.vtc-pin--compact {
  width: 36px;
}

.vtc-pin--compact .vtc-pin__label,
.vtc-pin--compact .vtc-pin__cat {
  display: none;
}

.vtc-pin__pulse {
  position: absolute;
  top: 2px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.75);
  animation: vtc-pin-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

.vtc-pin__shadow {
  position: absolute;
  bottom: -2px;
  width: 22px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(2px);
}

.vtc-pin__bubble {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #fff;
  overflow: hidden;
  background: var(--vrtc-bg-elevated, #1e293b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.vtc-pin--active .vtc-pin__bubble {
  width: 54px;
  height: 54px;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.vtc-pin--info .vtc-pin__bubble {
  border-color: #ddd6fe;
}

.vtc-pin__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vtc-pin__badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 22px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 18px;
  text-align: center;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.vtc-pin--info .vtc-pin__badge {
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
  color: #fff;
}

.vtc-pin__hot {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.62rem;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.vtc-pin__tip {
  width: 0;
  height: 0;
  margin-top: -1px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.vtc-pin--info .vtc-pin__tip {
  border-top-color: #ddd6fe;
}

.vtc-pin__label {
  margin-top: 4px;
  max-width: 120px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.vtc-pin__cat {
  margin-top: 2px;
  font-size: 0.58rem;
  color: rgba(248, 250, 252, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.vtc-pin--pinned .vtc-pin__bubble {
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
}

.vtc-pin__lock {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.58rem;
  line-height: 18px;
  text-align: center;
  background: #334155;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.vtc-pin--pinned {
  cursor: default;
}

.vtc-pin--pinned:hover .vtc-pin__stack {
  transform: translateY(-4px);
}

@keyframes vtc-pin-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.vtc-map .maplibregl-popup.vtc-map-popup {
  z-index: 8;
}

.vtc-map .maplibregl-popup.vtc-map-popup .maplibregl-popup-content {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.vtc-map .maplibregl-popup.vtc-map-popup .maplibregl-popup-close-button {
  right: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  line-height: 28px;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 50%;
  z-index: 2;
}

.vtc-map .maplibregl-popup.vtc-map-popup .maplibregl-popup-tip {
  border-top-color: rgba(15, 23, 42, 0.94);
}

.vtc-map-popup--hint .maplibregl-popup-content {
  padding: 6px 12px !important;
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.vtc-map-popup__hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
}

.vtc-map-popup__card {
  width: min(320px, 78vw);
  overflow: hidden;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.vtc-map-popup__media {
  position: relative;
  height: 140px;
  background-size: cover;
  background-position: center;
}

.vtc-map-popup__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.92) 100%);
}

.vtc-map-popup__pano,
.vtc-map-popup__cat {
  position: absolute;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vtc-map-popup__pano {
  left: 10px;
  bottom: 10px;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.vtc-map-popup__cat {
  right: 10px;
  top: 10px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.vtc-map-popup__body {
  padding: 12px 14px 14px;
}

.vtc-map-popup__meta {
  margin: 0 0 4px;
  font-size: 0.72rem;
  color: var(--vrtc-text-muted, #94a3b8);
}

.vtc-map-popup__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
}

.vtc-map-popup__text {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.vtc-map-popup__actions {
  display: flex;
  gap: 8px;
}

.vtc-map-popup__btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.vtc-map-popup__btn--primary {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.vtc-map-popup__btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.vtc-map-popup__btn--ghost {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.vtc-map-popup__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.vtc-maplibre-marker {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  touch-action: none;
}

.vtc-maplibre-marker--hot {
  width: 20px;
  height: 20px;
}

.vtc-maplibre-marker--active {
  width: 24px;
  height: 24px;
  background: rgba(96, 165, 250, 0.95);
  border-color: #fff;
}

.vtc-maplibre-marker--info {
  background: rgba(167, 139, 250, 0.92);
}

.vtc-globe-fallback {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--vrtc-text-muted);
  font-size: 0.9rem;
}

.vtc-spot {
  background: none;
  border: none;
  width: 32px !important;
  height: 32px !important;
  position: relative;
}

.vtc-spot__ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
  animation: vtc-pulse 2.4s ease-in-out infinite;
}

.vtc-spot--pano .vtc-spot__core {
  background: #fbbf24;
}

.vtc-spot__core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

.vtc-spot--active .vtc-spot__ring {
  border-color: #c4b5fd;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.9);
}

.vtc-spot--active .vtc-spot__core {
  background: var(--vrtc-club);
}

@keyframes vtc-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

.leaflet-control-zoom a {
  background: var(--vrtc-bg-elevated) !important;
  color: var(--vrtc-text) !important;
  border-color: var(--vrtc-border) !important;
}

.leaflet-control-attribution {
  background: rgba(13, 17, 23, 0.8) !important;
  color: var(--vrtc-text-muted) !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a {
  color: var(--vrtc-accent) !important;
}

.vtc-map .cesium-viewer,
.vtc-map .cesium-viewer-cesiumWidgetContainer,
.vtc-map .cesium-widget,
.vtc-map .cesium-widget canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.vtc-map .cesium-viewer-toolbar,
.vtc-map .cesium-viewer-animationContainer,
.vtc-map .cesium-viewer-timelineContainer {
  display: none !important;
}

.vtc-map .cesium-viewer-bottom {
  left: 8px;
  bottom: 8px;
  font-size: 10px;
  opacity: 0.65;
}

.vtc-cesium-setup {
  padding: 28px 24px;
  max-width: 420px;
  color: var(--vrtc-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.vtc-cesium-setup h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.vtc-cesium-setup ol {
  margin: 12px 0;
  padding-left: 1.2rem;
}

.vtc-cesium-setup pre {
  background: var(--vrtc-bg-elevated);
  border: 1px solid var(--vrtc-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
  overflow-x: auto;
}

.vtc-cesium-setup a {
  color: var(--vrtc-accent);
}

.vtc-map > canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  touch-action: none;
}

.vtc-globe-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--vrtc-text-muted);
  background: rgba(13, 17, 23, 0.78);
  border: 1px solid var(--vrtc-border);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s ease;
  z-index: 2;
}

.vtc-globe-hint a,
.vtc-globe-hint code {
  color: var(--vrtc-accent);
  font-size: inherit;
}

.vtc-globe-hint--hidden {
  opacity: 0;
}

.vtc-globe-hint--interactive {
  pointer-events: auto;
}

.vtc-globe-controls {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vtc-globe-ctrl {
  width: 36px;
  height: 36px;
  border: 1px solid var(--vrtc-border);
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.88);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.vtc-globe-ctrl:hover {
  border-color: var(--vrtc-club);
  background: rgba(139, 92, 246, 0.2);
}

.vtc-globe-ctrl--active {
  border-color: var(--vrtc-club);
  background: rgba(139, 92, 246, 0.35);
  color: #e9d5ff;
}

.vtc-globe-ctrl--level {
  font-size: 0.62rem;
  font-weight: 700;
  cursor: default;
  height: 28px;
  color: var(--vrtc-text-muted);
}

.vtc-globe-ctrl--level:hover {
  border-color: var(--vrtc-border);
  background: rgba(13, 17, 23, 0.88);
}

.vtc-map-toolbar__btn {
  border: 1px solid var(--vrtc-border);
  background: var(--vrtc-bg-elevated);
  color: var(--vrtc-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
}

.vtc-map-toolbar__btn:hover {
  border-color: var(--vrtc-club);
}

.vtc-map-settings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--vrtc-border);
}

.vtc-map-settings__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vrtc-text-muted);
}

.vtc-map-settings__select {
  width: 100%;
  border: 1px solid var(--vrtc-border);
  border-radius: 8px;
  background: var(--vrtc-bg-elevated);
  color: var(--vrtc-text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
}

.vtc-map-settings__select:hover,
.vtc-map-settings__select:focus {
  border-color: var(--vrtc-club);
  outline: none;
}

/* View modes */
.vtc-view-feed .vtc-map-pane {
  display: none;
}

.vtc-view-feed .vtc-map-card {
  grid-template-columns: 1fr;
}

.vtc-view-map .vtc-sidebar {
  display: flex;
}

/* About section below fold */
.vtc-about {
  padding: 48px 0 24px;
  border-top: 1px solid var(--vrtc-border);
}

.vtc-funnel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .vtc-funnel {
    grid-template-columns: 1fr;
  }
}

.vtc-funnel__step {
  padding: 18px;
  border-radius: var(--vrtc-radius);
  background: var(--vrtc-bg-card);
  border: 1px solid var(--vrtc-border);
}

.vtc-funnel__num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--vrtc-club);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.vtc-funnel__step h4 {
  margin: 0 0 6px;
  color: #c4b5fd;
}

.vtc-funnel__step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--vrtc-text-muted);
}

.vtc-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .vtc-app-header__nav a:not([href='#about']) {
    display: none;
  }

  .vtc-view-map .vtc-map-card {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh 1fr;
    height: auto;
    min-height: calc(100vh - 52px);
    overflow: visible;
  }

  .vtc-view-map .vtc-map-pane {
    display: block;
    min-height: 42vh;
    height: 42vh;
  }

  .vtc-view-feed .vtc-map-card {
    grid-template-rows: none;
  }

  .vtc-route-grid {
    grid-template-columns: 1fr;
  }

  .vtc-view-map .vtc-sidebar {
    max-height: none;
  }

  .vtc-eco-grid {
    grid-template-columns: 1fr;
  }
}

.vtc-eco-card {
  padding: 20px;
  border-radius: var(--vrtc-radius);
  background: var(--vrtc-bg-card);
  border: 1px solid var(--vrtc-border);
}

.vtc-eco-card--club {
  border-color: rgba(139, 92, 246, 0.35);
}

.vtc-partners {
  padding: 20px;
  border-radius: var(--vrtc-radius);
  border: 1px solid var(--vrtc-border);
  background: rgba(139, 92, 246, 0.08);
}

.vtc-partners ul {
  margin: 0;
  padding-left: 18px;
  color: var(--vrtc-text-muted);
}

/* Map point editor (?edit=1) */
.vtc-editor-boot-error {
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100050;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.95);
  color: #fecaca;
  font-size: 0.85rem;
}

.vtc-edit-entry {
  display: inline-flex !important;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c4b5fd !important;
  font-weight: 600;
}

.vtc-edit-entry--hidden {
  display: none !important;
}

.vtc-header-edit-btn {
  display: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.65);
  background: rgba(88, 28, 135, 0.92);
  color: #f5f3ff;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.vtc-header-edit-btn--visible {
  display: inline-flex;
  align-items: center;
}

.vtc-header-edit-btn[aria-pressed='false'] {
  background: rgba(15, 23, 42, 0.92);
}

.vtc-map-editor-mount {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
}

.vtc-map-editor-mount:not([hidden]) {
  pointer-events: none;
}

.vtc-map-editor-mount .vtc-map-editor,
.vtc-map-editor-mount .vtc-map-editor-tab {
  pointer-events: auto;
}

.vtc-map-editor {
  position: fixed;
  top: 56px;
  right: 12px;
  bottom: 12px;
  left: auto;
  z-index: 10001;
  width: min(340px, calc(100vw - 24px));
  max-height: none;
  overflow: auto;
  padding: 12px 14px 16px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(139, 92, 246, 0.55);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  font-size: 0.82rem;
  transform: translateX(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}

.vtc-map-editor--open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.vtc-map-editor-tab {
  position: fixed;
  top: auto;
  right: 16px;
  bottom: 16px;
  z-index: 10002;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.65);
  background: rgba(88, 28, 135, 0.96);
  color: #f5f3ff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.vtc-map-editor-tab--hidden {
  display: none;
}

body.vtc-edit-mode .vtc-globe-controls {
  z-index: 10003;
}

body.vtc-edit-mode .vtc-globe-hint {
  max-width: calc(100% - 360px);
  z-index: 10003;
}

@media (max-width: 900px) {
  .vtc-header-edit-btn--visible {
    display: none;
  }

  .vtc-map-editor {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 72px;
    width: auto;
    max-height: min(62vh, 520px);
  }

  .vtc-map-editor-tab {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 12px;
  }
}

.vtc-map-editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.vtc-map-editor__role {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #c4b5fd;
}

.vtc-map-editor__btn[aria-pressed='true'] {
  border-color: #94a3b8;
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.vtc-editor-login {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
}

.vtc-editor-login__card {
  width: min(380px, 100%);
  padding: 20px 18px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.vtc-editor-login__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.vtc-editor-login__text {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--vrtc-text-muted);
  line-height: 1.45;
}

.vtc-editor-login__field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--vrtc-text-muted);
}

.vtc-editor-login__field input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--vrtc-border);
  background: #0b1220;
  color: var(--vrtc-text);
  font: inherit;
}

.vtc-editor-login__error {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #fca5a5;
}

.vtc-editor-login__actions {
  display: flex;
  gap: 8px;
}

.vtc-editor-login__btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--vrtc-border);
  background: var(--vrtc-bg-elevated);
  color: var(--vrtc-text);
  font: inherit;
  cursor: pointer;
}

.vtc-editor-login__btn--primary {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(88, 28, 135, 0.92);
  color: #f5f3ff;
}

.vtc-map-editor__toggle {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--vrtc-border);
  background: transparent;
  color: var(--vrtc-text-muted);
  cursor: pointer;
}

.vtc-map-editor__hint {
  margin: 0 0 10px;
  color: var(--vrtc-text-muted);
  line-height: 1.4;
}

.vtc-map-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.vtc-map-editor__btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--vrtc-border);
  background: var(--vrtc-bg-card);
  color: var(--vrtc-text);
  cursor: pointer;
  font-size: 0.78rem;
}

.vtc-map-editor__btn:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.vtc-map-editor__btn--danger {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.vtc-map-editor__btn--file {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.vtc-map-editor__list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-height: 140px;
  overflow: auto;
  border: 1px solid var(--vrtc-border);
  border-radius: 8px;
}

.vtc-map-editor__list:empty::before {
  content: 'No points';
  display: block;
  padding: 10px;
  color: var(--vrtc-text-muted);
}

.vtc-map-editor-list__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--vrtc-border);
  background: transparent;
  color: var(--vrtc-text);
  cursor: pointer;
}

.vtc-map-editor-list__item--active,
.vtc-map-editor-list__item:hover {
  background: rgba(139, 92, 246, 0.12);
}

.vtc-map-editor__form {
  display: grid;
  gap: 8px;
}

.vtc-map-editor__form label {
  display: grid;
  gap: 4px;
  color: var(--vrtc-text-muted);
}

.vtc-map-editor__form input,
.vtc-map-editor__form select,
.vtc-map-editor__form textarea {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--vrtc-border);
  background: #0b1220;
  color: var(--vrtc-text);
  font: inherit;
}

.vtc-map-editor__check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-direction: row !important;
}

.vtc-map-editor__status {
  margin: 10px 0 0;
  color: #a5b4fc;
  font-size: 0.75rem;
}

.vtc-map-editor__3d {
  margin-top: 10px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--vrtc-border);
}

.vtc-map-editor__3d-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vrtc-text-muted);
}

.vtc-map-editor__3d-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: var(--vrtc-text);
}

.vtc-map-editor__3d-row > span:first-child {
  font-weight: 600;
}

.vtc-map-editor__3d-row input[type='range'] {
  width: 100%;
  accent-color: var(--vrtc-club);
}

.vtc-map-editor__3d-row output {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--vrtc-club);
}

.vtc-map-editor__pitch-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vtc-map-editor__pitch-btn {
  border: 1px solid var(--vrtc-border);
  border-radius: 8px;
  background: var(--vrtc-bg-elevated);
  color: var(--vrtc-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.vtc-map-editor__pitch-btn:hover,
.vtc-map-editor__pitch-btn--active {
  border-color: var(--vrtc-club);
  background: rgba(139, 92, 246, 0.2);
  color: #e9d5ff;
}

.vtc-map-editor__thumb-block {
  display: grid;
  gap: 6px;
}

.vtc-map-editor__thumb-preview {
  width: 100%;
  height: 88px;
  border-radius: 8px;
  background: #0b1220 center/cover no-repeat;
  border: 1px solid var(--vrtc-border);
}

.vtc-map-editor__thumb-preview--empty::after {
  content: 'No preview';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--vrtc-text-muted);
  font-size: 0.75rem;
}

.vtc-map-editor__btn--thumb {
  justify-content: center;
  text-align: center;
}
