/* MAP NOTE */
.map-note-card {
    display:grid; 
    grid-template-columns:1fr 190px; 
    grid-gap:50px;
}
.map-note-card .map-container-popup {
    position: relative;
    align-content: center;
    padding-right: 40px;
    width: 190px;
}
.map-note-card .map-container-popup:after {
    position:absolute;
    content: "";
    background-image: url(https://fromjapan.info/cms/wp-content/themes/SPCTheme/assets/image/ic_round-zoom-out-map.png);
    background-size: 30px;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
}

/* MAP MODAL */
.map-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.map-overlay.open { display: flex; }
.map-row {
  display: flex;
  align-items: flex-start;   /* ชิดบน — ปุ่มปิดอยู่ระดับเดียวกับขอบบนรูป */
  gap: 12px;
}
.map-frame {
  display: inline-block;
  overflow: hidden;
  line-height: 0;
  max-width: 80vw;
  max-height: 90vh;
      height: 85vh;
  position: relative;
}
.map-frame img {
  display: block;
  max-width: 80vw;
  max-height: 90vh;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  -webkit-user-drag: none;
  user-select: none;
  cursor: grab;
      background: #d7d7d7;
}
.map-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.map-close-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-close-btn:hover { background: rgba(0, 0, 0, 0.8); }
.zoom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
      position: absolute;
    transform: translate(0%, -50%);
    top: 50%;
}
.zoom-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoom-btn:hover { background: #f0f0f0; }
.zoom-slider {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  width: 6px;
  height: 120px;
  cursor: pointer;
  accent-color: #e60012;
}
@media (max-width: 767px) {
    .map-note-card {
        grid-template-columns:1fr; 
        grid-gap:10px;
        margin-bottom: 20px;
    }
    .map-note-card .map-container-popup {
        margin-left: auto;
        display: none;
    }
}