/* nearbySearch.css */

#hanabiMap {
  width: 100%;
  height: 40vh;
  max-height: 500px;
  touch-action: none;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.custom-marker {
  max-width: 80vw;
  word-break: break-word;
}

.marker-label {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  max-width: 120px;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  line-height: 1.3;
}

.marker-date {
  font-weight: bold;
  color: #d63384;
  font-size: 11px;
  margin-bottom: 2px;
}

.marker-title {
  color: #333;
  font-size: 11px;
}

.marker-icon {
  width: 40px;
  height: 40px;
}

.nearby-search-controls {
  margin: 0 0 16px 0;
}

.nearby-radius-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  flex-wrap: wrap;
}

.nearby-radius-select {
  min-width: 110px;
  padding: 10px 12px;
  border: 1px solid #d9b1b1;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}

.nearby-search-btn-wrap {
  margin: 0 0 14px 0;
}

.nearby-search-btn {
  width: 100%;
  max-width: 360px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff7a7a 0%, #e45b5b 100%);
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.08s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.nearby-search-btn:hover {
  opacity: 0.95;
}

.nearby-search-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.nearby-search-btn:focus-visible {
  outline: 3px solid rgba(255,122,122,0.28);
  outline-offset: 2px;
}

.nearby-search-btn-icon {
  font-size: 18px;
  line-height: 1;
}

.nearby-search-btn-text {
  display: inline-block;
}

.nearby-manual-search {
  margin-bottom: 1em;
}

.nearby-location-input {
  width: 70%;
  padding: 10px 12px;
  border: 1px solid #d9b1b1;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  box-sizing: border-box;
}

.nearby-sub-btn {
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid #cc6666;
  border-radius: 8px;
  background: #fff5f5;
  color: #b94a4a;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.nearby-sub-btn:active {
  transform: translateY(1px);
}

.event-card {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  font-family: Arial, sans-serif;
}

.event-card h3 {
  font-size: 16px;
  margin: 0 0 5px;
}

.event-card p {
  margin: 2px 0;
  font-size: 14px;
}

@media screen and (max-width: 480px) {
  .nearby-search-btn {
    width: 100%;
    max-width: none;
    font-size: 16px;
    padding: 13px 14px;
    border-radius: 9px;
  }

  .nearby-location-input {
    width: 100%;
  }

  .nearby-sub-btn {
    width: 100%;
  }
}

.nearby-search-description {
  margin: 28px 0 10px 0;
  padding: 16px;
  background: #fffdfb;
  border: 1px solid #f0d8d8;
  border-radius: 10px;
}

.nearby-search-description h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
  line-height: 1.5;
}

.nearby-search-description p {
  margin: 0 0 12px 0;
  line-height: 1.9;
  font-size: 14px;
}

.nearby-search-description p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 480px) {
  .nearby-search-description {
    padding: 14px;
  }

  .nearby-search-description h2 {
    font-size: 18px;
  }

  .nearby-search-description p {
    font-size: 13px;
    line-height: 1.85;
  }
}
