/* public/css/mapsGallery.css */

#maps .mapg-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

#maps .mapg-header h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .2px;
  color: rgba(0,0,0,.85);
}

#maps .mapg-sub {
  color: rgba(0,0,0,.55);
  font-size: 12px;
}

#maps .mapg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 6px 2px;
}

#maps .mapg-card {
  cursor: pointer;
  user-select: none;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0f16;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#maps .mapg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  border-color: rgba(0,0,0,.18);
}

#maps .mapg-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

#maps .mapg-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  filter: saturate(1.05) contrast(1.03);
}

#maps .mapg-shot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56%;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.25), transparent);
  pointer-events: none;
}

#maps .mapg-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  z-index: 2;
}

#maps .mapg-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.95);
  font-size: 14px;
  letter-spacing: .2px;
  max-width: 100%;
}

#maps .mapg-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Modal ===== */
#maps .mapg-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

#maps .mapg-modal-bg.open {
  display: flex;
}

#maps .mapg-modal {
  width: min(1080px, 96vw);
  border-radius: 16px;
  overflow: hidden;
  background: #05070b;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.60);
  position: relative;
}

#maps .mapg-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.95);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
}

#maps .mapg-hero {
  position: relative;
  background: #000;
}

/* ✅ 지도/지명 이미지는 안 잘리게 */
#maps .mapg-hero-img {
  width: 100%;
  height: min(72vh, 680px);
  object-fit: contain;
  display: block;
  background: #05070b;
}

/* ✅ 층 탭 */
#maps .mapg-tabs {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

#maps .mapg-tab {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 13px;
}

#maps .mapg-tab.active {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}

/* ✅ 좌/우 버튼 */
#maps .mapg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

#maps .mapg-prev { left: 12px; }
#maps .mapg-next { right: 12px; }

#maps .mapg-namebar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.20), transparent);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 5;
}

#maps .mapg-name {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.40);
  color: rgba(255,255,255,.96);
  font-size: 14px;
  letter-spacing: .2px;
}
