/* ══ kaigo-map-v2 — 介護事業所マップ改善版 ══ */

/* ── フィルター: チェックボックス ── */
.kaigo-filters {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.kaigo-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; border: 1.5px solid #DDE5E2; background: white;
  font-family: inherit; transition: all 0.15s; user-select: none;
  min-height: 44px;
}
.kaigo-filter:hover { border-color: #1A6B5A; }
.kaigo-filter.active { background: #144F42; color: white; border-color: #144F42; }
.kaigo-filter .filter-icon { font-size: 16px; line-height: 1; }
.kaigo-filter .filter-count {
  font-size: 11px; font-weight: 700; opacity: 0.7;
  background: rgba(0,0,0,0.08); border-radius: 10px; padding: 1px 6px;
}
.kaigo-filter.active .filter-count { background: rgba(255,255,255,0.25); }

/* ── 凡例 ── */
.kaigo-legend {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
  font-size: 0.78rem; color: #666;
}
.kaigo-legend-item { display: inline-flex; align-items: center; gap: 4px; }

/* ── マーカー: DivIcon ── */
.kaigo-marker {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; line-height: 1;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}
.kaigo-marker:hover { transform: scale(1.3); z-index: 9999 !important; }
.kaigo-marker--houmon { background: #1A6B5A; }
.kaigo-marker--tsusho { background: #E67E22; }
.kaigo-marker--tomari { background: #2980B9; }

/* ── ポップアップ: カードスタイル ── */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important; padding: 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}
.leaflet-popup-content { margin: 0 !important; width: 260px !important; }
.kaigo-popup { font-family: 'Noto Sans JP', sans-serif; }
.kaigo-popup-header {
  padding: 12px 14px 8px; border-bottom: 1px solid #f0f0f0;
}
.kaigo-popup-name { font-size: 14px; font-weight: 700; color: #144F42; line-height: 1.4; }
.kaigo-popup-type {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; margin-top: 4px;
}
.kaigo-popup-type--houmon { background: #E8F4F1; color: #1A6B5A; }
.kaigo-popup-type--tsusho { background: #FFF3E0; color: #E65100; }
.kaigo-popup-type--tomari { background: #E3F2FD; color: #1565C0; }
.kaigo-popup-body { padding: 8px 14px 12px; }
.kaigo-popup-row {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 12px; color: #555; margin-bottom: 4px;
}
.kaigo-popup-row-icon { flex-shrink: 0; width: 16px; text-align: center; }
.kaigo-popup-tel {
  display: block; background: #1A6B5A; color: white; text-align: center;
  padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 700;
  text-decoration: none; margin: 8px 0 4px;
}
.kaigo-popup-tel:hover { background: #144F42; }
.kaigo-popup-links { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.kaigo-popup-links a {
  font-size: 11px; color: #1A6B5A; text-decoration: none;
}
.kaigo-popup-links a:hover { text-decoration: underline; }
.kaigo-popup-memo {
  display: block; width: 100%; margin-top: 8px; background: none;
  border: 1.5px solid #1A6B5A; color: #1A6B5A; border-radius: 6px;
  padding: 7px; font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.15s;
}
.kaigo-popup-memo:hover { background: #E8F4F1; }

/* ── 距離バッジ ── */
.kaigo-distance {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: #E67E22; background: #FFF3E0; border-radius: 4px;
  padding: 1px 6px; margin-left: 4px;
}

/* ── マップコントロール ── */
.kaigo-map-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; flex-wrap: wrap; gap: 8px;
}
.kaigo-geo-btn {
  background: white; border: 1.5px solid #1A6B5A; color: #1A6B5A;
  border-radius: 8px; padding: 8px 16px; font-size: 0.9rem;
  font-weight: 700; cursor: pointer; font-family: inherit; min-height: 44px;
  transition: all 0.15s;
}
.kaigo-geo-btn:hover { background: #E8F4F1; }
.kaigo-geo-btn.active { background: #1A6B5A; color: white; }

/* ── クラスターカスタム ── */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background: rgba(26,107,90,0.2) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: #1A6B5A !important; color: white !important; font-weight: 700 !important;
}

/* ── store-label (ホバー時のみ表示) ── */
.store-label {
  background: white !important; border: 1px solid #1A6B5A !important;
  border-radius: 6px !important; padding: 3px 8px !important;
  font-size: 12px !important; font-weight: 600 !important; color: #333 !important;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.store-label::before { display: none !important; }
