@charset "UTF-8";
/* =====================================================================
   26.11.10 스타마을 선정 대국민 투표 (national_vote)
   - 여행지 정보(travel-catalog) 2026 UI 톤에 맞춤
   - 모든 규칙은 #nationalVote 하위로 한정 (기존 CSS 영향 없음)
   ===================================================================== */
#nationalVote { --nv-green: #1B9E50; --nv-green-dark: #148340; --nv-teal: #278795; --nv-line: #d5d5d5; --nv-text: #444; --nv-sub: #666; --nv-light: #999; color: var(--nv-text); }
#nationalVote *, #nationalVote *::before, #nationalVote *::after { box-sizing: border-box; }
#nationalVote .nv-blind { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }

/* ---------- 상단 비주얼 ---------- */
#nationalVote .nv-visual { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 225px; margin-bottom: 40px; padding: 40px 300px 40px 82px; border-radius: 8px; overflow: hidden; background: #eef7f1 url('../images/sub/vote-head-bg.jpg') no-repeat center / cover; }
#nationalVote .nv-visual .nv-title { margin: 0; color: #222; font-size: 34px; font-weight: 800; line-height: 1.3; word-break: keep-all; }
#nationalVote .nv-visual .nv-title strong { color: var(--nv-green); }
#nationalVote .nv-visual .nv-desc { margin: 14px 0 0; color: #3f8c99; font-size: 20px; font-weight: 600; line-height: 1.4; word-break: keep-all; }
#nationalVote .nv-visual .nv-chara { position: absolute; right: 60px; bottom: 0; width: 190px; height: auto; }

/* ---------- 안내 칩 ---------- */
#nationalVote .nv-guide { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
#nationalVote .nv-guide li { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--nv-line); border-radius: 20px; background: #fff; color: var(--nv-sub); font-size: 15px; font-weight: 600; }
#nationalVote .nv-guide li i { color: var(--nv-green); font-size: 18px; }
#nationalVote .nv-guide li strong { color: var(--nv-green); }

/* ---------- 검색 ---------- */
#nationalVote .nv-search { display: grid; grid-template-columns: 200px 200px minmax(0, 1fr) 150px; gap: 10px; margin-bottom: 40px; padding: 24px; border-radius: 8px; background: #f5f7f6; }
#nationalVote .nv-search select,
#nationalVote .nv-search input[type="text"] { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--nv-line); border-radius: 7px; background-color: #fff; color: var(--nv-sub); font-size: 16px; font-weight: 600; }
#nationalVote .nv-search select { padding-right: 40px; background: #fff url('../images/sub/select-bg.svg') no-repeat right 16px center / 18px 18px; -webkit-appearance: none; appearance: none; cursor: pointer; }
#nationalVote .nv-search input[type="text"] { color: #333; font-weight: 400; }
#nationalVote .nv-search select:hover,
#nationalVote .nv-search input[type="text"]:focus { border-color: #4399a7; box-shadow: 0 0 0 2px rgba(39, 135, 149, .1); outline: 0; }
#nationalVote .nv-search .nv-search-btn { height: 48px; border: 0; border-radius: 7px; background: var(--nv-teal); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; transition: background-color .18s ease; }
#nationalVote .nv-search .nv-search-btn:hover { background: #1e7380; }

/* ---------- 목록 헤드 ---------- */
#nationalVote .nv-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
#nationalVote .nv-total { margin: 0; color: #555; font-size: 18px; font-weight: 600; }
#nationalVote .nv-total strong { margin: 0 2px; color: var(--nv-green); font-size: 22px; }
#nationalVote .nv-head .nv-sel { margin: 0; color: var(--nv-sub); font-size: 16px; font-weight: 600; }
#nationalVote .nv-head .nv-sel strong { color: var(--nv-green); }

