/* =============================================
   Heritage Portal - Custom Styles
   Korean Cultural Heritage Theme
   ============================================= */

:root {
    --primary: #8B1A1A;
    --primary-dark: #6B0F1A;
    --secondary: #C9A96E;
    --secondary-light: #E0D1A8;
    --dark: #1A1A2E;
    --cream: #F8F4EF;
    --warm-gray: #F0EBE3;
    --green: #2C5F2D;
    --brown: #6B4423;
    --temple: #4A3728;
    --navy: #1B3A4B;
    --text: #333333;
    --text-light: #666666;
    --border: #E5DDD0;
}

/* ---- Reset & Base ---- */
* { box-sizing: border-box; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    line-height: 1.3;
}

.brand-text, .hero-title, .stat-number, .type-name,
.program-card-title a, .detail-title, .page-title,
.search-page-title, .section-title {
    font-family: 'Pretendard', 'Noto Serif KR', serif;
    font-weight: 700;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ---- Header ---- */
.site-header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.site-header .navbar { padding: 0.6rem 0; }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon { color: var(--secondary); font-size: 1.5rem; }
.brand-text { font-family: 'Noto Serif KR', serif; }

.site-header .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--secondary) !important; }

.site-header .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.5rem;
}

.site-header .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}
.site-header .dropdown-item:hover { background: var(--cream); }

.dropdown-menu-regions { min-width: 200px; max-height: 400px; overflow-y: auto; }

.header-search .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px 0 0 8px;
}
.header-search .form-control::placeholder { color: rgba(255,255,255,0.5); }
.header-search .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--secondary);
    box-shadow: none;
    color: #fff;
}
.header-search .btn { border-radius: 0 8px 8px 0; border-color: rgba(255,255,255,0.2); color: #fff; }

.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: invert(1); }

/* ---- Hero ---- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    padding: 6rem 0 5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; text-align: center; color: #fff; }

.hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-search .form-control {
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.hero-search .btn-search {
    background: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
}
.hero-search .btn-search:hover { background: var(--secondary-light); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 900; color: var(--secondary); }
.stat-label { font-size: 0.9rem; opacity: 0.8; }

/* ---- Section Headers ---- */
.section-header { margin-bottom: 3rem; }

.section-title {
    font-size: 2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

/* ---- Heritage Type Cards ---- */
.section-types { background: #fff; }

.type-card {
    display: block;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--cream);
    border-radius: 16px;
    transition: all 0.3s ease;
    color: var(--text);
    height: 100%;
    border: 2px solid transparent;
}
.type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--type-color);
    color: var(--text);
}

.type-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.type-icon i { font-size: 1.8rem; color: var(--type-color); }

.type-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.type-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.75rem; line-height: 1.5; }
.type-count { font-size: 0.85rem; color: var(--type-color); font-weight: 600; }

/* ---- Program Cards ---- */
.section-featured { background: var(--cream); }

