.lease-map-note {
  color: rgba(0, 0, 0, 0.5);
  margin-top: clamp(5px, 0.78125vw, 15px);
}

.lease-map-shell {
  position: relative;
  height: calc(
    100vh - clamp(20px, 3.125vw, 30px) -
      clamp(6.6666666667px, 1.0416666667vw, 20px) -
      clamp(6.6666666667px, 1.0416666667vw, 20px) -
      clamp(6.6666666667px, 1.0416666667vw, 20px)
  );
  min-height: 520px;
  overflow: hidden;
}

#leaseMap {
  width: 100%;
  height: 100%;
  background: #10233a;
  z-index: 1;
}

.lease-map-marker-layer {
  display: none;
}

.lease-map-site-marker {
  display: block;
  width: 25px;
  height: 25px;
  margin: 0;
  padding: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.leaflet-div-icon.lease-map-site-marker {
  background: transparent;
  border: none;
}

.lease-map-site-marker.airport {
  background-image: url("/static/images/icon1.png");
}

.lease-map-site-marker.operation {
  background-image: url("/static/images/icon2.png");
}

.lease-map-tools {
  position: absolute;
  top: clamp(10px, 1.5625vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.78125vw, 15px);
}

.lease-map-filter {
  height: clamp(26px, 2.5vw, 48px);
  min-width: clamp(54px, 5.9375vw, 114px);
  padding: 0 clamp(8px, 1.14583vw, 22px);
  border: 1px solid rgba(0, 75, 160, 0.16);
  border-radius: 6px;
  background: #fff;
  color: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.lease-map-filter.cur,
.lease-map-filter:hover {
  border-color: #01a9de;
  background: #01a9de;
  color: #fff;
}
.lease-back {
  position: absolute;
  left: clamp(10px, 1.1625vw, 20px);
  background-color: #fff;
  border-radius: 4px;
  z-index: 999;
  top: clamp(10px, 1.5625vw, 30px);
  font-size: 13px;
  color: #57595b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
}
.lease-back .iconfont {
  font-size: 15px;
  margin-right: 6px;
}
.lease-map-legend {
  position: absolute;
  left: clamp(10px, 1.5625vw, 30px);
  top: clamp(90px, 5.225vw, 120px);
  z-index: 500;
  /* background: rgba(255, 255, 255, 0.94); */
  color: #fff;
}

.lease-map-legend dl {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.83333vw, 16px);
}

.lease-map-legend dd {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.lease-map-legend .legend-dot {
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.legend-dot.icon1 {
  background-image: url("/static/images/icon1.png");
}
.legend-dot.icon2 {
  background-image: url("/static/images/icon2.png");
}

.legend-dot.airport {
  background: #01a9de;
}

.legend-dot.operation {
  background: #004ba0;
}

.lease-map-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 520;
  display: none;
  transform: translate(-50%, -50%);
  padding: clamp(12px, 1.875vw, 36px) clamp(16px, 2.5vw, 48px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: rgba(0, 0, 0, 0.68);
  box-shadow: 0 8px 24px rgba(0, 74, 160, 0.12);
}

.lease-map-info {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 680;
  display: none;
  /* left/top 由 map.js 按点位像素写入 */
}

.lease-map-info .lease-map-popup {
  box-sizing: border-box;
  /*width: 100%;*/
  padding: clamp(20px, 2.25vw, 32px);
  padding-top: 30px;
  border-radius: 8px;
  /* background: rgba(255, 255, 255, 0.96); */
  /* box-shadow: 0 8px 24px rgba(0, 74, 160, 0.16); */
  backdrop-filter: blur(10px);
  width: clamp(230px, 27vw, 360px);
  border-image: linear-gradient(
      360deg,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0)
    )
    1 1;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 10px 10px 0px rgba(88, 101, 120, 0.1);
}
.lease-map-popup .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
}
.lease-map-popup {
  min-width: 230px;
  color: rgba(0, 0, 0, 0.72);
  position: relative;
}
.lease-map-popup .line {
  background-color: #000;
  opacity: 0.1;
  margin: clamp(10px, 1.125vw, 15px) 0;
}
.lease-map-popup .c-sub {
  color: rgba(0, 0, 0, 0.5);
}
.lease-map-popup dl dd {
  display: flex;
  justify-content: space-between;
  color: #000;
}
.lease-map-popup ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lease-map-popup ul li {
  display: flex;
  align-items: center;
  font-size: 12px;
}
.lease-map-popup ul li .img-box {
  width: 26px;
  height: 16px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 5px;
}
.lease-map-popup ul li .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lease-map-popup h4 {
  margin: 0 0 10px;
  color: #004ba0;
  font-weight: 400;
  /* font-size: 16px; */
}

.lease-map-popup p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  /* margin: 6px 0 0; */
  line-height: 1.6;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-marker-pane {
  z-index: 650;
}

.leaflet-overlay-pane {
  z-index: 650;
}

.leaflet-map-pane > svg {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}
.lease-map-country-label-layer {
  position: absolute;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}
.lease-map-country-name {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

@media (max-width: 1023px) {
  .lease-map-shell {
    height: 72vh;
    min-height: 460px;
  }

  .lease-map-tools {
    right: clamp(10px, 1.5625vw, 30px);
    flex-wrap: wrap;
  }

  .lease-map-legend {
    left: clamp(10px, 1.5625vw, 30px);
    right: auto;
    bottom: clamp(10px, 1.5625vw, 30px);
  }
}

@media (max-width: 640px) {
  .lease-map-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .lease-map-shell {
    height: 70vh;
    min-height: 420px;
  }

  .lease-map-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .lease-map-filter {
    width: 100%;
  }
}
.leaflet-control-container .leaflet-top {
  top: auto;
  bottom: clamp(10px, 1.5625vw, 30px);
}
