:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #252a34;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100%;
}

body:not(.embed-body) {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.page {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 14px 16px 16px;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(8, 12, 20, 0.8);
  color: #e8eef5;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 238, 245, 0.12);
}

.site-header .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-title {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.brand-sub {
  color: rgba(232, 238, 245, 0.7);
  font-size: 0.9rem;
  margin-top: 2px;
}

.brand-title__link,
.brand-title__link:visited,
.brand-title__link:hover,
.brand-title__link:focus {
  color: inherit;
  text-decoration: none;
}

.brand-title__link:focus-visible {
  outline: 2px solid #0292ca;
  outline-offset: 3px;
  border-radius: 6px;
}
.embed-body {
  overflow: hidden;
  margin: 0;
  padding: 0;
  height: 100dvh;
}

.embed-card {
  border-radius: 16px;
  border: 1px solid rgba(232, 238, 245, 0.12);
  overflow: hidden;
  padding: 12px;
  display: block;
  width: 100%;
  max-width: 100%;
  float: none !important;
}

.page .embed-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.page .embed-card.pct-embed-card--collapsed {
  flex: 0 0 auto;
  min-height: auto;
}

.page .pct-shell.pct-shell--collapsed,
.page .embed-card.pct-embed-card--collapsed .pct-shell {
  flex: 0 0 auto;
  height: auto;
}

.page .pct-shell,
.page .pct-map-wrap--framed {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pct-shell {
  background: rgba(255, 255, 255, 0.03);
  display: block;
  width: 100%;
  max-width: 100%;
  float: none !important;
  height: 100%;
}

.pct-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
  --pct-toggle-icon-size: 18px;
  border-radius: 16px;
  border: 1px solid rgba(232, 238, 245, 0.12);
  overflow: hidden;
}

.pct-map .maplibregl-canvas-container,
.pct-map .maplibregl-canvas {
  width: 100% !important;
  height: 100% !important;
}

.pct-frame {
  background: rgba(10, 12, 16, 0.3);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 238, 245, 0.12);
}

.pct-embed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
  transition: margin-bottom 260ms ease;
}

.pct-embed.pct-embed--collapsed .pct-embed__header { margin-bottom: 0; }

.pct-embed__tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pct-embed__tabs::-webkit-scrollbar { display: none; }

.pct-embed__tab {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.55);
  color: rgba(232, 238, 245, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  flex: 0 0 auto;
}
.pct-embed__tab-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pct-embed__tab-icon-img { display: block; width: 28px; height: 28px; object-fit: contain; }
.pct-embed__tab-label { display: inline-block; }
.pct-embed__live-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 3px;
  background: #ff3b30;
  box-shadow: none;
  flex: 0 0 auto;
}
.pct-embed__tab.is-active .pct-embed__live-indicator {
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.8);
  animation: pct-pulse 1.4s ease-out infinite;
}
@keyframes pct-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.9); transform: scale(1); }
  70% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); transform: scale(1); }
}

.pct-embed__tab:hover { background: rgba(111, 220, 121, 0.12); border-color: rgba(111, 220, 121, 0.55); }
.pct-embed__tab:focus { outline: none; box-shadow: none; }
.pct-embed__tab:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(111, 220, 121, 0.35); }
.pct-embed__tab.is-active {
  background: rgba(10, 12, 16, 0.7);
  color: rgba(232, 238, 245, 0.95);
  border-color: rgba(111, 220, 121, 0.55);
}

.pct-embed__toggle {
  height: 36px;
  width: 36px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.7);
  color: rgba(232, 238, 245, 0.95);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  flex: 0 0 auto;
}
.pct-embed__toggle:hover { background: rgba(111, 220, 121, 0.14); border-color: rgba(111, 220, 121, 0.55); }
.pct-embed__toggle:focus { outline: none; box-shadow: none; }
.pct-embed__toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(111, 220, 121, 0.35); }

body:not(.embed-body) .pct-embed__toggle {
  display: none;
}

body:not(.embed-body) .pct-map-controls__right {
  display: none;
}

.pct-embed__toggle-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.pct-embed__toggle-icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-image: url("/assets/icons/chevron.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("/assets/icons/chevron.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transform-origin: 50% 50%;
  transition: transform 160ms ease;
  transform: rotate(180deg);
}
.pct-embed.pct-embed--collapsed .pct-embed__toggle-icon { transform: rotate(90deg); }

