:root {
  --bg-base: #07121b;
  --bg-deep: #0c1a27;
  --bg-panel: rgba(12, 24, 36, 0.62);
  --bg-panel-strong: rgba(11, 22, 33, 0.86);
  --bg-input: rgba(10, 21, 32, 0.68);
  --line-soft: rgba(171, 190, 210, 0.16);
  --line-mid: rgba(145, 169, 194, 0.3);
  --line-strong: rgba(114, 203, 188, 0.56);
  --text-main: #e8eef5;
  --text-soft: #c7d4e2;
  --text-muted: #9cabbc;
  --accent: #72cbbc;
  --accent-strong: #53af9f;
  --accent-ink: #0d2622;
  --accent-soft: rgba(114, 203, 188, 0.18);
  --accent-mid: rgba(114, 203, 188, 0.36);
  --warning: #e5c380;
  --danger: #d5889a;
  --focus-ring: 0 0 0 3px rgba(114, 203, 188, 0.32);

  --z-map: 120;
  --z-overlay: 420;
  --z-toolbar: 1900;
  --z-status: 1850;
  --z-sidebar: 2000;
  --z-popup: 2400;
  --z-tooltip: 4600;

  --elev-1: 0 10px 24px rgba(2, 10, 25, 0.28);
  --elev-2: 0 18px 42px rgba(2, 10, 25, 0.38);
  --elev-3: 0 28px 68px rgba(1, 9, 23, 0.48);
  --elev-4: 0 40px 100px rgba(1, 8, 20, 0.62);
  --elev-5: 0 54px 132px rgba(1, 7, 18, 0.74);
  --blur-1: blur(8px) saturate(1.06);
  --blur-2: blur(14px) saturate(1.1);
  --blur-3: blur(20px) saturate(1.14);
  --blur-4: blur(28px) saturate(1.18);
  --blur-5: blur(34px) saturate(1.24);

  --shadow-toolbar:
    0 12px 30px rgba(2, 10, 24, 0.3),
    0 2px 8px rgba(2, 10, 24, 0.18);
  --shadow-sidebar:
    0 26px 68px rgba(1, 9, 23, 0.5),
    0 10px 28px rgba(2, 12, 30, 0.3);
  --shadow-popup:
    0 66px 164px rgba(1, 7, 18, 0.8),
    0 30px 78px rgba(2, 10, 24, 0.56),
    0 8px 24px rgba(2, 10, 24, 0.32);
  --shadow-tooltip:
    0 18px 44px rgba(1, 8, 19, 0.62),
    0 6px 16px rgba(2, 11, 28, 0.34);
  --toolbar-height: 68px;
  --toolbar-width: min(1380px, calc(100vw - 2.6rem));
  --sidebar-width: 420px;
  --scene-light-x: 52%;
  --scene-light-y: 44%;
  --scene-vignette-strength: 0.22;
  --motion-ui-duration: 240ms;
  --motion-ui-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-ui-offset-y: 10px;
  --motion-ui-scale-start: 0.98;
  --map-zoom-duration: 340ms;
  --map-zoom-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --scrollbar-size: 8px;
  --scrollbar-track: rgba(8, 19, 31, 0.2);
  --scrollbar-thumb: rgba(140, 164, 189, 0.56);
  --scrollbar-thumb-hover: rgba(158, 182, 206, 0.68);
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  --leaflet-right-controls-w: 72px;
  --leaflet-right-controls-gap: 14px;
  --leaflet-controls-safe-gap: 14px;
  --leaflet-controls-safe-w: calc(
    var(--leaflet-right-controls-w) + var(--leaflet-controls-safe-gap)
  );
  --zoombar-safe-width: 56px;
  --panel-zoom-gap: 8px;
  --zoom-safe-right: calc(var(--zoombar-safe-width) + var(--panel-zoom-gap));
  --panel-width: min(320px, calc(100vw - 2rem));
  --panel-gap: 8px;
  --travel-hub-panel-right-base: 1rem;
  --travel-hub-right-base: 1rem;
  --side-panel-w: var(--panel-width);
  --side-panel-gap: 1.12rem;
  --travel-hub-bottom-offset: 6.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 12% 10%, rgba(122, 150, 186, 0.14), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(114, 203, 188, 0.1), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(110, 146, 182, 0.08), transparent 34%),
    linear-gradient(150deg, #132538, #0a1723 42%, #060e16);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(173, 197, 221, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 197, 221, 0.07) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  mix-blend-mode: soft-light;
}

.skip-link {
  position: fixed;
  top: -120%;
  left: 1rem;
  z-index: var(--z-tooltip);
  border-radius: var(--radius-sm);
  padding: 0.54rem 0.82rem;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-overlay);
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at var(--scene-light-x) var(--scene-light-y),
      rgba(200, 220, 238, 0.3) 0%,
      rgba(168, 196, 219, 0.12) 38%,
      rgba(40, 59, 78, 0.012) 68%,
      rgba(10, 20, 31, 0) 88%
    ),
    radial-gradient(
      ellipse at center,
      rgba(10, 18, 27, 0) 68%,
      rgba(10, 18, 27, calc(var(--scene-vignette-strength) * 0.28)) 90%,
      rgba(10, 18, 27, calc(var(--scene-vignette-strength) * 0.6)) 100%
    ),
    linear-gradient(180deg, rgba(8, 17, 26, 0.03), rgba(6, 12, 19, 0.06));
}

.app-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: calc(var(--z-overlay) + 1);
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--scene-light-x) var(--scene-light-y),
      rgba(236, 244, 252, 0.1) 0%,
      rgba(236, 244, 252, 0) 44%
    ),
    radial-gradient(
      circle at 50% 52%,
      rgba(12, 24, 36, 0) 54%,
      rgba(9, 18, 28, 0.04) 86%,
      rgba(7, 14, 22, 0.06) 100%
    );
  mix-blend-mode: soft-light;
  opacity: 0.64;
}

.map-stage,
.map-root {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.map-stage {
  contain: layout paint;
  isolation: isolate;
}

.map-root {
  --map-marker-zoom-scale: 1;
  position: relative;
  z-index: var(--z-map);
  contain: layout paint;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(8, 19, 40, 0.02), rgba(8, 19, 40, 0.08)),
    #6f8fa2 url("./assets/world.svg") center center / cover no-repeat;
}

.map-root::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(6, 13, 22, 0);
  transition: background-color 0.24s ease;
  z-index: 380;
}

.map-root::after {
  content: attr(data-coordinate-pick-hint);
  position: absolute;
  left: 50%;
  top: 1.1rem;
  transform: translateX(-50%) translateY(-6px);
  max-width: min(92vw, 420px);
  padding: 0.36rem 0.62rem;
  border: 1px solid rgba(170, 195, 218, 0.44);
  border-radius: 999px;
  background:
    linear-gradient(152deg, rgba(24, 42, 59, 0.86), rgba(12, 23, 36, 0.9)),
    rgba(8, 18, 28, 0.76);
  color: rgba(224, 236, 247, 0.96);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
  z-index: 410;
}

.map-root.is-add-place-mode::before {
  background: rgba(6, 13, 22, 0.14);
}

.map-root.is-add-place-mode,
.map-root.is-add-place-mode .leaflet-container,
.map-root.is-add-place-mode .leaflet-pane,
.map-root.is-add-place-mode .leaflet-interactive {
  cursor: crosshair !important;
}

.map-root.is-map-moving .map-pin-icon:not(.is-active),
.map-root.is-effects-low-power .map-pin-icon:not(.is-active) {
  --pin-brightness: 0.98;
  --pin-glow-opacity: 0.32;
}

.map-root.is-map-moving .map-pin-icon.is-active,
.map-root.is-effects-low-power .map-pin-icon.is-active {
  --pin-glow-opacity: 0.88;
}

.map-root.is-map-moving .map-pin__pulse,
.map-root.is-effects-low-power .map-pin__pulse {
  animation-play-state: paused;
}

.map-root.is-map-moving .map-pin,
.map-root.is-effects-low-power .map-pin {
  transition: none !important;
  filter: none;
}

.map-root.is-map-moving .map-pin__shadow,
.map-root.is-effects-low-power .map-pin__shadow {
  opacity: 0.14;
  filter: none;
}

.map-root.is-effects-low-power .map-pin__glow {
  animation-play-state: paused;
}

.map-root.is-map-moving .marker-cluster,
.map-root.is-map-moving .map-cluster-icon {
  transition: none !important;
  animation: none !important;
}

.map-cluster-icon__inner {
  transform: scale(var(--map-marker-zoom-scale, 1));
  transform-origin: center center;
  transition: transform 0.18s linear;
  will-change: transform;
}

.map-root.is-map-moving .map-cluster-icon__inner,
.map-root.is-effects-low-power .map-cluster-icon__inner {
  transition: none;
}

.map-root.is-filtering .leaflet-marker-pane,
.map-root.is-filtering .leaflet-overlay-pane {
  transition:
    opacity 0.22s ease,
    filter 0.22s ease;
  opacity: 0.9;
  filter: saturate(0.99);
}

.map-root.is-coordinate-pick-mode,
.map-root.is-coordinate-pick-mode .leaflet-container,
.map-root.is-coordinate-pick-mode .leaflet-pane,
.map-root.is-coordinate-pick-mode .leaflet-interactive {
  cursor: crosshair !important;
}

.map-root.is-coordinate-pick-mode::before {
  background: rgba(6, 13, 22, 0.18);
}

.map-root.is-coordinate-pick-mode::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.leaflet-container {
  background: #b7dbe8;
  font-family: inherit;
  contain: layout paint;
  isolation: isolate;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
  transition-duration: var(--map-zoom-duration);
  transition-timing-function: var(--map-zoom-ease);
}

.leaflet-map-pane,
.leaflet-marker-pane,
.leaflet-tile-pane {
  transform: translateZ(0);
}

.leaflet-pane {
  transform: translateZ(0);
}

.leaflet-popup,
.modal {
  transform: translateZ(0);
  will-change: transform;
}

.leaflet-tile,
.leaflet-tile-container,
.leaflet-layer {
  backface-visibility: hidden;
  transform: translateZ(0);
  outline: 1px solid transparent;
}

.leaflet-tile-freeze-overlay {
  position: absolute;
  inset: 0;
  z-index: 280;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  overflow: hidden;
}

.leaflet-tile-freeze-overlay.is-visible {
  opacity: 1;
}

.leaflet-tile-freeze-overlay__clone {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  backface-visibility: hidden;
  will-change: transform;
}

.leaflet-tile-pane {
  filter: saturate(1.08) contrast(1.05) brightness(0.99);
}

.leaflet-zoom-anim .leaflet-zoom-animated,
.map-root.is-map-moving .leaflet-map-pane,
.map-root.is-map-moving .leaflet-marker-pane,
.map-root.is-map-moving .leaflet-overlay-pane,
.map-root.is-map-moving .leaflet-tile-pane,
.map-root.is-effects-low-power .leaflet-map-pane,
.map-root.is-effects-low-power .leaflet-marker-pane,
.map-root.is-effects-low-power .leaflet-overlay-pane,
.map-root.is-effects-low-power .leaflet-tile-pane {
  will-change: transform;
}

.map-root.is-map-moving .leaflet-tile-pane,
.map-root.is-effects-low-power .leaflet-tile-pane {
  filter: none;
}

.leaflet-control-attribution {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(11, 23, 35, 0.7) !important;
  color: #c6d5e4 !important;
  backdrop-filter: var(--blur-1);
}

.map-root.is-map-moving .leaflet-control-attribution,
.map-root.is-effects-low-power .leaflet-control-attribution {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

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

.leaflet-control-zoom {
  box-shadow: none !important;
}

.leaflet-control-zoom a {
  border: 1px solid rgba(157, 181, 206, 0.44) !important;
  background: rgba(11, 23, 35, 0.84) !important;
  color: var(--text-main) !important;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.leaflet-control-zoom a:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong) !important;
  background: rgba(13, 28, 42, 0.94) !important;
}

.map-zoom-slider {
  position: fixed;
  right: 0.86rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: calc(var(--z-toolbar) + 2);
  width: 2.46rem;
  display: grid;
  justify-items: center;
  gap: 0.32rem;
  padding: 0.4rem 0.34rem;
  border: 1px solid rgba(152, 176, 198, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(162deg, rgba(17, 31, 45, 0.54), rgba(9, 20, 31, 0.62)),
    rgba(8, 18, 29, 0.36);
  box-shadow:
    0 16px 36px rgba(2, 10, 24, 0.28),
    inset 0 1px 0 rgba(232, 242, 253, 0.06);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  user-select: none;
  contain: layout paint;
  isolation: isolate;
}

.map-zoom-slider__mark {
  color: rgba(208, 223, 239, 0.9);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  width: 1.28rem;
  height: 1.28rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
}

.map-zoom-slider__button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.map-zoom-slider__button:hover {
  border-color: rgba(152, 176, 198, 0.28);
  background: rgba(16, 31, 46, 0.54);
  color: rgba(223, 234, 245, 0.98);
}

.map-zoom-slider__button:active {
  transform: translateY(1px);
}

.map-zoom-slider__button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.map-zoom-slider__track {
  width: 1.2rem;
  height: 218px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-zoom-slider__range {
  -webkit-appearance: none;
  appearance: none;
  width: 212px;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 171, 194, 0.24);
  background:
    linear-gradient(90deg, rgba(13, 26, 40, 0.68), rgba(10, 22, 34, 0.76)),
    rgba(8, 18, 30, 0.46);
  transform: rotate(-90deg);
  cursor: ns-resize;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.map-zoom-slider__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 171, 194, 0.22);
  background:
    linear-gradient(90deg, rgba(12, 24, 37, 0.7), rgba(9, 20, 31, 0.74)),
    rgba(8, 18, 29, 0.44);
}

.map-zoom-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5px;
  border-radius: 999px;
  border: 1px solid rgba(177, 200, 222, 0.58);
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 250, 255, 0.98), rgba(205, 225, 243, 0.88)),
    rgba(193, 218, 239, 0.84);
  box-shadow:
    0 6px 14px rgba(2, 10, 24, 0.3),
    0 0 0 1px rgba(114, 203, 188, 0.2);
}

.map-zoom-slider__range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 171, 194, 0.22);
  background:
    linear-gradient(90deg, rgba(12, 24, 37, 0.7), rgba(9, 20, 31, 0.74)),
    rgba(8, 18, 29, 0.44);
}

.map-zoom-slider__range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1px solid rgba(177, 200, 222, 0.58);
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 250, 255, 0.98), rgba(205, 225, 243, 0.88)),
    rgba(193, 218, 239, 0.84);
  box-shadow:
    0 6px 14px rgba(2, 10, 24, 0.3),
    0 0 0 1px rgba(114, 203, 188, 0.2);
}

.map-zoom-slider__range:focus-visible {
  box-shadow: var(--focus-ring);
}

.map-zoom-slider.is-dragging {
  border-color: rgba(114, 203, 188, 0.42);
}

.leaflet-popup-pane {
  z-index: calc(var(--z-popup) - 40) !important;
}

.leaflet-tooltip-pane {
  z-index: var(--z-tooltip) !important;
}

.leaflet-tooltip {
  border: 1px solid rgba(162, 184, 208, 0.42) !important;
  border-radius: 10px;
  padding: 0.26rem 0.48rem;
  background:
    linear-gradient(150deg, rgba(26, 44, 63, 0.62), rgba(13, 28, 43, 0.72)),
    rgba(10, 22, 34, 0.46) !important;
  color: #d9e6f2 !important;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: var(--blur-5);
  -webkit-backdrop-filter: var(--blur-5);
  box-shadow: var(--shadow-tooltip);
}

.leaflet-tooltip.map-marker-tooltip {
  max-width: min(240px, calc(100vw - 1.2rem));
  border-radius: 12px;
  padding: 0.42rem 0.56rem;
  pointer-events: none;
  border-color: rgba(157, 183, 209, 0.44) !important;
  background:
    linear-gradient(152deg, rgba(25, 41, 58, 0.84), rgba(12, 23, 36, 0.9)),
    rgba(8, 18, 28, 0.72) !important;
  box-shadow:
    0 10px 24px rgba(2, 10, 24, 0.42),
    0 0 0 1px rgba(178, 203, 226, 0.16),
    var(--shadow-tooltip);
}

.leaflet-tooltip.map-marker-tooltip.map-marker-tooltip--light {
  max-width: min(210px, calc(100vw - 1.1rem));
  padding: 0.3rem 0.48rem;
}

.map-marker-tooltip__content {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.map-marker-tooltip__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e9f1f8;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.map-marker-tooltip__meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a8bfd4;
  font-size: 0.68rem;
  font-weight: 600;
}

.map-marker-tooltip__kind {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(168, 189, 210, 0.34);
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  margin-top: 0.08rem;
  color: #d3e2f1;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaflet-tooltip.map-marker-tooltip.map-marker-tooltip--city .map-marker-tooltip__kind {
  border-color: rgba(109, 175, 240, 0.5);
  background: rgba(26, 66, 109, 0.38);
}

.leaflet-tooltip.map-marker-tooltip.map-marker-tooltip--nature .map-marker-tooltip__kind {
  border-color: rgba(111, 213, 167, 0.5);
  background: rgba(21, 72, 52, 0.36);
}

.leaflet-tooltip.map-marker-tooltip.map-marker-tooltip--culture .map-marker-tooltip__kind {
  border-color: rgba(231, 192, 123, 0.52);
  background: rgba(78, 58, 29, 0.36);
}

.leaflet-tooltip-top::before {
  border-top-color: rgba(12, 26, 39, 0.84) !important;
}

.leaflet-tooltip-bottom::before {
  border-bottom-color: rgba(12, 26, 39, 0.84) !important;
}

.leaflet-tooltip-left::before {
  border-left-color: rgba(12, 26, 39, 0.84) !important;
}

.leaflet-tooltip-right::before {
  border-right-color: rgba(12, 26, 39, 0.84) !important;
}

.leaflet-tooltip.map-user-location-tooltip {
  border-color: rgba(143, 214, 198, 0.58) !important;
  padding: 0.2rem 0.46rem;
  border-radius: 999px;
  background:
    linear-gradient(152deg, rgba(20, 59, 53, 0.86), rgba(9, 36, 43, 0.9)),
    rgba(8, 25, 31, 0.74) !important;
  color: rgba(216, 244, 236, 0.98) !important;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.top-toolbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toolbar);
  width: var(--toolbar-width);
  min-height: var(--toolbar-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.56rem 0.9rem;
  border: 1px solid rgba(162, 184, 208, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(126deg, rgba(24, 42, 60, 0.46), rgba(12, 24, 36, 0.36)),
    rgba(11, 22, 34, 0.34);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  box-shadow:
    var(--shadow-toolbar),
    inset 0 1px 0 rgba(223, 235, 247, 0.06);
  transition:
    transform 0.42s cubic-bezier(0.2, 0.72, 0.2, 1),
    opacity 0.36s ease,
    filter 0.36s ease,
    box-shadow 0.36s ease;
  will-change: transform, opacity, filter;
}

.top-toolbar::before {
  content: none;
}

.top-toolbar::after {
  content: none;
}

.top-toolbar.is-muted-by-popup {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px) scale(0.985);
  filter: blur(2px) saturate(0.92);
  box-shadow: 0 10px 18px rgba(1, 10, 28, 0.2);
  pointer-events: none;
}

.top-toolbar.is-muted-by-popup::before,
.top-toolbar.is-muted-by-popup::after {
  opacity: 0.26;
}

