body {
    font-family: var(--sl-font-sans);
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

#app-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px 4px 32px;
}

#filters-bar {
    width: 75%;
}

#app-container {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

/* SIDEBAR + MAP BASE (large default) */
#side-panel-container {
    width: 50%;
    overflow-y: auto;
}

/* DEFAULT (large screens): 2 columns */
#side-panel-body {
    padding: 32px;
    gap: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-sizing: border-box;
}

/* MEDIUM: 1 column + map */
@media (max-width: 1000px) {
    #side-panel-body {
        grid-template-columns: 1fr;
    }
}

/* SMALL: map only */
@media (max-width: 700px) {
    #side-panel-container {
        display: none;
    }

    #map-container {
        width: 100%;
        flex: 1;
    }
}

#map-container {
    width: 50%;
    border-radius: var(--sl-border-radius-large);
    flex-shrink: 0;
}

.popup-content {
    position: relative;
}

.popup-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.popup-info {
    padding: 12px;
}

.popup-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.popup-link {
    display: inline-block;
    font-size: 13px;
    color: #FF5A5F;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #FF5A5F;
    border-radius: 8px;
}

.popup-link:hover {
    background: #FF5A5F;
    color: white;
}
