/* =============================================
   부산온나 메인 스타일시트
   ============================================= */

/* --- CSS 변수 --- */
:root {
    --primary:       #0a1f3c;
    --primary-light: #1a6b9a;
    --accent:        #f39c12;
    --accent-hover:  #e67e22;
    --sea:           #74b9ff;
    --white:         #ffffff;
    --light-bg:      #f4f7fb;
    --dark-bg:       #080f1e;
    --text:          #1a2a3a;
    --text-muted:    #6c7a89;
    --border:        #e4eaf1;
    --radius:        16px;
    --radius-sm:     8px;
    --shadow-sm:     0 2px 12px rgba(0,0,0,0.07);
    --shadow-md:     0 8px 28px rgba(0,0,0,0.11);
    --shadow-lg:     0 18px 48px rgba(0,0,0,0.16);
    --transition:    all 0.3s ease;
}

/* --- 기본 리셋 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 레이아웃 --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* =============================================
   헤더
   ============================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(8, 15, 30, 0.90);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 40px;
}

/* 로고 */
.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-main { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.logo-sub  { font-size: 9px;  font-weight: 400; color: var(--sea); letter-spacing: 3px; margin-top: 2px; }

/* 내비게이션 */
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.28s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }

/* 로그인 버튼 */
.header-auth { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-auth {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.btn-auth.login  { color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.25); }
.btn-auth.login:hover  { background: rgba(255,255,255,0.1); color: #fff; }
.btn-auth.signup { background: var(--accent); color: #fff; }
.btn-auth.signup:hover { background: var(--accent-hover); }

/* =============================================
   메인 배너 슬라이더
   ============================================= */
.main-banner {
    position: relative;
    height: 640px;
    overflow: hidden;
    margin-top: 68px;
}
.banner-slider { position: relative; width: 100%; height: 100%; }

/* 배너 슬라이드 */
.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.85s ease;
}
.banner-slide.active { opacity: 1; }
.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
}

/* DB에서 등록한 실제 배너 이미지 */
.banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 등록된 배너가 없을 때 기본 그라데이션 */
.banner-default {
    background: linear-gradient(135deg, #0a3d62 0%, #1a6b9a 45%, #48c6ef 100%);
}

/* 배너 콘텐츠 */
.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
    animation: bannerFadeIn 0.8s ease forwards;
}
@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.banner-location {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 22px;
}
.banner-title {
    font-size: clamp(34px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 16px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.28);
}
.banner-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 300;
    opacity: 0.88;
    margin-bottom: 36px;
}
.btn-banner {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    transition: var(--transition);
}
.btn-banner:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,0.28); }