.top-toolbar__brand {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.top-toolbar__brand::after {
  content: none;
}

.top-toolbar.is-muted-by-popup .top-toolbar__brand::after {
  opacity: 0.22;
  transform: scaleX(0.86);
}

.top-toolbar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.72vw + 0.78rem, 1.26rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.top-toolbar__subtitle {
  margin: 0.12rem 0 0;
  color: var(--text-soft);
  font-size: 0.72rem;
  max-width: 70ch;
  opacity: 0.74;
  line-height: 1.3;
}

.top-toolbar__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  --toolbar-actions-gap: 0.48rem;
  gap: var(--toolbar-actions-gap);
  align-items: center;
}

.app-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(153, 178, 203, 0.24);
  background: rgba(12, 25, 38, 0.82);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.72, 0.24, 1),
    border-color 0.26s ease,
    background-color 0.26s ease,
    box-shadow 0.26s ease,
    color 0.26s ease;
}

.app-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 36px;
  padding: 0.5rem 0.88rem;
}

.app-btn__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transition:
    opacity 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.app-btn__label.is-switching {
  opacity: 0;
  transform: translateY(5px) scale(0.98);
}

.app-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(
      140deg,
      rgba(236, 247, 255, 0.22),
      rgba(236, 247, 255, 0.02) 36%,
      rgba(236, 247, 255, 0)
    );
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(0.98);
  transition:
    opacity 0.24s ease,
    transform 0.24s cubic-bezier(0.2, 0.72, 0.24, 1);
}

.icon-btn {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
}

.app-btn--ghost {
  background: linear-gradient(160deg, rgba(12, 25, 38, 0.8), rgba(10, 20, 31, 0.8));
}

.app-btn--primary {
  color: #f0f7f4;
  border-color: rgba(114, 203, 188, 0.44);
  background: linear-gradient(140deg, rgba(68, 129, 122, 0.96), rgba(83, 175, 159, 0.96));
  box-shadow:
    0 10px 18px rgba(6, 16, 26, 0.34),
    inset 0 1px 0 rgba(220, 246, 241, 0.1);
}

.app-btn--full {
  width: 100%;
}

.favorites-filter {
  border-color: rgba(166, 187, 210, 0.28);
}

.favorites-filter.is-active {
  border-color: rgba(239, 213, 127, 0.62);
  background:
    linear-gradient(156deg, rgba(70, 56, 23, 0.74), rgba(41, 31, 12, 0.78)),
    rgba(33, 24, 9, 0.66);
  color: #f3e3b6;
}

#smart-filters-open.is-active {
  border-color: rgba(114, 203, 188, 0.56);
  background:
    linear-gradient(160deg, rgba(19, 43, 56, 0.8), rgba(10, 22, 35, 0.82)),
    rgba(10, 20, 31, 0.68);
  color: rgba(214, 240, 234, 0.96);
}

.top-toolbar .app-btn {
  min-height: 32px;
  padding: 0.38rem 0.72rem;
  border-radius: 10px;
  border-color: rgba(166, 187, 210, 0.22);
  background: rgba(11, 23, 35, 0.42);
  color: #d9e4ef;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  box-shadow: none;
  white-space: nowrap;
}

.top-toolbar .app-btn--ghost {
  background: rgba(10, 21, 33, 0.34);
  border-color: rgba(160, 181, 205, 0.22);
}

.top-toolbar .app-btn--primary {
  color: #f1f7f5;
  border-color: rgba(114, 203, 188, 0.34);
  background:
    linear-gradient(140deg, rgba(70, 132, 124, 0.84), rgba(83, 175, 159, 0.8));
  box-shadow:
    0 8px 16px rgba(5, 15, 26, 0.2),
    inset 0 1px 0 rgba(220, 246, 241, 0.1);
}

#sidebar-toggle.is-points-hidden {
  border-color: rgba(114, 203, 188, 0.56);
  background: rgba(10, 21, 33, 0.62);
  color: #e4f0ff;
}

.near-me-trigger {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
}

.top-toolbar .near-me-trigger {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
}

.near-me-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-0.5px);
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.22s ease,
    opacity 0.22s ease;
}

.near-me-trigger:hover .near-me-trigger__icon {
  transform: translateY(-1px) scale(1.04);
}

.near-me-trigger.is-loading {
  pointer-events: none;
}

.near-me-trigger.is-loading .near-me-trigger__icon {
  animation: nearMeLocateSpin 0.94s linear infinite;
}

.near-me-trigger.is-active {
  border-color: rgba(114, 203, 188, 0.56);
  background:
    linear-gradient(160deg, rgba(20, 44, 58, 0.8), rgba(10, 23, 36, 0.82)),
    rgba(10, 21, 33, 0.6);
  color: #def3ee;
  box-shadow:
    0 10px 22px rgba(3, 12, 28, 0.24),
    0 0 0 1px rgba(114, 203, 188, 0.2);
}

.add-place-segmented {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  min-height: 32px;
  padding: 2px;
  border: 1px solid rgba(158, 181, 204, 0.26);
  border-radius: 11px;
  background:
    radial-gradient(circle at 18% -52%, rgba(114, 203, 188, 0.12), transparent 58%),
    linear-gradient(160deg, rgba(12, 25, 38, 0.62), rgba(8, 19, 30, 0.68)),
    rgba(9, 20, 31, 0.52);
  box-shadow:
    0 10px 20px rgba(2, 10, 24, 0.2),
    inset 0 1px 0 rgba(223, 235, 247, 0.06);
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.24s ease;
}

.add-place-segmented.is-admin-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.add-place-segmented.is-admin-visible {
  border-color: rgba(114, 203, 188, 0.34);
  box-shadow:
    0 10px 20px rgba(2, 10, 24, 0.2),
    inset 0 0 0 1px rgba(114, 203, 188, 0.14);
}

.add-place-segmented.add-place-segmented--no-transition,
.add-place-segmented.add-place-segmented--no-transition * {
  transition: none !important;
}

.add-place-segmented__btn {
  min-height: 28px !important;
  min-width: 0;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(204, 221, 237, 0.95);
  font-size: 0.7rem !important;
  font-weight: 680 !important;
  letter-spacing: 0.012em !important;
  padding: 0.36rem 0.66rem !important;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.2s ease,
    background-color 0.2s ease;
}

.add-place-segmented__btn:hover {
  transform: translateY(-0.5px);
  color: #deedf8;
}

.add-place-segmented__btn.is-active {
  color: #ddf2ed;
  background:
    linear-gradient(160deg, rgba(20, 44, 58, 0.82), rgba(10, 23, 36, 0.84)),
    rgba(10, 21, 33, 0.64) !important;
  box-shadow:
    0 8px 16px rgba(2, 10, 24, 0.24),
    inset 0 0 0 1px rgba(114, 203, 188, 0.24) !important;
}

.add-place-segmented.is-admin-visible #add-place-public-toggle {
  animation: addPlacePublicIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.add-place-segmented.is-admin-visible #add-place-my-toggle {
  animation: addPlaceMyIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.add-place-segmented[data-authenticated="false"] #add-place-my-toggle[data-auth-required="true"] {
  color: rgba(188, 205, 222, 0.84);
}

.add-place-segmented[data-authenticated="false"] #add-place-my-toggle[data-auth-required="true"]::after {
  content: "Sign in";
  margin-left: 0.34rem;
  opacity: 0.72;
  font-size: 0.62rem;
  letter-spacing: 0.01em;
}

@keyframes addPlacePublicIn {
  from {
    opacity: 0;
    transform: translate3d(-6px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes addPlaceMyIn {
  from {
    opacity: 0.82;
    transform: translate3d(4px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.top-toolbar .app-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 203, 188, 0.56);
  background: rgba(13, 28, 42, 0.56);
  box-shadow: 0 8px 16px rgba(2, 11, 28, 0.2);
}

.top-toolbar .app-btn--primary:hover {
  background: linear-gradient(140deg, rgba(78, 145, 137, 0.92), rgba(88, 186, 169, 0.88));
}

.app-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px) scale(1.015);
  border-color: rgba(114, 203, 188, 0.68);
  box-shadow: var(--elev-1);
}

.app-btn:hover::before {
  opacity: 0.9;
  transform: translate3d(0, 0, 0) scale(1);
}

.app-btn:active,
.icon-btn:active {
  transform: translateY(1px) scale(0.99);
}

.app-btn:active::before {
  opacity: 0.78;
  transform: translate3d(0, 2px, 0) scale(0.992);
}

.app-btn:focus-visible,
.icon-btn:focus-visible,
.text-input:focus-visible,
.select-input:focus-visible,
.point-item__button:focus-visible,
.popup-card__close:focus-visible,
.popup-card__sources-info:focus-visible,
.popup-card__link:focus-visible,
.sidebar-reveal:focus-visible,
.leaflet-control-zoom a:focus-visible,
.map-pin-icon:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.app-status {
  position: fixed;
  top: calc(1rem + var(--toolbar-height) + 0.72rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-status);
  width: var(--toolbar-width);
  margin: 0;
  min-height: 1.4rem;
  color: var(--warning);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.28s ease,
    transform 0.32s ease,
    filter 0.32s ease;
}

.app-status.is-muted-by-popup {
  opacity: 0;
  transform: translate(-50%, -8px);
  filter: blur(1px);
}

.add-place-banner {
  position: fixed;
  top: calc(1rem + var(--toolbar-height) + 0.72rem);
  left: 50%;
  transform: translate3d(-50%, calc(-1 * var(--motion-ui-offset-y)), 0) scale(var(--motion-ui-scale-start));
  width: min(820px, calc(100vw - 2rem));
  min-height: 44px;
  z-index: calc(var(--z-toolbar) + 6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(160, 184, 207, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(156deg, rgba(17, 32, 49, 0.56), rgba(10, 21, 33, 0.62)),
    rgba(9, 19, 30, 0.34);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  box-shadow:
    0 16px 34px rgba(2, 11, 26, 0.34),
    inset 0 1px 0 rgba(227, 239, 250, 0.08);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--motion-ui-duration) var(--motion-ui-ease),
    transform var(--motion-ui-duration) var(--motion-ui-ease);
}

.add-place-banner.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.add-place-banner__text {
  margin: 0;
  color: #dbe9f6;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.012em;
}

.add-place-banner__cancel {
  min-height: 30px;
  padding: 0.34rem 0.66rem;
  border-radius: 9px;
  font-size: 0.72rem;
}

.app-status--error {
  color: #d8a7b3;
}

.app-status--success {
  color: #95cfc4;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: calc(var(--z-popup) + 4);
  transform: translate3d(-50%, 12px, 0) scale(0.98);
  margin: 0;
  border: 1px solid rgba(168, 190, 213, 0.34);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  color: #e8f1fa;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background:
    linear-gradient(150deg, rgba(28, 45, 63, 0.88), rgba(13, 26, 39, 0.92)),
    rgba(10, 21, 33, 0.74);
  box-shadow:
    0 14px 30px rgba(2, 10, 25, 0.42),
    inset 0 1px 0 rgba(234, 246, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.travel-hub {
  position: fixed;
  right: calc(var(--travel-hub-panel-right-base) + var(--leaflet-controls-safe-w));
  bottom: 6.4rem;
  width: min(320px, calc(100vw - 2rem));
  z-index: calc(var(--z-toolbar) + 4);
  display: grid;
  gap: 0.54rem;
  padding: 0.62rem;
  border: 1px solid rgba(156, 180, 205, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(156deg, rgba(18, 33, 49, 0.48), rgba(10, 21, 33, 0.54)),
    rgba(8, 18, 29, 0.32);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  box-shadow:
    0 18px 42px rgba(2, 10, 24, 0.36),
    0 8px 22px rgba(2, 10, 24, 0.2);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  overflow: hidden;
  contain: layout paint;
  transition:
    opacity var(--motion-ui-duration) var(--motion-ui-ease),
    transform var(--motion-ui-duration) var(--motion-ui-ease);
}

.travel-hub[data-map-motion="1"] {
  background: rgba(8, 18, 29, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 18px rgba(2, 10, 24, 0.28);
}

.travel-hub[data-map-motion="1"] .travel-guide__item.is-enter {
  animation: none;
}

.travel-hub[data-map-motion="1"] .travel-guide__card {
  background: rgba(8, 18, 29, 0.86);
  transition: border-color 120ms ease;
  transform: none;
  box-shadow: none;
}

.travel-hub[data-map-motion="1"] .travel-guide__card:hover {
  transform: none;
  box-shadow: none;
}

.travel-hub[data-map-motion="1"] .travel-guide__image,
.travel-hub[data-map-motion="1"] .travel-guide__image-placeholder {
  transition: none;
}

.travel-hub[data-map-motion="1"] .travel-guide__image-placeholder.is-skeleton,
.travel-hub[data-map-motion="1"] .travel-guide__skeleton-line {
  animation: none;
}

.travel-hub.is-collapsed {
  opacity: 0.98;
  transform: translate3d(0, var(--motion-ui-offset-y), 0) scale(var(--motion-ui-scale-start));
}

.travel-hub.is-collapsed .travel-hub__subtitle,
.travel-hub.is-collapsed .travel-hub__metrics {
  display: none;
}

.travel-hub.is-collapsed .travel-hub__toggle {
  transform: rotate(180deg);
}

.travel-hub.social-guide--collapsed {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0.34rem 0.56rem;
  gap: 0;
  overflow: hidden;
}

.travel-hub.social-guide--collapsed .travel-hub__subtitle,
.travel-hub.social-guide--collapsed .travel-mode-switch,
.travel-hub.social-guide--collapsed .travel-hub__metrics,
.travel-hub.social-guide--collapsed .travel-hub__panels {
  display: none;
}

.travel-hub.social-guide--collapsed .travel-hub__header {
  align-items: center;
  flex-wrap: nowrap;
  min-height: 100%;
}

.travel-hub.social-guide--collapsed .travel-hub__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.travel-hub.social-guide--collapsed .travel-hub__toggle {
  flex: 0 0 auto;
}

.travel-hub__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.58rem;
}

.travel-hub__heading {
  min-width: 0;
}

.travel-hub__title {
  margin: 0;
  color: #e8f2fb;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 660;
  letter-spacing: 0.012em;
}

.travel-hub__subtitle {
  margin: 0.18rem 0 0;
  color: rgba(176, 197, 219, 0.9);
  font-size: 0.7rem;
  line-height: 1.36;
}

.travel-hub__toggle {
  width: 1.94rem;
  height: 1.94rem;
  border-radius: 10px;
  transition:
    transform var(--motion-ui-duration) var(--motion-ui-ease),
    border-color 200ms ease,
    background-color 200ms ease;
}

.travel-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
  padding: 0.28rem;
  border: 1px solid rgba(146, 170, 194, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(163deg, rgba(13, 27, 41, 0.34), rgba(8, 19, 31, 0.42)),
    rgba(8, 18, 29, 0.28);
}

.travel-mode-switch__btn {
  min-height: 32px;
  border: 1px solid rgba(142, 168, 194, 0.24);
  border-radius: 9px;
  background: rgba(9, 20, 33, 0.5);
  color: rgba(209, 223, 239, 0.92);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.012em;
  cursor: pointer;
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
}

.travel-mode-switch__btn:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(114, 203, 188, 0.46);
}

.travel-mode-switch__btn.is-active {
  border-color: rgba(114, 203, 188, 0.58);
  background:
    linear-gradient(154deg, rgba(19, 40, 57, 0.74), rgba(10, 22, 34, 0.82)),
    rgba(9, 19, 31, 0.56);
  color: #d8f0eb;
  box-shadow: 0 8px 18px rgba(2, 10, 24, 0.2);
}

.travel-mode-switch__btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.travel-hub__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
}

.travel-hub__metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.46rem;
  border: 1px solid rgba(146, 170, 194, 0.2);
  border-radius: 11px;
  padding: 0.5rem 0.56rem;
  background:
    linear-gradient(166deg, rgba(14, 27, 40, 0.42), rgba(9, 19, 31, 0.5)),
    rgba(8, 18, 29, 0.3);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease;
}

.travel-hub__metric:hover {
  transform: translateY(-1px) scale(1.005);
  border-color: rgba(114, 203, 188, 0.34);
}

.travel-hub__metric-key {
  color: rgba(169, 190, 212, 0.9);
  font-size: 0.69rem;
  font-weight: 620;
  letter-spacing: 0.012em;
  line-height: 1.28;
}

.travel-hub__metric-value {
  color: #e7f1fa;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.008em;
  white-space: nowrap;
}

.travel-hub__metric-value.is-weak {
  color: rgba(190, 206, 222, 0.9);
}

.travel-hub__panels {
  display: grid;
  gap: 0.44rem;
  max-height: min(52vh, 460px);
  overflow: hidden;
  contain: layout paint;
}

.travel-panel {
  border: 1px solid rgba(146, 170, 194, 0.2);
  border-radius: 12px;
  padding: 0.48rem;
  background:
    linear-gradient(168deg, rgba(14, 27, 40, 0.42), rgba(9, 19, 31, 0.5)),
    rgba(8, 18, 29, 0.3);
  contain: layout paint;
  box-shadow:
    0 14px 30px rgba(2, 10, 24, 0.24),
    inset 0 1px 0 rgba(230, 242, 255, 0.06);
}

.travel-hub.is-collapsed .travel-hub__panels {
  display: none;
}

.travel-guide__curated {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
}

.travel-guide__curated-btn {
  min-height: 30px;
  border: 1px solid rgba(141, 167, 192, 0.22);
  border-radius: 9px;
  background: rgba(8, 19, 31, 0.52);
  color: rgba(210, 223, 238, 0.92);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 640;
  letter-spacing: 0.012em;
  cursor: pointer;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
}

.travel-guide__curated-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 203, 188, 0.46);
}

.travel-guide__curated-btn.is-active {
  border-color: rgba(114, 203, 188, 0.56);
  background:
    linear-gradient(155deg, rgba(20, 44, 62, 0.74), rgba(9, 21, 32, 0.84)),
    rgba(8, 18, 29, 0.56);
  color: #d8efea;
}

.travel-guide__filters {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.32rem;
}

.travel-guide__query {
  grid-column: 1 / -1;
  margin-bottom: 0;
  min-height: 36px;
}

.travel-guide__refresh {
  grid-column: 1 / -1;
  min-height: 34px;
}

.travel-guide__status {
  margin-top: 0.42rem;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
}

.travel-guide__source,
.travel-guide__counter {
  margin: 0;
  color: rgba(176, 197, 219, 0.9);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.012em;
}

.travel-guide__counter {
  color: #dde9f6;
}

.travel-guide__cards {
  list-style: none;
  margin: 0.44rem 0 0;
  padding: 0 0.14rem 0 0;
  display: grid;
  gap: 0.38rem;
  max-height: min(34vh, 320px);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  contain: content;
  overscroll-behavior: contain;
}

.travel-guide__cards::-webkit-scrollbar {
  width: 8px;
}

.travel-guide__cards::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(103, 136, 168, 0.64);
}

.travel-guide__item {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: 84px;
}

.travel-guide__item.is-enter {
  animation: travel-guide-item-enter 240ms ease both;
}

.travel-guide__card {
  width: 100%;
  border: 1px solid rgba(140, 166, 191, 0.22);
  border-radius: 11px;
  padding: 0.36rem;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.44rem;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(165deg, rgba(12, 25, 38, 0.52), rgba(8, 18, 29, 0.62)),
    rgba(8, 18, 29, 0.42);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  contain: layout paint;
}

.travel-guide__card:hover {
  transform: translateY(-1px) scale(1.005);
  border-color: rgba(114, 203, 188, 0.45);
  box-shadow: 0 10px 24px rgba(2, 10, 24, 0.28);
}

.travel-guide__card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.travel-guide__media {
  position: relative;
  display: block;
  isolation: isolate;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(149, 173, 198, 0.24);
  background: rgba(11, 23, 36, 0.58);
}

.travel-guide__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 180ms ease;
}

.travel-guide__image.is-loading {
  opacity: 0;
}

