/**
 * ==========================================================================
 * [map-view.css]
 * 역할: 지도, 검색창 및 🎯 내 현재 위치 GPS 플로팅 버튼 CSS (1파일 1기능)
 * ==========================================================================
 */

.map-section {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #e5e5e5;
}

#map {
  width: 100%;
  height: 100%;
}

/* 🔍 100% 완전 불투명 선명한 상단 검색창 */
.search-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff !important;
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  border: 2px solid #dfe4ea !important;
}

.search-input {
  flex: 1;
  min-width: 200px;
  border: none;
  background: #ffffff !important;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #2d3436 !important;
  outline: none;
  border-radius: 10px;
  font-family: inherit;
}

.search-input::placeholder {
  color: #a4b0be;
  font-weight: 600;
}

.search-btn {
  background-color: #ff4757;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.search-btn:hover {
  background-color: #ff6b81;
}

/* 🎯 내 현재 위치로 이동 GPS 플로팅 버튼 */
.my-location-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ff4757;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.35);
  transition: all 0.2s ease;
}

.my-location-btn:hover {
  transform: scale(1.1);
  background: #fff0f2;
}

.my-location-btn:active {
  transform: scale(0.95);
}

/* 🔍 검색 결과 드롭다운 리스트 */
.search-result-list {
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 12px;
  margin-top: 4px;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f2f6;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #2d3436;
}

.search-result-address {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a4b0be;
}
