@charset "UTF-8";
:root {
  --vainamoinen-color: #3498db;
  --ilmarinen-color: #95a5a6;
  --joukahainen-color: #1abc9c;
  --lemminkainen-color: #e67e22;
  --louhi-color: #9b59b6;
  --osmotar-color: #f1c40f;
}

.maps {
  /* ── Desktop layout: side-by-side ── */
  /**** ILMARINEN ****/
  /**** VAINAMOINEN ****/
  /**** JOUKAHAINEN ****/
  /**** LEMMINKAINEN ****/
  /**** LOUHI ****/
  /**** OSMOTAR ****/
  /* ── Mobile toggle button (hidden on desktop) ── */
  /* ── Mobile layout ── */
}
.maps *,
.maps *::before,
.maps *::after {
  box-sizing: border-box;
}
.maps .map-body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  height: 100vh;
  background-color: #f4f4f6;
  overflow: hidden;
}
.maps #sidebar {
  width: 35%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #2c3e50;
  color: #ecf0f1;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  flex-shrink: 0;
}
.maps #map {
  flex: 1;
  height: 100%;
}
.maps header {
  padding: 20px;
  background: #1a252f;
  border-bottom: 3px solid #95a5a6;
}
.maps header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #bdc3c7;
}
.maps header p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  color: #95a5a6;
}
.maps #ilmarinen-map header {
  border-bottom: 3px solid var(--ilmarinen-color);
}
.maps #ilmarinen-map header h1 {
  color: var(--ilmarinen-color);
}
.maps #ilmarinen-map .journey-item.active {
  background: var(--ilmarinen-color);
}
.maps #vainamoinen-map header {
  border-bottom: 3px solid var(--vainamoinen-color);
}
.maps #vainamoinen-map header h1 {
  color: var(--vainamoinen-color);
}
.maps #vainamoinen-map .journey-item.active {
  background: var(--vainamoinen-color);
}
.maps #joukahainen-map header {
  border-bottom: 3px solid var(--joukahainen-color);
}
.maps #joukahainen-map header h1 {
  color: var(--joukahainen-color);
}
.maps #joukahainen-map .journey-item.active {
  background: var(--joukahainen-color);
}
.maps #lemminkainen-map header {
  border-bottom: 3px solid var(--lemminkainen-color);
}
.maps #lemminkainen-map header h1 {
  color: var(--lemminkainen-color);
}
.maps #lemminkainen-map .journey-item.active {
  background: var(--lemminkainen-color);
}
.maps #louhi-map header {
  border-bottom: 3px solid var(--louhi-color);
}
.maps #louhi-map header h1 {
  color: var(--louhi-color);
}
.maps #louhi-map .journey-item.active {
  background: var(--louhi-color);
}
.maps #osmotar-map header {
  border-bottom: 3px solid var(--osmotar-color);
}
.maps #osmotar-map header h1 {
  color: var(--osmotar-color);
}
.maps #osmotar-map .journey-item.active {
  background: var(--osmotar-color);
}
.maps .maps .journey-list li:before {
  display: none;
}
.maps .journey-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.maps .journey-item {
  padding: 15px 20px;
  border-bottom: 1px solid #34495e;
  cursor: pointer;
  transition: background 0.2s;
}
.maps .journey-item:before {
  display: none;
}
.maps .journey-item:hover {
  background: #34495e;
}
.maps .journey-item.active {
  background: #7f8c8d;
  color: #fff;
}
.maps .rune-badge {
  display: inline-block;
  background: #d35400;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.maps .journey-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.maps .journey-desc {
  font-size: 0.85rem;
  color: #bdc3c7;
  line-height: 1.4;
}
.maps .journey-item.active .journey-desc {
  color: #fff;
}
.maps .leaflet-popup-content-wrapper {
  background: #2c3e50;
  color: #fff;
  border-radius: 5px;
}
.maps .leaflet-popup-tip {
  background: #2c3e50;
}
.maps #panel-toggle {
  display: none;
}
@media (max-width: 700px) {
  .maps body {
    flex-direction: column;
  }
  .maps #map {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
  }
  .maps #sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 55vh;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transform: translateY(calc(100% - 56px));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .maps #sidebar.open {
    transform: translateY(0);
  }
  .maps #panel-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    height: 56px;
    background: #1a252f;
    border: none;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
    flex-shrink: 0;
    padding: 10px 0 6px;
    touch-action: manipulation;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .maps #panel-toggle .handle-bar {
    width: 40px;
    height: 4px;
    background: #95a5a6;
    border-radius: 2px;
  }
  .maps #panel-toggle .handle-label {
    font-size: 0.7rem;
    color: #95a5a6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .maps header {
    padding: 12px 16px;
  }
  .maps header h1 {
    font-size: 1.2rem;
  }
  .maps .journey-item {
    padding: 12px 16px;
  }
  .maps .leaflet-popup-content-wrapper {
    max-width: 88vw !important;
  }
}

/**** SINGLE PAGE CUSTOMIZATION ****/
.maps {
  margin-bottom: 40px;
}
.maps h2 {
  text-align: center;
}
.maps .map-body {
  max-height: 600px;
  border-radius: 5px;
  background-color: #fff;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.leaflet-popup {
  font-size: 16px;
}
.leaflet-popup * {
  font-size: inherit;
}
.leaflet-popup small {
  font-size: 14px;
}

.leaflet-control-attribution {
  font-size: 12px;
}
.leaflet-control-attribution a,
.leaflet-control-attribution span {
  font-size: 12px;
}

@media only screen and (max-width: 700px) {
  .maps .map-body {
    position: relative;
    padding: 5px;
  }
  .maps #map {
    position: relative;
  }
  .maps #sidebar {
    position: absolute;
  }
  .leaflet-popup {
    font-size: 15px;
  }
  .leaflet-popup small {
    font-size: 13px;
  }
}
@media only screen and (max-width: 700px) {
  .maps .map-body {
    padding: 0;
  }
}

/*# sourceMappingURL=map-style.css.map */