.travel-guide__image-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0.3rem;
  color: rgba(183, 200, 218, 0.92);
  font-size: 0.62rem;
  font-weight: 650;
  text-align: center;
  line-height: 1.2;
  background:
    radial-gradient(circle at 18% 16%, rgba(154, 182, 208, 0.28), transparent 52%),
    linear-gradient(150deg, rgba(24, 38, 53, 0.7), rgba(10, 21, 32, 0.82));
  transition: opacity 180ms ease;
}

.travel-guide__image-placeholder--card {
  gap: 0.16rem;
}

.travel-guide__image-placeholder-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  border: 1px solid rgba(180, 200, 219, 0.72);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(160, 188, 214, 0.26), rgba(120, 146, 170, 0.08));
}

.travel-guide__image-placeholder-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 2px;
  width: 8px;
  height: 4px;
  border-left: 2px solid rgba(184, 206, 226, 0.82);
  border-top: 2px solid rgba(184, 206, 226, 0.82);
  transform: skewX(-30deg) rotate(2deg);
}

.travel-guide__image-placeholder-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(205, 220, 233, 0.86);
}

.travel-guide__image-placeholder-label {
  display: block;
  font-size: 0.54rem;
  letter-spacing: 0.02em;
  color: inherit;
}

.travel-guide__image-placeholder--fallback {
  border: 1px dashed rgba(162, 184, 207, 0.3);
}

.travel-guide__image-placeholder.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.travel-guide__image-placeholder.is-skeleton,
.travel-guide__skeleton-line {
  position: relative;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(
    110deg,
    rgba(94, 118, 142, 0.22) 8%,
    rgba(142, 172, 200, 0.34) 28%,
    rgba(94, 118, 142, 0.22) 48%
  );
  background-size: 220% 100%;
  animation: travel-guide-skeleton-shimmer 1.15s ease-in-out infinite;
}

.travel-guide__image-placeholder.is-skeleton .travel-guide__image-placeholder-icon,
.travel-guide__image-placeholder.is-skeleton .travel-guide__image-placeholder-label {
  opacity: 0;
}

.travel-guide__card--skeleton {
  cursor: default;
  pointer-events: none;
}

.travel-guide__skeleton-line {
  display: block;
  height: 0.56rem;
  border-radius: 999px;
}

.travel-guide__skeleton-line--short {
  width: 72%;
}

.travel-guide__skeleton-line--tiny {
  width: 48%;
}

@keyframes travel-guide-item-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes travel-guide-skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -110% 0;
  }
}

.travel-guide__body {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
  align-content: start;
}

.travel-guide__card-title {
  margin: 0;
  color: #edf5fc;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 680;
  line-height: 1.22;
}

.travel-guide__card-subtitle {
  margin: 0;
  color: rgba(177, 197, 218, 0.9);
  font-size: 0.62rem;
  font-weight: 570;
}

.travel-guide__meta,
.travel-guide__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.travel-guide__badge,
.travel-guide__tag,
.travel-guide__flag {
  border: 1px solid rgba(142, 168, 194, 0.26);
  border-radius: 999px;
  padding: 0.09rem 0.34rem;
  color: #dbe8f6;
  font-size: 0.56rem;
  font-weight: 640;
  letter-spacing: 0.012em;
  background: rgba(9, 20, 33, 0.58);
}

.travel-guide__flag {
  border-color: rgba(114, 203, 188, 0.46);
  color: #c8ede6;
}

.travel-guide__empty {
  border: 1px dashed rgba(144, 170, 194, 0.32);
  border-radius: 10px;
  padding: 0.56rem;
  display: grid;
  gap: 0.2rem;
  color: rgba(188, 205, 223, 0.92);
  font-size: 0.7rem;
}

.travel-planner__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
}

.travel-planner__metric {
  border: 1px solid rgba(145, 169, 194, 0.22);
  border-radius: 10px;
  padding: 0.34rem 0.4rem;
  display: grid;
  gap: 0.1rem;
  background: rgba(9, 20, 33, 0.48);
}

.travel-planner__metric-key {
  color: rgba(170, 190, 212, 0.9);
  font-size: 0.58rem;
  font-weight: 620;
}

.travel-planner__metric-value {
  color: #e8f1fa;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 670;
}

.travel-planner__points-title {
  margin: 0.45rem 0 0.3rem;
  color: #dfeaf7;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 650;
}

.travel-planner__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.26rem;
}

.travel-planner__point {
  border: 1px solid rgba(145, 169, 194, 0.2);
  border-radius: 9px;
  padding: 0.3rem 0.34rem;
  display: flex;
  gap: 0.34rem;
  align-items: center;
  background: rgba(8, 18, 29, 0.42);
}

.travel-planner__point--empty {
  color: rgba(174, 194, 215, 0.9);
  font-size: 0.66rem;
}

.travel-planner__point-bullet {
  width: 1.14rem;
  height: 1.14rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 167, 192, 0.42);
  display: grid;
  place-items: center;
  color: #e8f1fa;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 660;
}

.travel-planner__point-text {
  min-width: 0;
  color: #deebf8;
  font-size: 0.66rem;
  font-weight: 620;
  line-height: 1.28;
  word-break: break-word;
}

.travel-planner__actions {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
}

.travel-planner__action {
  min-height: 33px;
  font-size: 0.64rem;
}

.travel-planner__status {
  margin: 0.4rem 0 0;
  min-height: 1.1rem;
  color: rgba(172, 194, 216, 0.92);
  font-size: 0.64rem;
  font-weight: 620;
}

.travel-planner__status.is-success {
  color: #97e4d3;
}

.travel-planner__status.is-error {
  color: #ebb2bf;
}

.travel-planner__saved-head {
  margin-top: 0.34rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.34rem;
}

.travel-planner__saved-title {
  margin: 0;
  color: #dfeaf7;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 650;
}

.travel-planner__sync {
  border: 1px solid rgba(144, 170, 194, 0.26);
  border-radius: 999px;
  padding: 0.08rem 0.34rem;
  color: rgba(186, 204, 223, 0.92);
  font-size: 0.56rem;
  font-weight: 640;
  background: rgba(9, 20, 33, 0.56);
}

.travel-planner__sync.is-remote {
  border-color: rgba(114, 203, 188, 0.42);
  color: #c7ece5;
}

.travel-planner__saved {
  list-style: none;
  margin: 0.32rem 0 0;
  padding: 0 0.12rem 0 0;
  display: grid;
  gap: 0.32rem;
  max-height: min(22vh, 190px);
  overflow: auto;
}

.travel-planner__saved-item {
  border: 1px solid rgba(142, 168, 194, 0.22);
  border-radius: 10px;
  padding: 0.34rem;
  display: grid;
  gap: 0.26rem;
  background: rgba(8, 18, 29, 0.42);
}

.travel-planner__saved-item--empty {
  color: rgba(179, 198, 218, 0.9);
  font-size: 0.65rem;
  font-weight: 600;
}

.travel-planner__saved-item-head {
  display: grid;
  gap: 0.08rem;
}

.travel-planner__saved-item-title {
  color: #e7f1fb;
  font-size: 0.68rem;
  font-weight: 670;
}

.travel-planner__saved-item-meta {
  color: rgba(174, 194, 215, 0.9);
  font-size: 0.58rem;
  font-weight: 610;
}

.travel-planner__saved-item-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}

.travel-planner__saved-btn {
  min-height: 30px;
  font-size: 0.62rem;
}

.sidebar {
  --sidebar-slide-x: 0px;
  --sidebar-base-shift-y: -50%;
  --sidebar-drag-offset-px: 0px;
  position: fixed;
  left: 1rem;
  top: 50%;
  bottom: auto;
  width: min(var(--sidebar-width), calc(100vw - 2rem));
  height: min(88vh, 1120px);
  max-height: calc(100vh - 1rem);
  z-index: var(--z-sidebar);
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 0.66rem;
  border: 1px solid rgba(157, 179, 203, 0.15);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(22, 39, 57, 0.36), rgba(11, 22, 33, 0.46)),
    rgba(10, 20, 31, 0.28);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  box-shadow:
    0 20px 52px rgba(1, 9, 23, 0.42),
    0 8px 24px rgba(2, 12, 30, 0.24);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  contain: layout paint;
  isolation: isolate;
  transition:
    transform 0.34s cubic-bezier(0.18, 0.8, 0.24, 1),
    opacity 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform, opacity;
  transform: translate3d(
    var(--sidebar-slide-x),
    calc(var(--sidebar-base-shift-y) + var(--sidebar-drag-offset-px)),
    0
  );
}

.sidebar.is-closed {
  --sidebar-slide-x: calc(-100% - 1.2rem);
  opacity: 0;
  pointer-events: none;
}

.sidebar.is-panel-dragging {
  transition: none;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 24, 36, 0.06), rgba(8, 17, 27, 0));
}

.sidebar::before {
  content: none;
}

.smart-filters-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sidebar) + 20);
  background: rgba(6, 14, 23, 0.22);
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
  contain: paint;
}

.near-me-panel {
  position: fixed;
  right: 1rem;
  top: calc(1rem + var(--toolbar-height) + 0.72rem);
  width: min(360px, calc(100vw - 2rem));
  max-height: min(74vh, 620px);
  z-index: calc(var(--z-sidebar) + 18);
  padding: 0.68rem;
  border: 1px solid rgba(157, 181, 205, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(156deg, rgba(20, 37, 54, 0.44), rgba(10, 22, 33, 0.5)),
    rgba(8, 18, 29, 0.32);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  box-shadow:
    0 22px 54px rgba(1, 9, 23, 0.42),
    0 8px 24px rgba(2, 11, 28, 0.24);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0.5rem;
  overflow: hidden;
  contain: layout paint;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, var(--motion-ui-offset-y), 0) scale(var(--motion-ui-scale-start));
  transition:
    opacity var(--motion-ui-duration) var(--motion-ui-ease),
    transform var(--motion-ui-duration) var(--motion-ui-ease);
}

.near-me-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.near-me-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.72rem 0.8rem 0.72rem 0.74rem;
  border: 1px solid rgba(151, 175, 198, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(164deg, rgba(15, 29, 44, 0.36), rgba(9, 20, 31, 0.42)),
    rgba(9, 19, 30, 0.28);
}

.near-me-panel__heading {
  min-width: 0;
}

.near-me-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 630;
  letter-spacing: 0.012em;
}

.near-me-panel__subtitle {
  margin: 0.2rem 0 0;
  color: rgba(178, 198, 219, 0.88);
  font-size: 0.72rem;
  line-height: 1.34;
}

.near-me-panel__close {
  width: 2.06rem;
  height: 2.06rem;
  border-radius: 11px;
}

.near-me-panel__status {
  margin: 0;
  padding: 0.58rem 0.66rem;
  border: 1px solid rgba(149, 173, 198, 0.2);
  border-radius: 11px;
  color: #dce8f4;
  font-size: 0.76rem;
  line-height: 1.38;
  background:
    linear-gradient(165deg, rgba(13, 26, 40, 0.42), rgba(9, 20, 31, 0.5)),
    rgba(8, 18, 30, 0.28);
}

.near-me-panel__status.is-error {
  border-color: rgba(214, 144, 159, 0.44);
  color: #dfb2bf;
}

.near-me-panel__coords {
  margin: 0;
  color: rgba(165, 186, 209, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.near-me-panel__list {
  margin: 0;
  padding: 0 0.08rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.44rem;
  overflow: auto;
  max-height: min(46vh, 420px);
  border-radius: 11px;
  contain: content;
}

.near-me-panel__list::-webkit-scrollbar {
  width: 9px;
}

.near-me-panel__list::-webkit-scrollbar-track {
  background: rgba(8, 19, 31, 0.2);
}

.near-me-panel__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(9, 20, 31, 0.4);
  background: rgba(123, 145, 168, 0.46);
}

.add-place-drawer {
  position: fixed;
  right: 1rem;
  top: calc(1rem + var(--toolbar-height) + 0.72rem);
  width: min(390px, calc(100vw - 2rem));
  max-height: min(80vh, 760px);
  z-index: calc(var(--z-sidebar) + 26);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.52rem;
  padding: 0.68rem;
  border: 1px solid rgba(157, 181, 205, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(156deg, rgba(20, 37, 54, 0.46), rgba(10, 22, 33, 0.54)),
    rgba(8, 18, 29, 0.34);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  box-shadow:
    0 22px 54px rgba(1, 9, 23, 0.42),
    0 8px 24px rgba(2, 11, 28, 0.24);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, var(--motion-ui-offset-y), 0) scale(var(--motion-ui-scale-start));
  transition:
    opacity var(--motion-ui-duration) var(--motion-ui-ease),
    transform var(--motion-ui-duration) var(--motion-ui-ease);
}

.add-place-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.add-place-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.72rem 0.8rem 0.72rem 0.74rem;
  border: 1px solid rgba(151, 175, 198, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(164deg, rgba(15, 29, 44, 0.36), rgba(9, 20, 31, 0.42)),
    rgba(9, 19, 30, 0.28);
}

.add-place-drawer__heading {
  min-width: 0;
}

.add-place-drawer__title-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.add-place-drawer__title {
  margin: 0;
  color: #e6f0fa;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 640;
  letter-spacing: 0.012em;
}

.add-place-drawer__mode-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(152, 176, 200, 0.28);
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  color: #d4e5f7;
  background: rgba(11, 22, 33, 0.5);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.add-place-drawer__mode-badge--public {
  border-color: rgba(126, 188, 232, 0.42);
  color: #d5ebff;
  background: rgba(26, 46, 66, 0.56);
}

.add-place-drawer__mode-badge--my {
  border-color: rgba(120, 204, 189, 0.44);
  color: #d8efe9;
  background: rgba(22, 47, 42, 0.56);
}

.add-place-drawer__coords {
  margin: 0.2rem 0 0;
  color: rgba(167, 188, 210, 0.9);
  font-size: 0.72rem;
}

.add-place-drawer__close {
  width: 2.06rem;
  height: 2.06rem;
  border-radius: 11px;
}

.add-place-drawer__status {
  margin: 0;
  padding: 0.52rem 0.64rem;
  border: 1px solid rgba(149, 173, 198, 0.2);
  border-radius: 10px;
  color: #d8e7f5;
  font-size: 0.74rem;
  line-height: 1.4;
  background:
    linear-gradient(165deg, rgba(13, 26, 40, 0.42), rgba(9, 20, 31, 0.5)),
    rgba(8, 18, 30, 0.28);
}

.add-place-drawer__status.is-error {
  border-color: rgba(214, 144, 159, 0.44);
  color: #dfb2bf;
}

.add-place-drawer__status.is-success {
  border-color: rgba(114, 203, 188, 0.48);
  color: #b8eadf;
}

.add-place-form {
  display: grid;
  gap: 0.52rem;
  overflow: auto;
  padding-right: 0.14rem;
  border-radius: 11px;
}

.add-place-form::-webkit-scrollbar {
  width: 8px;
}

.add-place-form::-webkit-scrollbar-track {
  background: rgba(9, 20, 31, 0.24);
}

.add-place-form::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 146, 169, 0.52);
}

.add-place-form__textarea {
  min-height: 88px;
  resize: vertical;
}

.add-place-form__photo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.42rem;
  align-items: center;
}

.add-place-form__photo-input {
  width: 100%;
  min-height: 38px;
  margin: 0;
  border: 1px solid rgba(150, 174, 198, 0.26);
  border-radius: 11px;
  padding: 0.28rem 0.42rem;
  background:
    linear-gradient(164deg, rgba(10, 22, 35, 0.54), rgba(8, 19, 31, 0.58)),
    rgba(8, 18, 30, 0.4);
  color: rgba(224, 236, 247, 0.92);
  font-family: inherit;
  font-size: 0.74rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.add-place-form__photo-input:hover {
  border-color: rgba(114, 203, 188, 0.5);
}

.add-place-form__photo-input:focus-visible {
  outline: none;
  border-color: rgba(114, 203, 188, 0.62);
  box-shadow: var(--focus-ring);
}

.add-place-form__photo-input:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.add-place-form__photo-input::file-selector-button {
  margin-right: 0.44rem;
  min-height: 28px;
  border: 1px solid rgba(145, 169, 193, 0.28);
  border-radius: 9px;
  padding: 0.16rem 0.54rem;
  background:
    linear-gradient(160deg, rgba(16, 31, 46, 0.62), rgba(10, 22, 34, 0.72)),
    rgba(9, 20, 31, 0.54);
  color: rgba(214, 228, 242, 0.94);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.add-place-form__photo-input::-webkit-file-upload-button {
  margin-right: 0.44rem;
  min-height: 28px;
  border: 1px solid rgba(145, 169, 193, 0.28);
  border-radius: 9px;
  padding: 0.16rem 0.54rem;
  background:
    linear-gradient(160deg, rgba(16, 31, 46, 0.62), rgba(10, 22, 34, 0.72)),
    rgba(9, 20, 31, 0.54);
  color: rgba(214, 228, 242, 0.94);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.add-place-form__photo-clear {
  min-height: 38px;
  padding-inline: 0.66rem;
  white-space: nowrap;
}

.add-place-form__photo-hint {
  margin: -0.16rem 0 0;
  color: rgba(165, 187, 208, 0.9);
  font-size: 0.69rem;
  line-height: 1.34;
}

.add-place-form__photo-hint.is-authenticated {
  color: rgba(182, 208, 230, 0.92);
}

.add-place-form__photo-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 0.52rem;
  padding: 0.44rem 0.5rem;
  border: 1px solid rgba(147, 171, 194, 0.22);
  border-radius: 11px;
  background:
    linear-gradient(165deg, rgba(13, 26, 40, 0.46), rgba(8, 18, 30, 0.54)),
    rgba(8, 18, 30, 0.34);
}

.add-place-form__photo-image {
  width: 72px;
  height: 54px;
  border-radius: 9px;
  border: 1px solid rgba(155, 178, 200, 0.3);
  object-fit: cover;
  background: rgba(10, 22, 34, 0.58);
}

.add-place-form__photo-meta {
  margin: 0;
  color: rgba(211, 225, 239, 0.92);
  font-size: 0.71rem;
  line-height: 1.36;
  word-break: break-word;
}

.add-place-form__tags-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.42rem;
}

.add-place-form__tag-add {
  min-height: 38px;
  padding-inline: 0.7rem;
  white-space: nowrap;
}

.add-place-form__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  min-height: 1.4rem;
}

.add-place-form__tags.is-empty::before {
  content: "Теги не выбраны";
  color: rgba(162, 183, 204, 0.86);
  font-size: 0.72rem;
}

.add-place-form__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.2rem 0.28rem 0.2rem 0.48rem;
  border: 1px solid rgba(146, 170, 193, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(165deg, rgba(15, 29, 44, 0.48), rgba(10, 20, 33, 0.56)),
    rgba(8, 18, 29, 0.32);
}

.add-place-form__chip-text {
  color: rgba(227, 238, 248, 0.95);
  font-size: 0.71rem;
}

