/* ====================================================
   COM/map_img — 왼쪽 이미지 2개(위/아래) + 오른쪽 지도
   모든 선택자 .map_img 프리픽스로 스코프
==================================================== */

/* ── 관리자 뱃지 (map_1 패턴) ── */
.map_img.admin_div_mapimg { position: relative; }
.map_img.admin_div_mapimg:hover { outline: 2px dashed #3b82f6 !important; outline-offset: -2px; }
.map_img.admin_div_mapimg .grid_layout_badge {
  display: block;
  position: absolute;
  left: 10px; top: 10px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
  cursor: pointer; border: none;
  transition: all 0.3s ease;
  opacity: 0.6;
  line-height: 1.35;
}
.map_img.admin_div_mapimg .grid_layout_badge:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37,99,235,0.5);
  opacity: 1;
}

.map_img { display:block; width:100%; }
.map_img .contents-container { width:100%; }
.map_img .wg_side { width:100%; float:left; }

/* 상단 타이틀/주소 */
.map_img .mi_head { margin-bottom: clamp(14px, calc(0.78vw + 11.5px), 24px); }
.map_img .mi_title {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.map_img .mi_addr {
  font-size: clamp(14px, 1.2vw, 17px);
  color: #6b7280;
  line-height: 1.5;
}

/* 본문: 좌(이미지) + 우(지도) */
.map_img .mi_row {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;   /* 좌 이미지폭 : 우 지도(넓게) */
  gap: clamp(10px, calc(0.78vw + 7.5px), 20px);
  width: 100%;
  align-items: stretch;
}

/* 왼쪽: 이미지 위/아래 */
.map_img .mi_imgs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, calc(0.78vw + 7.5px), 20px);
  min-height: 0;
}
.map_img .mi_img {
  position: relative;
  overflow: hidden;
  border-radius: clamp(6px, 0.5vw, 10px);
  background: #f3f4f6;
  min-height: 0;
}
.map_img .mi_img [class^="wg_img"],
.map_img .mi_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
}

/* 오른쪽: 지도 */
.map_img .mi_map {
  position: relative;
  overflow: hidden;
  border-radius: clamp(6px, 0.5vw, 10px);
  background: #e5e7eb;
  min-height: clamp(360px, 40vw, 620px);
}
.map_img .mi_map iframe,
.map_img .mi_map > div,
.map_img .mi_map .root_daum_roughmap {
  width: 100% !important;
  height: 100% !important;
  min-height: inherit;
  border: 0;
  display: block;
}
.map_img .mi_map iframe { position:absolute; inset:0; }
.map_img .mi_map_empty {
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%; min-height: inherit;
  color:#9ca3af; font-size:13px; text-align:center; padding:20px;
}

/* 부가정보 */
.map_img .mi_extra { margin-top: clamp(12px, 1vw, 20px); display:flex; flex-wrap:wrap; gap: 6px 20px; }
.map_img .mi_ex { font-size: clamp(13px, 1vw, 15px); color:#4b5563; }
.map_img .mi_ex em { font-style:normal; font-weight:700; color:#111827; margin-right:6px; }

/* 인라인 편집 표시 */
.map_img .wg_edit_txt { cursor:pointer; transition:outline .15s; }
.map_img .wg_edit_txt:hover { outline:1px dashed rgba(240,71,62,.6); outline-offset:2px; }

/* ─── 모바일 ─────────────────────────────── */
@media (max-width: 900px) {
  .map_img .mi_row {
    grid-template-columns: 1fr;   /* 좌우 → 상하 */
  }
  .map_img .mi_imgs {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;  /* 이미지 2개 좌우로 */
  }
  .map_img .mi_img { aspect-ratio: 4/3; }
  .map_img .mi_map { min-height: clamp(280px, 60vw, 420px); }
}
@media (max-width: 480px) {
  .map_img .mi_imgs { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
}
