/* App container */
#app {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Fallback for older browsers */
    height: var(--app-height);
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow: hidden; /* Prevent content from overflowing */
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--dark-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--content-padding);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10001; /* Increase from 1000 to be higher than map controls */
    position: relative;
    width: 100%;
    min-width: 0; /* Allow flex items to shrink */
    flex-shrink: 0; /* Don't shrink the header */
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-count {
    background-color: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* User info in header */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
    margin-right: 15px;
}

.user-email {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

/* Map container */
#map-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - var(--header-height));
    height: calc(var(--app-height) - var(--header-height));
    flex: 1;
    overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-color: #f0f0f0;
}

/* Fullscreen styles */
.fullscreen #map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
}

.fullscreen .header {
    display: none;
}