.pct-embed__frame {
  overflow: hidden;
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: max-height 260ms ease, opacity 180ms ease, transform 260ms ease, padding 260ms ease, border-width 260ms ease, margin 260ms ease, visibility 0s linear 0s;
  will-change: max-height, opacity, transform;
}
.pct-embed.pct-embed--collapsed .pct-embed__frame {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0;
  border-width: 0;
  margin: 0;
  pointer-events: none;
  visibility: hidden;
  transition: max-height 260ms ease, opacity 180ms ease, transform 260ms ease, padding 260ms ease, border-width 260ms ease, margin 260ms ease, visibility 0s linear 260ms;
}

.page .pct-embed.pct-embed--collapsed,
.page .pct-embed.pct-embed--collapsed.pct-map-wrap--framed {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}

.page .pct-embed.pct-embed--collapsed .pct-embed__frame {
  display: none;
}

.pct-map-wrap { position: relative; }
.pct-map-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pct-map-controls__right { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.pct-map-controls .pct-select { transform: translateY(4px); }
.pct-map-controls .pct-map-expand { position: static; top: auto; left: auto; }
.pct-map-stage { position: relative; width: 100%; }
.pct-map-wrap--framed {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pct-map-wrap--framed .pct-embed__frame, .pct-map-wrap--framed .pct-frame { flex: 1 1 auto; }
.pct-map-wrap--framed .pct-map-controls { position: static; top: auto; left: auto; padding: 0; margin-bottom: 10px; }
.pct-map-wrap--framed .pct-map { border: 0; border-radius: 14px; }

.page .pct-embed__frame,
.page .pct-frame,
.page .pct-map-stage {
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
}

.page .pct-embed__frame,
.page .pct-frame {
  display: flex;
  flex-direction: column;
}

.page .pct-map-stage {
  position: relative;
}

.page .pct-map {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: auto;
}

.embed-body,
.embed-body .pct-shell,
.embed-body .pct-map-wrap--framed,
.embed-body .pct-embed__frame,
.embed-body .pct-frame,
.embed-body .pct-map-stage,
.embed-body .pct-map {
  height: 100%;
  min-height: 0;
}

.embed-body {
  background: #252a34;
}

.embed-body .embed-card {
  height: 100dvh;
  box-sizing: border-box;
  border-radius: 0;
  border: 0;
  padding: 12px;
  overflow: hidden;
}

.embed-body .pct-map {
  min-height: 0;
}

.pct-map .maplibregl-ctrl-group button {
  background: rgba(10, 12, 16, 0.81) !important;
  color: rgba(232, 238, 245, 0.95) !important;
  border: 1px solid rgba(232, 238, 245, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  outline: none !important;
}
.pct-map .maplibregl-ctrl-group button:disabled { opacity: 0.55 !important; cursor: not-allowed !important; }
.pct-map .maplibregl-ctrl-group:not(.pct-attrib) button.pct-toggle-btn {
  background: rgba(10, 12, 16, 0.81) !important;
  border-color: rgba(232, 238, 245, 0.18) !important;
  color: rgba(232, 238, 245, 0.95) !important;
}
.pct-map button.pct-toggle-btn svg, .pct-map button.pct-toggle-btn img {
  width: var(--pct-toggle-icon-size) !important;
  height: var(--pct-toggle-icon-size) !important;
}
.pct-map .maplibregl-ctrl-group:not(.pct-ctrl-single):not(.pct-attrib) {
  background: rgba(10, 12, 16, 0.81) !important;
  border: 1px solid rgba(232, 238, 245, 0.18) !important;
  border-radius: 14px !important;
  overflow: hidden;
}
.pct-map .maplibregl-ctrl-group:not(.pct-ctrl-single):not(.pct-attrib) button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.pct-map .maplibregl-ctrl-group:not(.pct-ctrl-single):not(.pct-attrib) button + button { border-top: 1px solid rgba(232, 238, 245, 0.14) !important; }
.pct-map .maplibregl-ctrl-group { background: transparent !important; box-shadow: none !important; border: 0 !important; outline: none !important; }
.pct-map .maplibregl-ctrl-group button:not(:disabled):hover {
  background: rgba(10, 12, 16, 0.81) !important;
  border-color: rgba(111, 220, 121, 0.55) !important;
  box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.14) !important;
}

.pct-map .pct-attrib .pct-toggle-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  background: rgba(10, 12, 16, 0.81) !important;
  color: rgba(232, 238, 245, 0.95) !important;
  font-size: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}
.pct-map .pct-attrib .pct-toggle-btn::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: currentColor;
  -webkit-mask-image: url("/assets/icons/ion-information-outline.svg");
  mask-image: url("/assets/icons/ion-information-outline.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: translate(-50%, -50%);
}
.pct-map .maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1) brightness(1.15) !important; opacity: 1 !important; }
.pct-map .maplibregl-ctrl-compass .maplibregl-ctrl-icon,
.pct-map .maplibregl-ctrl-compass .maplibregl-ctrl-compass-arrow {
  background-image: url("/assets/icons/compass-reset.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  background-color: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter: invert(1) brightness(1.15) !important;
}

.pct-map .maplibregl-ctrl-group:not(.pct-ctrl-single):not(.pct-attrib) button:not(:disabled):hover {
  box-shadow: inset 0 0 0 1px rgba(111, 220, 121, 0.55), inset 0 0 0 999px rgba(111, 220, 121, 0.14) !important;
}

.pct-map .maplibregl-ctrl-group.pct-ctrl-single button:not(:disabled):hover {
  border-color: rgba(111, 220, 121, 0.55) !important;
  box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.14) !important;
}