.add-place-form__chip-remove {
  width: 1.08rem;
  height: 1.08rem;
  border: 1px solid rgba(147, 171, 194, 0.2);
  border-radius: 999px;
  background: rgba(9, 20, 34, 0.56);
  color: rgba(215, 227, 240, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.62rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.add-place-form__chip-remove:hover {
  border-color: rgba(114, 203, 188, 0.5);
  background: rgba(12, 27, 44, 0.72);
  transform: translateY(-1px);
}

.add-place-form__chip-remove:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.add-place-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  align-items: stretch;
}

.add-place-form__field {
  grid-column: 1 / -1;
}

.add-place-form__family {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(148, 171, 194, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(14, 27, 41, 0.44), rgba(9, 19, 30, 0.52)),
    rgba(8, 17, 28, 0.32);
  cursor: pointer;
  width: 100%;
}

.add-place-form__family-input {
  width: 14px;
  height: 14px;
  accent-color: #72cbbc;
}

.add-place-form__family-label {
  color: rgba(224, 236, 247, 0.94);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.add-place-form__visibility {
  padding: 0.54rem;
  border: 1px solid rgba(150, 173, 196, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(14, 27, 41, 0.42), rgba(9, 19, 30, 0.48)),
    rgba(8, 17, 28, 0.28);
}

.add-place-form__visibility-label {
  margin: 0 0 0.34rem;
}

.add-place-form__segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
}

.add-place-form__segment {
  min-height: 36px;
  border: 1px solid rgba(147, 170, 194, 0.26);
  border-radius: 10px;
  background: rgba(9, 20, 33, 0.52);
  color: rgba(211, 224, 239, 0.94);
  font-size: 0.7rem;
  font-weight: 620;
  line-height: 1.2;
  padding: 0.34rem 0.4rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.add-place-form__segment:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 203, 188, 0.48);
}

.add-place-form__segment.is-active {
  border-color: rgba(114, 203, 188, 0.56);
  background:
    linear-gradient(160deg, rgba(20, 44, 58, 0.8), rgba(10, 23, 36, 0.82)),
    rgba(10, 21, 33, 0.58);
  color: #d9f0eb;
  box-shadow:
    0 10px 20px rgba(2, 10, 24, 0.24),
    0 0 0 1px rgba(114, 203, 188, 0.2);
}

.add-place-form__segment:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.add-place-form__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.44rem;
  padding-bottom: 0.06rem;
}

.add-place-form__actions .app-btn {
  min-height: 38px;
}

.near-me-item {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: 52px;
}

.near-me-item__button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(146, 170, 194, 0.22);
  border-radius: 12px;
  padding: 0.58rem 0.64rem;
  background:
    linear-gradient(165deg, rgba(15, 29, 43, 0.44), rgba(9, 20, 31, 0.52)),
    rgba(9, 19, 30, 0.32);
  color: #deebf6;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  contain: layout paint;
}

.near-me-item__button:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 203, 188, 0.5);
  box-shadow: 0 10px 22px rgba(2, 10, 24, 0.2);
}

.near-me-item__button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.near-me-item__button.is-hovered {
  border-color: rgba(114, 203, 188, 0.62);
  background:
    linear-gradient(165deg, rgba(18, 38, 55, 0.56), rgba(10, 22, 34, 0.64)),
    rgba(9, 20, 31, 0.4);
}

.near-me-item__name {
  min-width: 0;
  display: block;
  color: #ebf3fa;
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  line-height: 1.28;
  text-align: left;
}

.near-me-item__distance {
  color: #9bd7cb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.near-me-item--empty .near-me-item__button {
  cursor: default;
  border-style: dashed;
  color: rgba(170, 189, 210, 0.9);
}

.near-me-item--empty .near-me-item__button:hover {
  transform: none;
  border-color: rgba(146, 170, 194, 0.22);
  box-shadow: none;
}

.smart-filters-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.smart-filters-panel {
  position: fixed;
  right: 1rem;
  top: 50%;
  width: min(390px, calc(100vw - 1.2rem));
  max-height: min(88vh, 860px);
  padding: 0.72rem;
  border: 1px solid rgba(156, 180, 205, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(156deg, rgba(17, 32, 49, 0.5), rgba(10, 21, 33, 0.56)),
    rgba(8, 18, 29, 0.36);
  box-shadow:
    0 24px 60px rgba(2, 10, 24, 0.44),
    0 10px 26px rgba(2, 10, 24, 0.22);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  z-index: calc(var(--z-sidebar) + 22);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.64rem;
  overflow: hidden;
  contain: layout paint;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, calc(-50% + var(--motion-ui-offset-y)), 0) scale(var(--motion-ui-scale-start));
  transition:
    opacity var(--motion-ui-duration) var(--motion-ui-ease),
    transform var(--motion-ui-duration) var(--motion-ui-ease);
}

.smart-filters-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0) scale(1);
}

.smart-filters__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.74rem 0.86rem 0.74rem 0.8rem;
  border: 1px solid rgba(152, 176, 201, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(16, 30, 45, 0.32), rgba(11, 22, 33, 0.36)),
    rgba(8, 18, 30, 0.24);
}

.smart-filters__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 620;
  letter-spacing: 0.012em;
}

.smart-filters__subtitle {
  margin: 0.26rem 0 0;
  color: rgba(181, 201, 223, 0.9);
  font-size: 0.72rem;
  line-height: 1.35;
}

.smart-filters__body {
  padding: 0.34rem 0.44rem 0.1rem 0.36rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
}

.smart-filters__select {
  margin-bottom: 0.74rem;
}

.smart-tags-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.44rem;
  margin-bottom: 0.48rem;
}

.smart-tags-input {
  margin-bottom: 0;
}

.smart-tag-add {
  min-height: 40px;
  padding-inline: 0.72rem;
  white-space: nowrap;
}

.smart-tags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  min-height: 1.5rem;
  margin-bottom: 0.74rem;
}

.smart-tags-chips.is-empty::before {
  content: "Теги не выбраны";
  color: rgba(163, 183, 205, 0.86);
  font-size: 0.74rem;
}

.smart-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  max-width: 100%;
  padding: 0.24rem 0.3rem 0.24rem 0.5rem;
  border: 1px solid rgba(146, 170, 193, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(165deg, rgba(15, 29, 44, 0.48), rgba(10, 20, 33, 0.56)),
    rgba(8, 18, 29, 0.32);
}

.smart-tag-chip__text {
  color: rgba(227, 238, 248, 0.95);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.smart-tag-chip__remove {
  width: 1.14rem;
  height: 1.14rem;
  border: 1px solid rgba(147, 171, 194, 0.2);
  border-radius: 999px;
  background: rgba(9, 20, 34, 0.56);
  color: rgba(215, 227, 240, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.64rem;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.smart-tag-chip__remove:hover {
  border-color: rgba(114, 203, 188, 0.5);
  background: rgba(12, 27, 44, 0.72);
  transform: translateY(-1px);
}

.smart-tag-chip__remove:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.smart-switches {
  display: grid;
  gap: 0.44rem;
  margin-bottom: 0.74rem;
}

.smart-switch {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(147, 171, 194, 0.24);
  border-radius: 12px;
  padding: 0.48rem 0.58rem;
  background:
    linear-gradient(165deg, rgba(14, 27, 41, 0.44), rgba(9, 19, 30, 0.52)),
    rgba(8, 17, 28, 0.32);
  color: rgba(226, 237, 247, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.smart-switch:hover {
  border-color: rgba(114, 203, 188, 0.46);
  transform: translateY(-1px);
}

.smart-switch.is-active {
  border-color: rgba(114, 203, 188, 0.52);
  background:
    linear-gradient(165deg, rgba(22, 47, 58, 0.5), rgba(12, 27, 39, 0.6)),
    rgba(9, 22, 34, 0.36);
}

.smart-switch:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.smart-switch__text {
  color: inherit;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 550;
  letter-spacing: 0.012em;
}

.smart-switch__track {
  position: relative;
  width: 2.16rem;
  height: 1.12rem;
  border-radius: 999px;
  background: rgba(116, 139, 163, 0.36);
  transition: background-color 0.22s ease;
}

.smart-switch.is-active .smart-switch__track {
  background: rgba(114, 203, 188, 0.82);
}

.smart-switch__thumb {
  position: absolute;
  top: 50%;
  left: 0.12rem;
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 999px;
  background: #f2f7fb;
  transform: translate3d(0, -50%, 0);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.smart-switch.is-active .smart-switch__thumb {
  transform: translate3d(1.04rem, -50%, 0);
}

.smart-filters__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.48rem;
  padding: 0.2rem 0.36rem 0.26rem;
}

.sidebar-reveal {
  position: fixed;
  z-index: calc(var(--z-sidebar) - 10);
  left: 0.75rem;
  top: 50%;
  min-width: 2.5rem;
  min-height: 3.2rem;
  padding: 0.46rem 0.5rem;
  border: 1px solid rgba(154, 176, 199, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(17, 32, 47, 0.84), rgba(11, 21, 33, 0.9)),
    var(--bg-panel);
  color: var(--text-main);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  cursor: pointer;
  box-shadow: var(--elev-2);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-10px, -50%, 0);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.sidebar-reveal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0);
}

.sidebar-reveal__dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: radial-gradient(circle, #d8f3ee 0%, #72cbbc 72%);
  box-shadow: 0 0 0 0 rgba(114, 203, 188, 0.42);
  animation: sidebarRevealPulse 1.6s ease-out infinite;
}

.sidebar-reveal__label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-reveal:hover {
  transform: translate3d(2px, -50%, 0);
  border-color: rgba(114, 203, 188, 0.62);
  box-shadow: 0 18px 32px rgba(1, 10, 26, 0.5);
}

.sidebar-reveal:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@keyframes sidebarRevealPulse {
  100% {
    box-shadow: 0 0 0 10px rgba(114, 203, 188, 0);
  }
}

@keyframes nearMeLocateSpin {
  from {
    transform: translateY(-0.5px) rotate(0deg);
  }
  to {
    transform: translateY(-0.5px) rotate(360deg);
  }
}

.sidebar__header,
.sidebar__filters,
.route-panel {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  overflow: hidden;
}

.sidebar__header {
  display: grid;
  gap: 0.6rem;
  padding: 0.96rem 3.2rem 0.96rem 1rem;
  border: 1px solid rgba(154, 177, 201, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(16, 31, 47, 0.3), rgba(11, 21, 33, 0.34)),
    rgba(10, 21, 33, 0.22);
  overflow: visible;
  z-index: 3;
}

.sidebar__header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.84rem;
}

.panel-drag-handle,
.section-handle {
  display: block;
  border-radius: 999px;
  border: 1px solid rgba(147, 170, 194, 0.24);
  background:
    linear-gradient(180deg, rgba(196, 216, 236, 0.22), rgba(125, 149, 173, 0.22)),
    rgba(9, 20, 32, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(217, 233, 248, 0.14),
    0 5px 14px rgba(3, 11, 24, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.92;
  cursor: default;
  pointer-events: none;
  touch-action: auto;
  user-select: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.panel-drag-handle {
  display: none;
}

.section-handle {
  display: none;
}

.panel-drag-handle:hover,
.section-handle:hover {
  opacity: 1;
  border-color: rgba(114, 203, 188, 0.5);
  background:
    linear-gradient(180deg, rgba(205, 223, 242, 0.28), rgba(134, 158, 181, 0.28)),
    rgba(10, 22, 35, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(220, 236, 250, 0.18),
    0 7px 18px rgba(3, 11, 24, 0.3);
}

.sidebar.is-panel-dragging .panel-drag-handle,
.sidebar.is-panel-dragging .section-handle {
  border-color: rgba(114, 203, 188, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(220, 236, 250, 0.18),
    0 0 0 1px rgba(114, 203, 188, 0.18),
    0 8px 20px rgba(3, 11, 24, 0.28);
  transform: scale(1.03);
}

#sidebar-close {
  position: absolute;
  top: 0.72rem;
  right: 0.74rem;
  z-index: 5;
}

.sidebar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: 0.012em;
}

.sidebar__filters {
  padding: 1.02rem 1.02rem 1.1rem;
  min-height: clamp(152px, 19vh, 210px);
  border: 1px solid rgba(151, 175, 198, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(14, 28, 43, 0.26), rgba(10, 20, 31, 0.3)),
    rgba(9, 19, 30, 0.2);
}

.field-label {
  display: block;
  margin-bottom: 0.32rem;
  color: rgba(206, 220, 236, 0.86);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: 0.018em;
}

.text-input,
.select-input {
  width: 100%;
  min-height: 40px;
  margin-bottom: 0.66rem;
  border: 1px solid rgba(150, 174, 198, 0.26);
  border-radius: 11px;
  padding: 0.5rem 0.64rem;
  background: rgba(6, 18, 40, 0.6);
  background-clip: padding-box;
  color: rgba(230, 239, 247, 0.92);
  font-family: inherit;
  font-size: 0.9rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.text-input::placeholder {
  color: #98a9bc;
}

.text-input:hover,
.select-input:hover {
  border-color: rgba(114, 203, 188, 0.52);
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.02rem;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(188, 208, 228, 0.9) 50%),
    linear-gradient(135deg, rgba(188, 208, 228, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 0.92rem) calc(50% + 1px),
    calc(100% - 0.62rem) calc(50% + 1px);
  background-size:
    8px 8px,
    8px 8px;
  background-repeat: no-repeat;
  color-scheme: dark;
}

.select-input::-ms-expand {
  display: none;
}

.select-input option,
.select-input optgroup {
  color: rgba(230, 239, 247, 0.94);
  background-color: #0d1f2f;
}

.select-input option:checked {
  color: #ebf3fb;
  background-color: #173247;
}

.sidebar__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.62rem;
  margin-bottom: 0.86rem;
}

.meta-item {
  margin: 0;
  border: 1px solid rgba(148, 171, 194, 0.2);
  border-radius: 11px;
  padding: 0.46rem 0.54rem;
  background: rgba(7, 19, 37, 0.34);
  color: rgba(170, 189, 210, 0.92);
  font-size: 0.76rem;
}

.meta-item strong {
  color: rgba(233, 241, 248, 0.95);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 620;
}

.route-panel {
  margin: 0;
  padding: 1.02rem 1.04rem;
  min-height: clamp(214px, 31vh, 338px);
  border: 1px solid rgba(146, 169, 192, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgba(114, 203, 188, 0.1), transparent 44%),
    linear-gradient(165deg, rgba(13, 26, 40, 0.34), rgba(10, 21, 33, 0.44));
  box-shadow:
    inset 0 1px 0 rgba(199, 226, 255, 0.04),
    0 8px 20px rgba(2, 11, 27, 0.14);
}

.route-panel__header {
  margin-bottom: 0.62rem;
  display: grid;
  gap: 0.26rem;
}

.route-panel__title {
  margin: 0;
  color: rgba(241, 248, 255, 0.95);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 580;
  letter-spacing: 0.018em;
}

.route-panel__subtitle {
  margin: 0.36rem 0 0;
  color: rgba(198, 216, 238, 0.9);
  font-size: 0.75rem;
  line-height: 1.4;
}

.route-panel__mode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.56rem;
}

.route-panel__mode-field {
  min-width: 0;
  display: grid;
  align-content: end;
}

.route-panel__mode-select {
  margin-bottom: 0;
}

.route-panel__add-waypoint {
  align-self: end;
  min-height: 40px;
  margin-bottom: 0;
  padding-inline: 0.78rem;
  white-space: nowrap;
}

.route-panel__extra-points {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.62rem;
}

.route-panel__group--extra {
  border: 1px solid rgba(141, 165, 188, 0.18);
  border-radius: 11px;
  padding: 0.54rem;
  background: rgba(7, 18, 33, 0.24);
}

.route-panel__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.44rem;
  margin-bottom: 0.36rem;
}

.route-panel__group-title {
  margin: 0;
  color: rgba(190, 210, 232, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.route-panel__remove-waypoint {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.84rem;
}

.route-panel__group + .route-panel__group {
  margin-top: 0.64rem;
}

.route-panel__select {
  margin-bottom: 0.42rem;
}

.route-panel__quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.44rem;
  margin-bottom: 0.5rem;
}

.route-panel__quick-actions--single {
  grid-template-columns: 1fr;
}

.route-panel__custom {
  margin: -0.08rem 0 0.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.route-panel__custom.is-pick-armed {
  border-color: rgba(114, 203, 188, 0.56);
  background: rgba(15, 33, 41, 0.42);
  box-shadow: 0 0 0 1px rgba(114, 203, 188, 0.16);
}

.route-panel__coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.route-panel__coord-input {
  min-height: 38px;
  margin-bottom: 0;
  font-size: 0.86rem;
}

.route-panel__pick-btn,
.route-panel__my-location-btn {
  min-height: 34px;
  padding: 0.44rem 0.6rem;
  font-size: 0.73rem;
}

.route-panel__custom .route-panel__pick-btn {
  width: 100%;
  margin-top: 0.42rem;
}

.route-panel__custom.is-pick-armed .route-panel__pick-btn {
  border-color: rgba(114, 203, 188, 0.62);
  background: rgba(15, 33, 41, 0.66);
}

.route-panel__group.is-pick-armed .route-panel__quick-actions .route-panel__pick-btn {
  border-color: rgba(114, 203, 188, 0.62);
  background: rgba(15, 33, 41, 0.66);
}

.route-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.46rem;
  margin-top: 0.4rem;
}

.route-panel__actions .app-btn {
  min-height: 36px;
  padding: 0.48rem 0.72rem;
  font-size: 0.75rem;
}

.route-panel__order {
  margin-top: 0.72rem;
  border: 1px solid rgba(143, 166, 188, 0.18);
  border-radius: 11px;
  padding: 0.5rem;
  background: rgba(7, 18, 33, 0.24);
}

.route-panel__order-title {
  margin: 0 0 0.36rem;
  color: rgba(209, 226, 243, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.route-panel__order-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
}

.route-panel__order-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.44rem;
  align-items: center;
  border: 1px solid rgba(140, 164, 186, 0.18);
  border-radius: 10px;
  padding: 0.36rem 0.4rem;
  background: rgba(7, 17, 30, 0.34);
  cursor: grab;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.route-panel__order-item:hover {
  border-color: rgba(114, 203, 188, 0.46);
  background: rgba(10, 23, 40, 0.42);
}

.route-panel__order-item.is-dragging {
  opacity: 0.62;
  transform: scale(0.985);
  cursor: grabbing;
}

.route-panel__order-item.is-drop-target {
  border-color: rgba(114, 203, 188, 0.62);
  box-shadow: 0 0 0 1px rgba(114, 203, 188, 0.2);
}

.route-panel__order-bullet {
  width: 1.36rem;
  height: 1.36rem;
  border: 1px solid rgba(143, 167, 191, 0.32);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e2ecf7;
  font-size: 0.68rem;
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(11, 23, 36, 0.56);
}

.route-panel__order-text {
  min-width: 0;
  display: grid;
}

.route-panel__order-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(229, 239, 249, 0.94);
  font-size: 0.74rem;
  font-weight: 700;
}

.route-panel__order-meta {
  color: rgba(165, 186, 208, 0.88);
  font-size: 0.66rem;
}

.route-panel__order-focus {
  width: 1.68rem;
  height: 1.68rem;
  border: 1px solid rgba(142, 166, 190, 0.28);
  border-radius: 8px;
  background: rgba(9, 20, 34, 0.42);
  color: rgba(217, 229, 241, 0.9);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.route-panel__order-focus:hover {
  border-color: rgba(114, 203, 188, 0.56);
  background: rgba(12, 27, 45, 0.6);
  transform: translateY(-1px);
}

.route-panel__order-focus:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.route-panel__order-hint {
  margin: 0.38rem 0 0;
  color: rgba(156, 177, 199, 0.88);
  font-size: 0.66rem;
}

.route-panel__status {
  margin: 0.62rem 0 0;
  min-height: 1.2rem;
  color: rgba(200, 216, 238, 0.9);
  font-size: 0.73rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.route-panel__status--error {
  color: #d79aa8;
}

.route-panel__status--success {
  color: #93cfc2;
}

.route-panel__status--loading {
  color: rgba(188, 211, 233, 0.96);
}

.route-panel__status-spinner {
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid rgba(145, 169, 194, 0.26);
  border-top-color: rgba(114, 203, 188, 0.96);
  border-radius: 999px;
  animation: routeSpinner 0.7s linear infinite;
}

.route-panel__metrics {
  display: grid;
  gap: 0.56rem;
  margin-top: 0.64rem;
}

.route-metric {
  margin: 0;
  border: 1px solid rgba(143, 166, 188, 0.16);
  border-radius: 10px;
  padding: 0.36rem 0.5rem;
  background: rgba(6, 17, 35, 0.28);
  color: rgba(169, 188, 208, 0.92);
  font-size: 0.72rem;
}

.route-metric strong {
  color: rgba(241, 248, 255, 0.95);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 580;
}

.route-panel__segments-wrap {
  margin-top: 0.64rem;
  border: 1px solid rgba(143, 166, 188, 0.18);
  border-radius: 11px;
  padding: 0.46rem;
  background: rgba(7, 18, 33, 0.24);
}

.route-panel__segments-title {
  margin: 0 0 0.36rem;
  color: rgba(209, 226, 243, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.route-panel__segments {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
}

.route-panel__segment {
  border: 1px solid rgba(138, 163, 187, 0.2);
  border-radius: 10px;
  padding: 0.38rem 0.42rem;
  background: rgba(8, 19, 34, 0.36);
}

.route-panel__segment.is-fallback {
  border-color: rgba(227, 195, 122, 0.38);
}

.route-panel__segment--empty {
  color: rgba(160, 181, 204, 0.9);
  font-size: 0.7rem;
}

.route-panel__segment-title {
  margin: 0;
  color: rgba(228, 238, 248, 0.94);
  font-size: 0.72rem;
  font-weight: 700;
}

.route-panel__segment-meta {
  margin: 0.12rem 0 0;
  color: rgba(176, 197, 218, 0.92);
  font-size: 0.68rem;
}

.route-panel__segment-provider {
  margin: 0.1rem 0 0;
  color: rgba(150, 173, 198, 0.9);
  font-size: 0.64rem;
}

@keyframes routeSpinner {
  to {
    transform: rotate(360deg);
  }
}

.sidebar__list-wrap {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.94rem;
  border: 1px solid rgba(148, 171, 194, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(13, 25, 38, 0.24), rgba(9, 18, 29, 0.3)),
    rgba(9, 19, 30, 0.16);
  contain: layout paint;
}

.sidebar__list-wrap::before {
  content: "";
  width: 44px;
  height: 5px;
  margin: 0 auto 0.1rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 170, 194, 0.24);
  background:
    linear-gradient(180deg, rgba(196, 216, 236, 0.22), rgba(125, 149, 173, 0.22)),
    rgba(9, 20, 32, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(217, 233, 248, 0.14),
    0 5px 14px rgba(3, 11, 24, 0.2);
  flex: 0 0 auto;
}

.sidebar::-webkit-scrollbar,
.sidebar__list-wrap::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-track,
.sidebar__list-wrap::-webkit-scrollbar-track {
  background: rgba(5, 16, 32, 0.12);
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar__list-wrap::-webkit-scrollbar-thumb {
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
  background: rgba(145, 169, 194, 0.58);
}

.sidebar__empty {
  margin: 0;
  border: 1px dashed rgba(148, 171, 194, 0.34);
  border-radius: 11px;
  padding: 0.66rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  display: grid;
  justify-items: center;
  gap: 0.26rem;
  text-align: center;
  background:
    linear-gradient(165deg, rgba(14, 28, 42, 0.3), rgba(9, 18, 30, 0.34)),
    rgba(7, 16, 26, 0.2);
}

.sidebar__empty-icon {
  width: 1.54rem;
  height: 1.54rem;
  border-radius: 999px;
  border: 1px solid rgba(149, 173, 196, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(202, 220, 237, 0.94);
  font-size: 0.8rem;
}

.sidebar__empty-title {
  color: rgba(233, 242, 249, 0.95);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 620;
  letter-spacing: 0.012em;
}

.sidebar__empty-text {
  color: rgba(174, 194, 214, 0.9);
  font-size: 0.74rem;
  line-height: 1.38;
}

.points-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.98rem;
  contain: content;
}

.point-item {
  opacity: 0;
  transform: translateY(8px);
  animation: pointItemEnter 0.28s ease forwards;
  animation-delay: min(calc(var(--entry-index, 0) * 22ms), 280ms);
  content-visibility: auto;
  contain-intrinsic-size: 148px;
}

.point-item__button {
  width: 100%;
  border: 1px solid rgba(146, 169, 192, 0.2);
  border-radius: 14px;
  padding: 0.74rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(114, 203, 188, 0.08), transparent 36%),
    linear-gradient(165deg, rgba(15, 29, 44, 0.54), rgba(10, 21, 33, 0.62));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    filter 0.22s ease;
  will-change: transform, box-shadow, filter;
  contain: layout paint;
}

.point-item__button:hover {
  transform: translateY(-2px) scale(1.004);
  border-color: rgba(114, 203, 188, 0.62);
  box-shadow: var(--elev-2);
  filter: saturate(1.06) brightness(1.03);
}

.point-item__button:active {
  transform: translateY(0) scale(0.996);
  border-color: rgba(114, 203, 188, 0.54);
  box-shadow: 0 8px 18px rgba(1, 10, 25, 0.32);
}

.point-item__button.is-hovered {
  border-color: rgba(114, 203, 188, 0.6);
  box-shadow:
    0 0 0 1px rgba(114, 203, 188, 0.14),
    var(--elev-2);
  filter: saturate(1.08) brightness(1.04);
}

.point-item__button.is-active {
  border-color: rgba(114, 203, 188, 0.72);
  box-shadow:
    0 0 0 1px rgba(114, 203, 188, 0.24),
    var(--elev-3);
  background:
    radial-gradient(circle at 90% 12%, rgba(114, 203, 188, 0.18), transparent 40%),
    linear-gradient(165deg, rgba(18, 34, 50, 0.94), rgba(11, 23, 35, 0.93));
  filter: saturate(1.12) brightness(1.04);
}

.point-item__layout {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.86rem;
  align-items: stretch;
}

.point-item__thumb-wrap {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid rgba(151, 175, 198, 0.34);
  background:
    linear-gradient(145deg, rgba(33, 54, 77, 0.74), rgba(16, 30, 46, 0.88));
}

.point-item__thumb-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(3, 10, 23, 0.36));
  pointer-events: none;
}

.point-item__thumb {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.34s ease;
}

.point-item__button:hover .point-item__thumb {
  transform: scale(1.09);
}

.point-item__thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 92px;
  display: grid;
  place-items: center;
  color: #dbe6f1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 24% 24%, rgba(114, 203, 188, 0.28), transparent 40%),
    radial-gradient(circle at 84% 84%, rgba(142, 165, 190, 0.28), transparent 38%),
    linear-gradient(145deg, #294765, #1a3045);
}

.point-item__content {
  min-width: 0;
}

.point-item__name {
  display: block;
  margin-bottom: 0.34rem;
  color: rgba(241, 248, 255, 0.96);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 620;
  line-height: 1.24;
}

.point-item__meta {
  display: block;
  margin-bottom: 0.32rem;
  color: rgba(167, 191, 214, 0.88);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.064em;
  text-transform: uppercase;
}

.point-item__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  margin-bottom: 0.3rem;
}

.point-item__fact-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(146, 169, 192, 0.3);
  border-radius: 999px;
  padding: 0.14rem 0.44rem;
  background: rgba(11, 22, 33, 0.46);
  color: #bfd0e0;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.point-item__fact-chip--favorite {
  border-color: rgba(236, 210, 126, 0.46);
  background: rgba(55, 43, 17, 0.6);
  color: #f3e2b5;
}

.point-item__fact-chip--source-public {
  border-color: rgba(124, 177, 224, 0.42);
  background: rgba(22, 44, 62, 0.58);
  color: #d9ecff;
}

.point-item__fact-chip--source-my {
  border-color: rgba(120, 204, 189, 0.46);
  background: rgba(22, 47, 42, 0.62);
  color: #d5efe8;
}

.point-item__description {
  display: block;
  color: rgba(208, 224, 244, 0.9);
  font-size: 0.8rem;
  line-height: 1.48;
}

.point-item__hint {
  display: none;
}

@keyframes pointItemEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-pin-icon,
.leaflet-marker-shadow {
  border: 0;
  background: transparent;
}

.map-pin-icon {
  --pin-scale: 1;
  --pin-lift: 0px;
  --pin-brightness: 1.02;
  --pin-saturate: 1.02;
  --pin-glow-opacity: 0.46;
  --pin-glow-size: 22px;
  --pin-entry-scale: 0.92;
  --pin-entry-opacity: 0;
  --pin-entry-shift-y: 1px;
  width: 28px !important;
  height: 28px !important;
  filter: saturate(var(--pin-saturate)) brightness(var(--pin-brightness));
  opacity: var(--pin-entry-opacity);
  transition:
    filter 0.28s cubic-bezier(0.2, 0.72, 0.24, 1),
    opacity 0.32s cubic-bezier(0.2, 0.72, 0.24, 1);
  will-change: filter, opacity;
  isolation: isolate;
}

.map-root .map-pin-icon {
  transition:
    opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.26s ease;
}

.map-root .map-pin-icon.leaflet-zoom-animated {
  transition:
    transform var(--map-zoom-duration) var(--map-zoom-ease),
    opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.26s ease;
  will-change: transform, opacity, filter;
}

.map-root.is-markers-hidden .map-pin-icon {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.84);
  filter: saturate(0.7);
}

.map-pin-icon.is-mounted {
  --pin-entry-scale: 1;
  --pin-entry-opacity: 1;
  --pin-entry-shift-y: 0px;
}

.map-pin {
  --pin-hue: 356;
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.85), transparent 42%),
    radial-gradient(circle at 62% 70%, hsla(var(--pin-hue), 70%, 52%, 0.6), transparent 58%),
    linear-gradient(150deg, hsl(var(--pin-hue), 78%, 64%), hsl(var(--pin-hue), 58%, 42%));
  border: 1px solid hsla(var(--pin-hue), 70%, 90%, 0.5);
  box-shadow:
    inset 0 -5px 9px hsla(var(--pin-hue), 34%, 30%, 0.22),
    inset 0 2px 3px rgba(255, 255, 255, 0.34),
    0 5px 10px rgba(116, 151, 186, 0.2),
    0 0 0 1px hsla(var(--pin-hue), 90%, 92%, 0.26);
  transform-origin: center center;
  transform:
    translate3d(0, calc(var(--pin-lift) + var(--pin-entry-shift-y)), 0)
    scale(calc(var(--pin-scale) * var(--pin-entry-scale) * var(--map-marker-zoom-scale, 1)));
  transition:
    transform 0.28s cubic-bezier(0.2, 0.72, 0.24, 1),
    filter 0.28s cubic-bezier(0.2, 0.72, 0.24, 1);
  will-change: transform, filter;
}

.map-pin__shadow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  filter: blur(3px);
  background: radial-gradient(circle, rgba(187, 210, 234, 0.5), rgba(187, 210, 234, 0) 72%);
  transform: translateY(7px) scale(0.8);
  opacity: 0.2;
  z-index: -1;
}

