.s6-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.s6-header-row {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.s6-text-area {
    flex: 2;
}

.s6-controls-area {
    flex: 1;
    background: #fff;
    border: 3px solid #111;
    border-radius: 8px;
    box-shadow: 6px 6px 0px #111;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
}

 /* Buttons */
.s6-btn {
    background: #fff;
    border: 2px solid #111;
    border-radius: 6px;
    padding: 12px 15px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    color: #111;
    text-align: center;
    cursor: pointer;
    box-shadow: 3px 3px 0px #111;
    transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}

.s6-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px #111;
}

.s6-btn.active {
    background: #F0D722;
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px #111; 
}

.s6-map-row {
    width: 100%;
    position: relative;
    height: 500px;
    background-color: #f4f4f4;
    border: 4px solid #111;
    border-radius: 12px;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#map_mobility {
    width: 100%;
    height: 100%;
    z-index: 0;
}


 /* Legend */
.s6-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background: #fff;
    border: 3px solid #111;
    border-radius: 8px;
    box-shadow: 6px 6px 0px #111;
    padding: 10px 20px 20px 20px;
    color: #111;
    min-width: 140px;
}

.s6-legend div {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.s6-legend i {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #111;
    border-radius: 8px;
    margin-right: 10px;
    vertical-align: middle;
}

.s6-legend i.line {
    height: 10px;
    border-radius: 0;
    width: 24px;
    border: 2px solid #111;
    border-radius: 4px;
}

.custom-tooltip {
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #111;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.file-upload-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    width: 280px;
    font-size: 14px;
}

 /* Loader */
.map-loader {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.map-loader.active {
    display: flex;
}

.spinner {
    width: 40px; 
    height: 40px;
    border: 4px solid #111;
    border-top: 4px solid #689F25;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}