html, body {
      height: 100%;
      margin: 0;
      font-family: Arial, sans-serif;
    }

    #map-container {
      height: 100%;
      width: 100%;
      position: relative;
    }

    #map {
      height: 100%;
      width: 100%;
    }

    #station-info {
  width: 380px;
  height: calc(100% - 120px); /* cách top 100px + bottom 20px */
  background: #fff;
  border-right: 1px solid #ddd;
  box-shadow: 3px 0 10px rgba(0,0,0,0.05);
  overflow-y: auto; /* ✅ cho phép scroll */
  padding: 16px;
  position: absolute;
  top: 100px;            /* ✅ cách top */
  left: 0;              /* ✅ ở bên trái */
  transform: translateX(-100%); /* ✅ ẩn sang trái khi chưa mở */
  transition: transform 0.3s ease;
  z-index: 10;
  border-radius: 0 8px 8px 0;
  scrollbar-width: thin; /* (Firefox) thanh cuộn nhỏ gọn */
}

/* ✅ Khi mở panel */
#station-info.active {
  transform: translateX(0);
}

/* Tiêu đề */
#station-info h3 {
  margin: 0 0 8px;
}

/* Nút đóng panel */
#close-panel {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Ảnh minh họa trong panel */
img.station-photo {
  width: 100%;
  border-radius: 6px;
  margin-top: 8px;
  object-fit: cover;
}

/* ✅ Tùy chọn: tùy chỉnh thanh cuộn cho Chrome/Safari */
#station-info::-webkit-scrollbar {
  width: 6px;
}

#station-info::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#station-info::-webkit-scrollbar-track {
  background: transparent;
}

#station_detail_block {
  position: absolute;
  left: 0;
  top: 100px;
  width: 600px;
  max-width: 100%;
  max-height: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  z-index: 999;
  background: #fff;
  transition: .3s ease-in-out;
  padding: 16px;
  font-weight: 600;
  color: #3C3C3C;
  animation: pulse 300ms;
  opacity: 1;
  visibility: visible;
}

.station-name {
  margin: 0 0 6px;
  font-size: 20px;
  color: #222;
}

.station-code {
  color: #00984A;
  font-size: 14px;
  margin-left: 4px;
}

.station-status {
  margin-bottom: 12px;
  font-weight: 600;
}
.station-status.active { color: #00984A; }
.station-status.inactive { color: #d9534f; }

h4 {
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 15px;
  color: #444;
}

.station-address {
  margin: 0 0 6px;
  font-style: italic;
  color: #555;
}

.btn-map {
  display: inline-block;
  background: #007bff;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.station-ports li,
.station-extra li {
  list-style: none;
  padding-left: 10px;
  position: relative;
  margin-bottom: 3px;
}

.station-ports li::before,
.station-extra li::before {
  content: '•';
  color: #00984A;
  margin-right: 6px;
}

.station-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.station-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

/* close button góc phải */
.popup-close {
  position: absolute; /* bắt góc trên bên phải */
  top: 20px;          /* khoảng cách từ top */
  right: 12px;        /* khoảng cách từ right */
  cursor: pointer;
  z-index: 10;
}

/* header */
#station_detail_block .popup-header {
  padding: 12px; /* padding bên trong header */
}

/* station header */
.station-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px; /* cách content dưới */
}

/* Overlay fullscreen */
.gallery-slider-overlay {
  display: none; /* ẩn mặc định */
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  flex-direction: column;
}

.gallery-slider-overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}

.slider-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

