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

.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;
}

.support-map-hero p:last-child {
  color: #edf8f4;
  line-height: 1.65;
  margin: 0;
  max-width: 52rem;
}

.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 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: repeat(2, 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-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%;
}

.support-map {
  height: 100%;
  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);
}

.support-map-gesture-hint {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #c3d0cb;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(18, 51, 42, 0.14);
  color: #28483e;
  font-size: 0.68rem;
  font-weight: 800;
  left: 10px;
  line-height: 1.35;
  margin: 0;
  padding: 6px 10px;
  pointer-events: none;
  position: absolute;
  top: 10px;
  z-index: 4;
}

.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));
}

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

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

.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-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__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-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-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.is-private { box-shadow: inset 0 0 0 2px #eadcf1; }

.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(4, minmax(0, 1fr));
  }

  .support-map-toolbar {
    grid-template-columns: auto 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__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;
  }

  .support-map {
    height: 500px;
  }
}
