/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #FF4B4B;
    --primary-light: #FFF0F0;
    --surface: #FFFFFF;
    --bg: #F7F7F9;
    --text: #1A1A1A;
    --text-sub: #6E6E73;
    --border: #E5E5EA;
    --shadow-sm: 0 1px 6px rgba(0,0,0,0.07);
    --shadow: 0 4px 16px rgba(0,0,0,0.09);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.13);
    --radius: 14px;
    --radius-sm: 8px;
    --header-h: 56px;
    --max-w: 1280px;
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, 'Pretendard', 'Apple SD Gothic Neo', BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; width: 100%; min-height: 100vh; display: flex; flex-direction: column; scrollbar-gutter: stable both-edges; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; }

/* ── Header ───────────────────────────────────────── */
.header {
    position: sticky; top: 0; z-index: 200;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 24px;
    display: flex; flex-direction: column;
}
.header-top {
    display: flex; align-items: center; height: 56px; gap: 0;
}
.header-search-row {
    display: flex; align-items: center;
    padding: 7px 0 9px; border-top: 1px solid var(--border);
    animation: searchSlideDown .18s ease;
}
.header-search-row[hidden] { display: none; }
@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search-toggle-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    color: var(--text-sub); transition: all .18s; flex-shrink: 0; margin-right: 8px;
}
.search-toggle-btn:hover { background: var(--primary-light); color: var(--primary); }
.search-toggle-btn.active { background: var(--primary-light); color: var(--primary); }
.search-close-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; margin-left: 8px;
    color: var(--text-sub); transition: all .18s;
}
.search-close-btn:hover { background: var(--bg); color: var(--text); }

.header-brand {
    display: flex; align-items: center; gap: 7px;
    flex-shrink: 0; padding-right: 28px;
    border-right: 1px solid var(--border);
}
.brand-icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.brand-text { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }

/* 헤더 2행: 네비게이션 */
.header-nav-row {
    border-top: 1px solid var(--border);
    overflow-x: auto; scrollbar-width: none;
}
.header-nav-row::-webkit-scrollbar { display: none; }
.header-nav {
    display: flex; align-items: center; gap: 2px;
    padding: 6px 0; min-width: max-content;
}
/* 1행 오른쪽 그룹 (검색 + 인증) */
.header-top-right {
    margin-left: auto; display: flex; align-items: center;
}

/* 카테고리/소식 드롭다운 — 모바일 전용 */
.nav-dropdown { position: relative; display: none; }
.nav-cat-item, .nav-news-item { /* 데스크탑에서 표시 */ }
.nav-dropdown > summary {
    display: flex; align-items: center; gap: 4px; list-style: none;
    padding: 6px 12px; border-radius: 18px;
    font-size: 13px; font-weight: 500; color: var(--text-sub);
    white-space: nowrap; transition: all .18s; cursor: pointer;
}
.nav-dropdown > summary::-webkit-details-marker,
.nav-dropdown > summary::marker { display: none; }
.nav-dropdown > summary:hover { color: var(--primary); background: var(--primary-light); }
.nav-dropdown > summary.active { color: var(--primary); font-weight: 700; background: var(--primary-light); }
.nav-dropdown > summary .drop-arrow { transition: transform .18s; flex-shrink: 0; }
.nav-dropdown[open] > summary .drop-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: fixed; /* overflow-x: auto 클리핑 방지 */
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    min-width: 130px; z-index: 1000;
    display: none; flex-direction: column; padding: 4px;
}
.nav-dropdown[open] .nav-dropdown-menu {
    display: flex;
}
.nav-dropdown-item {
    padding: 8px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 500; color: var(--text);
    white-space: nowrap; transition: background .13s; text-decoration: none;
}
.nav-dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-dropdown-item.active { color: var(--primary); font-weight: 700; background: var(--primary-light); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.nav-dropdown-label { display: block; padding: 4px 12px 2px; font-size: 11px; font-weight: 700; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.04em; }
.nav-link, .cat-link {
    padding: 6px 12px; border-radius: 18px;
    font-size: 13px; font-weight: 500; color: var(--text-sub);
    white-space: nowrap; transition: all .18s;
}
.nav-link:hover, .cat-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); font-weight: 700; background: var(--primary-light); }
.nav-sep {
    width: 1px; height: 16px; background: var(--border);
    flex-shrink: 0; margin: 0 6px;
}
.nav-group-label {
    font-size: 10px; font-weight: 700; color: var(--primary);
    letter-spacing: .04em; padding: 0 4px; flex-shrink: 0;
}

/* 북마크 버튼 (nav 내부) */
.nav-bm-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 18px; margin-left: 4px;
    border: 1px solid var(--border); background: transparent;
    font-size: 13px; font-weight: 600; color: var(--text-sub);
    white-space: nowrap; flex-shrink: 0; transition: all .18s; cursor: pointer;
}
.nav-bm-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.nav-bm-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.nav-bm-btn.active svg { stroke: white; }
.nav-bm-btn.active .bm-badge { background: rgba(255,255,255,.35); }

/* 검색창 (2행) */
.header-search-form {
    display: flex; align-items: center; width: 100%;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 24px; padding: 0 5px 0 0; gap: 0;
    transition: border-color .18s;
}
.header-search-form:focus-within { border-color: var(--primary); }
.search-cat-select {
    border: none; background: transparent; outline: none;
    font-size: 13px; font-weight: 600; color: var(--text-sub);
    padding: 0 4px 0 14px; cursor: pointer; flex-shrink: 0;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 6px center;
    padding-right: 22px;
}
.search-cat-select:focus { color: var(--primary); }
.search-divider {
    width: 1px; height: 16px; background: var(--border); margin: 0 8px; flex-shrink: 0;
}