/* ---------- 카드 (여행지 정보 카드와 동일 톤) ---------- */
#nationalVote .nv-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 26px; margin: 0; padding: 0; list-style: none; }
#nationalVote .nv-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--nv-line); border-radius: 8px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
#nationalVote .nv-card.is-hidden { display: none; }
#nationalVote .nv-card .nv-chk { position: absolute; opacity: 0; width: 1px; height: 1px; }
#nationalVote .nv-card .nv-pick { display: flex; flex: 1; flex-direction: column; cursor: pointer; }
#nationalVote .nv-card .nv-img { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 7px 7px 0 0; overflow: hidden; background: #e9e9e9; }
#nationalVote .nv-card .nv-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
#nationalVote .nv-card .nv-check { position: absolute; top: 14px; right: 14px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #454b48dd; color: #fff; font-size: 22px; transition: background-color .18s ease; }
#nationalVote .nv-card .nv-body { display: block; flex: 1; padding: 18px 20px 14px; }
#nationalVote .nv-card .nv-subject { display: -webkit-box; overflow: hidden; margin: 0; color: var(--nv-text); font-size: 20px; font-weight: 700; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
#nationalVote .nv-card .nv-text { display: -webkit-box; overflow: hidden; min-height: 42px; margin: 12px 0 0; color: var(--nv-sub); font-size: 16px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#nationalVote .nv-card .nv-place { display: block; margin: 12px 0 0; color: var(--nv-light); font-size: 14px; font-weight: 500; line-height: 1.35; }
#nationalVote .nv-card .nv-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid #eee; }
#nationalVote .nv-card .nv-cnt { display: inline-flex; align-items: center; gap: 4px; color: var(--nv-teal); font-size: 15px; font-weight: 700; }
#nationalVote .nv-card .nv-cnt i { font-size: 17px; }
#nationalVote .nv-card .nv-detail { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; height: 34px; padding: 0 12px; border: 1px solid var(--nv-line); border-radius: 17px; background: #fff; color: var(--nv-sub); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
#nationalVote .nv-card .nv-detail:hover { border-color: var(--nv-green); color: var(--nv-green); }
/* hover / 선택 / 포커스 */
#nationalVote .nv-card:hover { border-color: #9fd3b2; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
#nationalVote .nv-card:hover .nv-img img { transform: scale(1.04); }
#nationalVote .nv-card.is-checked { border-color: var(--nv-green); box-shadow: 0 0 0 1px var(--nv-green); }
#nationalVote .nv-card.is-checked .nv-check { background: var(--nv-green); }
#nationalVote .nv-card .nv-chk:focus-visible + .nv-pick { outline: 2px solid var(--nv-green); outline-offset: 2px; border-radius: 8px; }
#nationalVote .nv-card.is-locked .nv-pick { cursor: default; }

#nationalVote .nv-empty { padding: 80px 0; color: var(--nv-light); font-size: 17px; text-align: center; }
#nationalVote .nv-filter-empty { display: none; }

/* ---------- 하단 투표 바 (스크롤 따라 고정) ---------- */
#nationalVote .nv-bar { position: sticky; bottom: 20px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 14px 14px 14px 28px; border-radius: 40px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .14); }
#nationalVote .nv-bar .nv-bar-info { margin: 0; color: var(--nv-sub); font-size: 16px; font-weight: 600; }
#nationalVote .nv-bar .nv-bar-info strong { color: var(--nv-green); font-size: 20px; }
#nationalVote .nv-bar .nv-vote-btn { min-width: 220px; height: 56px; padding: 0 30px; border: 0; border-radius: 28px; background: var(--nv-green); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; transition: background-color .18s ease, box-shadow .18s ease; }
#nationalVote .nv-bar .nv-vote-btn:hover { background: var(--nv-green-dark); box-shadow: 0 3px 8px rgba(27, 158, 80, .18); }
#nationalVote .nv-bar .nv-vote-btn:disabled { background: #9aa3a0; box-shadow: none; cursor: default; }