.map-pin__core {
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #dfeaff 62%, rgba(219, 233, 255, 0.65) 100%);
  box-shadow:
    0 0 0 3px rgba(250, 253, 255, 0.34),
    0 0 14px rgba(248, 252, 255, 0.52),
    0 2px 3px rgba(120, 150, 180, 0.18);
  opacity: 0.85;
}

.map-pin__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--pin-glow-size);
  height: var(--pin-glow-size);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      circle,
      hsla(var(--pin-hue), 70%, 76%, 0.6) 0%,
      hsla(var(--pin-hue), 62%, 52%, 0.3) 46%,
      hsla(var(--pin-hue), 88%, 48%, 0) 78%
    );
  filter: blur(2px);
  opacity: var(--pin-glow-opacity);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.72, 0.24, 1),
    filter 0.3s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.map-pin__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.75);
  background: hsla(var(--pin-hue), 62%, 68%, 0.52);
  box-shadow: 0 0 0 0 hsla(var(--pin-hue), 60%, 66%, 0.28);
  opacity: 0;
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.72, 0.24, 1);
}

.map-pin-icon--private {
  --pin-hue: 262 !important;
}

.map-pin-icon--pending {
  --pin-hue: 43 !important;
}

.map-pin-icon--scope-public .map-pin {
  box-shadow:
    inset 0 -5px 9px hsla(var(--pin-hue), 34%, 30%, 0.22),
    inset 0 2px 3px rgba(255, 255, 255, 0.34),
    0 5px 10px rgba(116, 151, 186, 0.2),
    0 0 0 1px hsla(var(--pin-hue), 90%, 92%, 0.26),
    0 0 0 2px rgba(112, 175, 220, 0.18);
}

.map-pin-icon--scope-my .map-pin {
  box-shadow:
    inset 0 -5px 9px hsla(var(--pin-hue), 34%, 30%, 0.22),
    inset 0 2px 3px rgba(255, 255, 255, 0.34),
    0 5px 10px rgba(116, 151, 186, 0.2),
    0 0 0 1px hsla(var(--pin-hue), 90%, 92%, 0.26),
    0 0 0 2px rgba(114, 203, 188, 0.24);
}

.map-pin-icon--draft {
  --pin-scale: 1.12;
  --pin-lift: -2px;
}

.map-pin-icon--draft .map-pin__pulse {
  opacity: 0.72;
  transform: translate(-50%, -50%) scale(0.92);
  animation: mapPinPulse 1.25s ease-out infinite;
}

.map-pin-icon--draft .map-pin {
  filter:
    drop-shadow(0 8px 14px rgba(122, 151, 184, 0.24))
    drop-shadow(0 14px 20px rgba(122, 151, 184, 0.16))
    drop-shadow(0 0 18px hsla(var(--pin-hue), 62%, 68%, 0.32));
}

.map-pin-icon:hover,
.map-pin-icon.is-hovered {
  --pin-scale: 1.12;
  --pin-lift: -2px;
  --pin-brightness: 1.08;
  --pin-saturate: 1.08;
  --pin-glow-opacity: 0.82;
  --pin-glow-size: 30px;
}

.map-pin-icon:active {
  --pin-scale: 1.06;
  --pin-lift: -1px;
  --pin-brightness: 1.05;
  --pin-glow-opacity: 0.8;
}

.map-pin-icon:hover .map-pin,
.map-pin-icon.is-hovered .map-pin {
  filter:
    drop-shadow(0 7px 12px rgba(123, 154, 188, 0.24))
    drop-shadow(0 12px 18px rgba(123, 154, 188, 0.16))
    drop-shadow(0 0 18px hsla(var(--pin-hue), 62%, 68%, 0.3));
}

.map-pin-icon:hover .map-pin__glow,
.map-pin-icon.is-hovered .map-pin__glow {
  transform: translate(-50%, -50%) scale(1.14);
  filter: blur(3.2px);
}

.map-pin-icon:hover .map-pin__pulse,
.map-pin-icon.is-hovered .map-pin__pulse {
  opacity: 0.78;
  transform: translate(-50%, -50%) scale(0.92);
  animation: mapPinPulse 1.6s ease-out infinite;
}

.map-pin-icon.is-active {
  --pin-scale: 1.18;
  --pin-lift: -3px;
  --pin-brightness: 1.14;
  --pin-saturate: 1.16;
  --pin-glow-opacity: 0.98;
  --pin-glow-size: 34px;
}

.map-pin-icon.is-active .map-pin {
  filter:
    drop-shadow(0 9px 14px rgba(116, 148, 184, 0.28))
    drop-shadow(0 16px 22px rgba(116, 148, 184, 0.2))
    drop-shadow(0 0 22px hsla(var(--pin-hue), 64%, 72%, 0.34));
}

.map-pin-icon.is-active .map-pin__glow {
  animation: mapPinGlowBreath 1.8s ease-in-out infinite;
}

.map-pin-icon.is-active .map-pin__pulse {
  opacity: 0.85;
  transform: translate(-50%, -50%) scale(0.98);
  animation: none;
}

.map-pin-icon.is-spotlight .map-pin {
  filter:
    drop-shadow(0 10px 16px rgba(114, 148, 186, 0.32))
    drop-shadow(0 18px 24px rgba(114, 148, 186, 0.22))
    drop-shadow(0 0 24px hsla(var(--pin-hue), 66%, 74%, 0.38));
}

.map-pin-icon.is-spotlight .map-pin__pulse {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
  animation-name: mapPinSpotlightPulse;
  animation-duration: var(--pin-spotlight-cycle-ms, 600ms);
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: var(--pin-spotlight-cycles, 2);
  animation-fill-mode: both;
}

.map-pin-icon.map-pin-icon--pulse {
  --pin-scale: 1.2;
  --pin-lift: -3px;
  --pin-brightness: 1.12;
  --pin-saturate: 1.14;
  --pin-glow-opacity: 0.96;
}

.map-pin-icon.map-pin-icon--pulse .map-pin__pulse {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: mapPinSpotlightPulse 720ms cubic-bezier(0.2, 0.8, 0.2, 1) 2 both;
}

.map-pin-icon:focus-visible .map-pin__glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.16);
  filter: blur(3.3px);
}

@keyframes mapPinPulse {
  0% {
    box-shadow:
      0 0 0 0 hsla(var(--pin-hue), 60%, 68%, 0.56),
      0 0 0 0 hsla(var(--pin-hue), 60%, 68%, 0.34);
  }

  60% {
    box-shadow:
      0 0 0 18px hsla(var(--pin-hue), 60%, 68%, 0.1),
      0 0 0 34px hsla(var(--pin-hue), 60%, 68%, 0);
  }

  100% {
    box-shadow:
      0 0 0 28px hsla(var(--pin-hue), 60%, 68%, 0),
      0 0 0 42px hsla(var(--pin-hue), 60%, 68%, 0);
  }
}