.pct-map-expand {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.81);
  color: rgba(232, 238, 245, 0.95);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
@media (hover: hover) and (pointer: fine) {
  .pct-map-expand:hover {
    background: rgba(10, 12, 16, 0.81);
    box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.14), 0 10px 26px rgba(0, 0, 0, 0.35);
    border-color: rgba(111, 220, 121, 0.55);
  }
}
.pct-map-expand:active,
.pct-map-expand.pct-is-pressed {
  background: rgba(10, 12, 16, 0.81);
  box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.28), 0 10px 26px rgba(0, 0, 0, 0.35);
  border-color: rgba(111, 220, 121, 0.85);
}
.pct-map-expand:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(111, 220, 121, 0.35), 0 10px 26px rgba(0, 0, 0, 0.35); }
.pct-map-expand:disabled,
.pct-map-expand[aria-disabled="true"],
.pct-map-expand--disabled { opacity: 0.55; cursor: not-allowed; }
.pct-map-expand__icon { display: none; width: 18px; height: 18px; }
.pct-map-expand__icon svg, .pct-map-expand__icon img { display: block; width: 100%; height: 100%; }
.pct-map-expand__icon img { filter: invert(1) brightness(1.15); }
.pct-map-wrap:not(.pct-map-wrap--fullscreen) .pct-map-expand__icon--enter { display: block; }
.pct-map-wrap.pct-map-wrap--fullscreen .pct-map-expand__icon--exit { display: block; }

