/* =====================================================
   V7 - GPS 현재 위치 기반 검색
   기존 style.css 뒤에 추가로 불러오는 보조 스타일
===================================================== */

.search-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.search-actions #searchButton {
  white-space: nowrap;
}

.location-button {
  width: 52px;
  min-width: 52px;
  padding: 0 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #0f9d58 !important;
  border: none;
  border-radius: 8px;

  color: white;
  cursor: pointer;
}

.location-button:hover {
  background: #0b8043 !important;
}

.location-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.location-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.location-button.locating svg {
  animation: gps-pulse 0.9s ease-in-out infinite alternate;
}

.location-help {
  margin: -14px 0 24px;
  color: #6b7280;
  font-size: 13px;
}

.distance-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 10px;

  background: #e8f5e9;
  border: 1px solid #b7dfbf;
  border-radius: 999px;

  color: #137a42;
  font-size: 14px;
  font-weight: 700;
}

@keyframes gps-pulse {
  from {
    transform: scale(0.88);
    opacity: 0.65;
  }

  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 600px) {

  .search-actions {
    width: 100%;
  }

  .search-actions #searchButton {
    flex: 1;
    width: auto;
  }

  .search-actions .location-button {
    flex: 0 0 58px;
    width: 58px !important;
  }

  .location-help {
    margin-top: -14px;
  }
}
