/* ===================================
   守成マップ - フロントスタイル
   =================================== */

/* --- 地図コンテナ --- */
#shusei-map {
  width: 100%;
  border-radius: 8px; /* 角丸にする */
  border: 2px solid #ddd;
  margin: 20px 0;
  z-index: 0; /* 他の要素との重なり順を制御 */
}

/* --- カテゴリフィルターボタン群 --- */
.shusei-filter {
  display: flex; /* 横並びにする */
  flex-wrap: wrap; /* 画面に収まらない場合は折り返す */
  gap: 8px; /* ボタン間の隙間 */
  padding: 10px 20px;
}

.shusei-filter-btn {
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 20px; /* 丸みのあるボタン */
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease; /* ホバー時のアニメーション */
}

.shusei-filter-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}

/* アクティブ（選択中）のボタン */
.shusei-filter-btn.active {
  background: #0073aa; /* WordPressの青色 */
  color: #fff;
  border-color: #0073aa;
}

/* --- 吹き出し（ポップアップ）--- */
.shusei-popup {
  min-width: 200px;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.6;
}

.shusei-popup-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #0073aa;
  color: #333;
}

.shusei-popup-desc {
  color: #666;
  margin-bottom: 10px;
}

.shusei-popup p {
  margin: 4px 0;
  font-size: 13px;
}

.shusei-popup a {
  color: #0073aa;
  text-decoration: none;
}

.shusei-popup a:hover {
  text-decoration: underline;
}

/* --- Google風ドロップピン --- */
.shusei-pin {
  position: relative;
  width: 44px;
  height: 44px;
  background: #e74c3c; /* ピンの色（赤） */
  border-radius: 50%; /* 丸にする */
  border: 3px solid #c0392b; /* 濃い赤の枠線 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.shusei-pin img {
  width: 28px;
  height: 28px;
  border-radius: 50%; /* アイコンを丸く切り抜く */
  object-fit: cover;
  background: #fff;
  padding: 2px;
}

/* ピンの下のとんがり（逆三角形） */
.shusei-pin-arrow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid; /* 色はJSの style で指定 */
  border-top-color: inherit;
}

/* Googleマップリンクボタン */
.shusei-popup-gmap {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.shusei-popup-gmap a {
  display: inline-block;
  padding: 4px 12px;
  background: #4285f4;
  color: #fff !important;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.shusei-popup-gmap a:hover {
  background: #3367d6;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  #shusei-map {
    height: 400px !important; /* スマホでは高さを抑える */
    border-radius: 4px;
  }

  .shusei-filter {
    gap: 5px;
  }

  .shusei-filter-btn {
    font-size: 11px;
    padding: 4px 10px;
  }

  .shusei-popup {
    min-width: 150px;
    max-width: 250px;
  }
}
