﻿/* Map Viewport & Container */
#map-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 지도 타일 이미지/캔버스 스케일 왜곡 방지 리셋 */
#map-view img,
.map-container img {
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Floating Controls on Map */
.map-floating-bar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 15;
  display: flex;
  gap: 10px;
  align-items: center;
}

.engine-switch {
  display: flex;
  background: rgba(26, 29, 36, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.btn-engine {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-engine.active {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.btn-engine.active[data-engine="kakao"] {
  color: #111;
  background: var(--accent-kakao);
}

.btn-engine.active[data-engine="google"] {
  color: white;
  background: var(--accent-google);
}

/* Edit Guide Banner */
.edit-guide-banner {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 29, 36, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-ride);
  border-radius: 30px;
  padding: 8px 18px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #fff;
  z-index: 25;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: fadeInDown 0.3s ease;
}

.edit-guide-banner.show {
  display: flex;
}

.edit-guide-banner .guide-icon {
  font-size: 1.1rem;
  animation: pulse 1.5s infinite;
}

.btn-close-banner {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 50%;
}

.btn-close-banner:hover {
  color: #fff;
}

/* 임시 클릭 지점 펄스 핀 마커 */
.temp-click-pin {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(58, 134, 255, 0.4);
  animation: pinPulseRing 1.4s ease-out infinite;
}

.pin-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3a86ff;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@keyframes pinPulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