.program-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.program-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-type-badge,
.program-region-badge {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.program-card-body {
    padding: 1.25rem;
    flex: 1;
}

.program-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.program-card-title a { color: var(--text); }
.program-card-title a:hover { color: var(--primary); }

.program-heritage {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.program-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.program-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-tag {
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--cream);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.program-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
}

.btn-detail {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
    background: none;
    border: none;
}
.btn-detail:hover { color: var(--primary-dark); }

/* ---- Regions Section ---- */
.section-regions { background: #fff; }

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.region-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--cream);
    border-radius: 12px;
    color: var(--text);
    transition: all 0.3s;
    border: 2px solid transparent;
}
.region-item:hover {
    border-color: var(--primary);
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.region-name { font-weight: 600; font-size: 0.95rem; }
.region-count { font-size: 0.8rem; color: var(--text-light); }

/* ---- Breadcrumb ---- */
.breadcrumb-section {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb { font-size: 0.85rem; }
.breadcrumb-item a { color: var(--text-light); }
.breadcrumb-item.active { color: var(--primary); }

/* ---- Detail Page ---- */
.detail-header {
    background: linear-gradient(135deg, var(--dark), var(--detail-color, var(--primary)));
    color: #fff;
    padding: 2.5rem 0;
}

.detail-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.badge-heritage { background: rgba(255,255,255,0.2); padding: 0.35rem 0.75rem; border-radius: 8px; font-weight: 500; font-size: 0.85rem; }
.badge-type { background: rgba(255,255,255,0.15); padding: 0.35rem 0.75rem; border-radius: 8px; font-weight: 400; font-size: 0.85rem; }
.badge-always { background: #198754; padding: 0.35rem 0.75rem; border-radius: 8px; font-weight: 500; font-size: 0.85rem; }
.badge-month { background: rgba(255,255,255,0.15); padding: 0.35rem 0.75rem; border-radius: 8px; font-weight: 400; font-size: 0.85rem; }

.detail-title { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.detail-program-name { opacity: 0.85; font-size: 1.1rem; }
.detail-location { font-size: 1.1rem; }
.detail-location i { color: var(--secondary); margin-right: 0.5rem; }

.detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.detail-card-title {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.detail-card-text { line-height: 1.8; color: var(--text); }

.table-detail th {
    background: var(--cream);
    width: 140px;
    font-weight: 600;
    font-size: 0.9rem;
    vertical-align: top;
    color: var(--dark);
}
.table-detail td { font-size: 0.95rem; }

/* Sidebar */
.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.sidebar-info-list { list-style: none; padding: 0; margin: 0; }
.sidebar-info-list li {
    display: flex;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.sidebar-info-list li:last-child { border-bottom: none; }
.sidebar-info-list li i { color: var(--primary); width: 20px; margin-top: 0.15rem; flex-shrink: 0; }
.info-label { font-weight: 600; width: 55px; flex-shrink: 0; margin-left: 0.5rem; color: var(--text-light); }
.info-value { margin-left: 0.5rem; }

.share-buttons { display: flex; gap: 0.5rem; }
.btn-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.btn-share:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- List Page ---- */
.filter-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}
.filter-header h3 { font-size: 1.2rem; margin: 0; }

.filter-group { margin-bottom: 1.5rem; }
.filter-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--dark); }

.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.75rem;
    color: var(--text);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.filter-list li a:hover { background: var(--cream); color: var(--primary); }
.filter-list li a.active { background: var(--primary); color: #fff; font-weight: 600; }
.filter-list li a.active span { background: rgba(255,255,255,0.2); border-radius: 10px; padding: 0 0.5rem; font-size: 0.8rem; }
.filter-list li a span { font-size: 0.8rem; color: var(--text-light); }

.filter-list-scroll { max-height: 250px; overflow-y: auto; }

.month-filter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.month-btn {
    text-align: center;
    padding: 0.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--cream);
    color: var(--text);
    transition: all 0.2s;
}
.month-btn:hover { background: var(--primary); color: #fff; }
.month-btn.active { background: var(--primary); color: #fff; font-weight: 600; }

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.list-count { font-size: 1rem; color: var(--text-light); }
.list-count strong { color: var(--primary); }

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}
.empty-state i { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h3 { color: var(--text); }

/* ---- Search Page ---- */
.search-page-title { font-size: 2rem; color: var(--dark); }

.search-form-large {
    max-width: 700px;
    margin: 0 auto;
}

.search-form-large .form-control {
    border-radius: 12px 0 0 12px;
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}
.search-form-large .form-control:focus { border-color: var(--primary); box-shadow: none; }

.btn-search-lg {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
}
.btn-search-lg:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.search-results-count { font-size: 1.05rem; color: var(--text-light); }
.search-results-count strong { color: var(--primary); }

.search-suggestions h3 { font-family: 'Noto Serif KR', serif; color: var(--dark); }

/* ---- Info Pages ---- */
.page-title {
    font-size: 2rem;
    color: var(--dark);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary);
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-card h2 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.info-card p, .info-card li {
    font-size: 0.95rem;
    line-height: 1.8;
}

.guide-list { padding-left: 1.5rem; }
.guide-list li { margin-bottom: 1rem; }
.guide-list li strong { color: var(--primary); display: block; margin-bottom: 0.25rem; }

.type-info-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.type-info-item:last-child { border-bottom: none; }
.type-info-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.type-info-item p { margin-bottom: 0; }

/* FAQ */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 0.75rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-accordion .accordion-button {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    background: #fff;
    padding: 1.25rem 1.5rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--cream);
    color: var(--primary);
    box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; }

.faq-accordion .accordion-body {
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px !important;
    margin: 0 2px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
}
.pagination .page-link:hover { background: var(--cream); color: var(--primary); border-color: var(--primary); }
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-brand i { color: var(--secondary); }

.footer-desc { font-size: 0.9rem; line-height: 1.7; opacity: 0.8; }
.footer-source { font-size: 0.8rem; opacity: 0.5; margin-top: 0.5rem; }

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--secondary); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-contact i { color: var(--secondary); }

.footer-admin .btn { font-size: 0.85rem; border-radius: 8px; }

.footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1rem; }

.footer-copyright { font-size: 0.85rem; opacity: 0.6; margin: 0; }

.footer-bottom-links { font-size: 0.85rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.6); }
.footer-bottom-links a:hover { color: var(--secondary); }

/* ---- Back to Top ---- */
.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(139,26,26,0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s;
    font-size: 1.1rem;
}
.btn-back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-back-to-top.visible { display: flex; }

/* ---- Buttons ---- */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-number { font-size: 1.5rem; }
    .header-search { margin-top: 1rem; }
    .filter-sidebar { position: static; margin-bottom: 2rem; }
    .detail-title { font-size: 1.5rem; }
}

