/* 地図コンテナ角丸＆クリップ */
#map, .leaflet-container {
  border-radius: 8px;
  overflow: hidden;
}

/* ポップアップ全体 */
.leaflet-popup-content-wrapper {
  background: unset !important;
  box-shadow: none !important;
  /* 下部余白を打ち消し */
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  position: relative; /* 三角用に基準を作る */
}

/* ポップアップ中身 */
.leaflet-popup-content {
  background: #000;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  padding: 0;
  width: 200px;
  font-family: sans-serif;
  overflow: hidden;
  /* 矢印とくっつけるため余白を削除 */
  margin-bottom: 0;
}

/* ポップアップ先端（三角）コンテナ */
.leaflet-popup-tip-container {
  width: 14px;
  height: 7px;
  position: absolute;
  left: 50%;
  /* ポップアップ本体のボトムから 0px 下に */
  top: 100%;
  margin-left: -7px; /* 幅の半分（14/2） */
  overflow: visible;
  pointer-events: none;
}

/* 三角自体 */
.leaflet-popup-tip {
  background: #000 !important;
  border: none;
  width: 14px;
  height: 14px;
  margin: -6px 0;
}

/* ポップアップ内画像 */
.leaflet-popup-content img {
  display: block;
  width: 100%;
  height: auto;
}

/* タイトル等 */
.leaflet-popup-content h4 {
  font-size: 16px;
  margin: 8px 12px 4px;
  color: #fff;
}
.leaflet-popup-content h5 {
  font-size: 14px;
  margin: 4px 12px;
  color: #fff;
}

/* ボタンラッパー */
.popup-button-wrapper {
  text-align: center;
  margin: 10px auto;
}
.button-3 {
  background: #c0153e;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background-color .3s ease;
}

/* 全画面ボタン */
#fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}
