:root {
    --primary: #e63946;
    --primary-light: #ff4d6d;
    --accent: #d4ac0d;
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --border: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.main-header {
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 2px solid var(--text-main);
    z-index: 100;
}

.logo { display: flex; align-items: center; gap: 1rem; }
.logo-icon { font-size: 2.5rem; }
.logo h1 { font-size: 2rem; font-weight: 900; letter-spacing: -0.05em; }
.logo h1 span { color: var(--primary); }

.user-profile { display: flex; align-items: center; gap: 1.5rem; }
.status { 
    font-size: 0.85rem; 
    color: white; 
    background: var(--text-main); 
    padding: 0.5rem 1.2rem; 
    font-weight: 800; 
}
.avatar { width: 48px; height: 48px; background: var(--bg-alt); border: 2px solid var(--text-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

.content-grid {
    display: grid;
    grid-template-columns: 400px 1fr 420px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.side-panel {
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-panel { border-right: none; border-left: 1px solid var(--border); }

.panel-header {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.panel-header h2 { 
    font-size: 1.3rem; 
    font-weight: 950; 
    letter-spacing: -0.02em; 
    margin-bottom: 1rem; 
    color: var(--text-main);
}

.general-info-box { background: white; padding: 1.5rem; border-radius: 8px; border-left: 5px solid var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.country-stats { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.country-stats li { font-size: 1rem; color: var(--text-main); line-height: 1.5; }
.country-stats strong { color: var(--primary); margin-right: 0.5rem; }

.interactive-map { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: hidden; }
.map-bg { 
    fill: #fdfaf5; 
    stroke: #d1d5db; 
    stroke-width: 1.5; 
    transition: fill 0.3s; 
}
.map-point { fill: #adb5bd; stroke: #495057; stroke-width: 2; cursor: pointer; transition: all 0.2s; }
.map-point:hover { fill: var(--primary); stroke: var(--text-main); r: 15; }
.map-point.active { fill: var(--primary); stroke: var(--text-main); r: 17; filter: drop-shadow(0 0 10px rgba(230, 57, 70, 0.4)); }
.map-label { font-size: 11px; font-weight: 900; fill: #495057; }

.map-status {
    padding: 2rem;
    background: white;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    flex: 0.7;
}

.main-panel {
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f8f9fa; }
::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 10px; border: 2px solid #f8f9fa; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.cards-grid {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.attraction-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 4rem;
    background: white;
}

.card-image { height: 400px; overflow: hidden; position: relative; border: 1px solid var(--text-main); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.card-tag { position: absolute; bottom: 0; right: 0; background: var(--text-main); color: white; padding: 0.5rem 1.5rem; font-weight: 900; font-size: 0.85rem; }

.card-content { padding: 1rem 3rem; }
.card-region { font-size: 1rem; font-weight: 900; color: var(--primary); margin-bottom: 1rem; }
.card-content h3 { font-size: 3.5rem; font-weight: 950; line-height: 1; margin-bottom: 1.5rem; letter-spacing: -2px; }
.card-desc { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 2rem; }

.card-details { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.detail-item { display: flex; gap: 0.75rem; font-size: 1rem; }

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.message { max-width: 90%; padding: 1.25rem; font-size: 1.05rem; line-height: 1.6; border-radius: 4px; }
.message.ai { background: white; border: 1px solid var(--border); }
.message.user { align-self: flex-end; background: var(--text-main); color: white; font-weight: 700; }

.chat-input-area {
    padding: 2.5rem 2rem;
    display: flex;
    gap: 1rem;
    background: #f1f3f5;
    border-top: 2px solid var(--text-main);
}

#user-input { flex: 1; padding: 1.25rem; border: 3px solid var(--text-main); border-radius: 4px; font-size: 1.1rem; font-weight: 600; outline: none; background: white; box-shadow: 4px 4px 0px var(--primary); }
#send-btn { padding: 0 2rem; background: var(--primary); color: white; border: 3px solid var(--text-main); border-radius: 4px; font-weight: 950; cursor: pointer; box-shadow: 3px 3px 0px var(--text-main); }

.reviews-section { border-top: 1px solid var(--border); padding-top: 2rem; }
.reviews-title { font-size: 1rem; font-weight: 900; margin-bottom: 1.25rem; color: var(--text-main); }
.review-item { margin-bottom: 1.5rem; }
.review-user { font-weight: 900; font-size: 1rem; margin-bottom: 0.4rem; }
.review-comment { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.region-detail h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 0.75rem; font-weight: 950; }
.region-desc { font-size: 1rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 1.25rem; }
.region-stats { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.region-stats li { font-size: 0.95rem; }
.region-stats strong { color: var(--primary); margin-right: 0.5rem; }
.loader { text-align: center; padding: 5rem; font-size: 1.25rem; color: var(--primary); font-weight: 900; }