.map {
  width: 100%;
  height: auto;
  background: #617418;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
  touch-action: none;
  cursor: grab;
}

.map:active {
  cursor: grabbing;
}

.map svg {
  width: 100%;
  min-width: 1000px;
  position: relative;
}

@media (min-width: 992px) {
  .map svg {
    width: 100%;
    min-width: auto;
    position: relative;
  }
}

.svg-container {
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  width: 100%;
  display: flex;
}

.stand {
  cursor: pointer;
  stroke: #768b26;
  stroke-width: 1.5;
  transition: all 0.2s ease;
}

.stand:hover {
  fill: #ddd;
}

.stand.active {
  stroke: var(--secondary);
  stroke-width: 5px;
  cursor: pointer;
}

.info-box {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 1em;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 7;
  display: flex;
  border-radius: 10px 10px 0 0;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

@media (min-width: 992px) {
  .info-box {
    bottom: 50px;
    width: 90%;
    border-radius: 10px;
  }
}

.info-box img {
  max-height: 100px;
}

.info-box.hidden {
  display: none;
}

.info-box a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.infobox-area {
  position: relative;
  width: 100%;
}

.info-box button {
  position: absolute;
  width: 100px;
  right: -20px;
  top: -20px;
  color: white;
  text-align: end;
  font-size: 20px;
  border-left: 0px solid transparent;
  border-right: 100px solid var(--secondary);
  border-bottom: 50px solid transparent;
  border-top: 0px solid var(--secondary);
  cursor: pointer;
  padding: 0;
  border-radius: 0 10px 0 0;
}

.info-box button:hover {
  border-left: 0px solid transparent;
  border-right: 100px solid var(--tertiary);
  border-bottom: 50px solid transparent;
  border-top: 0px solid var(--secondary);
  color: white;
}

.info-box button svg {
  position: absolute;
  top: 5px;
  right: -90px;
  width: 25px;
  min-width: 25px;
  height: 25px;
}

.tooltip-map {
  position: absolute;
  padding: 6px 10px;
  background: var(--tertiary);
  color: #fff;
  font-size: 13px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 7;
  display: none;
  transform: translate(-50%, -25%);
}

.tooltip-map::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, 100%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--tertiary) transparent transparent transparent;
}

.zoom-controls {
  bottom: 20px;
  right: 20px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zoom-controls button {
  width: 40px;
  height: 40px;
  font-size: 24px;
  font-weight: bold;
  background: var(--senary);
  color: var(--secondary);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoom-controls button:hover {
  background: var(--primary);
}

.zoom-controls button svg {
  width: 25px;
  height: 25px;
  display: block;
  position: absolute;
}

#map-overview {
  width: 200px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  pointer-events: none;
}

#viewport-indicator {
  stroke: #00f;
  stroke-width: 2;
  fill: rgba(0, 0, 255, 0.5);
  pointer-events: none;
  transition: all 0.2s ease;
  shape-rendering: crispEdges;
}

.map-view {
  border: solid 1px white;
  border-radius: 3px;
}

#map-place {
  border-radius: 10px;
  border: solid 1px white;
  background: var(--primary);
  padding: 5px;
  overflow: hidden;
}

#map-place img {
  border-radius: 5px;
  mix-blend-mode: lighten;
}

#stand-label {
  position: absolute;
  padding: 6px 10px;
  background: var(--secondary);
  color: #fff;
  font-size: 13px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 7;
  display: none;
  transform: translate(-50%, -10%);
}

#stand-label.hidden {
  display: none;
}

#stand-label:before {
  content: " ";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, 100%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--secondary) transparent transparent transparent;
}

#info-box {
  transition: opacity 0.3s ease;
}

#info-box.hidden {
  opacity: 0;
  pointer-events: none;
}