.pct-map .maplibregl-popup-content {
  background: rgba(10, 12, 16, 0.92);
  color: #e8eef5;
  border: 1px solid rgba(232, 238, 245, 0.14);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  padding: 12px 12px 10px;
  font-size: 14px;
  line-height: 1.35;
}
.pct-map .pct-photo-popup-container .maplibregl-popup-content {
  padding: 12px;
  max-width: min(280px, calc(100vw - 48px));
  width: min(280px, calc(100vw - 48px));
  position: relative;
  overflow: visible;
}
.pct-map .pct-photo-popup { position: relative; }
.pct-map .pct-photo-popup__scroll { overflow-y: auto; }
.pct-map .pct-photo-popup__header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-right: 40px; min-height: 28px; }
.pct-map .pct-photo-popup__media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--pct-photo-ar, 4 / 3);
  min-height: 160px;
  max-height: 42vh;
  overflow: hidden;
  border-radius: 12px;
}
.pct-map .pct-photo-popup__media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(232, 238, 245, 0.06) 0%, rgba(232, 238, 245, 0.12) 45%, rgba(232, 238, 245, 0.06) 100%);
  background-size: 240px 100%;
  border: 1px solid rgba(232, 238, 245, 0.14);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.pct-map .pct-photo-popup--loading .pct-photo-popup__media::before {
  opacity: 1;
  animation: pct-shimmer 1.1s ease-in-out infinite;
}
.pct-map .pct-photo-popup__img {
  margin-bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 180ms ease;
}
.pct-map .pct-photo-popup--loaded .pct-photo-popup__img { opacity: 1; }
.pct-map .pct-photo-popup--loaded .pct-photo-popup__media::before { opacity: 0; animation: none; }
.pct-map .pct-photo-popup__open {
  z-index: 3;
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.7);
  color: rgba(232, 238, 245, 0.95);
  font-size: 12px;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .pct-map .pct-photo-popup__open:hover {
    background: rgba(111, 220, 121, 0.14);
    border-color: rgba(111, 220, 121, 0.55);
  }
}
.pct-map .pct-photo-popup__open:active,
.pct-map .pct-photo-popup__open.pct-is-pressed {
  background: rgba(111, 220, 121, 0.22);
  border-color: rgba(111, 220, 121, 0.85);
}
.pct-map .pct-photo-popup__open:focus {
  outline: none;
  box-shadow: none;
}
.pct-map .pct-photo-popup__open:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(111, 220, 121, 0.35);
}
.pct-map .pct-photo-popup__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.81);
  color: rgba(232, 238, 245, 0.95);
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}
.pct-map .pct-photo-toggle__icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transform: translateX(4.5px);
}
.pct-map .pct-photo-toggle__camera {
  display: inline-flex;
  opacity: 1;
  transition: opacity 140ms ease;
}
.pct-map .pct-photo-toggle__slash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
}
.pct-map .pct-photo-toggle-btn--off .pct-photo-toggle__camera { opacity: 0.55; }
.pct-map .pct-photo-toggle-btn--off .pct-photo-toggle__slash { opacity: 1; }
.pct-map .pct-photo-toggle-btn:not(.pct-photo-toggle-btn--off):not(.pct-photo-toggle-btn--cooldown):hover .pct-photo-toggle__slash { opacity: 0.9; }
.pct-map .pct-photo-toggle-btn--off:not(.pct-photo-toggle-btn--cooldown):hover .pct-photo-toggle__slash { opacity: 0; }
.pct-map .pct-photo-toggle-btn--off:not(.pct-photo-toggle-btn--cooldown):hover .pct-photo-toggle__camera { opacity: 1; }

.pct-live-marker {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  pointer-events: auto;
}
.pct-live-marker__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.5);
  z-index: 0;
  animation: pct-pulse-blue 2.16s cubic-bezier(.25,.8,.25,1) infinite;
}
.pct-live-marker__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #007aff;
  z-index: 1;
  box-shadow: 0 0 0 3px #ffffff;
}

@keyframes pct-pulse-blue {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
  }
  70% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}
.pct-map .pct-photo-popup__nav::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-image: url("/assets/icons/arrow-right.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("/assets/icons/arrow-right.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.pct-map .pct-photo-popup__nav--prev { left: -54px; }
.pct-map .pct-photo-popup__nav--prev::before { transform: rotate(180deg); }
.pct-map .pct-photo-popup__nav--next { right: -54px; }

@media (hover: hover) and (pointer: fine) {
  .pct-map .pct-photo-popup__nav:hover {
    background: rgba(10, 12, 16, 0.81);
    box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.14);
    border-color: rgba(111, 220, 121, 0.55);
  }
}

.pct-map .pct-photo-popup__nav:active,
.pct-map .pct-photo-popup__nav.pct-is-pressed {
  background: rgba(10, 12, 16, 0.81);
  box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.28);
  border-color: rgba(111, 220, 121, 0.85);
}

.pct-map .pct-photo-popup__nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(111, 220, 121, 0.35);
}

.pct-map .pct-photo-popup__nav:disabled,
.pct-map .pct-photo-popup__nav[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.pct-map .pct-photo-popup__nav:disabled:hover,
.pct-map .pct-photo-popup__nav[aria-disabled="true"]:hover {
  background: rgba(10, 12, 16, 0.81);
  border-color: rgba(232, 238, 245, 0.18);
  box-shadow: none;
}

.pct-map .pct-hike-popup-container .maplibregl-popup-content {
  position: relative;
  padding: 12px 12px 12px;
  padding-right: 38px;
  max-width: min(280px, calc(100vw - 48px));
}
.pct-map .pct-hike-popup-container .maplibregl-popup-close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.7);
  color: rgba(232, 238, 245, 0.95);
  outline: none;
  box-shadow: none;
}
.pct-map .pct-hike-popup-container .maplibregl-popup-close-button:hover {
  background: rgba(111, 220, 121, 0.14);
  border-color: rgba(111, 220, 121, 0.55);
}
.pct-map .pct-hike-popup-container .maplibregl-popup-close-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(111, 220, 121, 0.35);
}
.pct-map .pct-hike-popup-container .maplibregl-popup-close-button::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transform: none;
  text-indent: 0;
}

