/* Pretendard 폰트 - CDN 사용 (jsDelivr) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    background-color: #111111;  /* 유튜브/넷플릭스 스타일 진한 검정색 배경 */
    color: #222;
    margin: 0;
    padding: 0;
}

/* ✅ 메인 전체 구조 - 가운데 정렬 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ✅ 중앙 콘텐츠 정렬 (예전 방식 유지용) */
.centered-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ✅ 섹션 타이틀 */
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    color: #f5f5f5;  /* 밝은 회색, 다크 배경 대비 좋음 */
}
.section-title img {
    width: 22px;
    margin-right: 8px;
}

/* ✅ 카드 박스 공통 */
.card-box {
    background-color: #f6f6f6; 
    border-radius: 10px;
    padding: 20px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* ✅ 지도 박스 (기타 용도) */
.map-box {
    background-color: #eaeaea;
    border-radius: 10px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

/* ✅ 링크 스타일 */
a {
    color: #ff4d94;
    text-decoration: none;
}
a:hover {
    color: #ff78ac;
    text-decoration: underline;
}

/* ✅ 작은 설명 텍스트 */
.text-muted-small {
    font-size: 0.85rem;
    color: #777 !important;
}

/* ✅ 구(시군구) 제목 */
.card-box .fw-bold {
    font-size: 1.1rem;
    color: #222;
}

/* ✅ 동네 리스트 */
.card-box ul {
    padding-left: 0;
    margin-bottom: 0;
}
.card-box li {
    margin-bottom: 12px;
    list-style: none;
}
.card-box a {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.card-box a:hover {
    background-color: #ffe6f0;
    color: #d63384;
}

/* ✅ collapse 버튼 마진 통일 */
button[data-bs-toggle="collapse"] {
    font-weight: bold;
    margin-bottom: 10px;
}

/* ✅ 후기 테이블 반응형 */
.table-responsive {
    margin-top: 15px;
}
hr.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 16px 0;
}

/* ✅ 커스텀 마커 스타일 - main.css로 이동됨 */

/* === 동/구 오버레이 - main.css로 이동됨 === */

/* 투표 관련 스타일 - main.css로 이동됨 */

/* ===== 상단 네비게이션(header-nav) 커스텀 ===== */
.header-nav .nav-link {
  color: #f5f5f5 !important;
  font-weight: 600;
  font-size: 1.08rem;
  border-radius: 18px;
  padding: 8px 22px;
  margin: 0 6px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
}
.header-nav .nav-link:hover, .header-nav .nav-link:focus, .header-nav .nav-link.active {
  background: linear-gradient(90deg, #232526 0%, #414345 100%);
  color: #ff4d94 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  text-decoration: none;
}
.header-nav .dropdown-menu {
  background: #232526;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border: none;
  margin-top: 8px;
}
.header-nav .dropdown-item {
  color: #f5f5f5;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
}
.header-nav .dropdown-item:hover, .header-nav .dropdown-item:focus {
  background: #333;
  color: #ff4d94;
}

/* ===== main.jsp 전용 이미지 모달 스타일 ===== */
.main-image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.main-image-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.main-image-modal-content {
    position: relative;
    max-width: 60%;
    max-height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.main-image-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 90%;
    min-height: 90%;
    width: auto;
    height: auto;
}

.main-image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 모달 좌우 화살표 버튼 */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev-btn {
    left: -80px;
}

.modal-next-btn {
    right: -80px;
}

/* 모달 이미지 개수 표시 */
.modal-image-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2001;
}

/* ✅ InfoWindow 반응형 스타일 */
.infoWindow {
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.infoWindow * {
    box-sizing: border-box !important;
}

/* InfoWindow 스타일은 main.css에서 관리 */

/* InfoWindow 내부 요소들의 텍스트 오버플로우 방지 */
.infoWindow strong,
.infoWindow div,
.infoWindow span {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* InfoWindow 내부 링크들의 반응형 처리 */
.infoWindow a {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    margin-bottom: 8px !important;
}

/* InfoWindow 버튼 hover 효과 강화 */
.infoWindow a[onclick*="showVoteSection"] {
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #ff6b9d, #ff85a2) !important;
    border-color: #ff6b9d !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.25) !important;
}

.infoWindow a[onclick*="showVoteSection"]:hover {
    background: linear-gradient(135deg, #ff5a8c, #ff6b9d) !important;
    border-color: #ff5a8c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4) !important;
}

.infoWindow a[onclick*="openGenreEditModal"] {
    transition: all 0.3s ease !important;
}

.infoWindow a[onclick*="openGenreEditModal"]:hover {
    background: #ffe0b2 !important;
    border-color: #ff6b35 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

/* InfoWindow 이미지 컨테이너 반응형 */
.infoWindow .place-images-container {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* InfoWindow 내부 레이아웃 최적화 */
.infoWindow .place-name-wish-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.infoWindow .action-buttons-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 16px !important;
    padding-bottom: 16px !important;
}

/* InfoWindow 내 "역대 투표:" 텍스트 크기 증가 */
.infoWindow div[id*="voteTrends"] {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
}

/* InfoWindow 내 "장르:" 텍스트 앞에 음표 이모티콘 추가 */
.infoWindow div[style*="color:#9c27b0"][style*="장르:"]::before {
    content: "🎵 ";
    color: #9c27b0;
    margin-right: 4px;
}

