/* 給水・入浴・ガソリンの統合支援場所マップ */

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body[data-page="support-map"] .wrap {
  max-width: 1180px;
}

.support-map-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(78, 196, 161, 0.28), transparent 28%),
    linear-gradient(145deg, #12332a 0%, #1b5746 100%);
  color: #fff;
  padding: 23px 0 21px;
}

.support-map-hero__eyebrow {
  color: #f6cf68;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 7px;
}

.support-map-hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 6vw, 2.45rem);
  line-height: 1.3;
  margin: 0 0 7px;
}

/* 説明文。ヒーロー末尾に注目情報の <details> が入るので :last-child では拾えない */
.support-map-hero p:not(.support-map-hero__eyebrow) {
  color: #edf8f4;
  line-height: 1.65;
  margin: 0;
  max-width: 52rem;
}

/* ==== 八代市の注目情報（ヒーロー下・押すと開く。2026-08-03 オーナー指示） ====
   地図より先に大きな塊を置かないため、閉じているときは1行のボタンだけにする。
   マップの黄色ボタン（トップページ）より小さく、幅は内容に合わせる。 */
.map-featured {
  margin: 11px 0 0;
  max-width: 52rem;
}

/* <summary> の display は変えない（開閉コントロールとしての意味が失われるため）。
   三角マーカーだけ消し、見た目のボタンは中の span で作る。 */
.map-featured__summary {
  list-style: none;
  cursor: pointer;
}

.map-featured__summary::-webkit-details-marker {
  display: none;
}

.map-featured__summary::marker {
  content: "";
}

.map-featured__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  border: 2px solid #fff2b8;
  border-radius: 11px;
  background: #f7c948;
  color: #16372e;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 3px 0 #b7791f;
}

.map-featured__summary:focus-visible .map-featured__btn {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.map-featured__summary:active .map-featured__btn {
  transform: translateY(2px);
  box-shadow: none;
}

.map-featured__mark {
  flex: 0 0 auto;
  background: #16372e;
  color: #ffe9a3;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.map-featured__caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #16372e;
  transition: transform 0.12s ease;
}

.map-featured[open] .map-featured__caret {
  transform: rotate(180deg);
}

.map-featured__panel {
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-left: 5px solid #f7c948;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.map-featured__item + .map-featured__item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.map-featured__city {
  display: inline-block;
  margin-bottom: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: #16372e;
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 0.74rem;
  font-weight: 800;
}

.map-featured__head {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.map-featured__body {
  margin: 0;
  color: #f2f7f4;
  font-size: 0.88rem;
  line-height: 1.65;
}

.map-featured__body strong {
  color: #ffe9a3;
}

.map-featured__body a {
  color: #ffe9a3;
}

.map-featured__meta {
  margin: 6px 0 0;
  color: #cfe0d8;
  font-size: 0.76rem;
  line-height: 1.5;
}

.map-featured__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff;
  color: #14532d;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.map-featured__more:visited {
  color: #14532d;
}

.map-featured__more:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .map-featured__caret {
    transition: none;
  }
}

.support-map-status {
  background: #f5f8f6;
  border: 0;
  border-radius: 0;
  border-top: 1px solid #d4ded9;
  box-shadow: none;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 10px 12px 12px;
  position: relative;
  z-index: 1;
}

.support-map-status > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-map-status small {
  color: #52645e;
  line-height: 1.5;
}

.support-map-live-dot {
  background: #168353;
  border: 3px solid #daf1e7;
  border-radius: 50%;
  height: 14px;
  width: 14px;
}

.support-map-shell {
  background: #e9efec;
  border: 1px solid #c6d3ce;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(18, 51, 42, 0.12);
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}

.support-map-filters {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #d4ded9;
  border-top: 1px solid #d4ded9;
  margin: 0;
  padding: 12px;
}

.support-map-filters legend {
  color: #12332a;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0 0 7px;
}

.support-map-filter-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-map-filter {
  align-items: center;
  background: #f8faf9;
  border: 2px solid #d2ddd8;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  min-height: 58px;
  padding: 7px 9px;
  position: relative;
}

.support-map-filter input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.support-map-filter.is-active {
  background: #eaf5f0;
  border-color: #1f6a53;
  box-shadow: inset 0 0 0 1px #1f6a53;
}

.support-map-filter.is-active::after {
  align-items: center;
  background: #1f6a53;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  content: "✓";
  display: flex;
  font-size: 0.65rem;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 20px;
}