@keyframes mapPinSpotlightPulse {
  0% {
    box-shadow:
      0 0 0 0 hsla(var(--pin-hue), 62%, 68%, 0.42),
      0 0 0 0 hsla(var(--pin-hue), 62%, 68%, 0.26);
    transform: translate(-50%, -50%) scale(0.92);
  }

  55% {
    box-shadow:
      0 0 0 20px hsla(var(--pin-hue), 62%, 68%, 0.14),
      0 0 0 36px hsla(var(--pin-hue), 62%, 68%, 0);
    transform: translate(-50%, -50%) scale(1.05);
  }

  100% {
    box-shadow:
      0 0 0 32px hsla(var(--pin-hue), 62%, 68%, 0),
      0 0 0 42px hsla(var(--pin-hue), 62%, 68%, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes mapPinGlowBreath {
  0%,
  100% {
    opacity: 0.84;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.14);
  }
}

.route-line-halo {
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-opacity 0.34s ease;
}

.route-line-main {
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    stroke-opacity 0.32s ease,
    stroke-dashoffset 0.32s ease;
}

.route-line-main--car {
  stroke: #72cbbc;
}

.route-line-main--walk {
  stroke: #7fc9f3;
}

.route-line-main--flight {
  stroke: #9ab4ff;
}

.route-line-main.is-fallback {
  stroke-dasharray: 7 7;
}

.route-point-icon {
  pointer-events: none;
}

.route-point {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 232, 246, 0.82);
  box-shadow:
    0 10px 18px rgba(2, 11, 28, 0.44),
    0 0 0 4px rgba(31, 57, 79, 0.24);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: #f0f7ff;
  background: linear-gradient(145deg, #345670, #1d3346);
}

.route-point--start {
  background: linear-gradient(145deg, #4da888, #2b6f5f);
}

.route-point--mid {
  background: linear-gradient(145deg, #3f6993, #294a6f);
}

.route-point--end {
  background: linear-gradient(145deg, #6b84ba, #455f92);
}

.route-point__label {
  line-height: 1;
}

.route-direction-arrow-icon {
  pointer-events: none;
}

.route-direction-arrow {
  --route-arrow-rotation: 0deg;
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(216, 232, 246, 0.66);
  background: rgba(10, 22, 35, 0.74);
  box-shadow: 0 4px 12px rgba(2, 10, 24, 0.44);
  transform: rotate(var(--route-arrow-rotation));
  position: relative;
}

.route-direction-arrow::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid #d9e8f7;
}

.route-direction-arrow--car::before {
  border-left-color: #7de0cf;
}

.route-direction-arrow--walk::before {
  border-left-color: #8fd8ff;
}

.route-direction-arrow--flight::before {
  border-left-color: #b4c9ff;
}

.map-root.is-route-drawing .route-line-halo {
  animation: routeHaloReveal 0.76s cubic-bezier(0.2, 0.72, 0.24, 1) 1;
}

.map-root.is-route-drawing .route-line-main {
  animation: routeMainReveal 0.84s cubic-bezier(0.2, 0.72, 0.24, 1) 1;
}

@keyframes routeHaloReveal {
  0% {
    stroke-opacity: 0.06;
  }

  100% {
    stroke-opacity: 0.46;
  }
}

@keyframes routeMainReveal {
  0% {
    stroke-opacity: 0.08;
    stroke-dashoffset: 30;
  }

  100% {
    stroke-opacity: 0.95;
    stroke-dashoffset: 0;
  }
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-popup);
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  transition:
    opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    backdrop-filter 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity;
  contain: paint;
}

.popup-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(38, 60, 82, 0.14), rgba(7, 15, 23, 0.02) 56%);
  opacity: 0.6;
}

.popup-backdrop.is-open {
  pointer-events: auto;
  opacity: 1;
  backdrop-filter: blur(1.6px) saturate(1.03);
  -webkit-backdrop-filter: blur(1.6px) saturate(1.03);
}

.popup-card {
  --popup-arrow-x: 50%;
  position: fixed;
  z-index: calc(var(--z-popup) + 1);
  left: 50vw;
  top: 50vh;
  width: min(520px, calc(100vw - 1rem));
  max-height: min(80vh, 640px);
  overflow: hidden auto;
  border: 1px solid rgba(182, 206, 228, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(30, 49, 69, 0.86), rgba(14, 28, 42, 0.9)),
    rgba(16, 30, 45, 0.66);
  backdrop-filter: var(--blur-3);
  -webkit-backdrop-filter: var(--blur-3);
  box-shadow: var(--shadow-popup);
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.986);
  transform-origin: center;
  isolation: isolate;
  contain: layout paint;
  transition:
    opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.26s ease;
  will-change: transform, opacity;
}

.popup-card[data-map-motion="1"] {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 26px 64px rgba(1, 8, 20, 0.56),
    0 10px 26px rgba(2, 10, 24, 0.34);
}

.popup-card[data-map-motion="1"]::before,
.popup-card[data-map-motion="1"] .popup-card__close,
.popup-card[data-map-motion="1"] .popup-card__media,
.popup-card[data-map-motion="1"] .popup-card__content > * {
  transition: none !important;
}

.popup-card.is-preview {
  width: min(380px, calc(100vw - 1rem));
  max-height: min(56vh, 360px);
}

.popup-card__preview-open {
  justify-self: start;
  min-height: 32px;
  padding: 0.38rem 0.82rem;
  border-radius: 10px;
  font-size: 0.74rem;
}

.popup-card.is-preview .popup-card__content > * {
  display: none;
}

.popup-card.is-preview .popup-card__header,
.popup-card.is-preview #popup-description,
.popup-card.is-preview #popup-coordinates,
.popup-card.is-preview .popup-card__preview-open {
  display: block;
}

.popup-card.is-preview .popup-card__preview-open {
  display: inline-flex;
}

.popup-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(244, 251, 255, 0.2), rgba(244, 251, 255, 0.02) 32%, rgba(244, 251, 255, 0) 62%),
    radial-gradient(circle at 74% 8%, rgba(178, 203, 226, 0.24), rgba(178, 203, 226, 0) 38%),
    radial-gradient(circle at 50% 116%, rgba(110, 150, 186, 0.24), rgba(110, 150, 186, 0) 58%);
  opacity: 0.38;
  transition: opacity 0.34s ease;
}

.popup-card::-webkit-scrollbar {
  width: 10px;
}

.popup-card::-webkit-scrollbar-track {
  background: rgba(5, 16, 32, 0.08);
}

.popup-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  background: rgba(145, 169, 194, 0.56);
}

.popup-card::after {
  content: "";
  position: absolute;
  left: var(--popup-arrow-x, 50%);
  bottom: -9px;
  width: 16px;
  height: 16px;
  border-right: 1px solid rgba(154, 176, 199, 0.28);
  border-bottom: 1px solid rgba(154, 176, 199, 0.28);
  background: rgba(12, 24, 36, 0.92);
  transform: translateX(-50%) rotate(45deg);
}

.popup-card.popup-card--below::after {
  top: -9px;
  bottom: auto;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid rgba(154, 176, 199, 0.28);
  border-top: 1px solid rgba(154, 176, 199, 0.28);
}

.popup-card.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow:
    var(--shadow-popup),
    0 0 0 1px rgba(188, 211, 232, 0.28),
    inset 0 1px 0 rgba(245, 252, 255, 0.16);
}

.popup-card.is-switching .popup-card__content,
.popup-card.is-switching .popup-card__media {
  opacity: 0.78;
  transform: translate3d(0, 4px, 0) scale(0.996);
}

.popup-card__close,
.popup-card__media,
.popup-card__content > * {
  opacity: 0;
  transition:
    opacity 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.popup-card__close {
  transform: translate3d(0, -7px, 0) scale(0.96);
}

.popup-card__media {
  transform: translate3d(0, 10px, 0) scale(1.02);
}

.popup-card__content > * {
  transform: translate3d(0, 12px, 0) scale(0.99);
}

.popup-card__media-glow {
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.popup-card.is-open .popup-card__close,
.popup-card.is-open .popup-card__media,
.popup-card.is-open .popup-card__content > * {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.popup-card.is-open .popup-card__media-glow {
  opacity: 0.92;
  transform: scale(1);
}

.popup-card.is-open .popup-card__close {
  transition-delay: 0.02s;
}

.popup-card.is-open .popup-card__media {
  transition-delay: 0.03s;
}

.popup-card.is-open .popup-card__content > *:nth-child(1) {
  transition-delay: 0.04s;
}

.popup-card.is-open .popup-card__content > *:nth-child(2) {
  transition-delay: 0.06s;
}

.popup-card.is-open .popup-card__content > *:nth-child(3) {
  transition-delay: 0.08s;
}

.popup-card.is-open .popup-card__content > *:nth-child(4) {
  transition-delay: 0.1s;
}

.popup-card.is-open .popup-card__content > *:nth-child(5) {
  transition-delay: 0.12s;
}

.popup-card.is-open .popup-card__content > *:nth-child(6) {
  transition-delay: 0.14s;
}

.popup-card.is-open .popup-card__content > *:nth-child(7) {
  transition-delay: 0.16s;
}

.popup-card.is-open .popup-card__content > *:nth-child(8) {
  transition-delay: 0.18s;
}

.popup-card.is-open .popup-card__content > *:nth-child(9) {
  transition-delay: 0.2s;
}

.popup-card__close {
  position: absolute;
  top: 0.78rem;
  right: 0.78rem;
  z-index: 3;
  width: 2.16rem;
  height: 2.16rem;
  border: 1px solid rgba(159, 181, 203, 0.34);
  border-radius: 10px;
  background: rgba(12, 24, 36, 0.76);
  color: #deebf6;
  font-size: 0.94rem;
  cursor: pointer;
  transition:
    opacity 0.24s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.popup-card__close:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(114, 203, 188, 0.56);
  background: rgba(14, 28, 41, 0.86);
  box-shadow: 0 10px 18px rgba(1, 10, 26, 0.36);
}

.popup-card__media {
  position: relative;
  width: 100%;
  height: clamp(170px, 23vh, 260px);
  overflow: hidden;
  border-bottom: 1px solid rgba(178, 203, 226, 0.3);
  background: linear-gradient(155deg, rgba(24, 40, 56, 0.8), rgba(12, 24, 36, 0.92));
  contain: layout paint;
}

.popup-card.is-loading .popup-card__media,
.popup-card.is-error .popup-card__media {
  display: none;
}

.popup-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244, 251, 255, 0.15), rgba(244, 251, 255, 0.02) 34%, rgba(4, 11, 27, 0.54)),
    linear-gradient(120deg, rgba(114, 203, 188, 0.2), rgba(114, 203, 188, 0) 48%);
  pointer-events: none;
}

.popup-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.34s cubic-bezier(0.16, 0.72, 0.22, 1);
}

.popup-card__image.is-ready {
  opacity: 1;
  transform: scale(1.01);
}

.popup-card.is-open .popup-card__image {
  transform: scale(1.01);
}

.popup-card.is-open .popup-card__media:hover .popup-card__image {
  transform: scale(1.03);
}

.popup-card__media-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 52, 70, 0.74), rgba(16, 29, 42, 0.86));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.popup-card__media-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(224, 239, 255, 0.2) 48%,
    rgba(255, 255, 255, 0) 100%
  );
}

.popup-card__media-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.56rem;
  padding: 0.8rem;
  text-align: center;
  color: rgba(211, 224, 236, 0.94);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(22, 35, 49, 0.62), rgba(10, 21, 33, 0.82));
}

.popup-card__media-fallback-text {
  display: block;
  max-width: min(86%, 320px);
  line-height: 1.35;
}

.popup-card__media-retry {
  min-height: 30px;
  padding: 0.34rem 0.74rem;
  border-radius: 10px;
  font-size: 0.72rem;
}

.popup-card__media.is-loading .popup-card__media-skeleton {
  opacity: 1;
}

.popup-card__media.is-loading .popup-card__media-skeleton::after {
  animation: popupMediaSkeletonShimmer 1.15s linear infinite;
}

.popup-card__media.is-ready .popup-card__media-skeleton,
.popup-card__media.is-error .popup-card__media-skeleton {
  opacity: 0;
  pointer-events: none;
}

.popup-card__media-glow {
  position: absolute;
  right: -14%;
  bottom: -28%;
  width: 220px;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(114, 203, 188, 0.22), rgba(114, 203, 188, 0));
}

.popup-card__content {
  display: grid;
  gap: 0.72rem;
  padding: 1.08rem 1.16rem 1.2rem;
  min-height: 220px;
  transition:
    opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
  contain: layout paint;
}

.popup-card__state {
  display: grid;
  gap: 0.58rem;
  padding: 1.08rem 1.16rem 1.2rem;
  min-height: 220px;
}

.popup-card__state--loading {
  align-content: start;
}

.popup-skeleton {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(28, 47, 66, 0.64), rgba(11, 24, 36, 0.76));
}

.popup-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(224, 239, 255, 0.18) 44%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: popupSkeletonShimmer 1.05s linear infinite;
}

.popup-skeleton--media {
  height: 156px;
}

.popup-skeleton--title {
  height: 26px;
  width: min(88%, 340px);
}

.popup-skeleton--chips {
  height: 34px;
  width: min(74%, 280px);
}

.popup-skeleton--text {
  height: 14px;
  width: 100%;
}

.popup-skeleton--text-short {
  width: min(64%, 240px);
}

.popup-card__state--error {
  align-content: center;
  justify-items: start;
  border-top: 1px solid rgba(166, 187, 210, 0.22);
  background: linear-gradient(168deg, rgba(28, 46, 65, 0.4), rgba(10, 21, 33, 0.6));
}

.popup-card__error-message {
  margin: 0;
  color: #d5e2ef;
  font-size: 0.86rem;
  line-height: 1.45;
}

.popup-card__retry {
  min-width: 128px;
}

.popup-card__header {
  display: grid;
  gap: 0.24rem;
}

.popup-card__country {
  margin: 0;
  color: #c9d8e7;
  font-size: 0.78rem;
  font-weight: 600;
}

.popup-card__region-line {
  margin: 0;
  color: #97c8bd;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popup-card__title {
  margin: 0 2.8rem 0 0;
  color: #ecf2f8;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1vw + 0.74rem, 1.42rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.popup-card__title-main {
  display: inline;
}

.popup-card__scope-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.44rem;
  border: 1px solid rgba(155, 179, 203, 0.3);
  border-radius: 999px;
  padding: 0.08rem 0.48rem;
  vertical-align: middle;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.popup-card__scope-badge--public {
  border-color: rgba(123, 177, 224, 0.42);
  color: #d9ecff;
  background: rgba(22, 44, 62, 0.54);
}

.popup-card__scope-badge--my {
  border-color: rgba(120, 204, 189, 0.44);
  color: #d6efe8;
  background: rgba(22, 47, 42, 0.54);
}

.popup-card__description {
  margin: 0;
  color: #c8d5e3;
  font-size: 0.88rem;
  line-height: 1.48;
  max-height: 8rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.2rem;
}

.popup-card__description::-webkit-scrollbar {
  width: 8px;
}

.popup-card__description::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(145, 169, 194, 0.52);
}

.popup-card__section {
  display: grid;
  gap: 0.44rem;
}

.popup-card__section-title {
  margin: 0;
  color: #9ab2c9;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popup-card__summary {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.44rem;
}

.popup-summary__item {
  display: grid;
  gap: 0.16rem;
  border: 1px solid rgba(147, 170, 194, 0.28);
  border-radius: 11px;
  padding: 0.42rem 0.52rem;
  background: rgba(11, 22, 33, 0.44);
}

.popup-summary__label {
  color: #a9bacd;
  font-size: 0.68rem;
  font-weight: 600;
}

.popup-summary__value {
  color: #e9f0f7;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.popup-summary__value[data-empty-hint] {
  color: #d8e4f0;
  text-decoration: underline dotted rgba(168, 188, 208, 0.8);
  text-underline-offset: 2px;
  cursor: help;
}

.popup-card__highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.popup-highlight {
  border: 1px solid rgba(146, 169, 194, 0.3);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  background: rgba(11, 23, 35, 0.5);
  color: #c0d1e2;
  font-size: 0.74rem;
  font-weight: 600;
}

.popup-highlight.is-empty {
  border-style: dashed;
  color: #a8bbcf;
}

.popup-card__fact {
  margin: 0;
  border: 1px solid rgba(114, 203, 188, 0.26);
  border-radius: 12px;
  padding: 0.48rem 0.58rem;
  background: linear-gradient(170deg, rgba(17, 33, 45, 0.44), rgba(10, 20, 31, 0.54));
  color: #c3ddd9;
  font-size: 0.81rem;
  line-height: 1.45;
}

.popup-card__fact.is-empty {
  border-style: dashed;
  color: #a8bbcf;
}

@keyframes popupSkeletonShimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes popupMediaSkeletonShimmer {
  to {
    transform: translateX(100%);
  }
}

.popup-card__coordinates {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0;
  border: 1px solid rgba(148, 171, 194, 0.32);
  border-radius: 10px;
  padding: 0.36rem 0.56rem;
  background: rgba(11, 22, 33, 0.56);
  color: #a8b9cc;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.popup-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.46rem;
}

.popup-card__action {
  min-height: 2.3rem;
  font-size: 0.73rem;
  font-weight: 700;
}

.popup-card__action:disabled {
  opacity: 0.64;
  cursor: not-allowed;
  transform: none;
}

.popup-card__action--route {
  grid-column: 1 / -1;
}

.popup-card__action--favorite.is-favorite {
  border-color: rgba(236, 210, 126, 0.56);
  background: rgba(58, 44, 16, 0.58);
  color: #f3e2b5;
}

.popup-card__action--share {
  border-color: rgba(141, 164, 188, 0.28);
  color: #a9bfd3;
}

.popup-feedback {
  gap: 0.5rem;
}

.popup-feedback__status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.popup-feedback__status-btn {
  min-height: 2.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.popup-feedback__status-btn:hover {
  transform: translateY(-1px) scale(1.01);
}

.popup-feedback__status-btn.is-active {
  border-color: rgba(114, 203, 188, 0.62);
  background:
    linear-gradient(158deg, rgba(21, 46, 56, 0.86), rgba(10, 24, 37, 0.9)),
    rgba(11, 24, 36, 0.68);
  color: #d7f0ec;
  box-shadow:
    0 10px 20px rgba(2, 10, 24, 0.28),
    0 0 0 1px rgba(114, 203, 188, 0.2);
}

.popup-feedback__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  padding: 0.26rem 0.32rem;
  border: 1px solid rgba(149, 172, 195, 0.28);
  border-radius: 12px;
  background: rgba(11, 22, 33, 0.42);
}

