.be-toprecentmap-wrap{
  width: 100%;
  margin: 20px 0 30px;
}

.be-toprecentmap-head{
  margin-bottom: 10px;
}

.be-toprecentmap-title{
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #22313f;
}

.be-toprecentmap-sub{
  margin: 4px 0 0;
  font-size: 13px;
  color: #5b6875;
  line-height: 1.6;
}

.be-toprecentmap-box{
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef3f7;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
}

.be-toprecentmap-canvas{
  width: 100%;
  height: 100%;
}

.be-toprecentmap-empty{
  padding: 16px;
  font-size: 14px;
  color: #666;
  background: #f7f7f7;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
}

.be-toprecentmap-popup{
  width: 220px;
}

.be-toprecentmap-popup-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.be-toprecentmap-popup-thumb{
  display: block;
  width: 100%;
  height: 124px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #ddd;
}

.be-toprecentmap-popup-title{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #22313f;
}

.be-toprecentmap-popup-link:hover .be-toprecentmap-popup-title{
  text-decoration: underline;
}

.be-toprecentmap-note{
  margin-top: 8px;
  font-size: 12px;
  color: #6c7884;
}

.be-toprecentmap-wrap .maplibregl-popup-content{
  padding: 10px;
  border-radius: 10px;
}

.be-toprecentmap-wrap .maplibregl-popup-close-button{
  font-size: 18px;
  line-height: 18px;
  padding: 4px 8px;
}

.be-toprecentmap-wrap .maplibregl-popup-content{
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  background: #fff;
  min-width: 240px;
}

.be-toprecentmap-wrap .maplibregl-popup-tip{
  border-top-color: #ffffff;
}

.be-toprecentmap-popup{
  width: 240px;
  background: #fff;
}

.be-toprecentmap-popup-link{
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.be-toprecentmap-popup-link:hover{
  text-decoration: none;
  color: inherit;
}

.be-toprecentmap-popup-link:focus{
  outline: none;
}

.be-toprecentmap-popup-link::-moz-focus-inner{
  border: 0;
}

.be-toprecentmap-popup-thumbwrap{
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: #e9edf2;
}

.be-toprecentmap-popup-thumb{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transition: transform 0.28s ease;
}

.be-toprecentmap-popup-link:hover .be-toprecentmap-popup-thumb{
  transform: scale(1.04);
}

.be-toprecentmap-popup-body{
  padding: 12px 14px 14px;
}

.be-toprecentmap-popup-label{
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #2563eb;
  background: #eaf2ff;
  border-radius: 999px;
}

.be-toprecentmap-popup-title{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #1f2937;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  word-break: break-word;
}

.be-toprecentmap-popup-link:hover .be-toprecentmap-popup-title{
  text-decoration: none !important;
  color: #111827;
}

.be-toprecentmap-popup-sub{
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.be-toprecentmap-popup-arrow{
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.be-toprecentmap-popup-link:hover .be-toprecentmap-popup-arrow{
  transform: translateX(2px);
}

.be-toprecentmap-marker{
  width: 25px;
  height: 41px;
  background-image: url("https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png");
  background-size: 25px 41px;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
}

.be-toprecentmap-marker{
  width: 25px;
  height: 41px;
  background-image: url("https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png");
  background-size: 25px 41px;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
}

/* ポップアップタイトルの下線を完全に消す */
.be-toprecentmap-popup-title{
  text-decoration: none !important;
}

.be-toprecentmap-popup-link,
.be-toprecentmap-popup-link:hover,
.be-toprecentmap-popup-link:active,
.be-toprecentmap-popup-link:visited{
  text-decoration: none !important;
}

@media screen and (max-width: 768px) {
  .maplibregl-ctrl-attrib {
    font-size: 8px !important;
    line-height: 1.1;
    padding: 1px 3px !important;
    opacity: 0.65;
    max-width: 92px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(255,255,255,0.65) !important;
  }

  .maplibregl-ctrl-bottom-right {
    right: 1px !important;
    bottom: 1px !important;
  }
}