body { font-family: Arial, sans-serif; background-color: #f9f9f9; margin: 0; padding: 0; }

* { box-sizing: border-box; }

.container {
  width: 95%;
  max-width: 1200px;
  margin: 32px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

/* ===========================
    지도 위 영역 전용 (bg_ip 섹션)
   =========================== */
#clientMapWrap .info-item {
  display: inline-flex;         /* ✅ 한 줄 수평 배치 */
  justify-content: center;      /* ✅ 가운데 정렬 */
  align-items: baseline;        /* 글자 수평 맞춤 */
  gap: 8px;                     /* 라벨과 값 사이 여백 */
  padding: 8px 10px;
  width: 100%;                  /* 전체 폭 기준 중앙 정렬 */
  text-align: center;
}

#clientMapWrap .info-item span {
  display: inline;              /* ✅ 같은 줄에 나란히 */
  white-space: normal;          /* 필요시 줄바꿈 허용 */
  word-break: break-word;
}

#clientMapWrap .info-item span:first-child {
  font-weight: bold;
  color: #333;
  opacity: .9;
  text-align: right;
}

#clientMapWrap .info-item span:last-child {
  color: #111;
  text-align: left;
} /* ===========================
    지도 위 영역 전용 끝
   =========================== */

.info-item {
  display: grid;
  grid-template-columns: minmax(90px, 30%) 1fr;
  column-gap: 12px;
  align-items: start;
  padding: 6px 10px 6px 250px;
  border-bottom: 1px solid #f1f1f1;
}
.info-item:last-child { border-bottom: none; }

.info-item > span { min-width: 0; }  

.info-item span:first-child {
  font-weight: bold;
  color: #333;
  text-align: right;
}

.info-item span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
}

a { color: #007bff; text-decoration: none; }
a:hover { text-decoration: underline; }

.error { color: #ff4d4f; text-align: center; }

.form-group { margin-bottom: 12px; }
.form-group input {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

button {
  padding: 10px 15px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
button:hover { background: #0056b3; }

.map-wrap.show { display: block; }
.map-link { margin-top: 12px; text-align: center; }

.form-hero { position: relative; overflow: hidden; border-radius: 10px; }
#bgMapWrap { position: absolute; inset: 0; z-index: 0; display: none; }
#bgMapWrap.show { display: block; }
#bgMap { width: 100%; height: 100%; }

.form-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(255,255,255,0.65); backdrop-filter: blur(2px);
}
.form-hero .inner { position: relative; z-index: 2; padding: 16px; }

.map-wrap, #map, #clientMap {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
  body { -webkit-text-size-adjust: 100%; }
}

@media (max-width: 768px) {
  .info-item {
    row-gap: 4px;
    padding: 6px 10px 6px 10px;
  }
  .info-item span:first-child {
    text-align: left;
    opacity: .85;
  }

  .info-item span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 480px) {
  .info-item {
    row-gap: 4px;
    padding: 6px 10px;
  }
  .info-item span:first-child {
    text-align: left;
    opacity: .85;
  }

  .info-item span:last-child {
    white-space: normal;       /* 줄바꿈 허용 */
    overflow: visible;         /* 숨기지 않음 */
    text-overflow: unset;      /* … 제거 */
    word-break: break-word;    /* 긴 문자열 줄바꿈 */
  }
}