.pct-map .pct-photo-popup-container .maplibregl-popup-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.7);
  color: rgba(232, 238, 245, 0.95);
  outline: none;
  box-shadow: none;
}
.pct-map .pct-photo-popup-container .maplibregl-popup-close-button:hover {
  background: rgba(111, 220, 121, 0.14);
  border-color: rgba(111, 220, 121, 0.55);
}
.pct-map .pct-photo-popup-container .maplibregl-popup-close-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(111, 220, 121, 0.35);
}
.pct-map .pct-photo-popup-container .maplibregl-popup-close-button::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transform: none;
  text-indent: 0;
}

.pct-map :is(.pct-hike-popup-container, .pct-photo-popup-container) .maplibregl-popup-tip {
  border-width: 8px;
  border-style: solid;
  border-color: transparent;
}

.pct-map :is(.pct-hike-popup-container, .pct-photo-popup-container).maplibregl-popup-anchor-top .maplibregl-popup-tip,
.pct-map :is(.pct-hike-popup-container, .pct-photo-popup-container).maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.pct-map :is(.pct-hike-popup-container, .pct-photo-popup-container).maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: rgba(10, 12, 16, 0.92);
}

.pct-map :is(.pct-hike-popup-container, .pct-photo-popup-container).maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.pct-map :is(.pct-hike-popup-container, .pct-photo-popup-container).maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.pct-map :is(.pct-hike-popup-container, .pct-photo-popup-container).maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: rgba(10, 12, 16, 0.92);
}

.pct-map :is(.pct-hike-popup-container, .pct-photo-popup-container).maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(10, 12, 16, 0.92);
}

.pct-map :is(.pct-hike-popup-container, .pct-photo-popup-container).maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(10, 12, 16, 0.92);
}

.pct-map .pct-live-delay {
  display: inline-block;
  font-size: 11px;
  opacity: 0.75;
}

.pct-map .pct-attrib-panel {
  position: absolute;
  right: 0;
  bottom: 42px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,12,16,.85);
  color: #e2e6eb;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  display: none;
  z-index: 6;
}
.pct-map .pct-attrib-panel.is-open { display: block; }
.pct-map .pct-attrib-panel a { color: #e2e6eb; text-decoration: underline; }

body.pct-lightbox-open { overflow: hidden; }
.pct-lightbox[hidden] { display: none; }
.pct-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 20, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.pct-lightbox__panel {
  position: relative;
  width: auto;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  --pct-lightbox-header-block: 54px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(232, 238, 245, 0.14);
  background: rgba(10, 12, 16, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  flex-direction: column;
  isolation: isolate;
  box-sizing: border-box;
}
.pct-lightbox__panel.pct-lightbox__panel--animate {
  transition: width 220ms ease, height 220ms ease;
  will-change: width, height;
}
.pct-lightbox__panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(232, 238, 245, 0.06) 0%, rgba(232, 238, 245, 0.12) 45%, rgba(232, 238, 245, 0.06) 100%);
  background-size: 320px 100%;
  border: 1px solid rgba(232, 238, 245, 0.14);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}
.pct-lightbox__panel--loading::before {
  opacity: 1;
  animation: pct-shimmer 1.1s ease-in-out infinite;
}
.pct-lightbox__panel--loading .pct-lightbox__img { opacity: 0; }
.pct-lightbox__panel--loaded .pct-lightbox__img { opacity: 1; }
.pct-lightbox__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 42px; }
.pct-lightbox__header {
  position: relative;
  z-index: 2;
}
.pct-lightbox__nav-group { display: inline-flex; align-items: center; gap: 10px; }
.pct-lightbox__hint {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -1px);
  width: calc(100% - 28px);
  max-width: 330px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.85);
  color: rgba(232, 238, 245, 0.95);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}
