:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #00ff88;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden; /* Prevent scrolling on body, map handles it */
}

#app-container {
    display: flex;
    height: 100vh;
    flex-direction: row; /* Desktop default */
}

/* Sidebar Styles */
#sidebar {
    width: 350px;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 1000; /* Above map */
    transition: transform 0.3s ease;
}

#sidebar header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

#sidebar h1 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}

#search-input {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    box-sizing: border-box;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

#results-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.site-card {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.site-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.site-card h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #eee;
}

.site-card a {
    color: #888;
    font-size: 0.8rem;
    text-decoration: none;
    word-break: break-all;
}

.site-card a:hover {
    color: var(--accent-color);
}

/* Map Styles */
#map {
    flex: 1;
    height: 100%;
    z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #app-container {
        flex-direction: column-reverse;
    }
    
    #sidebar {
        width: 100%;
        height: 40%;
        border-right: none;
        border-top: 1px solid var(--glass-border);
    }
    
    #map {
        height: 60%;
    }
}
