/* ===== Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-violet: #4338ca;
    --accent-violet-soft: #818cf8;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);

    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f4f4f5;
    --text-primary: #1e1b4b;
    --text-secondary: #4c4878;
    --text-tertiary: #94a3b8;

    --border: #e2e8f0;
    --shadow-md: 0 4px 16px rgba(79, 70, 229, 0.08);

    --radius-sm: 8px;
    --radius-md: 12px;
    --transition: 0.2s ease;

    /* Category Colors - 파스텔톤 */
    --palace: #e57373;
    --palace-bg: #ffebee;
    --viewpoint: #9575cd;
    --viewpoint-bg: #ede7f6;
    --shopping: #f06292;
    --shopping-bg: #fce4ec;
    --hipplace: #ffb74d;
    --hipplace-bg: #fff3e0;
    --nature: #81c784;
    --nature-bg: #e8f5e9;
    --museum: #64b5f6;
    --museum-bg: #e3f2fd;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-y: scroll;
}

/* 커스텀 스크롤바 - 항상 공간 확보 + 오버레이 스타일 */
body::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

/* 언어별 폰트 설정 */
body[data-lang="zh"] {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body[data-lang="ja"] {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

body[data-lang="en"] {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ===== Header ===== */
.header-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 12px;
    max-width: 1020px;
    margin: 0 auto;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.logo-main {
    font-size: 17px;
    font-weight: 800;
    color: var(--accent-violet-soft);
    white-space: nowrap;
}

.logo-divider {
    color: #d1d5db;
    margin: 0 4px;
}

.logo-sub {
    color: #64748b;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
}

.db-count {
    padding: 4px 10px;
    background: #ede9fe;
    color: var(--accent-violet-soft);
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
    white-space: nowrap;
}

.view-tabs {
    display: flex;
    gap: 6px;
}

.view-tab {
    padding: 8px 16px;
    min-width: 70px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.view-tab:hover {
    color: var(--accent-violet);
    background: #eef2ff;
}

.view-tab.active {
    background: var(--accent-gradient);
    color: #ffffff;
}

/* ===== Main ===== */
.main-container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== About Section ===== */
.about-section {
    background: linear-gradient(135deg, #fafafa 0%, #f0f4ff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.about-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.about-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.about-categories {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.about-categories strong {
    color: var(--accent-violet-soft);
    font-weight: 600;
}

/* ===== Filters ===== */
.filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

#scoreFilters {
    margin-top: 8px;
}

/* 주소 섹션 */
.address-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.address-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.address-value {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 6px 0 0 0;
    line-height: 1.5;
}

.filter-btn {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent-violet);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* 카테고리 필터 버튼 파스텔 스타일 */
.filter-btn.active[data-category="palace"] {
    background: var(--palace-bg);
    color: #c62828;
    border-color: var(--palace);
}

.filter-btn.active[data-category="viewpoint"] {
    background: var(--viewpoint-bg);
    color: #5e35b1;
    border-color: var(--viewpoint);
}

.filter-btn.active[data-category="shopping"] {
    background: var(--shopping-bg);
    color: #c2185b;
    border-color: var(--shopping);
}

.filter-btn.active[data-category="hipplace"] {
    background: var(--hipplace-bg);
    color: #e65100;
    border-color: var(--hipplace);
}

.filter-btn.active[data-category="nature"] {
    background: var(--nature-bg);
    color: #2e7d32;
    border-color: var(--nature);
}

.filter-btn.active[data-category="museum"] {
    background: var(--museum-bg);
    color: #1565c0;
    border-color: var(--museum);
}

.filter-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.checkbox-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.checkbox-filter:hover {
    border-color: var(--accent-violet);
}

.checkbox-filter input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-violet);
    cursor: pointer;
}

.checkbox-filter .checkbox-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.checkbox-filter:has(input:checked) {
    background: #eef2ff;
    border-color: var(--accent-violet);
}

.checkbox-filter:has(input:checked) .checkbox-label {
    color: var(--accent-violet);
}

.filter-result {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    text-align: right;
}

/* ===== Table ===== */
.landmark-table-wrap {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.landmark-table {
    width: 100%;
    border-collapse: collapse;
}

.landmark-table thead {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.landmark-table th {
    padding: 12px 6px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.landmark-table th.col-duration,
.landmark-table th.col-rank,
.landmark-table th.col-popularity {
    white-space: nowrap;
}

/* 모바일에서 col-popularity 텍스트 숨기고 'POP' 표시 */
@media (max-width: 768px) {
    th.col-popularity {
        font-size: 0 !important;
        color: transparent;
    }

    th.col-popularity::after {
        content: "POP";
        font-size: 12px;
        color: var(--text-tertiary);
        font-weight: 600;
    }
}

.landmark-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: var(--transition);
}

.landmark-table tbody tr:last-child {
    border-bottom: none;
}

.landmark-table tbody tr:hover {
    background: #f8faff;
}

.landmark-table td {
    padding: 8px;
    vertical-align: middle;
    font-size: 13px;
}

.col-rank {
    width: 36px;
    text-align: center !important;
}

.col-photo {
    width: 1%;
    white-space: nowrap;
}

/* 콘텐츠(사진) 크기만큼만 */
.col-name {
    width: 160px;
}

.col-category {
    width: 100px;
}

.col-location {
    width: 80px;
}

.col-duration {
    width: 80px;
    white-space: nowrap;
}

.col-admission {
    width: 100px;
}

.col-score {
    width: 50px;
    text-align: center !important;
}

.col-popularity {
    width: 50px;
    text-align: center !important;
    white-space: nowrap;
}

.cell-rank {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.cell-photo {
    width: 80px;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0px 6px 0px 0px;
}

.cell-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cell-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: keep-all;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.cell-duration {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.cell-rank {
    white-space: nowrap;
}

.cell-popularity {
    white-space: nowrap;
}

.cell-category {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* 모바일용 카테고리 (이름 옆) - 기본 숨김 */
.cell-category-mobile {
    display: none;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    vertical-align: middle;
    flex-shrink: 0;
}

.cell-category-mobile.palace {
    background: var(--palace-bg);
    color: #c62828;
}

.cell-category-mobile.viewpoint {
    background: var(--viewpoint-bg);
    color: #5e35b1;
}

.cell-category-mobile.shopping {
    background: var(--shopping-bg);
    color: #c2185b;
}

.cell-category-mobile.hipplace {
    background: var(--hipplace-bg);
    color: #e65100;
}

.cell-category-mobile.nature {
    background: var(--nature-bg);
    color: #2e7d32;
}

.cell-category-mobile.museum {
    background: var(--museum-bg);
    color: #1565c0;
}

.cell-category.palace {
    background: var(--palace-bg);
    color: #c62828;
}

.cell-category.viewpoint {
    background: var(--viewpoint-bg);
    color: #5e35b1;
}

.cell-category.shopping {
    background: var(--shopping-bg);
    color: #c2185b;
}

.cell-category.hipplace {
    background: var(--hipplace-bg);
    color: #e65100;
}

.cell-category.nature {
    background: var(--nature-bg);
    color: #2e7d32;
}

.cell-category.museum {
    background: var(--museum-bg);
    color: #1565c0;
}

/* 모바일용 인기도 숫자 - 기본 숨김 */
.popularity-value-mobile {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.cell-location {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 인기도 바 */
.cell-popularity {
    width: 100px;
}

.popularity-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.popularity-track {
    width: 60px;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.popularity-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 인기도 점수별 색상 */
.popularity-fill.score-high {
    background: linear-gradient(90deg, #86efac 0%, #4ade80 100%);
}

.popularity-fill.score-medium {
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 100%);
}

.popularity-fill.score-low {
    background: linear-gradient(90deg, #fcd34d 0%, #fbbf24 100%);
}

.popularity-fill.score-very-low {
    background: linear-gradient(90deg, #fca5a5 0%, #f87171 100%);
}

.popularity-value {
    font-size: 13px;
    font-weight: 600;
    min-width: 24px;
    text-align: right;
}

/* 인기도 숫자 색상 - 그래프와 동일 */
.popularity-value.score-high {
    color: #22c55e;
}

.popularity-value.score-medium {
    color: #3b82f6;
}

.popularity-value.score-low {
    color: #f59e0b;
}

.popularity-value.score-very-low {
    color: #ef4444;
}

.popularity-value-mobile {
    font-weight: 600;
}

.popularity-value-mobile.score-high {
    color: #22c55e;
}

.popularity-value-mobile.score-medium {
    color: #3b82f6;
}

.popularity-value-mobile.score-low {
    color: #f59e0b;
}

.popularity-value-mobile.score-very-low {
    color: #ef4444;
}

.cell-score {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.cell-score.high {
    color: var(--nature);
}

.cell-score.mid {
    color: var(--hipplace);
}

.cell-score.low {
    color: var(--text-tertiary);
}

/* ===== Map ===== */
.map-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 600px;
}

#map {
    width: 100%;
    height: 100%;
}

/* ===== Modal (맛집과 동일) ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    padding: 10px;
    overflow: hidden;
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 1;
}

.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    max-width: 1100px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-bottom: 1px solid var(--border);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.modal-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.modal-name-en {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.modal-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.modal-tag.palace {
    background: var(--palace-bg);
    color: #c62828;
}

.modal-tag.viewpoint {
    background: var(--viewpoint-bg);
    color: #5e35b1;
}

.modal-tag.shopping {
    background: var(--shopping-bg);
    color: #c2185b;
}

.modal-tag.hipplace {
    background: var(--hipplace-bg);
    color: #e65100;
}

.modal-tag.nature {
    background: var(--nature-bg);
    color: #2e7d32;
}

.modal-tag.museum {
    background: var(--museum-bg);
    color: #1565c0;
}

.modal-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 22px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* 2 Column Layout - 새 레이아웃 */
.modal-wide {
    max-width: 1300px;
    width: 95%;
}

.modal-body-two-col {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-col-left {
    width: 420px;
    flex-shrink: 0;
    padding: 24px;
    overflow-y: visible;
    overflow-x: hidden;
}

.modal-col-right {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    background: var(--bg-secondary);
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #6366f1 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
}

/* SVG 아이콘도 그라데이션 적용 */
.modal-section h3 .section-icon,
.score-summary-section h3 .section-icon {
    stroke: url(#iconGradient);
}

/* score-summary-section도 동일한 스타일 적용 */
.score-summary-section h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #6366f1 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Intro Box - 선 없이 */
.intro-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #fafafa 100%);
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.intro-summary {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.intro-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0px 0px 0px 8px;
}

/* Tips List - 구분선 없이 컴팩트하게 */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2.3;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-left: 3px;
}

.tips-list li::before {
    content: "✓";
    color: var(--accent-violet-soft);
    font-weight: 600;
    flex-shrink: 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.info-item .info-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.info-item .info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Detail Address */
.address-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.address-tag {
    flex-shrink: 0;
    width: 45px;
    text-align: center;
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.address-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.copy-btn {
    flex-shrink: 0;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 11px;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

.copy-btn.copied {
    background: #dcfce7;
    border-color: #86efac;
    color: #16a34a;
}

/* Modal Actions - 3개 버튼 */
.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.action-btn {
    flex: 1;
    padding: 12px 8px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}

.action-btn.google {
    background: #4285f4;
    color: #fff;
}

.action-btn.naver {
    background: #03c75a;
    color: #fff;
}

.action-btn.kakao {
    background: #fee500;
    color: #191919;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-favicon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Scores Grid - 2컬럼 컴팩트 */
.scores-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.score-row {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.score-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0f4ff 100%);
}

.score-row-icon {
    font-size: 18px;
}

.score-row-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.score-row-stars {
    font-size: 14px;
    letter-spacing: 1px;
    color: #fbbf24;
}

.score-row-stars[data-score="5"] {
    color: #f59e0b;
}

.score-row-stars[data-score="4"] {
    color: #fbbf24;
}

.score-row-stars[data-score="3"] {
    color: #fcd34d;
}

.score-row-stars[data-score="2"] {
    color: #d1d5db;
}

.score-row-stars[data-score="1"] {
    color: #d1d5db;
}

.score-row-reasons {
    list-style: none;
    padding: 8px 12px 12px;
    margin: 0;
}

.score-row-reasons li {
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-left: 7px;
}

.score-row-reasons li::before {
    content: "•";
    color: var(--accent-violet-soft);
    font-weight: bold;
    flex-shrink: 0;
}

.score-row-reasons li.no-reason {
    color: var(--text-tertiary);
    font-style: italic;
}

.score-row-reasons li.no-reason::before {
    content: "";
}

/* Responsive */
@media (max-width: 1100px) {
    .scores-grid-2col {
        grid-template-columns: 1fr;
    }

    /* 왼쪽 컬럼 비율로 변경 */
    .modal-col-left {
        width: 42%;
        min-width: 300px;
        padding: 20px;
    }

    .modal-col-right {
        padding: 16px;
    }

    /* 점수 요약 패딩/갭 조정 */
    .score-summary-section {
        margin: 0 -16px 40px -16px;
        padding: 12px 16px 10px 16px;
    }

    .score-summary-grid {
        gap: 3px;
    }

    .score-summary-item {
        padding: 5px 0;
    }

    .score-summary-name {
        font-size: 11px;
    }

    .score-summary-stars {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .modal-wide {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    /* 모바일에서도 info-grid 2컬럼 유지 */
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .info-item {
        padding: 6px 8px;
    }

    .info-item .info-label {
        font-size: 11px;
    }

    .info-item .info-value {
        font-size: 12px;
    }

    .scores-grid-2col {
        grid-template-columns: 1fr;
    }

    /* 모바일에서도 지도 버튼 가로 3개 유지 */
    .modal-actions {
        flex-direction: row;
        gap: 6px;
    }

    .action-btn {
        padding: 8px 4px;
        font-size: 11px;
        gap: 3px;
    }

    .btn-favicon {
        width: 14px;
        height: 14px;
    }
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

/* Info List - 기존 레이아웃용 */
.info-list {
    display: flex;
    flex-direction: column;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

/* (기존 score-grid, score-reasons-panel은 새 레이아웃으로 대체됨) */

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.action-btn.primary {
    background: #03c75a;
    color: #fff;
}

.action-btn.secondary {
    background: #fee500;
    color: #191919;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Reviews */
.review-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-more-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-violet-soft);
    text-decoration: none;
    text-transform: none;
}

.review-more-link:hover {
    text-decoration: underline;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reviews-placeholder {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 30px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.review-card {
    background: var(--bg-tertiary);
    padding: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.review-card:hover {
    background: #eef2ff;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.review-link-btn {
    padding: 6px 12px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 12px;
}

.review-link-btn:hover {
    opacity: 0.9;
}

.review-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.review-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.review-tags {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.review-tag {
    padding: 2px 8px;
    background: white;
    border-radius: 4px;
    font-size: 10px;
    color: var(--accent-violet-soft);
}

/* ===== Responsive ===== */
/* ===== 반응형 - 900px ===== */
@media (max-width: 900px) {
    .header {
        display: flex;
        flex-wrap: wrap;
        padding: 6px 12px;
        gap: 3px;
    }

    /* 1줄: 타이틀(좌) + 언어토글(우) - 같은 줄에 배치 */
    .header-left {
        order: 1;
        flex: 0 0 auto;
    }

    .header-right {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    /* 2줄: 리스트/지도 탭 */
    .header-center {
        order: 3;
        flex: 0 0 100%;
        justify-content: center;
    }

    /* 108개 명소만 숨기기 */
    .db-count {
        display: none;
    }

    /* 로고 - 크게 유지 */
    .logo-main {
        font-size: 18px;
    }

    .logo-sub {
        font-size: 13px;
    }

    .logo-divider {
        font-size: 12px;
        margin: 0 1px;
    }

    .logo-link {
        gap: 4px;
    }

    .lang-selector {
        padding: 1px;
        gap: 0;
    }

    .lang-btn {
        padding: 2px 5px;
        font-size: 10px;
    }

    .about-stats {
        gap: 12px;
    }

    .about-stat-num {
        font-size: 13px;
    }

    .about-stat-label {
        font-size: 11px;
    }

    /* 테이블 - 위치 컬럼 숨김 (5번째) */
    .landmark-table th.col-location,
    .landmark-table td:nth-child(5) {
        display: none;
    }

    /* 인기도 그래프 축소 */
    .cell-popularity {
        width: 90px;
    }

    .popularity-track {
        width: 50px;
    }

    /* 모달 세로 배치 */
    .modal-body-two-col {
        flex-direction: column;
        overflow-y: auto;
        flex: 1;
    }

    .modal-col-left {
        width: 100%;
        flex-shrink: 0;
    }

    .modal-col-right {
        max-height: none;
        overflow: visible;
        flex-shrink: 0;
        padding-bottom: 30px;
    }

    .scores-grid-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 반응형 - 768px ===== */
@media (max-width: 768px) {

    /* 상세 평가 1열로 변경 */
    .scores-grid-2col {
        grid-template-columns: 1fr;
    }

    /* 상세설명 + 방문팁 상하 배치 */
    .desc-tips-row {
        flex-direction: column;
        gap: 0;
    }

    /* 지도 + 가까운 명소 상하 배치 */
    .map-nearby-row {
        flex-direction: column;
        gap: 16px;
    }

    .spot-map-container {
        height: 180px;
    }

    /* 헤더: 타이틀 크게, 언어 버튼 작게 */
    .lang-btn {
        padding: 2px 4px;
        font-size: 9px;
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-sub {
        font-size: 13px;
    }

    .main-container {
        padding: 12px;
    }

    .about-section {
        padding: 16px;
    }

    .about-desc {
        font-size: 12px;
    }

    .filter-bar {
        gap: 6px;
    }

    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .filter-divider {
        display: none;
    }

    /* 인기도 더 축소 */
    .cell-popularity {
        width: 80px;
    }

    .popularity-track {
        width: 45px;
    }

    .popularity-bar {
        gap: 6px;
    }

    .cell-photo {
        width: 60px;
        height: 52px;
        font-size: 16px;
    }

    .cell-name {
        font-size: 14px;
    }

    .cell-category {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* Modal - 전체화면 */
    .modal-overlay {
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-overlay.active {
        align-items: stretch;
    }

    .modal {
        margin: 0;
        max-height: 100vh;
        height: 100vh;
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        overflow: hidden;
    }

    .modal-body-two-col {
        flex-direction: column;
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .modal-col-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: none;
        overflow: visible;
        flex-shrink: 0;
    }

    .modal-col-right {
        max-height: none;
        overflow: visible;
        padding-bottom: 50px;
        flex-shrink: 0;
    }

    /* 스코어 그리드 터치 스크롤 허용 */
    .score-grid {
        touch-action: pan-y;
    }

    .score-card {
        touch-action: manipulation;
    }

    .modal-name {
        font-size: 18px;
    }

    .score-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .popularity-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    /* 테이블 셀 패딩 축소 */
    .landmark-table td {
        padding: 6px 3px;
    }

    /* 카테고리 컬럼 숨기기 */
    .landmark-table th.col-category,
    .landmark-table td:nth-child(4) {
        display: none;
    }

    /* 이름 옆에 카테고리 태그 표시 */
    .cell-category-mobile {
        display: inline-flex;
    }

    .cell-name {
        display: inline;
    }

    /* 소요시간 축소 + 줄바꿈 방지 */
    .cell-duration {
        font-size: 11px;
        white-space: nowrap;
    }

    .col-duration {
        width: 60px;
    }

    /* 인기도 더 축소 */
    .cell-popularity {
        width: 60px;
    }

    .popularity-track {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .score-grid {
        grid-template-columns: 1fr;
    }

    /* 소요시간 더 축소 + 줄바꿈 방지 */
    .cell-duration {
        font-size: 10px;
        white-space: nowrap;
    }

    .col-duration {
        width: 50px;
    }

    /* 인기도 숫자만 표시 */
    .popularity-bar {
        display: none;
    }

    .popularity-value-mobile {
        display: block;
        text-align: center;
    }

    .cell-popularity {
        width: 40px;
    }
}

/* ===== 갤러리 그리드 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gallery-thumb.placeholder {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 20px;
}

/* 상세 설명 + 방문 팁 나란히 */
.desc-tips-row {
    display: flex;
    gap: 28px;
}

.desc-tips-row .desc-section {
    flex: 1.5;
}

.desc-tips-row .tips-section {
    flex: 1;
}

/* 상세 설명 단독 섹션 */
.desc-section-full {
    margin-bottom: 24px;
}

.desc-section-full .detail-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-left: 22px;
}

/* 상세 설명 + 방문 팁 가로 배치 */
.desc-tips-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.desc-tips-row .desc-section {
    flex: 1.5;
}

.desc-tips-row .tips-section {
    flex: 1;
}

.desc-tips-row .detail-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* 지도 + 가까운 명소 가로 배치 */
.map-nearby-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.map-nearby-row .map-section {
    flex: 1.5;
}

.map-nearby-row .nearby-section {
    flex: 1;
}

/* 가까운 명소 리스트 */
.nearby-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 0 -12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nearby-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(124, 58, 237, 0.12) 100%);
    transform: translateX(4px);
}

.nearby-item.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(124, 58, 237, 0.2) 100%);
}

.nearby-item:last-child {
    padding-bottom: 10px;
}

/* 가까운 명소 보기 버튼 */
.nearby-view-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nearby-item.selected .nearby-view-btn {
    opacity: 1;
    pointer-events: auto;
}

.nearby-view-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.nearby-item.selected .nearby-distance {
    opacity: 0;
}

.nearby-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    flex-shrink: 0;
}

.nearby-info {
    flex: 1;
    min-width: 0;
}

.nearby-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nearby-category {
    font-size: 11px;
    color: var(--text-tertiary);
}

.nearby-distance {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-violet);
    white-space: nowrap;
}

/* 스팟 지도 컨테이너 */
.spot-map-container {
    width: 100%;
    height: 264px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-secondary);
}

.map-buttons-modal {
    display: flex;
    gap: 10px;
}

.map-buttons-modal .map-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.map-buttons-modal .map-btn.google {
    background: #f8f9fa;
    color: #1a73e8;
    border: 1px solid #dadce0;
}

.map-buttons-modal .map-btn.google:hover {
    background: #e8f0fe;
}

.map-buttons-modal .map-btn.naver {
    background: #f8f9fa;
    color: #03c75a;
    border: 1px solid #dadce0;
}

.map-buttons-modal .map-btn.naver:hover {
    background: #e8f7ee;
}

/* 상세 설명 */
.detail-description {}

/* 인기도 섹션 */
.popularity-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.popularity-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}

.popularity-card .label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.popularity-card .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.popularity-card .value span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-tertiary);
}

/* ===== Image Gallery Modal (맛집과 동일) ===== */
.gallery-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.gallery-overlay.active {
    display: flex;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition);
    z-index: 10;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 32px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90vw;
    height: 90vh;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-content img#galleryImage {
    width: 85vw;
    height: calc(90vh - 150px);
    object-fit: contain;
    border-radius: 8px;
}

.gallery-info {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#galleryCounter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

#galleryCaption {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    max-width: 600px;
    padding: 0;
}

.gallery-thumbnails .gallery-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumbnails .gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumbnails .gallery-thumb.active {
    opacity: 1;
    border-color: var(--accent-violet);
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-content img#galleryImage {
        width: 95vw;
        height: calc(85vh - 120px);
    }

    .gallery-thumbnails .gallery-thumb {
        width: 40px;
        height: 40px;
    }
}

/* 점수 필터 버튼 (카테고리 필터와 동일한 스타일) */
.score-filter-btn {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.score-filter-btn:hover {
    border-color: var(--accent-violet);
}

.score-filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* ===== 점수 요약 섹션 (5개씩 2줄, 컴팩트) ===== */
.score-summary-section {
    position: sticky;
    top: -24px;
    z-index: 10;
    background: var(--bg-secondary);
    margin: 0 -24px;
    padding: 16px 24px;
    margin-bottom: 30px;
    transition: box-shadow 0.2s ease;
}

.score-summary-section.stuck {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .score-summary-section {
        top: 0px;
        margin-bottom: 30px;
    }
}

.score-summary-section h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #6366f1 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-summary-section h3::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    -webkit-text-fill-color: initial;
}

.score-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    touch-action: pan-y;
}

.score-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e8ecf4;
    touch-action: manipulation;
}

.score-summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.15);
    border-color: var(--accent-violet);
}

.score-summary-top {
    display: flex;
    align-items: center;
    gap: 4px;
}

.score-summary-icon {
    font-size: 14px;
}

.score-summary-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.score-summary-stars {
    font-size: 13px;
    letter-spacing: 0px;
    color: #fbbf24;
}

.score-summary-stars[data-score="5"] {
    color: #f59e0b;
}

.score-summary-stars[data-score="4"] {
    color: #fbbf24;
}

.score-summary-stars[data-score="3"] {
    color: #94a3b8;
}

.score-summary-stars[data-score="2"] {
    color: #cbd5e1;
}

.score-summary-stars[data-score="1"] {
    color: #e2e8f0;
}

/* 점수 상세 하이라이트 효과 */
.score-row.highlight {
    animation: highlightPulse 6s ease;
}

@keyframes highlightPulse {
    0% {
        background: rgba(67, 56, 202, 0.07);
    }

    50% {
        background: rgba(67, 56, 202, 0.12);
    }

    100% {
        background: transparent;
    }
}

/* 반응형 - 점수 요약 */
@media (max-width: 900px) {
    .score-summary-section {
        margin: 0 -16px 56px -16px;
        padding: 16px 16px 12px 16px;
    }

    .score-summary-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .score-summary-item {
        padding: 8px 4px;
    }

    .score-summary-icon {
        font-size: 14px;
    }

    .score-summary-name {
        font-size: 12px;
    }

    .score-summary-stars {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .score-summary-section {
        margin: 0 -16px 56px -16px;
        padding: 16px 16px 12px 16px;
    }

    .score-summary-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .score-summary-item {
        padding: 8px 4px;
    }

    .score-summary-icon {
        font-size: 14px;
    }

    .score-summary-name {
        font-size: 12px;
    }

    .score-summary-stars {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .score-summary-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .score-summary-item {
        padding: 8px 4px;
    }

    .score-summary-top {
        flex-direction: column;
        gap: 2px;
    }

    .score-summary-icon {
        font-size: 16px;
    }

    .score-summary-name {
        font-size: 12px;
    }

    .score-summary-stars {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .score-summary-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .score-summary-item {
        padding: 6px 2px;
    }

    .score-summary-icon {
        font-size: 16px;
    }

    .score-summary-name {
        font-size: 12px;
    }

    .score-summary-stars {
        font-size: 10px;
    }
}

/* 지도 마커 라벨 스타일 */
.map-label {
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-top: -30px;
    white-space: nowrap;
}

/* InfoWindow 스타일 커스텀 */
.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

.gm-style-iw-tc {
    display: none !important;
}

/* X 버튼 숨기기 - 바깥 클릭으로 닫힘 */
.gm-ui-hover-effect {
    display: none !important;
}

/* InfoWindow 상단 여백 제거 */
.gm-style-iw {
    padding: 0 !important;
}

.gm-style-iw-chr {
    padding-top: 0 !important;
    height: auto !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
}

/* ===== Language Toggle Button ===== */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-violet);
    border-radius: 50%;
    background: transparent;
    color: var(--accent-violet);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Pretendard', sans-serif;
}

.lang-toggle:hover {
    background: var(--accent-violet);
    color: white;
    transform: scale(1.05);
}

.lang-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .lang-toggle {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .header-right {
        min-width: auto;
    }
}


/* Language Selector */
.lang-selector {
    display: flex;
    gap: 0;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px;
}

.lang-btn {
    padding: 4px 7px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--accent-violet);
}

.lang-btn.active {
    background: var(--accent-violet);
    color: #ffffff;
    border-radius: 4px;
}

/* ===== 다국어 폰트 굵기 안정화 ===== */
/* 일본어 */
:lang(ja) {
    font-family: 'Noto Sans JP', 'Pretendard', sans-serif;
}

:lang(ja) body,
:lang(ja) .about-desc,
:lang(ja) .filter-btn,
:lang(ja) .cell-name,
:lang(ja) .detail-description {
    font-weight: 500;
}

:lang(ja) h2,
:lang(ja) h3,
:lang(ja) .about-header h2,
:lang(ja) .modal-name {
    font-weight: 700;
}

/* 중국어 */
:lang(zh) {
    font-family: 'Noto Sans SC', 'Pretendard', sans-serif;
}

:lang(zh) body,
:lang(zh) .about-desc,
:lang(zh) .filter-btn,
:lang(zh) .cell-name,
:lang(zh) .detail-description {
    font-weight: 500;
}

:lang(zh) h2,
:lang(zh) h3,
:lang(zh) .about-header h2,
:lang(zh) .modal-name {
    font-weight: 700;
}