:root {
    --primary: #1E4A84; /* Deep trustworthy blue (classic community color) */
    --primary-hover: #153561;
    --accent: #E53935; /* Red for notifications/hot items */
    --text-main: #222222;
    --text-muted: #777777;
    --border-color: #E2E8F0;
    --bg-main: #F4F6F9;
    --bg-white: #FFFFFF;
    --link-hover: #1E4A84;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    overflow-x: hidden;
    max-width: 100%;
}

/* ============================================================
   표준 커뮤니티 레이아웃 및 사이드바 규격 통일
   ============================================================ */
.board-layout {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem 1rem;
    align-items: start;
    box-sizing: border-box;
}

.board-sidebar {
    width: 100%;
    min-width: 240px;
    max-width: 240px;
    box-sizing: border-box;
}

.board-content,
.view-content,
.write-content,
.partner-content,
.gallery-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .board-layout {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem;
        gap: 1.25rem;
    }
    .board-sidebar {
        display: none;
        max-width: 100%;
        min-width: 0;
    }
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    font-size: 14px; /* Smaller base font for higher information density */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

ul {
    list-style: none;
}

.text-primary { color: var(--primary); }

/* Buttons */
.btn-primary-sm {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.btn-primary-sm:hover { background: var(--primary-hover); text-decoration: none;}

.btn-primary-full {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 0.6rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
.btn-primary-full:hover { background: var(--primary-hover); text-decoration: none;}

.btn-text {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}
.btn-text:hover { color: var(--primary); text-decoration: underline;}

/* Header (Sticky Glassmorphism) */
.community-header {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: background 0.3s, box-shadow 0.3s;
}


.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #111;
    display: flex;
    align-items: center;
}
.logo:hover { text-decoration: none; }
.logo i { margin-right: 0.2rem; }
.logo-img { height: 42px; width: auto; }

.gnb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gnb-item {
    position: relative;
}

.gnb-link {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    padding: 18px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.gnb-link i.dropdown-icon {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.gnb-item:hover .gnb-link i.dropdown-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.gnb-link:hover, .gnb-item:hover .gnb-link {
    color: var(--primary);
    text-decoration: none;
}

.gnb-link.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    margin-bottom: -3px;
}

/* Dropdown Menu Box */
.gnb-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 175px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9100;
}

.gnb-item:hover .gnb-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gnb-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    border-radius: 8px;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.gnb-dropdown a i {
    font-size: 13px;
    color: #64748b;
    width: 16px;
    text-align: center;
    transition: color 0.15s ease;
}

.gnb-dropdown a:hover {
    background: #eff6ff;
    color: var(--primary);
}

.gnb-dropdown a:hover i {
    color: var(--primary);
}

.gnb-dropdown a.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-user-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-user-btn {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-user-btn.btn-mypage {
    color: #334155;
    background: #f1f5f9;
    padding: 6px 10px;
}
.header-user-btn.btn-mypage i {
    color: var(--primary);
}

.header-user-btn.btn-logout {
    color: #64748b;
    font-weight: 600;
    padding: 6px 8px;
}
.header-user-btn.btn-logout:hover {
    color: #0f172a;
}

.header-user-btn.btn-login {
    color: var(--primary);
    padding: 6px 10px;
}
.header-user-btn.btn-login:hover {
    background: #eff6ff;
}

.header-user-btn.btn-register {
    color: #ffffff;
    background: var(--primary);
    padding: 6px 12px;
}
.header-user-btn.btn-register:hover {
    background: #1d4ed8;
}

.search-box {
    display: flex;
    border: 1px solid var(--primary);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 0.4rem 0.6rem;
    width: 160px;
    font-size: 13px;
    outline: none;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 0.8rem;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Main Layout */
.main-wrapper {
    max-width: 1200px;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
}

/* Hero Slider (Compact & Modern) */
.hero-slider-section {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}


.swiper {
    width: 100%;
    height: 250px; /* 메인 컬럼 너비에 맞춰 높이를 소폭 줄임 */
}

.mt-2 {
    margin-top: 0.5rem;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
    position: relative;
    z-index: 1;
    padding: 3.5rem 4rem;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-content .badge {
    align-self: flex-start;
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge-hot { background: var(--accent); }
.badge-notice { background: var(--primary); }
.badge-event { background: #00897B; }

.slide-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.slide-content p {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
}

.swiper-button-next, .swiper-button-prev { color: white; transform: scale(0.5); }
.swiper-pagination-bullet { background: white; opacity: 0.5; }
.swiper-pagination-bullet-active { opacity: 1; }

/* 2 Column Layout */
.content-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.main-column {
    flex: 1;
    min-width: 0; /* prevents flex blowout */
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Notice Bar */
.notice-bar {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.notice-bar .label {
    background: var(--accent);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    font-size: 11px;
}

.notice-bar a {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    min-width: 0;
}

.notice-bar .date {
    color: var(--text-muted);
    font-size: 12px;
}

/* Board Grid (Dense Lists) */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
}

.board-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
    min-width: 0;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box !important;
}

.board-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more-link {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin-left: 0.5rem;
}
.more-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.dense-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
}

.dense-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #EAEAEA;
    font-size: 13px;
    min-width: 0;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.dense-list li:last-child { border-bottom: none; padding-bottom: 0;}

.dense-list a {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #444;
    min-width: 0;
}

.dense-list .category { color: var(--primary); font-weight: 600; margin-right: 0.4rem; flex-shrink: 0 !important; white-space: nowrap !important; }
.dense-list .q-icon { 
    display:inline-block; width: 16px; height: 16px; 
    background: #F57C00; color: white; text-align: center; 
    border-radius: 2px; font-size: 10px; line-height: 16px; 
    margin-right: 5px; font-weight: bold;
    flex-shrink: 0 !important;
}
.dense-list .q-icon.answered { background: #388E3C; }

.comment-count { color: var(--accent); font-size: 11px; margin-left: 0.4rem; font-weight: 700; flex-shrink: 0 !important; white-space: nowrap !important; }
.new-icon { color: var(--accent); font-size: 10px; font-weight: 900; margin-left: 0.3rem; flex-shrink: 0 !important; white-space: nowrap !important; }

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.toast-notification.toast-show {
    transform: translateX(0);
}
.toast-notification.toast-success { background: #10B981; }
.toast-notification.toast-error { background: #EF4444; }
.toast-notification.toast-warning { background: #F59E0B; }
.toast-notification.toast-info { background: #3B82F6; }
.toast-notification i { font-size: 18px; flex-shrink: 0; }



/* Integrated Board (Modern Feed List) */
.integrated-board {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.board-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #EBF0F7;
}

.board-header-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.board-header-title h2 {
    font-size: 18px;
    font-weight: 800;
    color: #1A202C;
    display: flex;
    align-items: center;
    margin: 0;
}

.board-header-sub {
    font-size: 12px;
    color: #A0AEC0;
    font-weight: 500;
}

.modern-feed-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 0.6rem;
    border-bottom: 1px solid #F1F5F9;
    gap: 1rem;
    transition: background 0.2s, transform 0.15s;
    border-radius: 8px;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-item:hover {
    background: #F8FAFC;
    transform: translateX(4px);
}

.feed-badge-col {
    flex-shrink: 0;
    width: 84px;
}

.feed-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: #EDF2F7;
    color: #4A5568;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-badge-notice { background: #FEE2E2; color: #DC2626; }
.feed-badge-tip { background: #FEF3C7; color: #D97706; }
.feed-badge-review { background: #D1FAE5; color: #059669; }
.feed-badge-qna { background: #E0E7FF; color: #4F46E5; }
.feed-badge-market { background: #F3E8FF; color: #7C3AED; }
.feed-badge-food { background: #FFEDD5; color: #EA580C; }
.feed-badge-info { background: #CFFAFE; color: #0891B2; }

.feed-content-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-title {
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-item:hover .feed-title {
    color: var(--primary);
}

.feed-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 900;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.feed-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #A0AEC0;
}

.feed-author, .feed-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.feed-stats-col {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.feed-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #A0AEC0;
    font-weight: 500;
}

.feed-stat-item.stat-highlight {
    color: var(--accent);
    font-weight: 700;
}

.feed-stat-item.comment-badge {
    background: #EBF8FF;
    color: #3182CE;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.board-tabs button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    font-size: 12px;
    cursor: pointer;
    background: #FAFAFA;
    font-weight: 500;
}
.board-tabs button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: bold;
}


/* Responsive Table & Container Rules */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.board-layout > *,
.board-content,
.view-container {
    min-width: 0;
    max-width: 100%;
}

.classic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
    min-width: 600px;
}

@media (max-width: 768px) {
    .classic-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed !important;
    }
}

.classic-table th {
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid #CCC;
    padding: 0.8rem 0;
    background: #F8F9FA;
    font-weight: 600;
    color: #333;
}

.classic-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #EAEAEA;
    color: #666;
}

.classic-table td.title-cell {
    text-align: left;
    color: var(--text-main);
}

.classic-table tr:hover td {
    background: #F8F9FA;
}

.notice-row td {
    background: #FDFDFD;
}

.badge-sm {
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    font-size: 11px;
    font-weight: bold;
}
.badge-sm.notice { background: #EEEEEE; color: #555; border: 1px solid #DDD;}

.highlight-num { color: var(--accent); font-weight: bold; }

/* News Ticker Bar */
.news-ticker-bar {
    background: #EEF2FF;
    border: 1px solid #D6DEF0;
    border-radius: 12px;
    padding: 0 1.2rem;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}
.news-ticker-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.news-ticker-icon i {
    color: #0D47A1;
    font-size: 13px;
}
.news-ticker-icon span {
    background: #0D47A1;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.news-ticker-wrap {
    flex: 1;
    height: 40px;
    overflow: hidden;
    position: relative;
}
.news-ticker-wrap ul {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.5s ease;
}
.news-ticker-wrap li {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.6rem;

}
.news-ticker-wrap li a {
    flex: 1;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.news-ticker-wrap li a:hover {
    color: #0D47A1;
    text-decoration: underline;
}
.news-ticker-source {
    display: inline-flex;
    align-items: center;
    background: #D6DEF0;
    color: #3B5998;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.news-ticker-time {
    font-size: 11px;
    color: #8899AA;
    white-space: nowrap;
    flex-shrink: 0;
}
.news-ticker-controls {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;

}
.news-ticker-controls i {
    font-size: 10px;
    color: #9AB;
    cursor: pointer;
    transition: color 0.2s;
}
.news-ticker-controls i:hover {
    color: #0D47A1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: bold;
}
.pagination a:hover {
    text-decoration: none;
    background: #F0F0F0;
}
.pagination a.active:hover { background: var(--primary); }

/* Sidebar Widgets */
.widget {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.widget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}
.widget-head.border-bottom {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}
.widget-head h3 {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

/* Weather Widget */
.weather-widget .city { font-size: 12px; color: var(--text-muted); font-weight: 500;}
.weather-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
}
.weather-icon { font-size: 36px; color: #FFA000; }
.weather-body .temp { font-size: 26px; font-weight: 800; line-height: 1; color: #111;}
.weather-body .temp .unit { font-size: 14px; font-weight: normal; }
.weather-body .details { display: flex; flex-direction: column; font-size: 11px; color: var(--text-muted); gap: 0.2rem;}

/* Login Widget */
.login-widget { background: #F8F9FA; border-top: 3px solid var(--primary); }
.login-widget p { font-size: 12px; color: #555; text-align: center; margin-bottom: 0.8rem; font-weight: 500;}
.login-links { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1rem; font-size: 12px; color: #888; }
.login-links a { color: #666; }

/* Ranking Widget */
.rank-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    font-size: 13px;
}
.rank-num {
    width: 18px;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    color: #999;
}
.rank-num.top { color: var(--accent); }
.rank-list a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #444;
    min-width: 0;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tag-cloud a {
    border: 1px solid #EAEAEA;
    padding: 0.35rem 0.75rem;
    font-size: 12px;
    border-radius: 20px;
    background: #F9F9F9;
    color: #555;
    transition: all 0.2s;
}
.tag-cloud a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; background: white;}

/* Banner */
.banner-widget {
    background: var(--primary);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(30, 74, 132, 0.2);
}
.banner-widget i { font-size: 28px; }
.banner-widget:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* News Widget */
.news-widget {
    border-top: 3px solid #0D47A1;
}
.news-widget .widget-head h3 i {
    color: #0D47A1;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.news-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item:hover {
    background: #F8FAFF;
    text-decoration: none !important;
    color: inherit;
}
.news-item:hover .news-title {
    color: var(--primary);
}
.news-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
    word-break: keep-all;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}
.news-source {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #EEF2FF;
    color: #3B5998;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-time {
    font-size: 10px;
    color: #aaa;
    white-space: nowrap;
}
.news-time i {
    margin-right: 2px;
    font-size: 9px;
}

/* News loading skeleton */
.news-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.4rem 0;
}
.news-skeleton-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem 0;
}
.news-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: newsShimmer 1.5s infinite;
    border-radius: 3px;
}
.news-skeleton-line.long { width: 100%; }
.news-skeleton-line.short { width: 60%; height: 10px; }
@keyframes newsShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* News error/empty state */
.news-empty {
    text-align: center;
    padding: 1.5rem 0;
    color: #aaa;
    font-size: 12px;
}
.news-empty i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    color: #ddd;
}

/* Quick Links (Main Page) */
.main-quick-links {
    display: flex;
    justify-content: space-between;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    transition: transform 0.15s;
}
.quick-item:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    background: #EBF0F7;
    transition: background 0.2s, color 0.2s;
}
.quick-item:hover .quick-icon {
    background: var(--primary);
    color: white;
}

.quick-item span {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

/* Footer */
.community-footer {
    background: #1B1F23;
    color: #BCC3CC;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #2D3239;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    font-size: 13px;
    color: #8B949E;
    transition: color 0.2s;
}
.footer-col a:hover { color: #FFFFFF; text-decoration: none; }

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-logo {
    font-size: 18px;
    font-weight: 900;
    color: #FFFFFF !important;
}
.footer-logo:hover { text-decoration: none !important; }

.footer-about p {
    font-size: 12px;
    line-height: 1.6;
    color: #8B949E;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.3rem;
}
.footer-social a {
    font-size: 20px;
    color: #8B949E;
}
.footer-social a:hover { color: #FFFFFF; text-decoration: none; }

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: #586069;
}

/* Responsive */
@media (max-width: 768px) {
    .content-layout { flex-direction: column; align-items: stretch; }
    .main-column { width: 100%; }
    .sidebar { width: 100%; }
    .board-grid { grid-template-columns: 1fr; }

    .search-box { display: none; }
    .header-left { gap: 1rem; }
    .gnb { display: none; }
    .main-quick-links { flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
    .quick-item { flex: 0 0 auto; min-width: 60px; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

/* User Info Widget */
.user-info {
    text-align: left;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.profile-img {
    width: 50px;
    height: 50px;
    background: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #bcc0c4;
}
.user-meta {
    display: flex;
    flex-direction: column;
}
.user-meta .nickname {
    font-weight: 800;
    font-size: 16px;
    color: #111;
}
.user-meta .role {
    font-size: 12px;
    color: #888;
}
.user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.user-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}
.user-actions a:hover {
    background: #eee;
}
.user-actions .logout-btn:hover {
    color: #c62828;
    border-color: #ffcdd2;
}

/* Notice Bar Ticker Styles */
.notice-bar {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    border-radius: 8px;
    padding: 0 1.2rem;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}
.notice-bar .label {
    background: #6B7280;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    min-width: 38px;
    text-align: center;
}
.notice-bar .label.label-important { background: #EF4444; }
.notice-bar .label.label-info { background: #3B82F6; }
.notice-bar .label.label-event { background: #10B981; }
.notice-ticker {
    flex: 1;
    height: 40px;
    overflow: hidden;
    position: relative;
}
.notice-ticker ul {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.5s ease;
}
.notice-ticker li {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.notice-ticker a {
    color: #444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-ticker .date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}
.notice-controls {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}
.notice-controls i {
    font-size: 10px;
    color: #D1D5DB;
    cursor: pointer;
    transition: color 0.2s;
}
.notice-controls i:hover {
    color: #F59E0B;
}

/* ===================== */
/* Travel Review Showcase */
/* ===================== */
.review-showcase {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.review-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.6rem;
    margin-bottom: 1.2rem;
}

.review-showcase-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.review-showcase-title i {
    font-size: 18px;
    color: #e74c3c;
}

.review-showcase-title h2 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.review-subtitle {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-left: 0.3rem;
}

.review-more-link {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.review-more-link:hover {
    color: #e74c3c;
    text-decoration: none;
}
.review-more-link i {
    font-size: 11px;
    transition: transform 0.2s;
}
.review-more-link:hover i {
    transform: translateX(3px);
}

/* Card Grid */
.review-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Individual Card */
.review-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.review-card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.review-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.review-card:hover .review-card-image img {
    transform: scale(1.08);
}

.review-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
    color: #bbb;
    font-size: 32px;
}

/* Image Overlay Gradient */
.review-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
    pointer-events: none;
}

/* Tag Badge */
.review-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.review-card-badge span {
    background: rgba(231, 76, 60, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: -0.3px;
}

/* Card Body */
.review-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.review-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}
.review-card:hover .review-card-title {
    color: #e74c3c;
}

.review-card-preview {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin: 0 0 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Card Footer */
.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
    border-top: 1px solid #f2f2f5;
}

.review-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-card-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-card-avatar i {
    font-size: 10px;
    color: #ccc;
}

.review-card-author span {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.review-card-stats {
    display: flex;
    gap: 8px;
}
.review-card-stats span {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 3px;
}
.review-card-stats i {
    font-size: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .review-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .review-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .review-card-image {
        height: 120px;
    }
    .review-card-body {
        padding: 0.7rem 0.8rem 0.8rem;
    }
    .review-card-title {
        font-size: 13px;
    }
    .review-card-preview {
        display: none;
    }
    .review-showcase-title h2 {
        font-size: 16px;
    }
    .review-subtitle {
        display: none;
    }
}

@media (max-width: 480px) {
    .review-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .review-card-image {
        height: 100px;
    }
    .review-card-body {
        padding: 0.5rem 0.6rem;
    }
    .review-card-title {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    .review-card-footer {
        padding-top: 0.4rem;
    }
    .review-card-stats {
        display: none;
    }
}

/* Comment Emoticon Bar & Picker Panel */
.comment-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    padding: 0 4px;
}
.quick-emojis {
    display: flex;
    gap: 8px;
}
.tool-btn {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s, transform 0.1s;
    line-height: 1;
}
.tool-btn:hover {
    background: #e9ecef;
    transform: scale(1.2);
}
.emoji-picker-toggle {
    border: 1px solid #dee2e6;
    background: white;
    font-size: 12px;
    color: #495057;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.emoji-picker-toggle:hover {
    background: #f8f9fa;
    border-color: var(--board-theme);
    color: var(--board-theme);
}
.emoji-picker-panel {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.picker-group h4 {
    font-size: 12px;
    margin: 0 0 8px 0;
    color: #868e96;
    font-weight: 800;
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 4px;
}
.picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.picker-grid span {
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background 0.1s, transform 0.1s;
    user-select: none;
    line-height: 1;
}
.picker-grid span:hover {
    background: #f1f3f5;
    transform: scale(1.25);
}
.picker-text-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.picker-text-list span {
    font-size: 12px;
    background: #f1f3f5;
    color: #495057;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
}
.picker-text-list span:hover {
    background: var(--board-theme);
    color: white;
    transform: translateY(-2px);
}

/* ============================================================ */
/* Mobile Hamburger Drawer (오프캔버스 사이드 메뉴) */
/* ============================================================ */
.mobile-drawer-toggle { display: none; }

.mobile-drawer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 99998; opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }

.mobile-side-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 310px; max-width: 86vw;
    background: #fff; z-index: 99999;
    box-shadow: 6px 0 30px rgba(0,0,0,.18);
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.16,1,.3,1);
    display: flex; flex-direction: column;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-side-drawer.open { transform: translateX(0); }

body.mobile-nav-locked { overflow: hidden !important; touch-action: none; }

.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem; border-bottom: 1px solid #f1f5f9;
    background: #fff; position: sticky; top: 0; z-index: 10;
}
.drawer-brand { display: flex; align-items: center; text-decoration: none; }
.drawer-logo-img { height: 30px; width: auto; }
.drawer-close-btn {
    width: 36px; height: 36px; border-radius: 8px; border: none;
    background: #f1f5f9; color: #64748b; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .15s;
}
.drawer-close-btn:active { background: #e2e8f0; color: #0f172a; }

.drawer-user-section {
    padding: 1.1rem 1.2rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}
.drawer-user-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.drawer-user-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: #e2e8f0; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; overflow: hidden; flex-shrink: 0;
    border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.drawer-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.drawer-user-info { display: flex; flex-direction: column; min-width: 0; }
.drawer-user-name { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.drawer-user-sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.drawer-user-actions { display: flex; gap: 8px; }
.drawer-user-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 7px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 600; text-decoration: none; transition: all .15s;
}
.drawer-user-btn.mypage { background: #2563eb; color: #fff; }
.drawer-user-btn.mypage:active { background: #1d4ed8; }
.drawer-user-btn.logout { background: #fff; color: #64748b; border: 1px solid #cbd5e1; }
.drawer-user-btn.logout:active { background: #f8fafc; }
.drawer-guest-box { text-align: center; }
.drawer-guest-text { font-size: 12px; color: #64748b; margin: 0 0 10px; line-height: 1.4; }
.drawer-guest-actions { display: flex; gap: 8px; }
.drawer-btn-login {
    flex: 1; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 700;
    text-align: center; text-decoration: none; background: #fff; color: #2563eb; border: 1px solid #bfdbfe;
}
.drawer-btn-register {
    flex: 1; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 700;
    text-align: center; text-decoration: none; background: #2563eb; color: #fff;
}
.drawer-search-wrap { padding: .8rem 1.2rem; background: #fff; border-bottom: 1px solid #f1f5f9; }
.drawer-search-form {
    display: flex; align-items: center; background: #f1f5f9;
    border-radius: 10px; padding: 0 10px; height: 38px;
}
.drawer-search-form .search-ico { color: #94a3b8; font-size: 13px; margin-right: 8px; }
.drawer-search-form input { flex: 1; border: none; background: transparent; font-size: 13px; outline: none; color: #1e293b; }
.drawer-search-form button { border: none; background: transparent; color: #2563eb; font-size: 13px; cursor: pointer; padding: 4px 6px; }

.drawer-nav-content { flex: 1; padding: .8rem 0; }
.drawer-section { padding: .6rem 1.2rem 1rem; border-bottom: 1px solid #f1f5f9; }
.drawer-section:last-child { border-bottom: none; }
.drawer-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 800; color: #1e293b; margin-bottom: .7rem;
}
.drawer-section-title .section-tag {
    width: 24px; height: 24px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.drawer-section-title .badge-hot-tag {
    margin-left: auto; font-size: 10px; font-weight: 700;
    color: #fff; background: #ef4444; padding: 1px 6px; border-radius: 99px;
}
.drawer-menu-list { display: flex; flex-direction: column; gap: 4px; }
.drawer-menu-item {
    display: flex; align-items: center; padding: 8px 10px; border-radius: 8px;
    text-decoration: none; color: #334155; font-size: 13px; font-weight: 600; transition: all .15s;
}
.drawer-menu-item:hover, .drawer-menu-item:active { background: #f8fafc; color: #2563eb; }
.drawer-menu-item.active { background: #eff6ff; color: #2563eb; font-weight: 700; }
.drawer-menu-icon {
    width: 28px; height: 28px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; margin-right: 10px; flex-shrink: 0;
}
.drawer-menu-text { flex: 1; }
.drawer-menu-item .arrow-icon { font-size: 11px; color: #cbd5e1; transition: transform .15s; }
.drawer-menu-item:hover .arrow-icon { transform: translateX(2px); color: #2563eb; }
.drawer-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-grid-item {
    display: flex; align-items: center; gap: 8px; padding: 9px 10px;
    border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0;
    text-decoration: none; color: #1e293b; transition: all .15s;
}
.drawer-grid-item:hover, .drawer-grid-item:active { background: #eff6ff; border-color: #bfdbfe; transform: translateY(-1px); }
.drawer-grid-item.active { background: #eff6ff; border-color: #3b82f6; }
.drawer-grid-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.drawer-grid-info { display: flex; flex-direction: column; min-width: 0; }
.drawer-grid-info strong { font-size: 12px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-grid-info span { font-size: 10px; color: #64748b; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-meta-section { padding-top: 1rem; padding-bottom: 2rem; }
.drawer-meta-links { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.drawer-meta-links a { font-size: 11px; color: #64748b; text-decoration: none; }
.drawer-meta-links .divider { font-size: 10px; color: #cbd5e1; }
.drawer-copyright { text-align: center; font-size: 10px; color: #94a3b8; margin: 0; }

/* ============================================================ */
/* Travel Tools Bottom Sheet Modal */
/* ============================================================ */
.tools-sheet-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 99998; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
}
.tools-sheet-overlay.active { opacity: 1; visibility: visible; }
.tools-bottom-sheet {
    position: fixed; bottom: 0; left: 0; right: 0; max-height: 85vh;
    background: #fff; border-radius: 22px 22px 0 0;
    z-index: 99999; box-shadow: 0 -10px 40px rgba(0,0,0,.2);
    transform: translateY(100%); transition: transform .32s cubic-bezier(.16,1,.3,1);
    display: flex; flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 18px); overflow: hidden;
}
.tools-bottom-sheet.open { transform: translateY(0); }
.sheet-drag-handle { width: 40px; height: 4px; background: #cbd5e1; border-radius: 99px; margin: 10px auto 4px; flex-shrink: 0; }
.tools-sheet-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .8rem 1.25rem .6rem; border-bottom: 1px solid #f1f5f9;
}
.tools-sheet-title-group h3 { font-size: 17px; font-weight: 800; color: #0f172a; margin: 0; display: flex; align-items: center; gap: 6px; }
.tools-sheet-title-group p { font-size: 12px; color: #64748b; margin: 2px 0 0; }
.sheet-close-btn {
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: #f1f5f9; color: #64748b; font-size: 15px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s;
}
.sheet-close-btn:active { background: #e2e8f0; color: #0f172a; }
.tools-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px 18px; }
.tools-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-card-item {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px;
    border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
    text-decoration: none; color: #0f172a; transition: all .18s;
}
.tool-card-item:hover, .tool-card-item:active { background: #eff6ff; border-color: #93c5fd; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,.08); }
.tool-card-item.active { background: #eff6ff; border-color: #3b82f6; }
.tool-card-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #fff; flex-shrink: 0; box-shadow: 0 3px 8px rgba(0,0,0,.12);
}
.icon-weather   { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.icon-exchange  { background: linear-gradient(135deg,#10b981,#059669); }
.icon-subway    { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.icon-flights   { background: linear-gradient(135deg,#6366f1,#4338ca); }
.icon-earthquake{ background: linear-gradient(135deg,#ef4444,#991b1b); }
.icon-itinerary { background: linear-gradient(135deg,#a855f7,#6366f1); }
.tool-card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tool-card-top { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.tool-card-name { font-size: 13px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-badge { font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 4px; flex-shrink: 0; }
.tool-badge-weather  { background: #fef3c7; color: #b45309; }
.tool-badge-exchange { background: #d1fae5; color: #047857; }
.tool-badge-subway   { background: #dbeafe; color: #1d4ed8; }
.tool-badge-flights  { background: #e0e7ff; color: #4338ca; }
.tool-badge-quake    { background: #fee2e2; color: #b91c1c; }
.tool-badge-plan     { background: #f3e8ff; color: #7e22ce; }
.tool-card-desc { font-size: 10px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.tool-arrow { font-size: 10px; color: #cbd5e1; flex-shrink: 0; }

/* ============================================================ */
/* Mobile Bottom Navigation Bar (5탭) */
/* ============================================================ */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    body {
        padding-bottom: 62px;
        width: 100%; max-width: 100%; overflow-x: hidden;
    }

    /* 모바일 햄버거 토글 버튼 표시 */
    .mobile-drawer-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 38px; height: 38px; background: transparent; border: none;
        color: #1e293b; font-size: 22px; cursor: pointer; border-radius: 8px;
        padding: 0; margin-right: 6px; flex-shrink: 0;
        transition: background-color .15s, color .15s;
    }
    .mobile-drawer-toggle:active { background: #f1f5f9; color: #2563eb; }

    .community-header { max-width: 100%; overflow: hidden; }
    .community-header .gnb { display: none !important; }
    .header-inner { padding: 0 0.85rem; max-width: 100%; box-sizing: border-box; overflow: hidden; height: 56px; }
    .header-left { gap: 0.5rem; min-width: 0; flex: 1 1 auto; display: flex; align-items: center; }
    .logo { display: flex; align-items: center; }
    .logo-img { height: 32px !important; max-width: 120px !important; width: auto; }
    .header-right { gap: 0.5rem !important; flex-shrink: 0; }
    /* 모바일: 드로어에 로그인/회원가입이 있으므로 헤더 우측 유저 메뉴 숨김 */
    .header-user-menu { display: none !important; }
    .search-box input { width: 110px; }
    .search-form input { width: 100%; min-width: 0; }

    .mobile-bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        height: 60px; background: rgba(255,255,255,.97);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0,0,0,.08); z-index: 99990;
        justify-content: space-around; align-items: center;
        box-shadow: 0 -4px 20px rgba(0,0,0,.06); padding: 0 4px;
    }
    .bottom-nav-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        flex: 1; color: #718096; font-size: 10.5px; font-weight: 600; gap: 2px;
        text-decoration: none !important; background: transparent; border: none;
        padding: 4px 0; cursor: pointer;
        transition: color .18s ease, transform .15s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav-item i { font-size: 19px; }
    .bottom-nav-item:active { transform: scale(.92); }
    .bottom-nav-item.active { color: var(--primary, #2563eb); font-weight: 700; }
    .nav-icon-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
    .nav-indicator-dot {
        position: absolute; top: -2px; right: -4px;
        width: 6px; height: 6px; border-radius: 50%;
        background: #ef4444; display: none;
    }
    .nav-btn-tools.active .nav-indicator-dot { display: block; }

    /* 바텀시트: 작은 화면 1열 */
    @media (max-width: 420px) {
        .tools-card-grid { grid-template-columns: 1fr; gap: 8px; }
    }

    /* Mobile feed */
    .feed-item { padding: .75rem .4rem; gap: .6rem; }
    .feed-badge-col { width: 68px; }
    .feed-badge { font-size: 10px; padding: 3px 4px; }
    .feed-title { font-size: 13px; }
    .feed-stats-col { gap: 6px; }
    .feed-stat-item { font-size: 11px; }
}



/* ===== Hero Search Bar ===== */
.hero-search-wrapper {
    margin: 1.25rem 0 1.5rem;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    color: white;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}
.hero-search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.hero-search-form .search-icon {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: #94a3b8;
}
.hero-search-form input {
    width: 100%;
    padding: 13px 48px 13px 46px;
    border: none;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s;
    font-family: inherit;
}
.hero-search-form input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}
.hero-search-form .search-btn {
    position: absolute;
    right: 6px;
    background: #2563eb;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.hero-search-form .search-btn:hover {
    background: #1d4ed8;
}
.hero-tag-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.85rem;
    flex-wrap: wrap;
    font-size: 12px;
}
.hero-tag-chips .chip-label {
    color: #cbd5e1;
    font-weight: 700;
}
.hero-tag-chips a {
    color: #93c5fd;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s;
}
.hero-tag-chips a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ===== Essential Travel Cards Section ===== */
.essential-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.essential-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    min-width: 0;
    overflow: hidden;
}
.essential-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.essential-card.card-lucky {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #fed7aa;
}
.essential-card.card-egate {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
}
.essential-card .card-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.card-lucky .card-badge { background: #ea580c; color: white; }
.card-egate .card-badge { background: #2563eb; color: white; }

.essential-card .card-info { flex: 1; min-width: 0; }
.essential-card .card-info h4 {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 3px 0;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.essential-card .card-info p {
    font-size: 12px;
    margin: 0;
    color: #475569;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.essential-card .card-arrow {
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.essential-card:hover .card-arrow {
    transform: translateX(4px);
    color: #1e293b;
}

@media (max-width: 992px) {
    .essential-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* Strict Mobile Layout Fixes for Community & Latest Posts */
/* ============================================================ */
@media (max-width: 768px) {
    body, html,
    .container,
    .main-column,
    .board-layout,
    .board-content,
    .board-grid,
    .board-box,
    .review-showcase,
    .review-showcase-header,
    .review-cards,
    .dense-list,
    .dense-list li,
    .classic-table,
    .posts-table-wrap,
    .posts-table,
    .review-grid,
    .travel-grid {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    .board-layout,
    .board-content,
    .board-grid,
    .board-box,
    .review-showcase,
    .dense-list,
    .posts-table-wrap {
        overflow-x: hidden !important;
    }

    .board-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    .board-box,
    .review-showcase {
        padding: 1rem 0.85rem !important;
        width: 100% !important;
    }

    .board-header,
    .review-showcase-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .board-header h3,
    .review-showcase-title {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .more-link,
    .review-more-link {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        margin-left: 0.5rem !important;
    }

    .dense-list li {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .dense-list a {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .dense-list .category,
    .dense-list .q-icon,
    .dense-list .comment-count,
    .dense-list .new-icon,
    .dense-list .date {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}