.popup-feedback__star {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(145, 169, 194, 0.24);
  border-radius: 10px;
  background: rgba(8, 19, 31, 0.5);
  color: rgba(147, 169, 192, 0.96);
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.popup-feedback__star.is-on {
  color: #ffd987;
  border-color: rgba(244, 215, 132, 0.52);
  background: linear-gradient(165deg, rgba(74, 60, 29, 0.62), rgba(32, 25, 11, 0.72));
}

.popup-feedback__star.is-hover {
  box-shadow:
    0 0 0 1px rgba(244, 215, 132, 0.32),
    0 10px 18px rgba(5, 14, 27, 0.24);
  transform: translateY(-1px) scale(1.04);
}

.popup-feedback__star:hover {
  transform: translateY(-1px) scale(1.04);
}

.popup-feedback__star:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.popup-feedback__star:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.popup-feedback__stars.is-pop .popup-feedback__star.is-on {
  animation: popupRatingPop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.popup-feedback__comment-label {
  margin-top: 0.1rem;
}

.popup-feedback__comment {
  width: 100%;
  min-height: 74px;
  max-height: 122px;
  resize: vertical;
  border: 1px solid rgba(150, 174, 198, 0.28);
  border-radius: 11px;
  padding: 0.5rem 0.58rem;
  background: rgba(8, 19, 31, 0.58);
  color: rgba(228, 238, 247, 0.95);
  font-family: inherit;
  font-size: 0.83rem;
  line-height: 1.45;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.popup-feedback__comment:focus-visible {
  outline: none;
  border-color: rgba(114, 203, 188, 0.62);
  box-shadow: var(--focus-ring);
}

.popup-feedback__save {
  min-height: 2.28rem;
  width: 100%;
}

.popup-feedback__save.is-saved {
  animation: popupSavePulse 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.popup-feedback__auth-hint {
  margin: 0.1rem 0 0;
  padding: 0.42rem 0.54rem;
  border: 1px solid rgba(173, 196, 219, 0.26);
  border-radius: 10px;
  background:
    linear-gradient(168deg, rgba(19, 33, 46, 0.58), rgba(9, 20, 31, 0.66)),
    rgba(8, 19, 30, 0.44);
  color: rgba(191, 212, 232, 0.96);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
}

.popup-community {
  gap: 0.52rem;
}

.popup-community__summary {
  display: grid;
  gap: 0.08rem;
}

.popup-community__average {
  margin: 0;
  color: #eaf2f8;
  font-family: var(--font-display);
  font-size: 1.52rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.popup-community__count {
  margin: 0;
  color: #9fb4c9;
  font-size: 0.75rem;
  font-weight: 600;
}

.popup-community__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
}

.popup-community__review {
  border: 1px solid rgba(148, 171, 194, 0.24);
  border-radius: 11px;
  padding: 0.44rem 0.54rem;
  background:
    linear-gradient(164deg, rgba(15, 28, 41, 0.44), rgba(9, 20, 30, 0.52)),
    rgba(9, 19, 30, 0.34);
  box-shadow: 0 8px 18px rgba(2, 10, 24, 0.2);
}

.popup-community__review.is-empty {
  border-style: dashed;
  color: #a8bbcf;
  font-size: 0.75rem;
}

.popup-community__review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.popup-community__review-author {
  color: #dce8f2;
  font-size: 0.74rem;
  font-weight: 700;
}

.popup-community__review-stars {
  color: #ffd987;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.popup-community__review-text {
  margin: 0.24rem 0 0;
  color: #bed0e0;
  font-size: 0.74rem;
  line-height: 1.42;
}

.popup-community__review-date {
  display: inline-block;
  margin-top: 0.24rem;
  color: #8fa6bc;
  font-size: 0.66rem;
}

@keyframes popupRatingPop {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.12);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes popupSavePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(114, 203, 188, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(114, 203, 188, 0);
  }
}

.popup-card__footer {
  display: grid;
  gap: 0.38rem;
  padding-top: 0.12rem;
  border-top: 1px solid rgba(153, 176, 198, 0.2);
}

.popup-card__sources-line {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.popup-card__sources-label {
  color: #a9bfd3;
  font-size: 0.72rem;
  font-weight: 700;
}

.popup-card__sources {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.popup-card__source-link {
  color: #c6d9eb;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.popup-card__source-link:hover {
  color: #9bd8ce;
  text-decoration: underline;
}

.popup-card__source-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

.popup-card__source-separator {
  color: #8fa8be;
  font-size: 0.72rem;
  line-height: 1;
}

.popup-card__sources-info {
  width: 1.3rem;
  height: 1.3rem;
  padding: 0;
  border: 1px solid rgba(150, 172, 194, 0.38);
  border-radius: 999px;
  background: rgba(11, 22, 33, 0.5);
  color: #b8cee2;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.popup-card__sources-info:hover {
  border-color: rgba(114, 203, 188, 0.52);
  color: #d6ebff;
}

.popup-card__updated {
  margin: 0;
  color: #8fa6bc;
  font-size: 0.72rem;
  font-weight: 600;
}

.popup-card__link-row {
  margin: 0;
}

.popup-card__link {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.popup-card__link:hover {
  color: #8dd9cb;
}

#sidebar-close,
#smart-filters-close,
.travel-hub__toggle,
.near-me-panel__close,
.add-place-drawer__close,
.popup-card__close {
  padding: 0.32rem;
}

.popup-card__close {
  top: 0.86rem;
  right: 0.86rem;
}

.sidebar,
.sidebar__list-wrap,
.travel-guide__cards,
.travel-planner__saved,
.near-me-panel__list,
.add-place-form,
.smart-filters__body,
.popup-card,
.popup-card__description,
.popup-card__sources-line {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.travel-guide__cards,
.travel-planner__saved,
.near-me-panel__list,
.add-place-form,
.smart-filters__body,
.popup-card__description,
.popup-card__sources-line {
  scrollbar-gutter: stable;
}

.sidebar::-webkit-scrollbar,
.sidebar__list-wrap::-webkit-scrollbar,
.travel-guide__cards::-webkit-scrollbar,
.travel-planner__saved::-webkit-scrollbar,
.near-me-panel__list::-webkit-scrollbar,
.add-place-form::-webkit-scrollbar,
.smart-filters__body::-webkit-scrollbar,
.popup-card::-webkit-scrollbar,
.popup-card__description::-webkit-scrollbar,
.popup-card__sources-line::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.sidebar::-webkit-scrollbar-track,
.sidebar__list-wrap::-webkit-scrollbar-track,
.travel-guide__cards::-webkit-scrollbar-track,
.travel-planner__saved::-webkit-scrollbar-track,
.near-me-panel__list::-webkit-scrollbar-track,
.add-place-form::-webkit-scrollbar-track,
.smart-filters__body::-webkit-scrollbar-track,
.popup-card::-webkit-scrollbar-track,
.popup-card__description::-webkit-scrollbar-track,
.popup-card__sources-line::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--scrollbar-track);
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar__list-wrap::-webkit-scrollbar-thumb,
.travel-guide__cards::-webkit-scrollbar-thumb,
.travel-planner__saved::-webkit-scrollbar-thumb,
.near-me-panel__list::-webkit-scrollbar-thumb,
.add-place-form::-webkit-scrollbar-thumb,
.smart-filters__body::-webkit-scrollbar-thumb,
.popup-card::-webkit-scrollbar-thumb,
.popup-card__description::-webkit-scrollbar-thumb,
.popup-card__sources-line::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  background-color: var(--scrollbar-thumb);
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar__list-wrap::-webkit-scrollbar-thumb:hover,
.travel-guide__cards::-webkit-scrollbar-thumb:hover,
.travel-planner__saved::-webkit-scrollbar-thumb:hover,
.near-me-panel__list::-webkit-scrollbar-thumb:hover,
.add-place-form::-webkit-scrollbar-thumb:hover,
.smart-filters__body::-webkit-scrollbar-thumb:hover,
.popup-card::-webkit-scrollbar-thumb:hover,
.popup-card__description::-webkit-scrollbar-thumb:hover,
.popup-card__sources-line::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

.sidebar::-webkit-scrollbar-corner,
.sidebar__list-wrap::-webkit-scrollbar-corner,
.travel-guide__cards::-webkit-scrollbar-corner,
.travel-planner__saved::-webkit-scrollbar-corner,
.near-me-panel__list::-webkit-scrollbar-corner,
.add-place-form::-webkit-scrollbar-corner,
.smart-filters__body::-webkit-scrollbar-corner,
.popup-card::-webkit-scrollbar-corner,
.popup-card__description::-webkit-scrollbar-corner,
.popup-card__sources-line::-webkit-scrollbar-corner {
  background: transparent;
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-tooltip) + 10);
  pointer-events: none;
}

.onboarding-overlay__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 45% 44%, rgba(9, 18, 30, 0.16), rgba(7, 14, 24, 0.36)),
    linear-gradient(180deg, rgba(8, 16, 28, 0.14), rgba(6, 13, 22, 0.2));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.onboarding-panel {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100vw - 1rem));
  border: 1px solid rgba(168, 190, 213, 0.32);
  border-radius: 14px;
  padding: 0.78rem 0.82rem 0.72rem;
  background:
    linear-gradient(154deg, rgba(25, 42, 61, 0.9), rgba(11, 23, 35, 0.92)),
    rgba(9, 20, 31, 0.88);
  box-shadow:
    0 18px 38px rgba(2, 10, 25, 0.52),
    inset 0 1px 0 rgba(235, 246, 255, 0.08);
  pointer-events: auto;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation: onboardingPanelIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.onboarding-panel__step {
  margin: 0;
  color: rgba(151, 174, 198, 0.9);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.onboarding-panel__title {
  margin: 0.3rem 0 0;
  color: #e8f1fa;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.24;
}

.onboarding-panel__text {
  margin: 0.4rem 0 0;
  color: rgba(198, 216, 236, 0.96);
  font-size: 0.78rem;
  line-height: 1.45;
}

.onboarding-panel__actions {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.onboarding-panel__btn {
  min-height: 34px;
  font-size: 0.74rem;
}

.onboarding-panel__checkbox-row {
  margin-top: 0.54rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(183, 203, 224, 0.92);
  font-size: 0.72rem;
  cursor: pointer;
}

.onboarding-panel__checkbox {
  width: 0.92rem;
  height: 0.92rem;
  accent-color: #72cbbc;
}

.onboarding-focus {
  position: relative;
  z-index: calc(var(--z-tooltip) + 6) !important;
  box-shadow:
    0 0 0 2px rgba(114, 203, 188, 0.68),
    0 0 0 8px rgba(114, 203, 188, 0.16),
    0 16px 36px rgba(3, 11, 25, 0.44) !important;
}

.onboarding-focus-soft {
  position: relative;
  z-index: calc(var(--z-tooltip) + 5) !important;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(114, 203, 188, 0.5),
    0 0 0 6px rgba(114, 203, 188, 0.14) !important;
}

.map-pin-icon.onboarding-focus-marker {
  z-index: calc(var(--z-tooltip) + 5) !important;
  transform: translateY(-1px) scale(1.08);
}

.map-pin-icon.onboarding-focus-marker .map-pin__glow {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1.26) !important;
  filter: saturate(1.22);
}

.map-pin-icon.onboarding-focus-marker .map-pin__pulse {
  opacity: 0.78 !important;
  animation-duration: 1.12s !important;
}

.user-banned-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-tooltip) + 14);
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: none;
}

.user-banned-overlay.is-visible {
  pointer-events: auto;
}

.user-banned-overlay__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(7, 17, 29, 0.52), rgba(6, 13, 22, 0.82)),
    linear-gradient(180deg, rgba(9, 19, 30, 0.48), rgba(7, 14, 23, 0.68));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.user-banned-overlay__panel {
  position: relative;
  width: min(560px, calc(100vw - 1.6rem));
  border-radius: 16px;
  border: 1px solid rgba(208, 122, 146, 0.42);
  background:
    linear-gradient(160deg, rgba(42, 18, 29, 0.94), rgba(22, 9, 16, 0.95)),
    rgba(16, 7, 12, 0.9);
  box-shadow:
    0 26px 64px rgba(3, 9, 19, 0.64),
    inset 0 1px 0 rgba(255, 227, 235, 0.08);
  padding: 1rem 1.08rem 1.02rem;
  text-align: center;
  pointer-events: auto;
}

.user-banned-overlay__title {
  margin: 0;
  color: #ffd9e1;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.2;
}

.user-banned-overlay__message {
  margin: 0.66rem 0 0;
  color: rgba(247, 224, 230, 0.98);
  font-size: 0.92rem;
  line-height: 1.52;
}

body.is-user-banned .add-place-segmented__btn,
body.is-user-banned #add-place-submit,
body.is-user-banned #add-place-photo,
body.is-user-banned #add-place-photo-clear,
body.is-user-banned #popup-status-want,
body.is-user-banned #popup-status-visited,
body.is-user-banned .popup-feedback__star,
body.is-user-banned #popup-review-save,
body.is-user-banned #popup-favorite-toggle,
body.is-user-banned #popup-delete-place {
  cursor: not-allowed;
}

body.onboarding-active .top-toolbar,
body.onboarding-active .sidebar,
body.onboarding-active .popup-card {
  transition:
    filter 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}

@keyframes onboardingPanelIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (min-width: 1080px) {
  .sidebar {
    --sidebar-slide-x: 0px;
    pointer-events: auto;
    opacity: 1;
  }

  .sidebar.is-closed {
    --sidebar-slide-x: calc(-100% - 1.2rem);
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 1079px) {
  .sidebar {
    --sidebar-slide-x: -112%;
  }

  .sidebar.is-open {
    --sidebar-slide-x: 0px;
  }

  .sidebar.is-closed {
    --sidebar-slide-x: -112%;
    opacity: 0;
    pointer-events: none;
  }
}

@media (min-width: 900px) {
  .popup-card {
    width: min(520px, calc(100vw - 1.4rem));
  }
}

@media (max-width: 860px) {
  :root {
    --toolbar-height: 108px;
    --scene-light-y: 46%;
    --scene-vignette-strength: 0.19;
    --leaflet-right-controls-w: 68px;
    --leaflet-right-controls-gap: 12px;
    --leaflet-controls-safe-gap: 12px;
    --leaflet-controls-safe-w: calc(
      var(--leaflet-right-controls-w) + var(--leaflet-controls-safe-gap)
    );
    --travel-hub-panel-right-base: 0.7rem;
  }

  .top-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 0.54rem 0.64rem;
  }

  .top-toolbar__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    --toolbar-actions-gap: 0.3rem;
    gap: var(--toolbar-actions-gap);
  }

  .add-place-segmented {
    width: min(100%, 340px);
  }

  .add-place-segmented__btn {
    justify-content: center;
  }

  .app-status {
    top: calc(1rem + var(--toolbar-height) + 0.9rem);
  }

  .sidebar-reveal {
    top: 50%;
    transform: translate3d(-10px, -50%, 0);
  }

  .sidebar-reveal.is-visible {
    transform: translate3d(0, -50%, 0);
  }

  .sidebar-reveal:hover {
    transform: translate3d(2px, -50%, 0);
  }

  .point-item__layout {
    grid-template-columns: 78px 1fr;
  }

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

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

  .point-item__thumb-wrap,
  .point-item__thumb,
  .point-item__thumb-fallback {
    min-height: 80px;
  }

  .sidebar__filters {
    min-height: clamp(136px, 18vh, 186px);
    padding: 0.92rem 0.92rem 0.96rem;
  }

  .route-panel {
    min-height: clamp(186px, 28vh, 286px);
    padding: 0.9rem 0.92rem;
  }

  .sidebar__list-wrap {
    max-height: none;
  }

  .popup-card__summary {
    grid-template-columns: 1fr;
  }

  .smart-filters-panel {
    right: 0.7rem;
    width: min(420px, calc(100vw - 1rem));
  }

  .near-me-panel {
    right: 0.7rem;
    width: min(390px, calc(100vw - 1rem));
    max-height: min(68vh, 560px);
  }

  .add-place-banner,
  .app-status {
    width: calc(100vw - 1rem);
  }

  .add-place-drawer {
    right: 0.7rem;
    width: min(390px, calc(100vw - 1rem));
    max-height: min(68vh, 560px);
  }

  .travel-hub {
    right: calc(var(--travel-hub-panel-right-base) + var(--leaflet-controls-safe-w));
    width: min(320px, calc(100vw - 1rem));
  }

  .map-zoom-slider {
    right: 0.7rem;
    width: 2.34rem;
    padding: 0.36rem 0.32rem;
  }

  .map-zoom-slider__track {
    height: 188px;
  }

  .map-zoom-slider__range {
    width: 182px;
  }

  .add-place-form__grid,
  .add-place-form__actions,
  .add-place-form__segmented,
  .add-place-form__photo-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  :root {
    --scene-light-y: 48%;
    --scene-vignette-strength: 0.16;
    --leaflet-right-controls-w: 52px;
    --leaflet-right-controls-gap: 10px;
    --leaflet-controls-safe-gap: 12px;
    --leaflet-controls-safe-w: calc(
      var(--leaflet-right-controls-w) + var(--leaflet-controls-safe-gap)
    );
    --travel-hub-panel-right-base: 0.5rem;
  }

  .top-toolbar,
  .app-status {
    width: calc(100vw - 1rem);
  }

  .top-toolbar {
    top: 0.5rem;
    border-radius: 14px;
    padding: 0.48rem 0.56rem;
  }

  .add-place-segmented {
    width: 100%;
  }

  .top-toolbar__title {
    font-size: 0.98rem;
  }

  .top-toolbar__subtitle {
    font-size: 0.68rem;
  }

  .map-zoom-slider {
    right: 0.5rem;
    width: 2.22rem;
    padding: 0.34rem 0.28rem;
  }

  .map-zoom-slider__track {
    height: 170px;
  }

  .map-zoom-slider__range {
    width: 164px;
  }

  .sidebar {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    top: 50%;
    bottom: auto;
    height: min(86vh, 980px);
    max-height: calc(100vh - 0.8rem);
    --sidebar-slide-x: -112%;
  }

  .sidebar__filters,
  .route-panel {
    min-height: 0;
  }

  .sidebar__list-wrap {
    max-height: none;
  }

  .sidebar-reveal {
    left: 0.5rem;
    top: 50%;
    min-height: 2.7rem;
    border-radius: 12px;
    transform: translate3d(-10px, -50%, 0);
  }

  .sidebar-reveal.is-visible {
    transform: translate3d(0, -50%, 0);
  }

  .smart-filters-panel {
    left: 0.5rem;
    right: 0.5rem;
    top: auto;
    bottom: 0.5rem;
    width: auto;
    max-height: min(74vh, 620px);
    border-radius: 16px;
    transform: translate3d(0, var(--motion-ui-offset-y), 0) scale(var(--motion-ui-scale-start));
  }

  .near-me-panel {
    left: 0.5rem;
    right: 0.5rem;
    top: auto;
    bottom: 0.5rem;
    width: auto;
    max-height: min(60vh, 500px);
    border-radius: 16px;
    transform: translate3d(0, var(--motion-ui-offset-y), 0) scale(var(--motion-ui-scale-start));
  }

  .near-me-panel.is-open {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .add-place-banner {
    top: calc(0.5rem + var(--toolbar-height) + 0.72rem);
    width: calc(100vw - 1rem);
    padding: 0.46rem 0.52rem;
    border-radius: 11px;
  }

  .add-place-banner__text {
    font-size: 0.72rem;
  }

  .add-place-drawer {
    left: 0.5rem;
    right: 0.5rem;
    top: auto;
    bottom: 0.5rem;
    width: auto;
    max-height: min(70vh, 560px);
    border-radius: 16px;
    transform: translate3d(0, var(--motion-ui-offset-y), 0) scale(var(--motion-ui-scale-start));
  }

  .add-place-drawer.is-open {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .travel-hub {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 1.1rem;
    width: auto;
    padding: 0.54rem;
    border-radius: 14px;
    transform: translate3d(0, var(--motion-ui-offset-y), 0) scale(var(--motion-ui-scale-start));
  }

  .travel-hub:not(.is-collapsed) {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .travel-hub__title {
    font-size: 0.83rem;
  }

  .travel-hub__subtitle {
    font-size: 0.66rem;
  }

  .travel-hub__metric {
    padding: 0.44rem 0.5rem;
  }

  .travel-hub__panels {
    max-height: min(44vh, 360px);
  }

  .travel-guide__filters {
    grid-template-columns: 1fr;
  }

  .travel-guide__refresh {
    min-height: 32px;
  }

  .travel-guide__card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .travel-guide__media {
    width: 62px;
    height: 62px;
  }

  .travel-planner__summary {
    grid-template-columns: 1fr;
  }

  .travel-planner__actions,
  .travel-planner__saved-item-actions {
    grid-template-columns: 1fr;
  }

  .smart-filters-panel.is-open {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .smart-filters__actions {
    grid-template-columns: 1fr;
  }

  .popup-card__content {
    padding: 0.86rem 0.84rem 0.96rem;
  }

  .popup-card__description {
    font-size: 0.88rem;
  }

  .popup-card {
    width: min(380px, calc(100vw - 0.8rem));
    max-height: min(74vh, 540px);
  }

  .popup-card__summary {
    grid-template-columns: 1fr;
  }

  .popup-card__actions {
    grid-template-columns: 1fr;
  }

  .popup-feedback__status {
    grid-template-columns: 1fr;
  }

  .popup-feedback__stars {
    width: 100%;
    justify-content: space-between;
  }

  .popup-feedback__star {
    width: 1.72rem;
    height: 1.72rem;
  }

  .popup-highlight {
    font-size: 0.7rem;
  }

  .app-toast {
    width: calc(100vw - 1rem);
    text-align: center;
  }

  .onboarding-panel {
    right: 0.5rem;
    bottom: 0.5rem;
    width: min(360px, calc(100vw - 1rem));
    border-radius: 12px;
    padding: 0.66rem 0.68rem 0.62rem;
  }

  .onboarding-panel__actions {
    grid-template-columns: 1fr;
  }
}

#wa-loader.worldatlas-loader,
.worldatlas-loader {
  position: fixed;
  inset: 0;
  z-index: 6200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 1.8vw, 1.5rem);
  background:
    radial-gradient(circle at 18% 14%, rgba(96, 130, 164, 0.22), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(114, 203, 188, 0.14), transparent 30%),
    linear-gradient(170deg, rgba(5, 12, 18, 0.84), rgba(5, 10, 16, 0.94));
  backdrop-filter: blur(14px) saturate(1.08);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 260ms ease;
}

.worldatlas-loader.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.worldatlas-loader__panel {
  width: min(520px, calc(100vw - 1.4rem));
  border-radius: 20px;
  border: 1px solid rgba(173, 203, 232, 0.2);
  background:
    linear-gradient(160deg, rgba(15, 29, 43, 0.8), rgba(10, 20, 31, 0.88)),
    radial-gradient(circle at 72% 20%, rgba(114, 203, 188, 0.12), transparent 44%);
  box-shadow:
    0 34px 82px rgba(1, 7, 18, 0.62),
    0 12px 28px rgba(2, 11, 26, 0.28);
  padding: clamp(1rem, 2.1vw, 1.4rem) clamp(1rem, 2.2vw, 1.5rem);
  transform: translate3d(0, 0, 0);
}

.worldatlas-loader__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.6vw, 1.34rem);
  font-weight: 700;
  letter-spacing: 0.018em;
  color: rgba(234, 245, 255, 0.97);
}