@media (max-width: 767.98px) {
    .hero-section { padding: 3rem 0; }
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .stat-number { font-size: 1.3rem; }
    .section-title { font-size: 1.5rem; }
    .type-card { padding: 1.5rem 1rem; }
    .region-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-header { padding: 1.5rem 0; }
    .detail-title { font-size: 1.3rem; }
    .detail-card { padding: 1.5rem; }
    .table-detail th { width: 100px; font-size: 0.85rem; }
    .btn-back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }
    .page-title { font-size: 1.5rem; }
}

@media (max-width: 575.98px) {
    .month-filter { grid-template-columns: repeat(3, 1fr); }
    .region-grid { grid-template-columns: 1fr; }
}

/* ---- Sitemap Page ---- */
.sitemap-tree { list-style: none; padding: 0; }
.sitemap-tree > li { margin-bottom: 1rem; }
.sitemap-tree > li > a { font-weight: 700; font-size: 1.1rem; }
.sitemap-tree ul { list-style: none; padding-left: 1.5rem; margin-top: 0.5rem; }
.sitemap-tree ul li { margin-bottom: 0.25rem; }
.sitemap-tree ul li a { font-size: 0.95rem; color: var(--text-light); }
.sitemap-tree ul li a:hover { color: var(--primary); }

/* ---- Program Card Image ---- */
.program-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600/340;
}
.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.program-card:hover .program-card-image img {
    transform: scale(1.05);
}
.program-type-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.program-region-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* ---- Language Switcher ---- */
.btn-lang {
    color: rgba(255,255,255,0.8) !important;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
}
.btn-lang:hover {
    color: var(--secondary) !important;
    border-color: var(--secondary);
    background: rgba(255,255,255,0.05);
}

/* ---- View Toggle ---- */
.view-toggle { display: flex; gap: 4px; }
.btn-view {
    background: var(--cream);
    color: var(--text-light);
    border: 1px solid var(--border);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
}
.btn-view.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-view:hover { background: var(--primary); color: #fff; }

.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }

