/*!
 * Copyright (c) 2025 Brian Walczak
 * All rights reserved.
 *
 * This source code is licensed under the MIT License found in the
 * LICENSE file in the root directory of this source tree.
*/

html, body {
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px;
    position: relative;
    z-index: 20;
    pointer-events: none;
}

.header a {
    padding: 6px;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
}

#start {
    text-align: center;
    justify-content: center;
    margin-top: 30px;
}

button {
    background-color: #e50813;
    color: white; 
    font-size: 16px; 
    font-weight: 700; 
    padding: 10px 20px; 
    border: none; 
    border-radius: .5rem; 
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

select, input, textarea {
    width: 200px;
    padding: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    border-radius: 5px;
    padding-right: 20px;
}

select, select option {
    font-weight: 600;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #444;
}

.copy {
    cursor: pointer;
}

#progressBar {
    border-radius: 5px;
    width: 300px;
    height: 22px;
    background-color: #f1f1f1;
    position: relative;
}

#progressBar .status {
    border-radius: 5px;
    height: 100%;
    width: 0%;
    background-color: #e31c23;
    z-index: 1;
}

#progressBar .text {
    color: black;
    font-weight: 600;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

#map {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;

    z-index: 10;
}

.marker-single {
    width: 20px !important;
    height: 20px !important;
}

.cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}

.cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

.cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
}

.cluster-medium div {
    background-color: rgba(240, 194, 12, 0.6);
}

.cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
}

.cluster-large div {
    background-color: rgba(241, 128, 23, 0.6);
}

.cluster, .marker {
    background-clip: padding-box;
    border-radius: 20px;
    cursor: pointer !important;
}

.cluster div, .marker {
    width: 30px;
    height: 30px;
    margin: 5px;
    
    text-align: center;
    border-radius: 15px;
    font-size: 12px;
    color: black;
}

.cluster span {
    line-height: 30px;
    font-weight: 700;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.popup.show {
    opacity: 1;
}

.popup .content {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
}

.popup .option {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.mapboxgl-popup {
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    color: rgb(51, 51, 51);
    max-width: none !important;
}

.mapboxgl-popup-tip {
    display: none !important;
}

.mapboxgl-popup-content {
    padding: 13px 24px 18px 20px !important;
    border-radius: 12px !important;
    max-width: 300px;
}

.mapboxgl-popup h3 {
    font-size: 16px;
    font-weight: bold;
}

.mapboxgl-popup a {
    text-decoration: none;
    background: #0060ff;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
}

.mapboxgl-popup a:hover {
    background: #0040ff;
}

.mapboxgl-popup a:active {
    border: none !important;
}

span.view_duplicates {
    cursor: pointer;
    font-family: 'Material Symbols Outlined';
    position: absolute;
    padding: 12px;
    color: darkgrey;
    font-size: 22px;
    top: 0px;
    right: 0px;
}

.mapboxgl-ctrl-attrib {
    display: none; /* remove attribution information */
}

.mapboxgl-ctrl-geolocate {
    display: none !important; /* remove default geolocate button */
}

.geolocate-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #fff;
    border-radius: 50%;
    width: 49px;
    height: 49px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Material Symbols Outlined';
    font-weight: 500;
    font-size: 22px;
}

.geolocate-btn::before {
    font-variation-settings: 'FILL' 0;
    content: 'near_me';
    color: black;
}

.geolocate-btn.active::before {
    font-variation-settings: 'FILL' 1;
    color: #1a73e8;
}

/* without the background being shown (for popups)
    background: rgb(17, 17, 17);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)), rgb(17, 17, 17);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
*/