    body, html {
      margin: 0;
      padding: 0;
      height: 100%;
      font-family: sans-serif;
    }
    nav {
      background-color: #6d6a6a;
      color: white;
      padding: 1rem;
      font-size: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }
    nav .title {
      font-size: 1.2rem;
      flex-grow: 1;
    }
    nav input[type="time"] {
      background: #444;
      border: none;
      color: white;
      padding: 0.5rem;
      border-radius: 5px;
      font-size: 1rem;
      flex-shrink: 0;
    }
    .hamburger {
      z-index: 1002;
      position: relative;
      cursor: pointer;
    }
    .menu {
      display: none;
      position: absolute;
      top: 60px;
      left: 10px;
      background-color: #444;
      border-radius: 5px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
      z-index: 1001;
    }
    .menu a {
      display: block;
      padding: 0.75rem 1rem;
      color: white;
      text-decoration: none;
      border-bottom: 1px solid #666;
    }
    .menu a:last-child {
      border-bottom: none;
    }
    .menu a:hover {
      background-color: #555;
    }
    #map {
      height: calc(100% - 60px);
      width: 100%;
    }
    .leaflet-popup-content {
      font-size: 14px;
    }
    .price-marker .price-circle {
      color: white;
      border-radius: 50%;
      text-align: center;
      line-height: 30px;
      width: 30px;
      height: 30px;
      font-weight: bold;
      font-size: 14px;
      box-shadow: 0 0 4px rgba(0,0,0,0.3);
      text-shadow:
        1px 1px 0 #000,
       -1px 1px 0 #000,
        1px -1px 0 #000,
       -1px -1px 0 #000,
        0px 1px 0 #000,
        0px -1px 0 #000,
        1px 0px 0 #000,
       -1px 0px 0 #000;
    }

    .price-marker .price-circle.closed {
      opacity: 0.80;
    }

    #locateIcon {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #ffffff;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      transition: background-color 0.3s ease;
    }

    #locateIcon:hover,
    #locateIcon:focus {
      background: #ffffff;
      outline: none;
    }

    .highlightBox {
      position: absolute;
      border: 3px solid yellow;
      border-radius: 8px;
      pointer-events: none;
      box-shadow: 0 0 15px yellow;
      z-index: 2001;
      transition: all 0.2s ease;
    }

    @media (max-width: 600px) {
      #tutorialOverlay h2 {
        font-size: 1.2rem;
      }

      #tutorialOverlay p,
      #stepText {
        font-size: 1.05rem;
        line-height: 1.4;
        padding: 0.75rem;
        max-width: 90%;
        margin: 0 auto;
      }

      @media (max-width: 600px) {
      #stepText {
        font-size: 0.9rem;
        }
      }

      .highlightBox {
        border-width: 2px;
      }
    }

    
    :root {
  --bg-color: white;
  --text-color: black;
  --nav-color: #6d6a6a;
}
body.dark {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --nav-color: #222;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}
nav {
  background-color: var(--nav-color);
  color: white;
  padding: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}


nav .title {
  font-size: 1.2rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.search-wrap,
#timePicker,
.settings-btn,
.hamburger {
  flex: 0 0 auto;
}


#timePicker {
  width: 80px;
}
.settings-btn {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
}
.settings-panel {
  position: fixed;
  top: 60px;
  right: 10px;
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid #ffffff;
  padding: 1rem;
  z-index: 1003;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  display: none;
}
.settings-panel label {
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
}
.settings-panel select {
  padding: 0.3rem;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-btn {
  background: #444;
  border: none;
  color: #fff;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
body.dark .search-btn { background: #333; }


.search-panel {
  position: absolute;
  top: 110%;
  right: 0;
  left: auto;
  max-width: 360px;
  width: 80vw;
  box-sizing: border-box;
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 0.6rem;
  display: none;
  z-index: 1004;
}
.search-panel.open { display: block; }

.search-inner { display: flex; flex-direction: column; gap: 0.5rem; }

.search-inner input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #666;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  width: 100%;
}
body.dark .search-inner input { 
  border-color: #888;
}

.results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 45vh;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(128,128,128,0.4);
  overscroll-behavior: contain;
}
.results li {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(128,128,128,0.25);
  cursor: pointer;
}
.results li:last-child { border-bottom: none; }
.results li:hover, .results li:focus { background: rgba(128,128,128,0.15); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1003;
  display: none;
}
.search-backdrop.open { display: block; }

@media (max-width: 600px) {
  .search-panel {
    position: fixed;
    top: 58px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 60vh;
    padding: 0.7rem;
    border-radius: 14px;
    z-index: 1004;
  }

  body.search-open { overflow: hidden; }
}

.price-badge {
  float: right;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 40px;
  text-align: center;
}

/* badge i sök */
.price-green  { background: limegreen; color: white; }
.price-orange { background: orange;    color: white; }
.price-red    { background: red;       color: white; }
.price-gray   { background: gray;      color: white; }