/* ---------- 레이어 (상세 / 개인정보) ---------- */
#nationalVote .nv-layer { position: fixed; inset: 0; z-index: 5000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .55); }
#nationalVote .nv-layer.is-open { display: flex; }
#nationalVote .nv-layer-box { position: relative; width: 100%; max-width: 980px; max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 12px; background: #fff; }
#nationalVote .nv-layer-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #222; font-size: 26px; cursor: pointer; }
/* 상세 */
#nationalVote .nv-detail-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#nationalVote .nv-gallery { position: relative; aspect-ratio: 1 / 1; background: #e9e9e9; }
#nationalVote .nv-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
#nationalVote .nv-gallery .nv-gal-btn { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 24px; cursor: pointer; }
#nationalVote .nv-gallery .nv-gal-prev { left: 12px; }
#nationalVote .nv-gallery .nv-gal-next { right: 12px; }
#nationalVote .nv-gallery .nv-gal-count { position: absolute; bottom: 12px; left: 50%; padding: 4px 12px; border-radius: 14px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 13px; transform: translateX(-50%); }
#nationalVote .nv-detail-info { display: flex; flex-direction: column; padding: 50px 40px 40px; contain: size; overflow: hidden; }
#nationalVote .nv-detail-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
#nationalVote .nv-detail-place { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--nv-sub); font-size: 15px; font-weight: 600; }
#nationalVote .nv-detail-place i { color: var(--nv-teal); font-size: 18px; }
#nationalVote .nv-detail-cnt { margin: 0; padding: 6px 14px; border-radius: 16px; background: #e5f2f4; color: var(--nv-teal); font-size: 14px; font-weight: 700; }
#nationalVote .nv-detail-subject { margin: 18px 0 0; color: #222; font-size: 26px; font-weight: 800; line-height: 1.3; word-break: keep-all; }
#nationalVote .nv-detail-text { margin: 16px 0 0; color: var(--nv-sub); font-size: 16px; line-height: 1.6; white-space: pre-wrap; word-break: keep-all; flex: 0 1 auto; min-height: 1.6em; overflow-y: auto; }
#nationalVote .nv-detail-tag { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
#nationalVote .nv-detail-tag span { padding: 6px 12px; border-radius: 15px; background: #f2f4f3; color: #555; font-size: 14px; }
#nationalVote .nv-detail-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 30px; }
#nationalVote .nv-detail-btns a,
#nationalVote .nv-detail-btns button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 4px; height: 52px; border: 1px solid var(--nv-green); border-radius: 7px; background: #fff; color: var(--nv-green); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
#nationalVote .nv-detail-btns .nv-detail-pick { background: var(--nv-green); color: #fff; }
#nationalVote .nv-detail-btns .nv-detail-pick.is-checked { background: #fff; color: var(--nv-green); }
#nationalVote .nv-detail-btns .nv-detail-pick:disabled { border-color: #9aa3a0; background: #9aa3a0; color: #fff; cursor: default; }
/* 개인정보 */
#nationalVote .nv-agree-box { max-width: 560px; padding: 50px 40px 40px; }
#nationalVote .nv-agree-title { margin: 0 0 6px; color: #222; font-size: 24px; font-weight: 800; }
#nationalVote .nv-agree-summary { margin: 0 0 24px; color: var(--nv-sub); font-size: 15px; }
#nationalVote .nv-agree-summary strong { color: var(--nv-green); }
#nationalVote .nv-field { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 10px; }
#nationalVote .nv-field label { color: var(--nv-text); font-size: 16px; font-weight: 700; }
#nationalVote .nv-field input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--nv-line); border-radius: 7px; font-size: 16px; }
#nationalVote .nv-field input:focus { border-color: var(--nv-green); outline: 0; box-shadow: 0 0 0 2px rgba(27, 158, 80, .12); }
#nationalVote .nv-policy { margin: 20px 0 0; padding: 18px 20px; border-radius: 7px; background: #f5f7f6; color: var(--nv-sub); font-size: 14px; line-height: 1.6; }
#nationalVote .nv-policy p { margin: 0 0 6px; color: var(--nv-text); font-weight: 700; }
#nationalVote .nv-policy ul { margin: 0; padding: 0 0 0 16px; list-style: disc; }
#nationalVote .nv-radio { display: flex; justify-content: center; gap: 24px; margin: 16px 0 0; }
#nationalVote .nv-radio label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; cursor: pointer; }
#nationalVote .nv-radio input { width: 18px; height: 18px; accent-color: var(--nv-green); }
#nationalVote .nv-submit { width: 100%; height: 56px; margin-top: 24px; border: 0; border-radius: 28px; background: var(--nv-green); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
#nationalVote .nv-submit:hover { background: var(--nv-green-dark); }
#nationalVote .nv-submit:disabled { background: #9aa3a0; cursor: default; }

body.nv-lock { overflow: hidden; }

