﻿#mountain_map_experience {
  width: 100%;
  height: 100%;
}

#map_wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  #map_mountain {
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 160ms ease;
  }

  #map_mountain.map-is-loading {
    opacity: 0;
  }

  #map_mountain.map-interaction-locked canvas {
    cursor: pointer !important;
  }

  #map_mountain.map-interaction-active canvas {
    cursor: grab;
  }

  #map_wrapper.map-interaction-locked .maplibregl-control-container,
  #map_wrapper.map-interaction-locked .maplibregl-popup {
    pointer-events: none;
  }

  #map-interaction-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    transform: translate(-50%, -50%);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.78);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 180ms ease;
  }

  #map-interaction-hint strong {
    display: block;
    font-size: 13px;
  }

  #map-interaction-hint span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.86;
  }

  .hint-touch {
    display: none !important;
  }

  @media (hover: none), (pointer: coarse) {
    .hint-desktop {
      display: none !important;
    }

    .hint-touch {
      display: block !important;
    }
  }

  #map_wrapper.map-interaction-active #map-interaction-hint {
    opacity: 0;
  }

  #map_wrapper .maplibregl-popup-content {
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  #map_wrapper .maplibregl-popup-anchor-top .maplibregl-popup-tip,
  #map_wrapper .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
  #map_wrapper .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
    border-bottom-color: rgba(255, 255, 255, 0.64);
  }

  #map_wrapper .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
  #map_wrapper .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
  #map_wrapper .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
    border-top-color: rgba(255, 255, 255, 0.64);
  }

  #map_wrapper .maplibregl-popup-anchor-left .maplibregl-popup-tip {
    border-right-color: rgba(255, 255, 255, 0.64);
  }

  #map_wrapper .maplibregl-popup-anchor-right .maplibregl-popup-tip {
    border-left-color: rgba(255, 255, 255, 0.64);
  }

  #hover-text {
    position: absolute;
    z-index: 20;
    background: none;
    border: none;
    border-radius: 4px;
    padding: 10px 10px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    color: #EA5017;
    text-align: center;
    pointer-events: none;
    display: none;
    white-space: nowrap;
    transform: translate(-50%, -150%);
  }

  .gpx-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #111;
  }

  .gpx-popup-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #EA5017;
  }

  .gpx-popup-track-list {
    display: grid;
    gap: 5px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  }

  .gpx-popup-track-button {
    appearance: none;
    width: 100%;
    padding: 5px 7px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 5px;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
  }

  .gpx-popup-track-button.is-active {
    border-color: #f2b21d;
    background: rgba(242, 178, 29, 0.18);
  }

  .gpx-popup-details {
    min-width: 170px;
  }

  .gpx-track-hover-name {
    color: #EA5017;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(243, 237, 227, 0.9);
  }

  #map_wrapper .track-hover-popup .maplibregl-popup-content {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #map_wrapper .track-hover-popup .maplibregl-popup-tip {
    display: none;
  }

  .access-popup {
    max-width: 260px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #111;
  }

  .access-popup-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #EA5017;
  }

  .access-popup-image {
    display: block;
    width: 100%;
    max-height: 150px;
    margin-bottom: 8px;
    object-fit: cover;
  }

  .access-popup-coordinates {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .access-popup-list {
    margin: 8px 0 0;
    padding-left: 18px;
  }

  .access-popup-list a {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
  }