.support-map-filter:focus-within {
  outline: 3px solid #f6c246;
  outline-offset: 2px;
}

.support-map-filter__icon {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  height: 34px;
  justify-content: center;
}

.support-map-filter__icon--all { background: #244f42; }
.support-map-filter__icon--water { background: #116ec8; }
.support-map-filter__icon--bath { background: #087b72; }
.support-map-filter__icon--fuel { background: #c86400; }
.support-map-filter__icon--toilet { background: #7a3e98; }
.support-map-filter__icon--takidashi { background: #b5232b; }
.support-map-filter__icon--well { background: #7a5c1f; }
.support-map-filter__icon--pet { background: #8a3655; }
.support-map-filter__icon--shelter { background: #2e7d32; }

.support-map-filter strong,
.support-map-filter small {
  display: block;
  line-height: 1.25;
}

.support-map-filter strong {
  color: #153b31;
  font-size: 0.92rem;
}

.support-map-filter small {
  color: #5d6f69;
  font-size: 0.7rem;
  margin-top: 3px;
}

.support-map-toolbar {
  background: #fff;
  border-bottom: 1px solid #d4ded9;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 12px;
}

.support-map-tool {
  align-items: center;
  background: #fff;
  border: 1.5px solid #b6c7c0;
  border-radius: 10px;
  color: #174438;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 48px;
  padding: 6px 8px;
}

.support-map-tool:hover,
.support-map-tool:focus-visible {
  background: #eef7f3;
  border-color: #2b6b58;
}

.support-map-tool:focus-visible,
.support-map-area select:focus-visible,
.support-map-search:focus-visible,
.support-map-more:focus-visible {
  outline: 3px solid #f6c246;
  outline-offset: 2px;
}

.support-map-tool svg {
  height: 19px;
  width: 19px;
}

.support-map-tool:disabled {
  cursor: wait;
  opacity: 0.72;
}

.support-map-area {
  align-items: center;
  background: #f3f7f5;
  border: 1px solid #c8d4cf;
  border-radius: 10px;
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 48px;
  padding: 5px 7px 5px 11px;
}

.support-map-area span {
  color: #52645e;
  font-size: 0.72rem;
  font-weight: 800;
}

.support-map-area select {
  background: #fff;
  border: 1px solid #aebfb8;
  border-radius: 8px;
  color: #163e33;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 38px;
  padding: 4px 30px 4px 8px;
  width: 100%;
}

.support-map-stage {
  background: #e7ecea;
  height: clamp(470px, 58vh, 720px);
  position: relative;
  width: 100%;
}

/* 現在地は地図を見ながら使う操作なので、フィルターの下ではなく地図内に常設する。
   Google Maps／MapLibreの右側コントロール、下部の詳細カードとは重ならない。 */
.support-map-location-control {
  background: #12332a;
  border: 2px solid #fff;
  box-shadow: 0 3px 12px rgba(18, 51, 42, 0.28);
  color: #fff;
  left: max(10px, env(safe-area-inset-left));
  max-width: calc(
    100% - 84px - env(safe-area-inset-left) - env(safe-area-inset-right)
  );
  min-height: 48px;
  padding: 8px 12px;
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  touch-action: manipulation;
  width: auto;
  z-index: 5;
}

.support-map-location-control:hover,
.support-map-location-control:focus-visible {
  background: #1b5746;
  border-color: #fff;
  color: #fff;
}

.support-map-location-control:disabled {
  background: #415d54;
  color: #fff;
}

.support-map-location-control[aria-busy="true"] {
  cursor: progress;
  opacity: 0.86;
}

.support-map-location-control[hidden] {
  display: none;
}

/* style.css の .support-map（別ページの静止画マップ用）が margin:18px 0 30px を当ててくる。
   その上マージンが stage を貫通して shell の内側に落ち、地図の上に灰色の帯として見えるため必ず打ち消す。 */
.support-map {
  height: 100%;
  margin: 0;
  width: 100%;
}

.support-map-loading {
  align-items: center;
  background: #edf2f0;
  color: #304b42;
  display: flex;
  font-weight: 700;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
  z-index: 3;
}

.support-map-loading[hidden] {
  display: none;
}

.support-map-message {
  background: rgba(18, 51, 42, 0.92);
  border-radius: 10px;
  bottom: 14px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  left: 50%;
  line-height: 1.45;
  max-width: calc(100% - 88px);
  opacity: 0;
  padding: 8px 11px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 4;
}

.support-map-message:not(:empty) {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 操作の案内は地図の「下端」に置く（2026-08-03 オーナー指摘）。
   以前は現在地ボタンの真下（top:70px）に横幅いっぱいで出ており、
   初期表示でいちばんピンが密集する熊本市付近を覆っていた。
   下端の帰属表示（約32px）を避けて置き、最初の操作か9秒でそっと消す。 */
.support-map-gesture-hint {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #c3d0cb;
  border-radius: 999px;
  bottom: calc(42px + env(safe-area-inset-bottom));
  box-shadow: 0 2px 8px rgba(18, 51, 42, 0.14);
  color: #28483e;
  font-size: 0.66rem;
  font-weight: 800;
  left: max(10px, env(safe-area-inset-left));
  line-height: 1.3;
  margin: 0;
  max-width: calc(
    100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)
  );
  padding: 5px 9px;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.45s ease;
  z-index: 4;
}

.support-map-gesture-hint.is-hidden {
  opacity: 0;
}

.support-google-pin {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.support-google-pin > * {
  filter: drop-shadow(0 3px 3px rgba(18, 51, 42, 0.3));
  transform-origin: 50% 100%;
  transition: transform 0.15s ease;
}

/* 引いた縮尺ではピンを小さくして重なりの面積を減らす（件数は間引かない）。
   先端が位置を指すので、拡大の基点は必ず下端中央にする。 */
.support-map[data-density="far"] .support-google-pin > * {
  transform: scale(0.6);
}

.support-map[data-density="mid"] .support-google-pin > * {
  transform: scale(0.8);
}

/* 選択中のピンだけは縮小の対象から外し、常にはっきり見せる */
.support-map[data-density="far"] .support-google-pin.is-selected > *,
.support-map[data-density="mid"] .support-google-pin.is-selected > * {
  transform: scale(1);
}

.support-google-pin:hover {
  filter: brightness(1.06);
  transform: translateY(-2px) scale(1.06);
}

/* 開いている地点。重なりの中でどれを見ているかが分かるよう一段持ち上げる */
.support-google-pin.is-selected {
  transform: translateY(-3px) scale(1.18);
}

.support-google-pin.is-selected > * {
  filter: drop-shadow(0 0 0 #12332a) drop-shadow(0 0 3px #12332a)
    drop-shadow(0 4px 5px rgba(18, 51, 42, 0.45));
}

.support-google-pin.is-private > * {
  filter:
    drop-shadow(0 0 2px #71378d)
    drop-shadow(0 3px 3px rgba(18, 51, 42, 0.3));
}

/* 重要支援・指定支援は、点滅させずに黄色の光だけを薄く足す。 */
.support-google-pin.is-featured > *,
.support-google-pin.is-glowing > * {
  filter:
    drop-shadow(0 0 3px rgba(242, 201, 76, 0.9))
    drop-shadow(0 0 7px rgba(242, 201, 76, 0.42))
    drop-shadow(0 3px 3px rgba(18, 51, 42, 0.3));
}

.support-google-pin.is-featured.is-selected > *,
.support-google-pin.is-glowing.is-selected > * {
  filter:
    drop-shadow(0 0 4px rgba(242, 201, 76, 0.95))
    drop-shadow(0 0 8px rgba(242, 201, 76, 0.48))
    drop-shadow(0 4px 5px rgba(18, 51, 42, 0.42));
}

.support-map .gm-style button {
  min-height: 44px;
  min-width: 44px;
}

.support-map .maplibregl-ctrl-group button {
  height: 44px;
  width: 44px;
}

.support-map .maplibregl-ctrl-group {
  border-radius: 10px;
  overflow: hidden;
}

.support-map .maplibregl-ctrl-attrib {
  font-size: 10px;
  line-height: 15px;
}

.support-map-legend {
  align-items: center;
  background: #fff;
  border-top: 1px solid #d4ded9;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 8px 14px;
  line-height: 1.4;
  padding: 10px 12px;
}

.support-map-legend span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.support-map-legend i {
  background: #174438;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #a8b9b2;
  display: inline-block;
  height: 17px;
  width: 17px;
}

.support-map-legend .is-water { background: #116ec8; }
.support-map-legend .is-bath { background: #087b72; }
.support-map-legend .is-fuel { background: #c86400; }
.support-map-legend .is-toilet { background: #7a3e98; }
.support-map-legend .is-takidashi { background: #b5232b; }
.support-map-legend .is-well { background: #7a5c1f; }
.support-map-legend .is-pet { background: #8a3655; }
.support-map-legend .is-shelter { background: #2e7d32; }
/* きょうの予定が未発表の地点。色（種類）は残したまま、しま模様で「未確定」を示す。 */
.support-map-legend .is-pending {
  background: repeating-linear-gradient(45deg, #116ec8 0 4px, #9aa4b0 4px 8px);
  border-color: #5b6673;
}
/* 給水の本日分終了は、未発表と別の水色×グレーで表す。 */
.support-map-legend .is-finished {
  background: repeating-linear-gradient(45deg, #79c9f2 0 4px, #9aa4b0 4px 8px);
  border-color: #5b6673;
}
.support-map-legend .is-private {
  background: #087b72;
  border-color: #fff;
  box-shadow: 0 0 0 3px #7a3e98;
  margin: 0 2px;
}

.support-map-detail {
  background: #fff;
  border: 1px solid #c7d3ce;
  border-top: 5px solid #1d5c48;
  border-radius: 16px;
  bottom: 12px;
  box-shadow: 0 12px 36px rgba(17, 41, 34, 0.26);
  left: 12px;
  max-height: min(64%, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px;
  position: absolute;
  right: 12px;
  scrollbar-gutter: stable;
  z-index: 6;
}

.support-map-detail[hidden] {
  display: none;
}

.support-map-detail[data-type="water"] {
  border-top-color: #116ec8;
}

.support-map-detail[data-type="bath"] {
  border-top-color: #087b72;
}

.support-map-detail[data-type="fuel"] {
  border-top-color: #c86400;
}

.support-map-detail[data-type="toilet"] {
  border-top-color: #7a3e98;
}

.support-map-detail[data-type="pet"] {
  border-top-color: #8a3655;
}

.support-map-detail__head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.support-detail-type,
.support-detail-source-kind {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 4px 4px 0;
  padding: 4px 8px;
}

.support-detail-type {
  background: #e8f3ef;
  color: #174c3c;
}

.support-detail-source-kind {
  background: #f0e7f5;
  color: #64307e;
}

.support-map-detail__close {
  align-items: center;
  background: #f1f4f2;
  border: 1px solid #bfcac6;
  border-radius: 50%;
  color: #243b33;
  cursor: pointer;
  display: flex;
  flex: 0 0 44px;
  font-size: 1.45rem;
  height: 44px;
  justify-content: center;
}

.support-map-detail h2 {
  border-left: 0;
  font-size: 1.2rem;
  margin: 7px 0 11px;
  padding: 0;
}

.support-map-detail__rows {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0 0 10px;
}

.support-map-detail__rows dt,
.support-map-detail__rows dd {
  border-top: 1px solid #e2e8e5;
  line-height: 1.55;
  margin: 0;
  padding: 8px 6px;
}

.support-map-detail__rows dt {
  color: #52645e;
  font-size: 0.76rem;
  font-weight: 800;
  padding-left: 0;
}

.support-map-detail__rows dd {
  color: #1f302a;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

/* きょうの分が未発表の地点・避難場所は、表の前に注意帯を出して空振りを防ぐ。 */
.support-detail-alert {
  background: #fff5e0;
  border: 1px solid #d98b12;
  border-left: 5px solid #d98b12;
  border-radius: 10px;
  color: #6b4708;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 11px;
  padding: 10px 12px;
}
.support-detail-alert[data-kind="shelter"] {
  background: #eef6ef;
  border-color: #2e7d32;
  border-left-color: #2e7d32;
  color: #1f5423;
}
.support-detail-alert[data-kind="featured"] {
  background: #fffbea;
  border-color: #d6a827;
  border-left-color: #d6a827;
  color: #674d07;
}
.support-detail-alert[data-kind="finished"] {
  background: repeating-linear-gradient(
    135deg,
    #eaf7fd 0 12px,
    #eef1f3 12px 24px
  );
  border-color: #548baa;
  border-left-color: #548baa;
  color: #174e6e;
  font-size: 0.94rem;
}
.support-detail-alert[data-kind="scheduled"] {
  background: #eef8ff;
  border-color: #2f7ea8;
  border-left-color: #2f7ea8;
  color: #164d69;
  font-size: 0.94rem;
}

/* 一覧の「きょうの予定は未発表」バッジ。名前のすぐ横に置いて見落としを防ぐ。 */
.support-pending-badge {
  background: #fff5e0;
  border: 1px solid #d98b12;
  border-radius: 999px;
  color: #8a5a06;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: 6px;
  padding: 1px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.support-finished-badge {
  background: repeating-linear-gradient(
    135deg,
    #e3f5fd 0 8px,
    #e6eaed 8px 16px
  );
  border: 1px solid #548baa;
  border-radius: 999px;
  color: #174e6e;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: 6px;
  padding: 1px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.support-scheduled-badge {
  background: #eef8ff;
  border: 1px solid #2f7ea8;
  border-radius: 999px;
  color: #164d69;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: 6px;
  padding: 1px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.support-featured-badge {
  background: #fff8d9;
  border: 1px solid #d6a827;
  border-radius: 999px;
  color: #72550a;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: 6px;
  padding: 1px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.support-map-list-item.is-pending {
  border-left: 4px solid #d98b12;
}
.support-map-list-item.is-finished {
  background: repeating-linear-gradient(
    135deg,
    rgba(121, 201, 242, 0.13) 0 14px,
    rgba(154, 164, 176, 0.12) 14px 28px
  );
  border-left-color: #548baa;
}
.support-nearby__icon.is-pending {
  box-shadow: inset 0 0 0 2px #fff;
}
.support-nearby__icon.is-finished {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #5b6673;
}

.support-map-detail__summary {
  background: #f5f8f6;
  border-radius: 10px;
  color: #3c5049;
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0 0 11px;
  padding: 10px;
}

/* 重なって隠れている地点を詳細カードから直接選ぶためのリスト */
.support-nearby {
  border-top: 1px dashed #c3d0cb;
  margin: 0 0 11px;
  padding-top: 9px;
}

.support-nearby__title {
  color: #2b4a40;
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 0 7px;
}

.support-nearby__list {
  display: grid;
  gap: 6px;
  max-height: 168px;
  overflow-y: auto;
}

.support-nearby__item {
  align-items: center;
  background: #fff;
  border: 1px solid #cfdad5;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 8px;
  min-height: 44px;
  padding: 6px 9px;
  text-align: left;
  width: 100%;
}

.support-nearby__item:hover,
.support-nearby__item:focus-visible {
  background: #eef4f1;
  border-color: #1b5746;
}

.support-nearby__icon {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 24px;
  font-size: 0.68rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.support-nearby__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.support-nearby__text strong {
  color: #16332b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.support-nearby__text small {
  color: #4a6259;
  font-size: 0.7rem;
  line-height: 1.35;
}

.support-nearby__more {
  color: #4a6259;
  font-size: 0.72rem;
  margin: 2px 0 0;
}

.support-map-detail__actions {
  display: grid;
  gap: 8px;
}

.support-google-button {
  align-items: center;
  background: #1769aa;
  border-radius: 11px;
  color: #fff !important;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  padding: 9px 14px;
  text-decoration: none;
}

.support-google-button:hover,
.support-google-button:focus-visible {
  background: #0e568f;
}

.support-google-button svg {
  height: 22px;
  width: 22px;
}

.support-map-detail__actions .btn {
  justify-content: center;
  margin: 0;
}

.support-map-quick-guide {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 20px;
}

.support-map-quick-guide > div {
  align-items: center;
  background: #fff;
  border: 1px solid #d5ded9;
  border-radius: 11px;
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 8px;
  line-height: 1.4;
  min-height: 56px;
  padding: 8px 10px;
}

.support-map-quick-guide b {
  align-items: center;
  background: #12332a;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 27px;
  font-size: 0.75rem;
  height: 27px;
  justify-content: center;
}

.support-map-list-section {
  background: #fff;
  border: 1px solid #d5ded9;
  border-radius: 16px;
  margin: 0 0 20px;
  padding: 15px;
}

.support-map-list-heading {
  align-items: flex-end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.support-map-list-heading h2 {
  margin: 0 0 12px;
}

.support-map-list-eyebrow {
  color: #1c6650;
  font-size: 0.74rem;
  font-weight: 800;
  margin: 0 0 2px 12px;
}

.support-map-list-count {
  background: #eaf3ee;
  border-radius: 999px;
  color: #174438;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 13px;
  padding: 4px 9px;
}

.support-map-search {
  background: #fff;
  border: 2px solid #aebfb8;
  border-radius: 10px;
  font: inherit;
  margin: 5px 0 12px;
  min-height: 50px;
  padding: 8px 11px;
  width: 100%;
}

.support-map-list {
  display: grid;
  gap: 9px;
}

.support-map-list-item {
  align-items: start;
  background: #fbfcfb;
  border: 1px solid #d8e0dc;
  border-left: 5px solid #42685b;
  border-radius: 11px;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.support-map-list-item[data-type="water"] { border-left-color: #116ec8; }
.support-map-list-item[data-type="bath"] { border-left-color: #087b72; }
.support-map-list-item[data-type="fuel"] { border-left-color: #c86400; }
.support-map-list-item[data-type="toilet"] { border-left-color: #7a3e98; }
.support-map-list-item[data-type="pet"] { border-left-color: #8a3655; }
.support-map-list-item.is-private { box-shadow: inset 0 0 0 2px #eadcf1; }
.support-map-list-item.is-featured {
  background: #fffdf5;
  box-shadow: inset 0 0 0 1px rgba(214, 168, 39, 0.3);
}

.support-map-list-item__main {
  background: transparent;
  border: 0;
  color: #173b30;
  cursor: pointer;
  font: inherit;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.support-map-list-item__main strong,
.support-map-list-item__main small {
  display: block;
}

.support-map-list-item__main strong {
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-map-list-item__main small {
  color: #5b6b65;
  font-size: 0.7rem;
  line-height: 1.45;
  margin-top: 3px;
}

.support-map-list-item__google {
  align-items: center;
  align-self: start;
  background: #fff;
  border: 1px solid #aebfb8;
  border-radius: 999px;
  color: #174438 !important;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 4px;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.support-map-list-item__google:hover,
.support-map-list-item__google:focus-visible {
  background: #edf6f2;
  border-color: #467768;
}

.support-map-list-item__google svg {
  height: 17px;
  width: 17px;
}

.support-map-list-item__google-arrow {
  color: #648078;
  font-size: 0.74rem;
}

.support-map-list-item__badge {
  color: #6c337f;
  font-size: 0.67rem;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.35;
}

.support-map-coordinate-note {
  color: #556b63;
  font-size: 0.72rem;
  line-height: 1.55;
  margin: 0;
  padding: 8px 12px 12px;
}

.support-map-more {
  background: #fff;
  border: 1.5px solid #6c837b;
  border-radius: 10px;
  color: #174438;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 12px;
  min-height: 48px;
  width: 100%;
}

.support-map-attribution {
  color: #65736e;
  font-size: 0.68rem;
  line-height: 1.55;
  margin-top: 18px;
}

@media (min-width: 720px) {
  .support-map-filter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .support-map-toolbar {
    grid-template-columns: auto minmax(280px, 1fr);
  }

  .support-map-area {
    grid-column: auto;
  }

  .support-map-detail {
    border-left: 5px solid #1d5c48;
    border-top: 0;
    bottom: 16px;
    left: auto;
    max-height: calc(100% - 32px);
    right: 16px;
    width: min(420px, calc(100% - 32px));
  }

  .support-map-detail[data-type="water"] {
    border-left-color: #116ec8;
  }

  .support-map-detail[data-type="bath"] {
    border-left-color: #087b72;
  }

  .support-map-detail[data-type="fuel"] {
    border-left-color: #c86400;
  }

  .support-map-detail[data-type="toilet"] {
    border-left-color: #7a3e98;
  }

  .support-map-detail[data-type="pet"] {
    border-left-color: #8a3655;
  }

  .support-map-detail__actions {
    grid-template-columns: 1fr 1fr;
  }

  .support-map-quick-guide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .support-map-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .support-map-filter {
    padding-left: 7px;
  }

  .support-map-filter__icon {
    flex-basis: 30px;
    height: 30px;
    width: 30px;
  }

  .support-map-tool {
    font-size: 0.76rem;
  }

  /* スマホでは地図の上にかぶるボタンを小さくする（2026-08-03 オーナー指摘）。
     押しやすさは残したいので min-height は 44px までに留める。 */
  .support-map-location-control {
    border-width: 1.5px;
    font-size: 0.72rem;
    gap: 5px;
    min-height: 44px;
    padding: 5px 10px;
  }

  .support-map-location-control svg {
    height: 16px;
    width: 16px;
  }

  /* 高さは stage 側で持たせる。地図側に別の高さを持たせると stage をはみ出して
     下の絞り込みパネルに重なる（500px の地図が 471px の stage から29pxはみ出していた） */
  .support-map-stage {
    height: 500px;
  }
}