.worldatlas-loader__subtitle {
  margin: 0.2rem 0 0.86rem;
  font-size: 0.82rem;
  color: rgba(196, 213, 230, 0.84);
}

.worldatlas-loader__track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(150, 177, 204, 0.24);
  background: rgba(11, 24, 37, 0.72);
  box-shadow: inset 0 1px 2px rgba(3, 10, 18, 0.5);
}

.worldatlas-loader__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(114, 203, 188, 0.86), rgba(132, 208, 220, 0.92));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 200ms linear;
  will-change: transform;
}

.worldatlas-loader__meta {
  margin-top: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.76rem;
  color: rgba(197, 213, 228, 0.9);
}

.worldatlas-loader__stage {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.worldatlas-loader__percent {
  min-width: 2.8rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(214, 232, 246, 0.94);
}

.worldatlas-loader__status {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: rgba(171, 192, 211, 0.82);
}

.worldatlas-loader__error {
  margin-top: 0.9rem;
  padding: 0.74rem 0.76rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(216, 145, 165, 0.28);
  background: rgba(60, 23, 35, 0.44);
}

.worldatlas-loader__error-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(251, 213, 223, 0.95);
}

.worldatlas-loader__error-details {
  margin: 0.32rem 0 0.68rem;
  font-size: 0.76rem;
  color: rgba(234, 203, 214, 0.88);
}

.worldatlas-loader__retry {
  appearance: none;
  border: 1px solid rgba(120, 213, 197, 0.4);
  border-radius: 10px;
  background: rgba(76, 170, 156, 0.22);
  color: rgba(225, 244, 247, 0.96);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.78rem;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.worldatlas-loader__retry:hover,
.worldatlas-loader__retry:focus-visible {
  background: rgba(100, 191, 178, 0.3);
  border-color: rgba(144, 224, 210, 0.56);
}

.worldatlas-loader__retry:active {
  transform: translateY(1px);
}

body.admin-drawer-open {
  overflow: hidden;
}

.admin-trigger {
  display: none;
  align-items: center;
  gap: 0.42rem;
}

body[data-admin="true"] .admin-trigger,
body.is-admin .admin-trigger {
  display: inline-flex;
}

.top-toolbar .admin-trigger {
  padding-inline: 0.66rem;
}

.admin-trigger__icon {
  width: 0.98rem;
  height: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(224, 238, 252, 0.95);
  transition:
    transform 0.18s ease,
    color 0.18s ease;
}

.admin-trigger__icon svg {
  width: 100%;
  height: 100%;
}

.admin-trigger:hover .admin-trigger__icon {
  transform: translateY(-0.5px) scale(1.03);
  color: rgba(226, 246, 240, 0.98);
}

.admin-trigger__label {
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.012em;
}

.admin-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sidebar) + 24);
  background:
    radial-gradient(circle at 74% 14%, rgba(98, 132, 168, 0.08), transparent 26%),
    rgba(7, 15, 24, 0.26);
  backdrop-filter: blur(1px) saturate(1.03);
  -webkit-backdrop-filter: blur(1px) saturate(1.03);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.admin-backdrop.is-open,
body.admin-drawer-open .admin-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.admin-drawer {
  position: fixed;
  right: calc(var(--travel-hub-right-base) + var(--side-panel-w) + var(--side-panel-gap));
  top: calc(1rem + var(--toolbar-height) + 0.72rem);
  width: var(--side-panel-w);
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - (1rem + var(--toolbar-height) + 0.72rem + var(--travel-hub-bottom-offset)));
  z-index: calc(var(--z-sidebar) + 26);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.62rem;
  padding: 0.72rem;
  border: 1px solid rgba(160, 183, 208, 0.18);
  border-radius: 19px;
  background:
    linear-gradient(156deg, rgba(19, 35, 52, 0.5), rgba(10, 21, 33, 0.56)),
    rgba(8, 18, 29, 0.36);
  box-shadow:
    0 24px 58px rgba(1, 9, 23, 0.44),
    0 10px 26px rgba(2, 10, 24, 0.24);
  backdrop-filter: var(--blur-2);
  -webkit-backdrop-filter: var(--blur-2);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(16px, 0, 0);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.16, 0.84, 0.24, 1);
  will-change: opacity, transform;
}

.admin-drawer:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(114, 203, 188, 0.42),
    0 24px 58px rgba(1, 9, 23, 0.44),
    0 10px 26px rgba(2, 10, 24, 0.24);
}

.admin-drawer.is-open,
body.admin-drawer-open .admin-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.admin-drawer__header,
.admin-drawer__tabs,
.admin-drawer__body {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.admin-drawer.is-open .admin-drawer__header,
.admin-drawer.is-open .admin-drawer__tabs,
.admin-drawer.is-open .admin-drawer__body,
body.admin-drawer-open .admin-drawer .admin-drawer__header,
body.admin-drawer-open .admin-drawer .admin-drawer__tabs,
body.admin-drawer-open .admin-drawer .admin-drawer__body {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.admin-drawer.is-open .admin-drawer__tabs,
body.admin-drawer-open .admin-drawer .admin-drawer__tabs {
  transition-delay: 18ms;
}

.admin-drawer.is-open .admin-drawer__body,
body.admin-drawer-open .admin-drawer .admin-drawer__body {
  transition-delay: 36ms;
}

.admin-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.74rem 0.8rem 0.72rem 0.76rem;
  border: 1px solid rgba(152, 176, 201, 0.16);
  border-radius: 13px;
  background:
    linear-gradient(164deg, rgba(15, 29, 44, 0.38), rgba(10, 22, 33, 0.44)),
    rgba(8, 18, 30, 0.3);
}

.admin-drawer__heading {
  min-width: 0;
}

.admin-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 640;
  letter-spacing: 0.012em;
  color: #e7f1fb;
}

.admin-drawer__subtitle {
  margin: 0.2rem 0 0;
  color: rgba(177, 199, 220, 0.9);
  font-size: 0.72rem;
  line-height: 1.36;
}

.admin-drawer__close {
  width: 2.06rem;
  height: 2.06rem;
  border-radius: 11px;
}

.admin-drawer__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
  padding: 0.3rem;
  border: 1px solid rgba(146, 172, 197, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(13, 25, 38, 0.46), rgba(9, 19, 30, 0.5)),
    rgba(8, 17, 28, 0.34);
}

.admin-tabs__btn {
  appearance: none;
  border: 1px solid rgba(147, 172, 197, 0.2);
  border-radius: 10px;
  min-height: 34px;
  padding: 0.42rem 0.58rem;
  background: rgba(10, 21, 33, 0.34);
  color: rgba(202, 219, 236, 0.9);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.admin-tabs__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 203, 188, 0.44);
  color: rgba(224, 239, 252, 0.98);
}

.admin-tabs__btn.is-active,
.admin-tabs__btn[aria-selected="true"] {
  border-color: rgba(114, 203, 188, 0.52);
  background:
    linear-gradient(155deg, rgba(20, 45, 58, 0.7), rgba(11, 24, 36, 0.76)),
    rgba(10, 22, 35, 0.58);
  color: rgba(222, 244, 239, 0.98);
  box-shadow:
    0 8px 18px rgba(2, 11, 28, 0.22),
    0 0 0 1px rgba(114, 203, 188, 0.14);
}

.admin-drawer__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  padding: 0.04rem 0.04rem 0.06rem;
}

.admin-tab-panel {
  display: none;
  min-height: 0;
}

.admin-tab-panel.is-active {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.56rem;
  min-height: 0;
  animation: adminPanelIn 120ms ease-out;
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-search {
  display: grid;
}

.admin-search__input {
  margin-bottom: 0;
}

.admin-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  gap: 0.48rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.16rem;
  contain: content;
}

.admin-review-item,
.admin-online-item {
  display: grid;
  gap: 0.44rem;
  padding: 0.62rem 0.66rem;
  border: 1px solid rgba(146, 170, 195, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(164deg, rgba(13, 26, 40, 0.4), rgba(8, 18, 30, 0.46)),
    rgba(8, 18, 30, 0.28);
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: 116px;
}

.admin-review-item.is-deleted {
  opacity: 0.74;
  filter: saturate(0.74);
}

.admin-review-item__top,
.admin-online-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.56rem;
}

.admin-review-item__identity {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
}

.admin-review-item__email,
.admin-online-item__email {
  color: #e8f2fc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.admin-review-item__place {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.08rem 0.42rem;
  border: 1px solid rgba(140, 165, 189, 0.26);
  border-radius: 999px;
  color: rgba(176, 197, 218, 0.94);
  font-size: 0.66rem;
  font-weight: 650;
}

.admin-review-item__rating {
  color: #f4d896;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.admin-review-item__meta,
.admin-online-item__meta {
  margin: 0;
  color: rgba(167, 188, 209, 0.9);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}

.admin-review-item__preview {
  margin: 0;
  color: rgba(211, 227, 242, 0.95);
  font-size: 0.73rem;
  line-height: 1.4;
}

.admin-review-item--skeleton {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.admin-review-item--skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(214, 230, 245, 0.1) 52%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translate3d(-130%, 0, 0);
  animation: adminSkeletonSweep 1.24s linear infinite;
  will-change: transform;
}

.admin-skeleton-line {
  display: block;
  border-radius: 999px;
  background: rgba(130, 156, 181, 0.3);
}

.admin-skeleton-line--title {
  width: 68%;
  height: 0.72rem;
}

.admin-skeleton-line--meta {
  width: 34%;
  height: 0.56rem;
}

.admin-skeleton-line--body {
  width: 92%;
  height: 0.66rem;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.24rem;
  padding: 0.06rem 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 164, 189, 0.3);
  color: rgba(206, 221, 237, 0.92);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-status-badge--deleted {
  border-color: rgba(167, 182, 201, 0.4);
  color: rgba(188, 203, 219, 0.95);
  background: rgba(83, 98, 116, 0.34);
}

.admin-status-badge--online {
  border-color: rgba(114, 203, 188, 0.54);
  color: rgba(211, 245, 238, 0.98);
  background: rgba(25, 62, 58, 0.44);
}

.admin-status-badge--offline {
  border-color: rgba(143, 167, 192, 0.38);
  color: rgba(189, 206, 224, 0.95);
  background: rgba(37, 50, 66, 0.34);
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.34rem;
}

.admin-action-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 1.86rem;
  padding: 0.3rem 0.54rem;
  border: 1px solid rgba(142, 167, 193, 0.3);
  border-radius: 9px;
  background: rgba(10, 20, 31, 0.42);
  color: rgba(220, 232, 245, 0.95);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.012em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.admin-action-btn:hover {
  transform: translateY(-1px);
}

.admin-action-btn__icon {
  width: 0.88rem;
  height: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-action-btn__icon svg {
  width: 100%;
  height: 100%;
}

.admin-action-btn--danger {
  border-color: rgba(213, 136, 154, 0.42);
  color: rgba(245, 204, 214, 0.98);
  background: rgba(66, 24, 36, 0.36);
}

.admin-action-btn--danger:hover {
  border-color: rgba(220, 147, 164, 0.58);
  background: rgba(78, 28, 42, 0.44);
}

.admin-action-btn--restore {
  border-color: rgba(114, 203, 188, 0.42);
  color: rgba(205, 240, 233, 0.98);
  background: rgba(22, 55, 51, 0.34);
}

.admin-action-btn--restore:hover {
  border-color: rgba(114, 203, 188, 0.58);
  background: rgba(28, 66, 61, 0.42);
}

.admin-inline-confirm {
  display: grid;
  gap: 0.34rem;
  padding: 0.48rem;
  border: 1px solid rgba(212, 142, 160, 0.34);
  border-radius: 10px;
  background: rgba(56, 23, 33, 0.34);
}

.admin-inline-confirm__title {
  margin: 0;
  color: rgba(242, 211, 221, 0.96);
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-inline-confirm__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.32rem;
}

.admin-inline-confirm__reason {
  margin-bottom: 0;
  min-height: 1.86rem;
  padding-block: 0.34rem;
  font-size: 0.7rem;
}

.admin-inline-confirm__btn {
  appearance: none;
  min-height: 1.86rem;
  border: 1px solid rgba(141, 166, 191, 0.34);
  border-radius: 9px;
  background: rgba(10, 20, 31, 0.4);
  color: rgba(216, 230, 244, 0.96);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.01em;
  padding: 0.32rem 0.54rem;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.admin-inline-confirm__btn:hover {
  transform: translateY(-1px);
}

.admin-inline-confirm__btn--ghost:hover {
  border-color: rgba(154, 180, 206, 0.52);
}

.admin-inline-confirm__btn--danger {
  border-color: rgba(214, 145, 163, 0.52);
  background: rgba(70, 25, 39, 0.42);
  color: rgba(249, 214, 223, 0.98);
}

.admin-inline-confirm__btn--danger:hover {
  border-color: rgba(224, 154, 172, 0.6);
}

.admin-online-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.52rem;
}

.admin-online-count {
  margin: 0;
  color: rgba(211, 227, 242, 0.95);
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-online-count strong {
  color: #eaf5ff;
}

.admin-refresh-btn {
  min-height: 30px;
  padding: 0.34rem 0.58rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.7rem;
}

.admin-refresh-btn__icon {
  width: 0.86rem;
  height: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-refresh-btn__icon svg {
  width: 100%;
  height: 100%;
}

.admin-ban-menu {
  position: relative;
  margin-left: auto;
}

.admin-ban-menu[open] {
  z-index: 2;
}

.admin-ban-menu__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  min-width: 4rem;
  padding: 0.32rem 0.54rem;
  border: 1px solid rgba(211, 145, 160, 0.38);
  border-radius: 9px;
  background: rgba(64, 24, 36, 0.34);
  color: rgba(245, 207, 217, 0.98);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.admin-ban-menu__summary::-webkit-details-marker {
  display: none;
}

.admin-ban-menu__summary:hover {
  transform: translateY(-1px);
  border-color: rgba(223, 156, 173, 0.54);
}

.admin-ban-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.32rem);
  width: 198px;
  display: grid;
  gap: 0.28rem;
  padding: 0.46rem;
  border: 1px solid rgba(153, 177, 201, 0.2);
  border-radius: 11px;
  background:
    linear-gradient(162deg, rgba(16, 30, 44, 0.9), rgba(9, 20, 31, 0.94)),
    rgba(8, 18, 29, 0.88);
  box-shadow:
    0 20px 44px rgba(1, 9, 23, 0.48),
    0 8px 22px rgba(2, 11, 28, 0.3);
}

.admin-ban-option,
.admin-ban-custom__apply {
  appearance: none;
  min-height: 1.84rem;
  border: 1px solid rgba(146, 171, 196, 0.32);
  border-radius: 8px;
  background: rgba(9, 20, 31, 0.5);
  color: rgba(212, 227, 241, 0.96);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.admin-ban-option:hover,
.admin-ban-custom__apply:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 203, 188, 0.48);
}

.admin-ban-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.26rem;
}

.admin-ban-custom__input {
  margin-bottom: 0;
  min-height: 1.84rem;
  padding-block: 0.3rem;
  font-size: 0.68rem;
}

.admin-ban-custom__apply {
  padding-inline: 0.52rem;
}

.admin-tabs__btn:focus-visible,
.admin-action-btn:focus-visible,
.admin-inline-confirm__btn:focus-visible,
.admin-ban-menu__summary:focus-visible,
.admin-ban-option:focus-visible,
.admin-ban-custom__apply:focus-visible,
.admin-ban-custom__input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.admin-list {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.admin-list::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.admin-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--scrollbar-track);
}

.admin-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  background-color: var(--scrollbar-thumb);
}

.admin-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

@keyframes adminPanelIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes adminSkeletonSweep {
  to {
    transform: translate3d(130%, 0, 0);
  }
}

@media (max-width: 860px) {
  .admin-drawer {
    right: 0.7rem;
    width: min(320px, calc(100vw - 1rem));
    max-height: calc(100vh - (1rem + var(--toolbar-height) + 1.44rem));
  }
}

@media (max-width: 580px) {
  .top-toolbar .admin-trigger {
    min-width: 32px;
    padding: 0.34rem;
    gap: 0;
  }

  .admin-trigger__label {
    display: none;
  }

  .admin-drawer {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    max-width: calc(100vw - 1rem);
    top: calc(0.5rem + var(--toolbar-height) + 0.72rem);
    max-height: calc(100vh - (0.5rem + var(--toolbar-height) + 1rem));
    border-radius: 16px;
  }
}

/* Panel stack layout */
:root {
  --panel-stack-top: calc(1rem + var(--toolbar-height) + 0.72rem);
  --panel-stack-bottom: var(--travel-hub-bottom-offset, 6.4rem);
  --panel-stack-social-h: clamp(300px, 46vh, 720px);
  --panel-stack-social-collapsed-h: 48px;
}

@media (min-width: 641px) {
  #right-sidebar-stack.right-sidebar-stack {
    position: fixed;
    right: var(--zoom-safe-right);
    top: var(--panel-stack-top);
    bottom: var(--panel-stack-bottom);
    width: var(--panel-width);
    z-index: calc(var(--z-sidebar) + 26);
    pointer-events: none;
    contain: layout paint;
  }

  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub,
  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer {
    position: absolute;
    right: 0;
    left: auto;
    width: 100%;
    max-width: 100%;
    pointer-events: auto;
  }

  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub {
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: var(--panel-stack-social-h);
    max-height: var(--panel-stack-social-h);
  }

  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub.is-collapsed,
  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub.social-guide--collapsed {
    height: var(--panel-stack-social-collapsed-h);
    max-height: var(--panel-stack-social-collapsed-h);
    transform: translate3d(0, 0, 0) scale(1);
  }

  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub .travel-hub__panels {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub .travel-panel:not([hidden]) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub .travel-panel--guide .travel-guide__curated,
  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub .travel-panel--guide .travel-guide__filters,
  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub .travel-panel--guide .travel-guide__status {
    flex: 0 0 auto;
  }

  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub .travel-panel--guide .travel-guide__cards {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
  }

  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub.is-collapsed .travel-hub__panels,
  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub.social-guide--collapsed .travel-hub__panels {
    display: none;
  }

  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer {
    top: 0;
    bottom: calc(var(--panel-stack-social-h) + var(--panel-gap));
    max-height: none;
  }

  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub.is-collapsed ~ #admin-drawer.admin-drawer,
  #right-sidebar-stack.right-sidebar-stack > #travel-hub.travel-hub.social-guide--collapsed ~ #admin-drawer.admin-drawer {
    bottom: calc(var(--panel-stack-social-collapsed-h) + var(--panel-gap));
  }

  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer .admin-drawer__body,
  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer .admin-tab-panel,
  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer .admin-tab-panel.is-active,
  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer .admin-list {
    min-height: 0;
  }

  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer .admin-tab-panel,
  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer .admin-tab-panel.is-active {
    overflow: hidden;
  }

  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer .admin-search,
  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer .admin-online-toolbar {
    flex: 0 0 auto;
  }

  #right-sidebar-stack.right-sidebar-stack > #admin-drawer.admin-drawer .admin-list {
    flex: 1 1 auto;
    overflow: auto;
  }
}

@media (max-width: 480px) {
  :root {
    --panel-zoom-gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
