:root {
    --primary-color: #03c75a; /* Naver Green */
    --bg-color: #f5f6f7;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.search-box {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 600px;
    margin-left: 20px;
}

#searchInput {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

#searchButton {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#searchButton:hover {
    background-color: #02b350;
}

.dashboard {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
}

.stats-card canvas {
    max-height: 300px;
}

.scrollable {
    max-height: 400px;
    overflow-y: auto;
}

.empty-msg {
    text-align: center;
    color: #999;
    padding: 20px;
}

.result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.result-item p {
    font-size: 0.85rem;
    color: #666;
}

.result-item .mkt-tags {
    margin-top: 8px;
    display: flex;
    gap: 5px;
}

.tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.tag.link { background: #e3f2fd; color: #1976d2; }
.tag.no-link { background: #ffebee; color: #d32f2f; }
.tag.booking { background: #f3e5f5; color: #7b1fa2; }
.tag.event { background: #fff3e0; color: #f57c00; }

.strategy-report {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.diag-section ul {
    list-style: none;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.diag-section li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.strategy-card-mini {
    border-left: 4px solid var(--primary-color);
    padding: 12px;
    background: #fff;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.strategy-card-mini h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.strategy-card-mini p {
    font-size: 0.85rem;
    color: #555;
}

@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        margin-left: 0;
        width: 100%;
    }
}