/* 배너 컨트롤 */
.banner-controls {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}
.banner-arrow {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 42px; height: 42px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}
.banner-arrow:hover { background: rgba(255,255,255,0.32); }
.banner-dots { display: flex; gap: 8px; }
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active { width: 26px; border-radius: 4px; background: #fff; }

/* 배너 하단 웨이브 */
.banner-wave {
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    line-height: 0;
}
.banner-wave svg { width: 100%; height: 60px; display: block; }

/* =============================================
   공통 섹션 스타일
   ============================================= */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 800;
    color: var(--text);
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.section-header p { color: var(--text-muted); font-size: 16px; margin-top: 18px; }

/* =============================================
   부산 지도 섹션
   ============================================= */
.map-section {
    padding: 90px 0 100px;
    background: linear-gradient(180deg, #edf5ff 0%, #ddeeff 100%);
}
.map-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
.busan-map-wrap {
    background: #ddeeff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
/* 실제 부산 SVG 지도 — 비율 유지하며 전체 폭 사용 */
.map-svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 560px;
    object-fit: contain;
}

/* 지도 범례 */
.map-legend {
    display: flex;
    gap: 20px;
    padding: 12px 20px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.legend-sea    { color: #7ec8e3; }
.legend-land   { color: #9eb87a; }
.legend-river  { color: #74b9ff; }

/* SVG 내부 구 이름 텍스트 — JS 마커 라벨로 대체하므로 숨김 */
.dist-label { display: none; }

/* 구별 영역 — 클릭/포커스 시 검은 테두리 제거 */
.district { cursor: pointer; outline: none; }
.district:focus { outline: none; }

/* 지역 마커 (JS가 SVG에 동적 추가) */
.district-marker { cursor: pointer; }
.district-marker circle { transition: r 0.22s ease, opacity 0.22s ease; }

/* 정보 패널 */
.map-info-panel {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.map-info-default { text-align: center; color: var(--text-muted); }
.map-default-icon { font-size: 48px; margin-bottom: 16px; }
.map-info-default p { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.6; }
.map-info-default span { font-size: 13px; line-height: 1.7; }

/* 패널 내용 */
.panel-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}
.panel-district-name { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.panel-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.panel-spots { border-top: 1px solid var(--border); }
.panel-spot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
}
.spot-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.panel-spot-link {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity .15s;
}
.panel-spot-link:hover { opacity: .7; }
.spot-name {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}
.spot-type-emoji { font-size: 13px; flex-shrink: 0; }
.spot-type-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}
.btn-panel {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
}
.btn-panel:hover { opacity: 0.82; transform: translateX(2px); }

/* =============================================
   카드 공통 그리드
   ============================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* =============================================
   섹션 헤더 + 더보기 버튼 행 레이아웃
   ============================================= */
.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 52px;
}
.section-header-row .section-header {
    margin-bottom: 0;
    text-align: left;
}
.section-header-row .section-header h2::after {
    left: 0;
    transform: none;
}
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 22px;
    border: 1.5px solid var(--primary-light);
    color: var(--primary-light);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 6px;
    transition: var(--transition);
}
.btn-more:hover {
    background: var(--primary-light);
    color: #fff;
}

/* =============================================
   관광지 카드
   ============================================= */
.spots-section { padding: 90px 0; background: var(--white); }
.spot-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}
.spot-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

/* 카드 썸네일 (이미지 없을 때 그라데이션+이모지) */
.card-thumb {
    height: 185px;
    background: linear-gradient(135deg, var(--card-color) 0%, color(display-p3 0.7 0.7 0.7) 100%);
    background: var(--card-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0.92;
}
.card-emoji { font-size: 60px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18)); }
.card-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0,0,0,0.32);
    color: #fff;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.card-body { padding: 20px; }