.pct-lightbox__hint.is-visible { opacity: 1; transform: translate(-50%, 0); }
.pct-lightbox__hint .pct-kbd {
  display: inline-block;
  vertical-align: baseline;
  padding: 2px 6px;
  margin: 0 1px;
  border-radius: 6px;
  border: 1px solid rgba(232, 238, 245, 0.25);
  background: rgba(232, 238, 245, 0.08);
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.pct-lightbox__nav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.81);
  color: rgba(232, 238, 245, 0.95);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .pct-lightbox__nav:hover {
    background: rgba(10, 12, 16, 0.81) !important;
    box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.14) !important;
    border-color: rgba(111, 220, 121, 0.55) !important;
  }
}
.pct-lightbox__nav:active,
.pct-lightbox__nav.pct-is-pressed {
  background: rgba(10, 12, 16, 0.81) !important;
  box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.28) !important;
  border-color: rgba(111, 220, 121, 0.85) !important;
}
.pct-lightbox__nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(111, 220, 121, 0.35) !important;
}
.pct-lightbox__nav:disabled,
.pct-lightbox__nav[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.pct-lightbox__nav:disabled:hover,
.pct-lightbox__nav[aria-disabled="true"]:hover {
  background: rgba(10, 12, 16, 0.81) !important;
  box-shadow: none !important;
  border-color: rgba(232, 238, 245, 0.18) !important;
}
.pct-lightbox__nav::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-image: url("/assets/icons/arrow-right.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("/assets/icons/arrow-right.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.pct-lightbox__nav--prev::before { transform: rotate(180deg); }
.pct-lightbox__close {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.18);
  background: rgba(10, 12, 16, 0.81);
  color: rgba(232, 238, 245, 0.95);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .pct-lightbox__close:hover {
    background: rgba(10, 12, 16, 0.81) !important;
    box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.14) !important;
    border-color: rgba(111, 220, 121, 0.55) !important;
  }

  .pct-lightbox__close:hover:focus-visible {
    background: rgba(10, 12, 16, 0.81) !important;
    box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.14) !important;
    border-color: rgba(111, 220, 121, 0.55) !important;
  }
}

.pct-lightbox__close:active,
.pct-lightbox__close.pct-is-pressed {
  background: rgba(10, 12, 16, 0.81) !important;
  box-shadow: inset 0 0 0 999px rgba(111, 220, 121, 0.28) !important;
  border-color: rgba(111, 220, 121, 0.85) !important;
}

.pct-lightbox__close:focus {
  outline: none;
  box-shadow: none;
}

.pct-lightbox__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(111, 220, 121, 0.35) !important;
}
.pct-lightbox__close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  transform: none;
}
.pct-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px - 14px - 14px - var(--pct-lightbox-header-block));
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(232, 238, 245, 0.14);
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 180ms ease;
}

.pct-map[data-map-error="true"]::before {
  content: "Map data missing. Run scripts/gpx_to_geojson.py --input-dir <gpx-dir> to generate data/track.geojson.";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9aa3ad;
  background: rgba(11, 14, 17, 0.85);
  text-align: center;
  padding: 20px;
}

@media (max-width: 1023px) {
  .pct-embed__tab { padding: 0 10px; transition: padding 220ms ease; gap: 0; }
  .pct-embed__tab.is-active { padding: 0 12px; gap: 8px; }
  .pct-embed__tab .pct-embed__live-indicator { margin-left: 0; }
  .pct-embed__tab.is-active .pct-embed__live-indicator { margin-left: 8px; }
  .pct-embed__tab-label { display: inline-block; overflow: hidden; max-width: 0; opacity: 0; transform: translateX(-4px); transition: max-width 240ms ease, opacity 180ms ease, transform 240ms ease; }
  .pct-embed__tab.is-active .pct-embed__tab-label { max-width: 240px; opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .page { padding: 12px; }
}

@media (max-width: 1440px) {
  .pct-lightbox__header {
    background: rgba(10, 12, 16, 0.92);
  }

  .pct-lightbox__panel--loading::before {
    top: calc(14px + 42px + 12px);
  }
}

@media (min-width: 1441px) {
  .pct-lightbox__panel {
    --pct-lightbox-header-block: 0px;
  }

  .pct-lightbox__header {
    position: static;
    justify-content: flex-end;
    margin-bottom: 0;
    min-height: 0;
  }

  .pct-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .pct-lightbox__nav--prev {
    left: -54px;
  }

  .pct-lightbox__nav--next {
    right: -54px;
  }

  .pct-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 600px) {
  .pct-map .pct-photo-popup__header { gap: 8px; padding-left: 64px; padding-right: 44px; }
  .pct-map .pct-photo-popup__nav { top: 0; transform: none; width: 28px; height: 28px; }
  .pct-map .pct-photo-popup__nav--prev { left: 0; }
  .pct-map .pct-photo-popup__nav--next { left: 32px; right: auto; }
}

@keyframes pct-shimmer {
  0% { background-position: -240px 0; }
  100% { background-position: 240px 0; }
}
