:root {
    --primary-color: #1a56db;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --grid-gap: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
}

.app-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.app-main {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
}

@media (min-width: 768px) {
    .app-main {
        grid-template-columns: 400px 1fr;
        grid-template-rows: auto 1fr;
    }

    is-closed-search {
        grid-column: 1 / -1;
        z-index: 2000;
    }

    is-closed-list {
        grid-column: 1;
        grid-row: 2;
        overflow-y: auto;
        border-right: 1px solid #e5e7eb;
        z-index: 1000;
        background: white;
    }

    is-closed-map {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Mobile layout */
@media (max-width: 767px) {
    .app-main {
        display: flex;
        flex-direction: column;
    }

    is-closed-list {
        display: none;
        /* Hide list on mobile initially, or toggle */
    }

    is-closed-map {
        flex: 1;
    }
}