/* ============================================================
   NOIRIUM 파트너 지도 v6 — 스타일시트
   변경사항:
   - 지도 박스 높이를 고정하여 파트너사 선택 시 지도가 위아래로 움직이지 않음
   - 좌측 패널이 지도 높이에 맞춰지고, 카드가 많으면 내부 스크롤
   - 모바일에서는 세로 스택
   ============================================================ */

.noirium-partner-map {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2a2a2a;
  padding: 60px 20px;
  max-width: 1520px;
  margin: 0 auto;
  background: #ffffff;
}

/* --- 헤더 --- */
.npm-header {
  margin-bottom: 48px;
}
.npm-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: #a88856;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.npm-eyebrow::before {
  content: "┐";
  margin-right: 6px;
  color: #c9a55c;
}
.npm-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #1a1a1a;
}

/* --- 레이아웃: 고정 높이 --- */
.npm-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: stretch;
  height: 780px;        /* ★ 전체 높이 고정 - 지도가 안 움직임 */
}

/* --- 좌측 패널 (회색 박스) --- */
.npm-panel {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 28px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.npm-panel-label {
  font-size: 13px;
  color: #8a8a8a;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.npm-panel-region {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.npm-panel-hint {
  font-size: 13px;
  color: #a8a8a8;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* 리스트만 스크롤, 헤더 영역은 고정 */
.npm-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
}
.npm-list::-webkit-scrollbar {
  width: 6px;
}
.npm-list::-webkit-scrollbar-track {
  background: transparent;
}
.npm-list::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.npm-card {
  padding: 16px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebe7dc;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.npm-card:hover {
  border-color: #c9a55c;
  transform: translateY(-1px);
}
.npm-card-region-tag {
  display: inline-block;
  font-size: 11px;
  color: #a88856;
  background: #faf5ea;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 500;
}
.npm-card-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  text-decoration: none;
  transition: color 0.15s;
}
.npm-card-name-link {
  cursor: pointer;
}
.npm-card-name-link:hover {
  color: #a88856;
  text-decoration: underline;
}
.npm-card-name-link::after {
  content: " ↗";
  font-size: 11px;
  color: #a88856;
  font-weight: 500;
}
.npm-card-addr {
  font-size: 13px;
  color: #6a6a6a;
  line-height: 1.5;
  margin-bottom: 10px;
}
.npm-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.npm-card-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #a88856;
  text-decoration: none;
  font-weight: 500;
}
.npm-card-tel:hover {
  color: #8b6f3a;
}
.npm-card-tel::before {
  content: "☎";
  font-size: 14px;
}
.npm-card-web {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #a88856;
  background: #faf5ea;
  border: 1px solid #e8dcc2;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
}
.npm-card-web:hover {
  background: #c9a55c;
  color: #ffffff;
  border-color: #c9a55c;
}
.npm-card-web::before {
  content: "🌐";
  font-size: 11px;
}

/* --- 우측 지도 (고정 높이) --- */
.npm-map {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.npm-svg {
  width: 100%;
  height: 100%;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}
.npm-svg path[data-code] {
  cursor: pointer;
  transition: fill 0.15s ease;
}
.npm-status {
  text-align: center;
  font-size: 13px;
  color: #a8a8a8;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8e4da;
  flex-shrink: 0;
}

/* --- 반응형 (태블릿) --- */
@media (max-width: 1100px) {
  .npm-wrap {
    height: 680px;
  }
}

/* --- 반응형 (모바일) --- */
@media (max-width: 900px) {
  .npm-wrap {
    grid-template-columns: 1fr;
    height: auto;
    align-items: start;
  }
  .npm-panel {
    order: 2;
    height: 500px;
  }
  .npm-map {
    order: 1;
    height: 520px;
  }
  .npm-title {
    font-size: 28px;
  }
}