.card-district { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.card-title { font-size: 18px; font-weight: 700; margin: 6px 0 8px; }
.card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.card-link { font-size: 13px; font-weight: 700; color: var(--primary-light); transition: var(--transition); }
.card-link:hover { color: var(--accent); }

/* =============================================
   맛집 카드
   ============================================= */
.food-section { padding: 90px 0; background: var(--light-bg); }
.food-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.food-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.food-top {
    padding: 28px 0 20px;
    text-align: center;
}
.food-emoji { font-size: 52px; }
.food-body { padding: 0 20px 22px; flex: 1; display: flex; flex-direction: column; }
.food-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.food-area { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 10px; }
.food-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.food-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.food-price {
    padding: 5px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.food-link { font-size: 13px; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.food-link:hover { color: var(--accent); }

/* =============================================
   여행 코스 섹션
   ============================================= */
.courses-section { padding: 90px 0; background: var(--dark-bg); }
.courses-section .section-header h2 { color: #fff; }
.courses-section .section-header h2::after { background: var(--sea); }
.courses-section .section-header p { color: rgba(255,255,255,0.55); }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.course-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--course-color);
}
.course-card:hover {
    background: rgba(255,255,255,0.09);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.course-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.course-theme {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
}
.course-duration { font-size: 12px; color: rgba(255,255,255,0.45); }
.course-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.course-desc { font-size: 13px; color: rgba(255,255,255,0.58); line-height: 1.65; margin-bottom: 22px; }
.course-route {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 28px;
    min-height: 44px;
}
.route-stop { font-size: 12px; color: rgba(255,255,255,0.72); }
.route-arrow { font-size: 12px; color: var(--course-color); }
.btn-course {
    display: inline-block;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-course:hover { opacity: 0.83; transform: translateX(3px); }

/* =============================================
   푸터
   ============================================= */
.site-footer { background: #040a14; padding: 64px 0 0; color: rgba(255,255,255,0.55); }
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { font-size: 26px; font-weight: 900; color: #fff; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a { font-size: 13px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-contact p { font-size: 13px; margin-bottom: 6px; }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.25); }

/* =============================================
   스크롤 페이드인 애니메이션
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease var(--delay, 0ms), transform 0.65s ease var(--delay, 0ms);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   반응형
   ============================================= */
@media (max-width: 1100px) {
    .card-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .map-container { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .main-nav, .header-auth { display: none; }
    .card-grid, .courses-grid { grid-template-columns: 1fr; }
    .main-banner { height: 520px; }
    .footer-inner { grid-template-columns: 1fr; }
    .banner-title { font-size: 30px; }
    .section-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .btn-more { margin-bottom: 0; }
}

/* =============================================
   회원가입 모달
   ============================================= */

/* 오버레이 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 30, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* 기본: 숨김 상태 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* 모달 박스 */
.modal-box {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 36px 36px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-16px) scale(0.97);
    transition: transform 0.28s ease;
}
.modal-overlay.is-open .modal-box {
    transform: translateY(0) scale(1);
}

/* 모달 헤더 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light-bg);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: var(--border); color: var(--text); }

/* 폼 그룹 */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}
.form-label .required { color: #e74c3c; margin-left: 2px; }

/* 인풋 공통 */
.form-input, .form-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26, 107, 154, 0.12);
}
.form-input.is-error, .form-select.is-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* 에러 메시지 */
.form-error {
    display: block;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
    min-height: 16px;
}

/* 이메일 분리 레이아웃 */
.email-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.email-local { flex: 1; min-width: 0; }
.at-sign {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}
.email-domain-select { flex: 1.1; min-width: 0; padding: 0 10px; }
.email-domain-direct { flex: 1.1; min-width: 0; }

/* 전송 결과 메시지 */
.form-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}
.form-msg.success { background: #eafaf1; color: #1e8449; border: 1px solid #a9dfbf; }
.form-msg.error   { background: #fdf2f2; color: #c0392b; border: 1px solid #f1aeb5; }

/* 제출 버튼 */
.btn-submit {
    width: 100%;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 6px;
}
.btn-submit:hover  { background: var(--primary-light); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* 헤더 버튼을 <a>와 동일하게 */
.header-auth .btn-auth[type="button"] {
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.header-auth .btn-auth.signup[type="button"] {
    background: var(--accent);
    color: #fff;
}
.header-auth .btn-auth.signup[type="button"]:hover { background: var(--accent-hover); }
.header-auth .btn-auth.login[type="button"]  {
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
}
.header-auth .btn-auth.login[type="button"]:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* 로그인 후 헤더 영역 */
.user-greeting {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
}
.btn-auth.logout {
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-auth.logout:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* 로그인 모달 — 너비를 회원가입보다 좁게 */
.modal-box--sm { max-width: 400px; }

/* 체크박스 옵션 행 */
.login-options {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-light);
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-text {
    font-size: 13px;
    color: var(--text-muted);
}
.checkbox-label:hover .checkbox-text { color: var(--text); }

/* 로그인 폼 하단 — 회원가입 유도 */
.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}
.link-btn {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.link-btn:hover { color: var(--primary); }

/* 모달 반응형 */
@media (max-width: 520px) {
    .modal-box { padding: 28px 20px 24px; }
    .email-wrap { flex-wrap: wrap; }
    .email-local, .email-domain-select, .email-domain-direct { flex: 1 1 100%; }
    .at-sign { display: none; }
}

/* =============================================
   맛집 리스트 페이지
   ============================================= */

/* 내비바 현재 페이지 강조 */
.main-nav a.active { color: #fff; }
.main-nav a.active::after { width: 100%; background: var(--accent); }

/* 페이지 히어로 (맛집·관광지 등 서브 페이지 공통) */
.page-hero {
    background: linear-gradient(135deg, #0a1f3c 0%, #1a4a6b 60%, #1a6b9a 100%);
    padding: 130px 0 56px;
    color: #fff;
    text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 12px; }
.page-hero p  { font-size: 16px; opacity: 0.72; }

/* 필터 바 */
.filter-section {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 68px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.filter-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 40px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    color: var(--text);
    transition: border-color 0.2s;
}
.filter-search input:focus { border-color: var(--primary-light); }
.filter-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
}
.filter-select {
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.filter-select:focus { border-color: var(--primary-light); }
.filter-submit-btn {
    height: 42px;
    padding: 0 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.filter-submit-btn:hover { background: var(--primary-light); }
.filter-reset-btn {
    height: 42px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}
.filter-reset-btn:hover { border-color: var(--primary-light); color: var(--text); }

/* 결과 카운트 + 뷰 전환 */
.restaurant-section { padding: 24px 0 80px; background: var(--light-bg); }
.view-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.result-count { font-size: 14px; color: var(--text-muted); }
.result-count strong { color: var(--text); font-weight: 700; }
.view-toggle {
    display: flex;
    gap: 4px;
    background: #fff;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
}
.view-btn.active  { background: var(--primary); color: #fff; }
.view-btn:hover:not(.active) { background: var(--light-bg); color: var(--text); }

/* ---- 카드 그리드 뷰 ---- */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.r-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.r-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.r-card-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--light-bg);
}
.r-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.r-card:hover .r-card-thumb img { transform: scale(1.06); }
.r-card-thumb-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
}
.r-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.r-card-parking {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.r-card-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.r-card-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.r-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.r-card-district { font-size: 12px; color: var(--text-muted); }
.r-card-hours    { font-size: 12px; color: var(--text-muted); }
.r-card-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}
.stars-text  { font-size: 13px; color: #f39c12; letter-spacing: 1px; }
.stars-score { font-size: 13px; font-weight: 700; color: var(--text); }
.price-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: var(--light-bg);
    color: var(--primary);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    align-self: flex-start;
}
.r-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}
.r-tag {
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    background: #f0f4ff;
    color: #4a6fa5;
    border: 1px solid #d0ddf5;
}

/* ---- 리스트 뷰 ---- */
.restaurant-list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.r-list-item {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 18px 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: var(--transition);
    cursor: pointer;
}
.r-list-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateX(3px);
}
.r-list-cat {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.r-list-body { flex: 1; min-width: 0; }
.r-list-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.r-list-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.r-list-category-badge {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.r-list-info {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.r-list-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 빈 결과 */
.empty-result { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-result-icon { font-size: 60px; margin-bottom: 16px; }
.empty-result h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-result p  { font-size: 14px; }

/* ---- 페이지네이션 ---- */
.pager-wrap { margin-top: 44px; display: flex; justify-content: center; }
.service-pager {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sp-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}
.sp-btn:hover:not(.sp-disabled):not(.sp-current) {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: #f0f7ff;
}
.sp-current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: default;
}
.sp-disabled {
    color: var(--border);
    cursor: default;
    background: var(--light-bg);
}

/* result-count 범위 텍스트 */
.result-range { font-size: 12px; color: var(--text-muted); margin-left: 4px; }

/* ---- 자동완성 드롭다운 ---- */
.filter-search { position: relative; }   /* 이미 선언돼 있으나 안전하게 재확인 */
.suggest-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    z-index: 200;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}
.suggest-group-label {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: var(--light-bg);
}
.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
    border-top: 1px solid var(--border);
}
.suggest-item:first-child { border-top: none; }
.suggest-item:hover,
.suggest-item--active { background: #f0f7ff; }
.suggest-item-icon { font-size: 15px; flex-shrink: 0; }
.suggest-item-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-mark { background: #fff3cd; color: var(--text); font-weight: 700; border-radius: 2px; }

/* ---- 리스트 뷰 해시태그 행 ---- */
.r-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

/* ---- 히어로 페이지별 색상 ---- */
.page-hero--spot {
    background: linear-gradient(135deg, #1a3a2a 0%, #2d6a4f 55%, #40916c 100%);
}
.page-hero--festival {
    background: linear-gradient(135deg, #3d1a5e 0%, #6c3483 55%, #9b59b6 100%);
}
.page-hero--hotplace {
    background: linear-gradient(135deg, #0a2d4a 0%, #1a6b9a 55%, #48c6ef 100%);
}

/* =============================================
   지역별 핫플레이스 — 지역구 탭 바
   ============================================= */
.hotplace-region-bar {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 68px;
    z-index: 100;
}
.hotplace-region-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}
.hotplace-region-tabs::-webkit-scrollbar { display: none; }
.region-tab {
    flex-shrink: 0;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    background: var(--white);
    transition: var(--transition);
    white-space: nowrap;
}
.region-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}
.region-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

/* =============================================
   지역별 핫플레이스 — 콘텐츠 탭 바 (관광지/맛집/축제)
   ============================================= */
.hotplace-type-bar {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
}
.hotplace-type-tabs {
    display: flex;
    gap: 0;
    padding: 0;
}
.type-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.type-tab:hover {
    color: var(--primary-light);
    background: rgba(26,107,154,0.05);
}
.type-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
    background: var(--white);
}
.type-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
}

@media (max-width: 720px) {
    .hotplace-region-bar { top: 56px; }
    .region-tab { padding: 6px 13px; font-size: 13px; }
    .type-tab { padding: 11px 16px; font-size: 14px; }
    .hotplace-type-tabs { overflow-x: auto; scrollbar-width: none; }
    .hotplace-type-tabs::-webkit-scrollbar { display: none; }
}

/* ---- 무료 배지 ---- */
.free-badge { background: #e8f8f0; color: #00b894; border-color: #b3e8d4; }

/* ---- 축제 주최자 ---- */
.festival-host {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ---- 축제 진행 상태 배지 (리스트 뷰) ---- */
.festival-status-badge {
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 맛집 리스트 반응형 */
@media (max-width: 1100px) {
    .restaurant-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .restaurant-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-search { min-width: 0; }
    .filter-select  { width: 100%; }
    .r-list-item { padding: 14px 16px; }
    .page-hero { padding: 110px 0 44px; }
}

/* ===================== 고객센터 (/customer) ===================== */

/* 히어로 */
.page-hero--customer {
    background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%);
}

/* 탭 바 */
.customer-tab-bar {
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 70px;
    z-index: 100;
}
.customer-tabs {
    display: flex;
    gap: 0;
}
.customer-tab {
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #636e72;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    margin-bottom: -2px;
}
.customer-tab:hover { color: #0984e3; }
.customer-tab.active {
    color: #0984e3;
    border-bottom-color: #0984e3;
}

/* 콘텐츠 영역 */
.customer-content {
    padding: 48px 0 80px;
    min-height: 400px;
}

/* 로딩 스피너 */
.tab-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: #0984e3;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 탭 오류 */
.tab-error {
    text-align: center;
    color: #e17055;
    padding: 40px 0;
}

/* 준비중 */
.coming-soon-wrap {
    text-align: center;
    padding: 80px 20px;
}
.coming-soon-icon { font-size: 64px; margin-bottom: 16px; }
.coming-soon-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 12px;
}
.coming-soon-desc {
    color: #636e72;
    font-size: 15px;
    line-height: 1.7;
}

/* FAQ 카테고리 필터 */
.faq-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.faq-type-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
    cursor: pointer;
    transition: all .2s;
}
.faq-type-btn:hover { border-color: #0984e3; color: #0984e3; }
.faq-type-btn.active {
    background: #0984e3;
    border-color: #0984e3;
    color: #fff;
}

/* FAQ 아코디언 */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
    border-bottom: 1px solid #e9ecef;
}
.faq-item:first-child { border-top: 1px solid #e9ecef; }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    transition: color .2s;
}
.faq-question:hover { color: #0984e3; }
.faq-q-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0984e3;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-q-text { flex: 1; }
.faq-category-badge {
    padding: 3px 10px;
    border-radius: 10px;
    background: #f1f3f5;
    color: #636e72;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}
.faq-arrow {
    color: #adb5bd;
    font-size: 11px;
    transition: transform .25s;
    flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    display: none;
    padding: 0 0 20px 40px;
    gap: 12px;
}
.faq-item.open .faq-answer { display: flex; }
.faq-a-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00b894;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-a-text {
    flex: 1;
    color: #495057;
    font-size: 14px;
    line-height: 1.75;
}

/* 고객문의 헤더 */
.inquiry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.inquiry-header-desc { color: #636e72; font-size: 14px; }
.btn-inquiry-write {
    padding: 9px 22px;
    background: #0984e3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.btn-inquiry-write:hover { background: #0770c2; }

/* 문의 등록 폼 */
.inquiry-form-wrap {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 32px;
}
.inquiry-form-inner { display: flex; flex-direction: column; gap: 16px; }
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color .2s;
    box-sizing: border-box;
}
.form-textarea:focus { outline: none; border-color: #0984e3; }
.form-group--inline { flex-direction: row; align-items: center; gap: 12px; }
.inquiry-form-actions { display: flex; justify-content: flex-end; }
.btn-submit--sm {
    padding: 10px 28px;
    font-size: 14px;
}

/* 로그인 필요 */
.inquiry-login-required {
    text-align: center;
    padding: 80px 20px;
}
.inquiry-login-icon { font-size: 56px; margin-bottom: 16px; }
.inquiry-login-required h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 12px;
}
.inquiry-login-required p {
    color: #636e72;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.btn-inquiry-login {
    padding: 12px 32px;
    background: #0984e3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.btn-inquiry-login:hover { background: #0770c2; }

/* 내 문의 목록 */
.inquiry-list-section { margin-top: 8px; }
.inquiry-list-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}
.inquiry-list { display: flex; flex-direction: column; gap: 0; }
.inquiry-item {
    border-bottom: 1px solid #e9ecef;
}
.inquiry-item:first-child { border-top: 1px solid #e9ecef; }
.inquiry-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    cursor: pointer;
    user-select: none;
}
.inquiry-type-badge {
    padding: 3px 10px;
    border-radius: 10px;
    background: #e3f2fd;
    color: #0984e3;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.inquiry-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inquiry-state {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.state-pending { background: #fff3cd; color: #856404; }
.state-done    { background: #d1e7dd; color: #0a3622; }
.inquiry-date  { font-size: 12px; color: #adb5bd; flex-shrink: 0; }
.inquiry-toggle-arrow {
    color: #adb5bd;
    font-size: 11px;
    transition: transform .25s;
    flex-shrink: 0;
}
.inquiry-item.open .inquiry-toggle-arrow { transform: rotate(180deg); }
.inquiry-item-body { display: none; padding: 0 0 20px 0; }
.inquiry-item.open .inquiry-item-body { display: block; }
.inquiry-content-wrap,
.inquiry-answer-wrap {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.inquiry-content-wrap { background: #f8f9fa; }
.inquiry-answer-wrap  { background: #e3f2fd; }
.iq-label {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.iq-label--q { background: #6c757d; color: #fff; }
.iq-label--a { background: #0984e3; color: #fff; }
.iq-text {
    flex: 1;
    font-size: 14px;
    color: #495057;
    line-height: 1.7;
}
.iq-answer-date {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}
.inquiry-pending-wrap {
    padding: 16px;
    background: #fff8e1;
    border-radius: 8px;
    margin-bottom: 10px;
}
.inquiry-pending-msg {
    color: #856404;
    font-size: 13px;
    text-align: center;
}

/* 공지사항 목록 */
.notice-list { display: flex; flex-direction: column; gap: 0; }
.notice-item { border-bottom: 1px solid #e9ecef; }
.notice-item:first-child { border-top: 1px solid #e9ecef; }
.notice-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    cursor: pointer;
    user-select: none;
}
.notice-pin-label {
    padding: 3px 10px;
    border-radius: 10px;
    background: #fff3cd;
    color: #856404;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.notice-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
}
.notice-date  { font-size: 12px; color: #adb5bd; flex-shrink: 0; }
.notice-toggle-arrow {
    color: #adb5bd;
    font-size: 11px;
    transition: transform .25s;
    flex-shrink: 0;
}
.notice-item.open .notice-toggle-arrow { transform: rotate(180deg); }
.notice-item-body { display: none; padding: 0 0 24px 0; }
.notice-item.open .notice-item-body { display: block; }
.notice-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px 28px;
    font-size: 14px;
    color: #495057;
    line-height: 1.8;
}
/* 에디터 HTML 내부 스타일 초기화 */
.notice-content h1,
.notice-content h2,
.notice-content h3 { font-weight: 700; margin: 16px 0 8px; color: #2d3436; }
.notice-content h1 { font-size: 20px; }
.notice-content h2 { font-size: 18px; }
.notice-content h3 { font-size: 16px; }
.notice-content p  { margin: 0 0 10px; }
.notice-content ul,
.notice-content ol { padding-left: 20px; margin-bottom: 10px; }
.notice-content li { margin-bottom: 4px; }
.notice-content a  { color: #0984e3; text-decoration: underline; }
.notice-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 13px;
}
.notice-content th,
.notice-content td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
}
.notice-content th { background: #e9ecef; font-weight: 600; }
.notice-content blockquote {
    border-left: 3px solid #0984e3;
    margin: 12px 0;
    padding: 8px 16px;
    background: #e3f2fd;
    color: #495057;
}
.notice-content code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}
.notice-content pre {
    background: #2d3436;
    color: #dfe6e9;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
}
.notice-content pre code { background: none; padding: 0; color: inherit; }

/* 고객센터 반응형 */
@media (max-width: 768px) {
    .customer-tab { padding: 14px 16px; font-size: 14px; }
    .inquiry-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .inquiry-item-header { flex-wrap: wrap; }
    .inquiry-title { min-width: 0; width: calc(100% - 120px); }
    .inquiry-date { display: none; }
}