/* ---------- 반응형 (여행지 정보와 같은 구간) ---------- */
@media (max-width: 1280px) {
	#nationalVote .nv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
	#nationalVote .nv-visual { padding-left: 50px; padding-right: 260px; }
}
@media (max-width: 1024px) {
	#nationalVote .nv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	#nationalVote .nv-search { grid-template-columns: 1fr 1fr; padding: 18px; }
	#nationalVote .nv-search input[type="text"] { grid-column: 1 / 2; }
	#nationalVote .nv-visual .nv-title { font-size: 28px; }
	#nationalVote .nv-visual .nv-desc { font-size: 17px; }
	#nationalVote .nv-visual .nv-chara { right: 30px; width: 150px; }
	#nationalVote .nv-detail-box { grid-template-columns: 1fr; }
	#nationalVote .nv-detail-info { padding: 30px 24px 24px; contain: none; overflow: visible; }
	#nationalVote .nv-detail-text { overflow-y: visible; }
}
@media (max-width: 700px) {
	#nationalVote .nv-visual { min-height: 0; margin-bottom: 24px; padding: 28px 22px 120px; text-align: left; }
	#nationalVote .nv-visual .nv-title { font-size: 22px; }
	#nationalVote .nv-visual .nv-desc { margin-top: 10px; font-size: 15px; }
	#nationalVote .nv-visual .nv-chara { right: 16px; width: 110px; }
	#nationalVote .nv-guide { gap: 6px; margin-bottom: 20px; }
	#nationalVote .nv-guide li { height: 34px; padding: 0 12px; font-size: 13px; }
	#nationalVote .nv-search { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; padding: 14px; }
	#nationalVote .nv-search input[type="text"] { grid-column: 1 / -1; }
	#nationalVote .nv-search .nv-search-btn { grid-column: 1 / -1; }
	#nationalVote .nv-search select,
	#nationalVote .nv-search input[type="text"],
	#nationalVote .nv-search .nv-search-btn { height: 44px; font-size: 15px; }
	#nationalVote .nv-head { flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
	#nationalVote .nv-total { font-size: 16px; }
	#nationalVote .nv-total strong { font-size: 19px; }
	#nationalVote .nv-list { gap: 16px 12px; }
	#nationalVote .nv-card { border-radius: 6px; }
	#nationalVote .nv-card .nv-img { aspect-ratio: 1.18 / 1; border-radius: 5px 5px 0 0; }
	#nationalVote .nv-card .nv-check { top: 10px; right: 10px; width: 30px; height: 30px; font-size: 19px; }
	#nationalVote .nv-card .nv-body { padding: 14px 13px 10px; }
	#nationalVote .nv-card .nv-subject { font-size: 17px; }
	#nationalVote .nv-card .nv-text { min-height: 36px; margin-top: 8px; font-size: 13px; line-height: 1.4; }
	#nationalVote .nv-card .nv-place { margin-top: 8px; font-size: 12px; }
	#nationalVote .nv-card .nv-foot { flex-wrap: wrap; padding: 10px 13px 13px; }
	#nationalVote .nv-card .nv-cnt { font-size: 13px; }
	#nationalVote .nv-card .nv-detail { height: 30px; padding: 0 10px; font-size: 12px; }
	#nationalVote .nv-bar { bottom: 12px; margin-top: 24px; padding: 10px 10px 10px 18px; }
	#nationalVote .nv-bar .nv-bar-info { font-size: 14px; }
	#nationalVote .nv-bar .nv-bar-info strong { font-size: 17px; }
	#nationalVote .nv-bar .nv-vote-btn { min-width: 0; height: 48px; padding: 0 22px; font-size: 16px; }
	#nationalVote .nv-layer { padding: 0; align-items: flex-end; }
	#nationalVote .nv-layer-box { max-height: 92vh; border-radius: 14px 14px 0 0; }
	#nationalVote .nv-detail-subject { font-size: 21px; }
	#nationalVote .nv-detail-text { font-size: 15px; }
	#nationalVote .nv-agree-box { padding: 44px 20px 24px; }
	#nationalVote .nv-agree-title { font-size: 20px; }
	#nationalVote .nv-field { grid-template-columns: 64px minmax(0, 1fr); }
}
@media (max-width: 400px) {
	#nationalVote .nv-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 26.11.26 수정요청 : 위치 뱃지(사진 오른쪽 하단) / 체험 태그(최대 2개) / 주소 / 모바일 1:1 ---------- */
#nationalVote .nv-card .nv-loc { position: absolute; right: 12px; bottom: 12px; z-index: 1; max-width: calc(100% - 24px); overflow: hidden; padding: 6px 12px; border-radius: 4px; background: rgba(255, 255, 255, .92); color: #555; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
#nationalVote .nv-card .nv-tags { display: flex; flex-wrap: nowrap; gap: 6px; overflow: hidden; margin: 12px 0 0; }
#nationalVote .nv-card .nv-tag { flex: 0 1 auto; min-width: 0; overflow: hidden; padding: 5px 11px; border-radius: 14px; background: #f2f4f3; color: #555; font-size: 13px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
#nationalVote .nv-detail-place { flex: 1 1 auto; min-width: 0; align-items: flex-start; line-height: 1.45; word-break: keep-all; }
#nationalVote .nv-detail-place i { flex: 0 0 auto; margin-top: 1px; }
@media (max-width: 700px) {
	#nationalVote .nv-card .nv-img { aspect-ratio: 1 / 1; }
	#nationalVote .nv-card .nv-loc { right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 8px; font-size: 12px; }
	#nationalVote .nv-card .nv-tags { gap: 4px; margin-top: 8px; }
	#nationalVote .nv-card .nv-tag { padding: 4px 8px; font-size: 11px; }
	#nationalVote .nv-detail-place { font-size: 14px; }
}
