/* Progress Bar Styles */
#progress-wrapper {
    display: none;
    padding-bottom: 1rem;
}

#progress-wrapper.show {
    display: block;
}

#progress {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    overflow: hidden;
    height: 1rem;
}

#progressbar {
    background-color: #007bff;
    width: 0%;
    height: 100%;
    transition: width 0.6s ease;
    color: #fff;
    text-align: center;
    line-height: 1rem;
    font-size: 0.75rem;
}

/* Modal Styles */
#tileListModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

#tileListModal .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 1rem;
    border: 1px solid #888;
    width: 80%;
}

#tileListModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#tileListModal .modal-header h5 {
    margin: 0;
}

#tileListModal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

#tileListModal .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #000;
    cursor: pointer;
}

/* Utility Classes */
.d-flex {
    display: flex;
}

.flex-grow-1 {
    flex-grow: 1;
}

.ml-2 {
    margin-left: 0.5rem;
}

.my-1 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}



/* this one is just for the maps single template and make it full screen */
.single-map .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
}

#acf-map {
    width: 100%;
    height: 500px;
    position: relative;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-surface);
    border-radius: var(--radius-s);
}
.leaflet-popup-tip {
    background: var(--bg-surface);
}

.leaflet-popup-content {
    width: 250px;
    max-width: 40rem;
}
.leaflet-popup-content p {
    margin-top: var(--space-4xs);
    margin-bottom: 0;
}
.leaflet-popup-content-wrapper a.btn.primary {
    color: var(--dark);
}

/* Buttons Icons */
.fa {
    font-size:15px;
}