/* ---- Map View ---- */
.map-view-container { margin-bottom: 2rem; }
.map-view-container .leaflet-container { border-radius: 12px; }

/* ---- PWA Banner ---- */
.pwa-banner {
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}
.pwa-banner .btn { font-size: 0.8rem; }

/* ---- Loading Spinner ---- */
.spinner-border { color: var(--primary) !important; }

/* ---- Leaflet popup fix ---- */
.leaflet-popup-content a { color: var(--primary); font-weight: 600; }
.leaflet-popup-content { font-family: 'Pretendard', sans-serif; font-size: 0.9rem; }

/* ---- Guide / Blog Pages ---- */
.guide-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}
.guide-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.guide-desc { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0 auto 1rem; }
.guide-meta { font-size: 0.9rem; opacity: 0.8; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.guide-meta span { white-space: nowrap; }
.guide-author { color: var(--secondary); }

/* Guide Article Body */
.guide-article-box {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}
.guide-intro-text {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text);
}
.guide-tip {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #FFF8E1;
    border-left: 4px solid var(--secondary);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}
.guide-tip > i { color: var(--secondary); font-size: 1.3rem; margin-top: 0.1rem; flex-shrink: 0; }
.guide-tip strong { display: block; color: var(--dark); margin-bottom: 0.25rem; font-size: 0.95rem; }
.guide-tip p { margin: 0; font-size: 0.95rem; line-height: 1.7; color: #5D4E37; }

.blog-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    color: var(--text);
    border: 2px solid transparent;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
    color: var(--text);
}
.blog-card-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog-card-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.6; }
.blog-card-footer-info { display: flex; justify-content: space-between; align-items: center; }
.blog-card-date { font-size: 0.8rem; color: var(--text-light); }
.blog-card-link { font-size: 0.9rem; color: var(--primary); font-weight: 600; }

.guide-region-card {
    display: block;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 2px solid transparent;
}
.guide-region-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.guide-link-card {
    display: block;
    padding: 0.85rem 1.25rem;
    background: var(--cream);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.2s;
}
.guide-link-card:hover { background: var(--primary); color: #fff; }

/* ---- Footer Widgets / Tag Cloud ---- */
.section-footer-widgets {
    background: #fff;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.widget { margin-bottom: 1.5rem; }
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-item {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--cream);
    border-radius: 20px;
    color: var(--text);
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.tag-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.tag-item span { font-size: 0.75rem; color: var(--text-light); }
.tag-item:hover span { color: rgba(255,255,255,0.7); }

.popular-list { list-style: none; padding: 0; margin: 0; }
.popular-list li { border-bottom: 1px solid var(--border); }
.popular-list li:last-child { border-bottom: none; }
.popular-list li a {
    display: block;
    padding: 0.6rem 0;
    color: var(--text);
    transition: color 0.2s;
}
.popular-list li a:hover { color: var(--primary); }
.popular-title { display: block; font-weight: 600; font-size: 0.9rem; }
.popular-meta { display: block; font-size: 0.8rem; color: var(--text-light); }

.guide-list-widget { list-style: none; padding: 0; margin: 0; }
.guide-list-widget li { margin-bottom: 0.4rem; }
.guide-list-widget li a {
    color: var(--text);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.guide-list-widget li a:hover { color: var(--primary); }
.guide-list-widget li a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 0.5rem; color: var(--text-light); font-size: 0.8rem; }

.widget-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

/* Article Info Bar */
.article-info-bar {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}
.article-info-bar i { color: var(--secondary); }

@media (max-width: 767.98px) {
    .guide-title { font-size: 1.5rem; }
    .guide-header { padding: 2rem 0; }
    .guide-article-box { padding: 1.5rem; }
    .guide-meta { gap: 0.75rem; font-size: 0.8rem; }
}
