/* map.css — Prontera Map page-specific styles */

.map-panel {
  display: none;
}

.map-panel.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 600px;
}

.map-search input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.map-search input:focus {
  border-color: var(--gold);
  outline: none;
}

.map-container {
  position: relative;
  display: inline-block;
  border: 2px solid var(--gold3);
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
}

.map-container img,
.map-img-wrap img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Map dots (shop markers) */
.map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.map-dot:hover {
  width: 14px;
  height: 14px;
  background: var(--gold2);
  box-shadow: 0 0 10px var(--gold);
  z-index: 3;
}

.map-dot.highlight {
  width: 16px;
  height: 16px;
  background: var(--blue);
  border-color: #fff;
  box-shadow: 0 0 12px var(--blue), 0 0 24px rgba(88, 166, 255, 0.4);
  z-index: 5;
  animation: mapPulse 1s infinite;
}

@keyframes mapPulse {
  0%, 100% { box-shadow: 0 0 12px var(--blue); }
  50% { box-shadow: 0 0 24px var(--blue), 0 0 40px rgba(88, 166, 255, 0.5); }
}

.map-dot.clicked {
  width: 16px;
  height: 16px;
  background: var(--green);
  border-color: #fff;
  box-shadow: 0 0 12px var(--green);
  z-index: 5;
  animation: none;
}

/* Tooltip on hover */
.map-tooltip {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--gold3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text);
  pointer-events: none;
  z-index: 10;
  max-width: 250px;
  box-shadow: 0 4px 16px var(--shadow);
  display: none;
}

.map-tooltip .tt-name {
  color: var(--gold2);
  font-weight: 600;
  margin-bottom: 4px;
}

.map-tooltip .tt-item {
  color: var(--text2);
  font-size: 0.72rem;
}

.map-tooltip .tt-price {
  color: var(--gold);
}

/* Legend */
.map-legend {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text2);
  justify-content: center;
}