/* ── 달력·지도 전용 필터 바 ──────────────────────── */
.mid-filter {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 10px 16px;
    box-shadow: var(--shadow-sm);
}
.mid-filter-cats {
    display: flex; align-items: center; gap: 6px;
    overflow-x: auto; flex: 1;
}
.mid-filter-cats::-webkit-scrollbar { display: none; }
.mid-filter-label {
    font-size: 12px; font-weight: 600; color: var(--text-sub);
    flex-shrink: 0; margin-right: 4px;
}
.mid-cat-btn {
    padding: 5px 13px; border-radius: 14px;
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text-sub); font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all .15s; white-space: nowrap; flex-shrink: 0;
    min-width: 72px; text-align: center;
}
.mid-cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.mid-cat-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* 북마크 토글 */
.bm-toggle {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 14px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-sub);
    flex-shrink: 0; transition: all .18s; cursor: pointer; white-space: nowrap;
}
.bm-toggle:hover { border-color: var(--primary); color: var(--primary); }
.bm-toggle.active { background: var(--primary); border-color: var(--primary); color: white; }
.bm-toggle.active svg { stroke: white; }

.bm-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--primary); color: white;
    border-radius: 8px; font-size: 10px; font-weight: 700;
}
.bm-toggle.active .bm-badge { background: rgba(255,255,255,.35); }

/* 활성 필터 표시 바 */
.mid-filter-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.filter-clear-btn {
    padding: 6px 14px; border-radius: 14px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-sub);
    flex-shrink: 0; transition: all .18s; cursor: pointer; white-space: nowrap;
}
.filter-clear-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-clear-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.filter-clear-btn.active:hover { opacity: .85; }

/* 위젯 필터 뱃지 */
.widget-filter-badge {
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    background: var(--primary); color: white; border-radius: 10px;
}
.widget-header-right { display: flex; align-items: center; gap: 8px; }

/* ── 북마크 패널 ──────────────────────────────────── */
.bookmark-panel {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 20px 28px;
}
.bm-panel-header { margin-bottom: 16px; }
.bm-panel-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.bm-panel-desc { font-size: 13px; color: var(--text-sub); }

.bm-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bm-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px;
    transition: box-shadow .18s; position: relative;
}
.bm-card:hover { box-shadow: var(--shadow); }
.bm-thumb { width: 54px; height: 54px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--border); }
.bm-info { flex: 1; min-width: 0; }
.bm-brand { font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.bm-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
.bm-date { font-size: 11px; color: var(--text-sub); }
.bm-region { font-size: 11px; color: var(--text-sub); }

.bm-empty { grid-column: 1 / -1; text-align: center; padding: 32px; color: var(--text-sub); }
.bm-empty-icon { font-size: 32px; margin-bottom: 10px; }
.bm-empty p { font-size: 13px; line-height: 1.7; }

/* ── 북마크 버튼 (공용) ───────────────────────────── */
.bm-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.88); color: rgba(0,0,0,.45);
    flex-shrink: 0; transition: all .18s;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.bm-btn:hover { color: var(--primary); background: white; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.bm-btn.bookmarked { color: var(--primary); background: white; }
.bm-btn.bookmarked svg { fill: currentColor; }

/* 배너 북마크 */
.banner-bm { position: absolute; top: 14px; right: 14px; z-index: 5; }
.banner-actions { display: flex; align-items: center; gap: 10px; }

/* 랭킹 북마크 */
.rank-bm { width: 28px; height: 28px; background: var(--bg); box-shadow: none; }
.rank-bm:hover { background: white; box-shadow: var(--shadow-sm); }

/* 추천 북마크 */
.rec-bm {
    position: absolute; top: 6px; right: 6px;
    width: 28px; height: 28px; z-index: 1;
}

/* ── Detail 북마크 버튼 ───────────────────────────── */
.detail-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-bookmark {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px; border-radius: 26px;
    border: 2px solid var(--border); background: var(--surface);
    font-size: 15px; font-weight: 600; color: var(--text-sub);
    transition: all .18s; cursor: pointer;
}
.btn-bookmark:hover { border-color: var(--primary); color: var(--primary); }
.btn-bookmark.bookmarked { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.header-right {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0; padding-left: 16px;
    border-left: 1px solid var(--border);
}
.header-auth { display: flex; align-items: center; gap: 6px; }
.header-user {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 600; color: var(--text-sub);
}
.auth-link-btn {
    font-size: 13px; font-weight: 600; color: var(--text-sub);
    padding: 5px 12px; border-radius: 14px;
    border: 1px solid var(--border); background: var(--bg);
    cursor: pointer; transition: all .15s; white-space: nowrap;
    text-decoration: none; display: inline-flex; align-items: center;
}
.auth-link-btn:hover { border-color: var(--primary); color: var(--primary); }
.auth-link-btn.signup { background: var(--primary); border-color: var(--primary); color: white; }
.auth-link-btn.signup:hover { opacity: .88; }
.auth-link-btn.admin-link-btn { background: #1a1a2e; border-color: #1a1a2e; color: #fff; }
.auth-link-btn.admin-link-btn:hover { background: #16213e; border-color: #16213e; color: #fff; }

/* ── Bell notification ──────────────────────────────────── */
.bell-wrap { position: relative; }
.bell-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    color: var(--text-sub); transition: background .15s, color .15s;
}
.bell-btn:hover { background: var(--bg); color: var(--primary); }
.bell-badge {
    position: absolute; top: 2px; right: 1px;
    background: var(--primary); color: #fff;
    font-size: 9px; font-weight: 700; line-height: 1;
    min-width: 15px; height: 15px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px; border: 2px solid var(--surface);
}
.bell-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 240px; z-index: 10; overflow: hidden;
}
.bell-dropdown[hidden] { display: none; }
.bell-dd-hd {
    padding: 12px 16px 10px;
    font-size: 12px; font-weight: 700; color: var(--text-sub);
    border-bottom: 1px solid var(--border);
}
.bell-dd-empty { padding: 16px; font-size: 13px; color: var(--text-sub); text-align: center; }
.bell-dd-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; gap: 8px;
    font-size: 13px; color: var(--text); transition: background .12s;
    border-bottom: 1px solid var(--border);
}
.bell-dd-item:hover { background: var(--bg); }
.bell-dd-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell-dd-dday {
    font-size: 11px; font-weight: 700; color: var(--primary);
    background: var(--primary-light); padding: 2px 7px;
    border-radius: 10px; flex-shrink: 0;
}
.bell-dd-dday.dday-today { background: var(--primary); color: #fff; }
.bell-dd-footer {
    display: block; padding: 10px 16px;
    font-size: 12px; font-weight: 600; color: var(--text-sub);
    text-align: center; border-top: 1px solid var(--border);
    transition: color .12s;
}
.bell-dd-footer:hover { color: var(--primary); }

.region-select {
    height: 34px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 13px; color: var(--text); background: var(--bg);
    outline: none; cursor: pointer;
}
.search-form {
    display: flex; align-items: center;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 22px; padding: 0 5px 0 14px; gap: 4px;
}
.search-input { border: none; background: transparent; font-size: 13px; outline: none; flex: 1; min-width: 0; color: var(--text); padding: 0 8px; }
.search-input::placeholder { color: var(--text-sub); }
.search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; background: var(--primary);
    border-radius: 50%; color: white; flex-shrink: 0; transition: opacity .18s;
}
.search-btn:hover { opacity: .82; }

/* ── Page Main ────────────────────────────────────── */
.page-main { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px 60px; flex: 1; }

/* ── 롤링 배너 ────────────────────────────────────── */
.banner-section {
    position: relative; height: clamp(220px, 32vw, 440px);
    border-radius: var(--radius); overflow: hidden;
    margin: 24px 0; box-shadow: var(--shadow);
}

.banner-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.banner-slide { min-width: 100%; position: relative; flex-shrink: 0; }
.banner-bg {
    position: absolute; inset: -20px;
    background-size: cover; background-position: center;
    filter: blur(18px) brightness(.55) saturate(.7);
}
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 32px 40px;
}
.banner-meta { display: flex; gap: 8px; margin-bottom: 10px; }
.banner-cat {
    background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
    color: white; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px;
}
.banner-status {
    font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px;
}
.banner-status.ongoing  { background: #DCFCE7; color: #16A34A; }
.banner-status.upcoming { background: #FEF3C7; color: #D97706; }

.banner-name  { font-size: 24px; font-weight: 800; color: white; margin-bottom: 6px; line-height: 1.25; }
.banner-addr  { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 4px; }
.banner-date  { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.banner-link  {
    display: inline-block; background: white; color: var(--text);
    font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 20px;
    transition: opacity .2s; width: fit-content;
}
.banner-link:hover { opacity: .88; }
.banner-empty { display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-sub); font-size: 15px; }

.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
    font-size: 22px; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: background .18s; z-index: 10; box-shadow: var(--shadow-sm);
}
.banner-arrow:hover { background: white; }
.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }

.banner-dots {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10;
}
.banner-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.5); transition: all .25s; cursor: pointer;
}
.banner-dot.active { background: white; width: 20px; border-radius: 4px; }

/* ── 달력 + 지도 (중간 섹션) ─────────────────────── */
.mid-section { margin-bottom: 32px; }
.mid-inner { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 20px; }

/* 공통 위젯 */
.widget-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.widget-title { font-size: 16px; font-weight: 700; }
.widget-count { font-size: 13px; color: var(--text-sub); font-weight: 500; }

/* 달력 */
.calendar-widget {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 20px; display: flex; flex-direction: column; gap: 0;
    min-width: 0;
}

.cal-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.cal-month { font-size: 15px; font-weight: 700; }
.cal-arrow {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--border);
    font-size: 18px; color: var(--text-sub);
    display: flex; align-items: center; justify-content: center;
    transition: all .18s;
}
.cal-arrow:hover { border-color: var(--primary); color: var(--primary); }

.cal-today-btn {
    font-size: 12px; font-weight: 600; color: var(--primary);
    background: var(--primary-light); border: 1px solid transparent;
    border-radius: 12px; padding: 3px 10px; transition: all .18s;
}
.cal-today-btn:hover { background: var(--primary); color: white; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 14px; }

.cal-weekday {
    text-align: center; font-size: 11px; font-weight: 600;
    color: var(--text-sub); padding: 4px 0;
}
.cal-weekday:first-child { color: #EF4444; }
.cal-weekday:last-child  { color: #3B82F6; }

.cal-day {
    aspect-ratio: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border-radius: 8px; font-size: 13px; cursor: pointer;
    position: relative; transition: all .15s; gap: 2px;
}
.cal-day:hover { background: var(--bg); }
.cal-day.today { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.cal-day.selected { background: var(--primary); color: white; font-weight: 700; }
.cal-day.other-month { color: var(--border); cursor: default; }
.cal-day.has-event::after {
    content: ''; width: 4px; height: 4px; border-radius: 50%;
    background: var(--primary); position: absolute; bottom: 4px;
}
.cal-day.selected::after { background: white; }

.cal-events {
    border-top: 1px solid var(--border); padding-top: 14px;
    min-height: 80px; max-height: 240px; overflow-y: auto;
}
.cal-events-hint { font-size: 13px; color: var(--text-sub); text-align: center; padding: 20px 0; }
.cal-event-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid var(--bg);
    text-decoration: none; color: inherit; transition: opacity .15s;
}
.cal-event-item:hover { opacity: .75; }
.cal-event-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cal-event-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cal-event-date { font-size: 11px; color: var(--text-sub); }

/* 지도 위젯 */
.map-widget {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 20px; display: flex; flex-direction: column;
    min-width: 0;
}
.map-container { position: relative; flex: 1; border-radius: var(--radius-sm); overflow: hidden; min-height: 320px; }
#map { width: 100%; height: 100%; min-height: 320px; }

.map-locate-btn {
    position: absolute; bottom: 12px; left: 12px; z-index: 800;
    width: 36px; height: 36px; border-radius: 8px;
    background: white; border: 2px solid rgba(0,0,0,.12);
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    display: flex; align-items: center; justify-content: center;
    color: #555; transition: all .18s;
}
.map-locate-btn:hover { border-color: var(--primary); color: var(--primary); }
.map-locate-btn.locating { animation: pulse 1s infinite; color: var(--primary); }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

.map-legend {
    display: flex; align-items: center; gap: 14px;
    margin-top: 10px; font-size: 12px; color: var(--text-sub);
}
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.ongoing-dot  { background: var(--primary); }
.upcoming-dot { background: #F59E0B; }

/* 마커 클러스터 커스텀 스타일 */
.mc-wrap { background: none; border: none; }
.mc-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: white;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(255,75,75,.45);
}

/* 클러스터 목록 패널 */
.cluster-panel {
    position: absolute; top: 10px; left: 10px; z-index: 900;
    background: white; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    width: 260px; max-height: 340px;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.cluster-panel-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px 10px; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cluster-panel-title { font-size: 14px; font-weight: 700; }
.cluster-panel-close {
    background: none; border: none; cursor: pointer; padding: 2px;
    color: var(--text-sub); display: flex; align-items: center;
    border-radius: 4px; transition: color .15s;
}
.cluster-panel-close:hover { color: var(--text); }
.cluster-list { list-style: none; overflow-y: auto; flex: 1; margin: 0; padding: 6px 0; }
.cl-item { }
.cl-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; text-decoration: none; color: inherit;
    transition: background .12s;
}
.cl-link:hover { background: var(--bg); }
.cl-img-wrap { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.cl-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-img-ph { width: 100%; height: 100%; background: var(--border); }
.cl-info { min-width: 0; flex: 1; }
.cl-badge { display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.cl-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-date { font-size: 11px; color: var(--text-sub); margin-top: 2px; }

/* ── 하단 섹션 ────────────────────────────────────── */
.bottom-section { }
.bottom-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.bottom-panel {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 20px; overflow: hidden; min-width: 0;
}
.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.panel-title { font-size: 16px; font-weight: 700; }
.panel-more { font-size: 12px; color: var(--text-sub); transition: color .15s; }
.panel-more:hover { color: var(--primary); }

/* 랭킹 */
.ranking-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ranking-item {
    display: flex; align-items: center; gap: 10px;
    border-radius: var(--radius-sm); padding: 4px 6px; margin: 0 -6px;
    transition: background .15s; cursor: pointer;
}
.ranking-item:hover { background: var(--bg); }
.rank-num { font-size: 16px; font-weight: 800; color: var(--primary); width: 20px; text-align: center; flex-shrink: 0; }
.rank-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.rank-info { flex: 1; overflow: hidden; }
.rank-info { min-width: 0; }
.rank-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
.rank-region { font-size: 11px; color: var(--text-sub); }
.rank-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; flex-shrink: 0; }
.rank-badge.ongoing  { background: #DCFCE7; color: #16A34A; }
.rank-badge.upcoming { background: #FEF3C7; color: #D97706; }

/* 소식 */
.news-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.news-item { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.news-tag {
    font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
    background: var(--primary-light); color: var(--primary); flex-shrink: 0; white-space: nowrap;
}
.news-tag.new { background: var(--primary); color: white; }
.news-title { font-size: 13px; font-weight: 500; flex: 1; line-height: 1.4; transition: color .15s; }
.news-title:hover { color: var(--primary); }
.news-date { font-size: 11px; color: var(--text-sub); width: 100%; padding-left: calc(10px + 7px); }

/* 추천 */
.recommend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.rec-card { display: block; transition: opacity .2s; min-width: 0; overflow: hidden; }
.rec-card:hover { opacity: .8; }
.rec-img-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; margin-bottom: 7px; width: 100%; }
.rec-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rec-cat {
    position: absolute; top: 6px; left: 6px;
    background: rgba(0,0,0,.6); color: white; font-size: 10px; font-weight: 600;
    padding: 2px 7px; border-radius: 10px;
    display: inline-block; max-width: calc(100% - 50px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rec-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
.rec-date { font-size: 11px; color: var(--text-sub); }

/* ── 소식 없음 (인덱스) ───────────────────────────── */
.news-empty { text-align: center; padding: 24px 0; color: var(--text-sub); font-size: 13px; }
.news-write-link { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ── 소식 목록 페이지 ─────────────────────────────── */
.news-page { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 40px 24px 80px; }
.news-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.news-page-title { font-size: 22px; font-weight: 800; }
.news-write-btn { font-size: 13px; padding: 8px 18px; }
.news-list-header { display: flex; justify-content: flex-end; margin-top: 16px; margin-bottom: 10px; min-height: 0; }
.login-toast {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 8px;
    background: #1A1A1A; color: #fff;
    font-size: 14px; font-weight: 500;
    padding: 16px 28px; border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.28);
    z-index: 9999; animation: toastIn .2s ease;
    white-space: nowrap;
}
.login-toast[hidden] { display: none; }
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}
.news-page-empty { text-align: center; padding: 80px 0; color: var(--text-sub); font-size: 15px; }

/* 소식 탭 필터 */
.news-tabs {
    display: flex; gap: 6px; margin-bottom: 16px;
    border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.news-tab {
    padding: 9px 18px; font-size: 14px; font-weight: 600;
    color: var(--text-sub); border-radius: 6px 6px 0 0;
    border: 1px solid transparent; border-bottom: none;
    margin-bottom: -2px; transition: all .15s;
}
.news-tab:hover { color: var(--primary); }
.news-tab.active {
    color: var(--primary); background: var(--surface);
    border-color: var(--border); border-bottom-color: var(--surface);
}

/* 게시판 테이블 */
.board-table {
    width: 100%; border-collapse: collapse;
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.board-table thead tr {
    background: #EEEEF2; border-bottom: 2px solid var(--border);
}
.board-table th {
    padding: 13px 16px; font-size: 13px; font-weight: 700;
    color: #444; text-align: center;
}
.board-table th:nth-child(3) { text-align: left; }
.board-row { border-bottom: 1px solid var(--border); cursor: pointer; transition: background .13s; }
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: var(--primary-light); }
.board-row td { padding: 14px 16px; font-size: 14px; vertical-align: middle; }
.board-num { text-align: center; color: var(--text-sub); font-size: 13px; }
.board-title-cell { text-align: left; }
.board-title {
    font-weight: 600; color: var(--text); transition: color .13s;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.board-row:hover .board-title { color: var(--primary); }
.board-date { text-align: center; font-size: 13px; color: var(--text-sub); white-space: nowrap; }
.board-views { text-align: center; font-size: 13px; color: var(--text-sub); }

/* ── 소식 상세 페이지 ─────────────────────────────── */
.news-detail-page { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.news-detail-inner {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 48px 52px;
    box-shadow: var(--shadow-sm);
}
.news-detail-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--text-sub);
    padding: 7px 16px; border-radius: 18px;
    background: var(--bg); border: 1px solid var(--border);
    margin-bottom: 32px; transition: all .18s;
}
.news-detail-back:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

/* 헤더 */
.news-detail-header { margin-bottom: 24px; }
.nd-tag {
    display: inline-block; margin-bottom: 14px;
    font-size: 12px; font-weight: 700;
}
.news-detail-title { font-size: 20px; font-weight: 800; line-height: 1.45; margin-bottom: 12px; }
.news-linked-store {
    display: inline-flex; align-items: center; gap: 5px;
    margin-bottom: 14px;
    padding: 4px 10px 4px 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px; font-weight: 600; color: var(--text-sub);
    text-decoration: none; background: var(--bg);
    transition: border-color .15s, color .15s;
}
.news-linked-store:hover { border-color: var(--primary); color: var(--primary); }
.news-detail-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-sub);
}
.news-detail-author { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text-sub); }
.meta-dot { color: var(--border); }

/* 구분선 */
.news-detail-divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* 썸네일 */
.news-detail-thumb {
    width: 100%; border-radius: var(--radius-sm);
    margin-bottom: 32px; max-height: 420px; object-fit: cover;
    box-shadow: var(--shadow-sm);
}

/* 본문 */
.news-detail-content {
    font-size: 15px; line-height: 2; color: var(--text);
    white-space: pre-line; word-break: keep-all;
}

/* 푸터 (좋아요 + 삭제) */
.news-detail-footer {
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center;
}
.nd-btn-group { display: flex; align-items: center; gap: 10px; }
.like-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 20px;
    border: 1.5px solid var(--border); background: var(--bg);
    font-size: 14px; font-weight: 600; color: var(--text-sub);
    cursor: pointer; transition: all .18s;
}
.like-btn:hover { border-color: #F87171; color: #EF4444; background: #FFF5F5; }
.like-btn.liked { border-color: #EF4444; color: #EF4444; background: #FFF5F5; }

.nd-helpful-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    border: 1.5px solid var(--border); background: var(--bg);
    font-size: 13px; font-weight: 600; color: var(--text-sub);
    cursor: pointer; transition: all .18s;
}
.nd-helpful-btn:hover { border-color: var(--primary); color: var(--primary); background: #FFF5F5; }
.nd-helpful-btn.liked { border-color: var(--primary); color: var(--primary); background: #FFF5F5; }

.news-delete-btn { padding: 8px 16px; border-radius: 8px; border: 1.5px solid #FCA5A5; background: #FEF2F2; color: #DC2626; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.news-delete-btn:hover { background: #DC2626; color: white; border-color: #DC2626; }

/* ── 소식 작성 페이지 ─────────────────────────────── */
.news-write-page { max-width: 1160px; margin: 0 auto; padding: 48px 24px 80px; }
.news-write-inner { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 48px 64px; box-shadow: var(--shadow-sm); }
.news-write-title { font-size: 22px; font-weight: 800; margin-bottom: 32px; }
.news-write-form { display: flex; flex-direction: column; gap: 22px; }
.form-textarea { min-height: 320px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-label-sub { font-weight: 400; color: var(--text-sub); }
.form-input, .form-select {
    padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 14px; outline: none; transition: border-color .15s; background: var(--surface);
}
.form-input:focus, .form-select:focus { border-color: var(--primary); }
.form-textarea {
    padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 14px; outline: none; transition: border-color .15s; resize: vertical;
    font-family: inherit; line-height: 1.7;
}
.form-textarea:focus { border-color: var(--primary); }
.form-file {
    font-size: 14px; color: var(--text-sub);
    padding: 8px 0;
}
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.btn-primary {
    padding: 10px 24px; background: var(--primary); color: white;
    border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: opacity .15s; text-decoration: none;
    display: inline-flex; align-items: center; line-height: 1;
}
.btn-primary:hover { opacity: .87; }
.btn-secondary {
    padding: 10px 24px; background: var(--bg); color: var(--text-sub);
    border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .15s; text-decoration: none;
    display: inline-flex; align-items: center; line-height: 1;
}
.btn-secondary:hover { border-color: var(--text-sub); color: var(--text); }

/* ── 푸터 ─────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border); background: var(--surface);
    padding: 20px 0;
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 16px;
}
.footer-logo { font-size: 16px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.footer-copy { font-size: 13px; color: var(--text-sub); }

/* ── Detail Page ──────────────────────────────────── */
.back-btn {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: var(--text-sub);
    padding: 7px 16px; border-radius: 18px; background: var(--bg);
    border: 1px solid var(--border); transition: all .18s;
}
.back-btn:hover { color: var(--text); border-color: #aaa; }

.detail-container { max-width: var(--max-w); margin: 0 auto; padding: 28px 24px 60px; }
.detail-hero { position: relative; height: clamp(220px, 32vw, 420px); overflow: hidden; border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }
.detail-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-overlay { position: absolute; bottom: 20px; left: 24px; display: flex; gap: 8px; align-items: center; }
.detail-cat { background: rgba(0,0,0,.6); color: white; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 10px; }

.detail-content { display: grid; grid-template-columns: 1fr 440px; gap: 40px; }
.detail-brand { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.detail-name { font-size: 28px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.detail-description { font-size: 15px; line-height: 1.85; color: var(--text-sub); margin-bottom: 32px; }

.detail-info-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.info-item { display: flex; align-items: flex-start; gap: 12px; }
.info-icon { font-size: 18px; flex-shrink: 0; }
.info-label { font-size: 11px; color: var(--text-sub); font-weight: 600; margin-bottom: 2px; }
.info-value { font-size: 14px; font-weight: 500; }
.info-link { font-size: 14px; color: var(--primary); text-decoration: underline; word-break: break-all; }


.detail-map-wrap { display: flex; flex-direction: column; gap: 12px; }
.detail-map-title { font-size: 17px; font-weight: 700; }
#detail-map { height: 300px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.detail-address-text { font-size: 12px; color: var(--text-sub); }

/* 상태 배지 (공통) */
.card-status {
    font-size: 11px; font-weight: 700; padding: 3px 9px;
    border-radius: 10px; flex-shrink: 0;
}
.card-status.ongoing  { background: #DCFCE7; color: #16A34A; }
.card-status.upcoming { background: #FEF3C7; color: #D97706; }


/* ── 스토어 카드 ──────────────────────────────────── */
.store-card {
    display: flex; flex-direction: column;
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: box-shadow .2s, transform .2s;
    color: inherit;
}
.store-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-image {
    position: relative; overflow: hidden; background: var(--bg);
}
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.card-category {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,.6); color: white;
    font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 10px;
    display: inline-block; max-width: calc(100% - 90px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-image .card-status {
    position: absolute; top: 10px; right: 10px;
}

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }

.card-brand { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.card-name  { font-size: 15px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }

.card-address,
.card-dates {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--text-sub); margin-top: 2px;
}
.card-address svg,
.card-dates svg { flex-shrink: 0; }

/* ── Detail main ─────────────────────────────────── */
.detail-main { min-width: 0; }

/* ── Detail 후기 섹션 ────────────────────────────── */
.detail-reviews {
    margin-top: 52px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}
.detail-reviews-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.detail-reviews-title-wrap { display: flex; align-items: center; gap: 10px; }
.detail-reviews-title { font-size: 20px; font-weight: 800; }
.detail-reviews-count {
    font-size: 13px; font-weight: 700; color: var(--primary);
    background: var(--primary-light); border-radius: 20px; padding: 2px 10px;
}
.detail-reviews-write-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 600; color: var(--primary);
    padding: 7px 14px; border: 1.5px solid var(--primary);
    border-radius: 20px; transition: all .15s;
}
.detail-reviews-write-link:hover { background: var(--primary); color: white; }

/* 카드 그리드 */
.detail-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.detail-review-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s, transform .18s, border-color .18s;
    min-height: 140px;
}
.detail-review-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: #d0d0d8;
}
.detail-review-card-img {
    width: 100%; height: 160px;
    object-fit: cover; display: block; flex-shrink: 0;
}
.detail-review-card-content {
    display: flex; flex-direction: column; justify-content: space-between;
    flex: 1; padding: 20px;
}
.detail-review-card-top { flex: 1; margin-bottom: 14px; }
.detail-review-quote {
    display: block; font-size: 32px; line-height: 1;
    color: var(--primary); opacity: .25; font-family: Georgia, serif;
    margin-bottom: 6px;
}
.detail-review-card-title {
    font-size: 14px; font-weight: 700; color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.detail-review-card-body {
    font-size: 13px; line-height: 1.65; color: var(--text-sub);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.detail-review-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--border);
}
.detail-review-author { font-size: 12px; font-weight: 600; color: var(--text); }
.detail-review-date { font-size: 11px; color: var(--text-sub); }

.detail-reviews-bottom { margin-top: 20px; text-align: center; }
.detail-reviews-more {
    display: inline-block;
    font-size: 13px; font-weight: 600; color: var(--primary);
    padding: 8px 20px; border: 1px solid var(--primary);
    border-radius: 20px; transition: all .15s;
}
.detail-reviews-more:hover { background: var(--primary); color: white; }

/* 후기 없음 */
.detail-reviews-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 56px 24px;
    background: var(--bg); border-radius: var(--radius);
    border: 1.5px dashed var(--border);
    text-align: center;
}
.detail-reviews-empty-icon { font-size: 36px; }
.detail-reviews-empty-title { font-size: 15px; font-weight: 700; color: var(--text); }
.detail-reviews-empty-sub { font-size: 13px; color: var(--text-sub); margin-bottom: 4px; }
.detail-reviews-write-btn { font-size: 14px; padding: 10px 28px; margin-top: 4px; }



/* ── Stores 목록 페이지 ───────────────────────────── */
.stores-container {
    width: 100%; max-width: var(--max-w); margin: 0 auto;
    padding: 32px 24px 64px;
}

.stores-page-header {
    margin-bottom: 24px;
}
.stores-page-title { display: flex; align-items: baseline; gap: 12px; }
.stores-title { font-size: 26px; font-weight: 800; }
.stores-count { font-size: 16px; color: var(--text-sub); font-weight: 400; }
.stores-subtitle { font-size: 14px; color: var(--text-sub); margin-top: 6px; }

/* 카테고리 탭 */
.stores-cats {
    display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
    margin-bottom: 16px;
}
.stores-cats::-webkit-scrollbar { display: none; }
.stores-cat-tab {
    padding: 8px 20px; border-radius: 22px; flex-shrink: 0;
    font-size: 14px; font-weight: 700; color: var(--text-sub);
    border: 1.5px solid var(--border); background: var(--surface);
    transition: all .18s; min-width: 82px; text-align: center;
}
.stores-cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.stores-cat-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* 지역 칩 + 툴바 */
.stores-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.stores-regions { display: flex; gap: 6px; flex-wrap: wrap; }
.region-chip {
    padding: 5px 14px; border-radius: 14px; font-size: 13px; font-weight: 500;
    color: var(--text-sub); border: 1px solid var(--border); background: var(--surface);
    transition: all .15s; min-width: 52px; text-align: center;
}
.region-chip:hover { border-color: var(--primary); color: var(--primary); }
.region-chip.active { background: var(--text); border-color: var(--text); color: white; font-weight: 600; }

/* 카드 그리드 */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stores-grid .card-image { aspect-ratio: 3/2; }

/* 빈 상태 */
.stores-empty {
    text-align: center; padding: 80px 24px;
}
.stores-empty-icon { font-size: 48px; margin-bottom: 16px; }
.stores-empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.stores-empty-desc { font-size: 14px; color: var(--text-sub); }

/* ── Responsive ───────────────────────────────────── */
/* PC:      1024px 이상 (기본값)                        */
/* Tablet:  768px ~ 1023px                             */
/* Mobile:  767px 이하                                  */

@media (max-width: 1023px) {
    .nav-dropdown { display: block; }
    .nav-cat-item, .nav-news-item { display: none; }
    .page-main { padding: 0 40px 60px; }
    .news-page { padding: 40px 32px 80px; }
    .mid-inner { grid-template-columns: repeat(2, 1fr); }
    .bottom-inner { grid-template-columns: repeat(2, 1fr); }
    .detail-content { grid-template-columns: 1fr; }
    .detail-reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .stores-grid { grid-template-columns: repeat(2, 1fr); }
    .stores-container { padding: 32px 40px 64px; }
    .news-tab { padding: 9px 18px; text-align: center; }
    /* 작성 폼 — 태블릿 */
    .news-write-page { padding: 36px 24px 64px; }
    .news-write-inner { padding: 40px 44px; }
}

@media (max-width: 767px) {
    .mid-inner { grid-template-columns: 1fr; }
    .page-main { padding: 0 18px 40px; }
    .header-inner { padding: 0 18px; }
    .banner-name { font-size: 18px; }
    .banner-overlay { padding: 20px 20px; }
    .recommend-grid { grid-template-columns: 1fr; }
    .search-cat-select { display: none; }
    .search-divider { display: none; }
    .bm-list { grid-template-columns: 1fr; }
    .mid-filter { flex-wrap: wrap; gap: 8px; }
    .mid-filter-right { width: 100%; justify-content: flex-end; }
    .news-detail-inner { padding: 28px 20px; }
    .bottom-inner { grid-template-columns: 1fr; }
    .stores-container { padding: 20px 18px 48px; }
    .stores-grid { grid-template-columns: 1fr; }
    .detail-reviews-grid { grid-template-columns: 1fr; }
    /* 소식 페이지 */
    .news-page { padding: 20px 20px 48px; }
    .news-tabs { overflow-x: auto; scrollbar-width: none; }
    .news-tabs::-webkit-scrollbar { display: none; }
    .board-table thead th:nth-child(1),
    .board-table thead th:nth-child(5),
    .board-num,
    .board-views { display: none; }
    .board-table th, .board-row td { padding: 11px 10px; }
    /* 작성 폼 — 모바일 */
    .news-write-page { padding: 0 0 40px; }
    .news-write-inner { border-radius: 0; border-left: none; border-right: none; padding: 20px 14px 28px; box-shadow: none; }
    .news-write-title { font-size: 18px; margin-bottom: 20px; }
    .form-textarea { min-height: 220px; }
    .form-actions { gap: 8px; }
    .form-actions .btn-primary,
    .form-actions .btn-secondary { flex: 1; justify-content: center; }
}

/* ── 마이페이지 ──────────────────────────────────────── */
.mp-wrap { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; flex: 1; }
.mp-inner { display: flex; flex-direction: column; gap: 24px; }

/* 프로필 카드 */
.mp-profile-card {
    display: flex; align-items: center; gap: 20px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 28px;
    box-shadow: var(--shadow-sm); flex-wrap: wrap;
}
.mp-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: white;
    font-size: 24px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mp-user-info { flex: 1; min-width: 0; }
.mp-username { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.mp-stats { display: flex; align-items: center; gap: 0; }
.mp-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 16px; }
.mp-stat:first-child { padding-left: 0; }
.mp-stat-val { font-size: 18px; font-weight: 800; color: var(--primary); }
.mp-stat-lbl { font-size: 11px; color: var(--text-sub); white-space: nowrap; }
.mp-stat-sep { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.mp-stat-link { cursor: pointer; border-radius: 8px; padding: 6px 16px; transition: background .15s; }
.mp-stat-link:first-child { padding-left: 6px; }
.mp-stat-link:hover { background: var(--primary-light); }
.mp-stat-link:hover .mp-stat-val { color: var(--primary); }

/* 탭 */
.mp-tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 6px;
    box-shadow: var(--shadow-sm);
}
.mp-tab {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 9px 10px; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: var(--text-sub);
    background: none; border: none; cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.mp-tab svg { flex-shrink: 0; }
.mp-tab:hover { background: var(--bg); color: var(--text); }
.mp-tab.active { background: var(--primary); color: white; }

/* 패널 공통 */
.mp-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm); min-height: 200px;
}

/* 빈 상태 */
.mp-empty {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 60px 0; color: var(--text-sub); font-size: 14px;
}
.mp-empty-btn {
    padding: 9px 22px; border-radius: 20px;
    background: var(--primary); color: white;
    font-size: 13px; font-weight: 600;
    text-decoration: none; transition: opacity .15s;
}
.mp-empty-btn:hover { opacity: .85; }

/* 북마크 그리드 */
/* 북마크 리스트 */
.mp-bm-list { display: flex; flex-direction: column; }
.mp-bm-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.mp-bm-row:last-child { border-bottom: none; }
.mp-bm-thumb {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: 8px; flex-shrink: 0; background: var(--bg);
}
.mp-bm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mp-bm-badge {
    display: inline-block; padding: 2px 7px; border-radius: 6px;
    font-size: 11px; font-weight: 700; align-self: flex-start;
}
.badge-ongoing  { background: #DCFCE7; color: #16A34A; }
.badge-upcoming { background: #FEF3C7; color: #D97706; }
.badge-ended    { background: #F3F4F6; color: #9CA3AF; }
.mp-bm-name {
    font-size: 14px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-bm-meta { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
.mp-bm-dot  { color: var(--border); }
.mp-bm-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.mp-bm-btn {
    padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
    cursor: pointer; border: none; text-align: center; text-decoration: none;
    white-space: nowrap; transition: opacity .15s;
}
.mp-bm-btn:hover { opacity: .8; }
.mp-bm-view { background: var(--primary); color: #fff; }
.mp-bm-del  { background: #F3F4F6; color: #6B7280; }

/* 디데이 그리드 */
/* 디데이 리스트 */
.mp-dday-list { display: flex; flex-direction: column; }
.mp-dday-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: inherit; transition: background .12s;
}
.mp-dday-row:last-child { border-bottom: none; }
.mp-dday-row:hover { background: var(--bg); border-radius: 8px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.mp-dday-row.dday-ended { opacity: .55; }
.mp-dday-thumb {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: 8px; flex-shrink: 0; background: var(--bg);
}
.mp-dday-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mp-dday-badge {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 800; flex-shrink: 0; white-space: nowrap;
}
.dday-b-urgent   { background: #FEE2E2; color: #DC2626; }
.dday-b-soon     { background: #FEF3C7; color: #D97706; }
.dday-b-ok       { background: #DCFCE7; color: #16A34A; }
.dday-b-upcoming { background: #EDE9FE; color: #7C3AED; }
.dday-b-ended    { background: #F3F4F6; color: #9CA3AF; }
.mp-dday-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-dday-meta { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
.mp-dday-dot  { color: var(--border); }
.mp-dday-arrow { color: var(--text-sub); flex-shrink: 0; }

/* 북마크 지도 (고정 섹션) */
.mp-map-section { margin-bottom: 20px; background: #fff; border-radius: var(--radius-sm); border: 1px solid #F2F2F7; overflow: hidden; }
.mp-map-section-hd { display: flex; align-items: center; gap: 6px; padding: 14px 18px; font-size: 14px; font-weight: 700; color: #1A1A1A; border-bottom: 1px solid #F2F2F7; }
.mp-map-empty { padding: 32px 0; }
.mp-map { width: 100%; height: 420px; overflow: hidden; }

/* 방문 현황 */
.mp-status-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mp-status-col { display: flex; flex-direction: column; gap: 12px; }
.mp-status-col-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px;
}
.planned-hd   { background: #EDE9FE; color: #7C3AED; }
.completed-hd { background: #DCFCE7; color: #16A34A; }
.mp-status-cnt { font-size: 12px; font-weight: 600; opacity: .8; }
.mp-status-list { display: flex; flex-direction: column; gap: 10px; }
.mp-status-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); transition: box-shadow .15s;
}
.mp-status-item:hover { box-shadow: var(--shadow-sm); }
.mp-status-item.completed { opacity: .75; }
.mp-status-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.mp-status-info { flex: 1; min-width: 0; }
.mp-status-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-status-meta { display: flex; gap: 8px; font-size: 11px; color: var(--text-sub); margin-top: 3px; }
.mp-status-dday { font-weight: 600; color: var(--primary); }
.mp-status-toggle {
    padding: 6px 12px; border-radius: 14px; font-size: 12px; font-weight: 700;
    border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: opacity .15s;
}
.planned-toggle   { background: #EDE9FE; color: #7C3AED; }
.planned-toggle:hover { opacity: .8; }
.completed-toggle { background: var(--bg); color: var(--text-sub); border: 1px solid var(--border); }
.completed-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.mp-status-empty { font-size: 13px; color: var(--text-sub); padding: 20px 0; text-align: center; }

@media (max-width: 640px) {
    .mp-profile-card { padding: 18px; gap: 14px; }
    .mp-tab { font-size: 11px; padding: 8px 6px; gap: 3px; }
    .mp-tab svg { display: none; }
    .mp-stat { padding: 0 10px; }
    .mp-stat-val { font-size: 16px; }
    .mp-status-cols { grid-template-columns: 1fr; }
    .mp-map { height: 320px; }
    .mp-stat-link { padding: 6px 10px; }
}

/* 게시물 목록 (작성리뷰 / 도움목록) */
.mp-post-list { display: flex; flex-direction: column; }
.mp-post-row {
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border);
}
.mp-post-row:last-child { border-bottom: none; }
.mp-post-item {
    flex: 1; border-bottom: none !important;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 10px; border-radius: var(--radius-sm);
    text-decoration: none; color: inherit; transition: background .13s;
}
.mp-post-item:hover { background: var(--bg); }
.mp-post-thumb-wrap {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 8px; overflow: hidden; background: var(--bg);
}
.mp-post-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-post-thumb-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; background: var(--border);
}
.mp-post-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mp-post-tag {
    display: inline-block; padding: 1px 8px; border-radius: 8px;
    font-size: 11px; font-weight: 700;
    background: var(--primary-light); color: var(--primary); align-self: flex-start;
}
.mp-post-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-post-meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-sub); }
.mp-post-arrow { flex-shrink: 0; color: var(--border); }
.mp-post-item:hover .mp-post-arrow { color: var(--text-sub); }
.mp-review-del {
    flex-shrink: 0; padding: 5px 12px; border-radius: 6px;
    border: 1px solid #FCA5A5; background: #FEF2F2;
    color: #DC2626; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all .15s; white-space: nowrap;
}
.mp-review-del:hover { background: #DC2626; color: white; border-color: #DC2626; }
