#sidebarA {
    color: #323A54;
}


#filterResults {
    font-size: 12px;
    color: white;
    /* background-color: #28344B; */
    background-color: #28344B;
    margin-bottom: 1rem;
}

.theme {
    background-color: #060d24;

}

.select {
    font-style: italic;

}

#description {
    color: white;
    text-align: center;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
}

.icon {
    color: #1a74bd;
}

.blue-theme {
    color: white;
}

.mapboxgl-ctrl-geocoder--input {
    padding: 6px 30px;
    margin-left: 5px;
}

.listings .item {
    font-size: 14px;
    word-wrap: break-word;
    text-decoration: none;
    border-bottom: solid rgb(34, 33, 33, .3) 1px;
    color: black;

}

.listings .item:last-child {
    border-bottom: none;
}

.listings .item .title {
    display: inline-block;
    width: 100%;
    color: #2A395F;
    font-weight: 800;
    margin-top: 5px;
    text-decoration: none;
}


::-webkit-scrollbar {
    width: 3px;
    height: 3px;
    border-left: 0;
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-track {
    background: none;
}

::-webkit-scrollbar-thumb {
    border-radius: 0;
    background: #2A395F;
}


.clearfix {
    display: block;
}

.clearfix::after {
    content: '.';
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.mapboxgl-popup-content {
    font: 400 15px/22px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
    text-align: center;
    padding: 5;
    width: 220px;
    max-width: 20vw;
    max-height: 45vh;
    overflow: auto;
}

.mapboxgl-popup-close-button {
    display: none;
}

.mapboxgl-popup-content h3 {
    color: black;
    font-weight: 500;
    margin: 0;
    display: block;

}

#layer-control {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px;
    overflow: auto;
    max-width: 30vw;
}

/* Layer control sections */
.layer-section {
    margin-bottom: 6px;
    padding: 6px 8px 8px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fafafa;
}

.layer-section-title {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
    margin-bottom: 2px;
}

.traffic-section .dropdown-container {
    margin-top: 4px;
}

/* Parcel Filters: title + dropdown inline with small zoom note */
.layer-section-parcels .parcel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.layer-section-parcels .parcel-header-row .layer-section-title {
    margin-bottom: 0;
}

.layer-section-parcels .parcel-header-row .dropdown-container {
    margin-top: 0;
    margin-left: 8px;
}

.parcel-zoom-note {
    font-size: 10px;
    color: #777;
    margin-top: 4px;
}

/* Map Layers: inline checkboxes for non-traffic filters */
.layer-toggle-inline-row input[type="checkbox"] {
    margin-right: 2px;
}

.layer-toggle-inline-row > label {
    display: inline-block;
    margin-right: 8px;
    font-size: 11px;
}

.traffic-section {
    margin-top: 4px;
}

.traffic-master-row {
    display: flex;
    align-items: center;
    margin-top: 2px;
    margin-bottom: 4px;
}

.sqft-inputs-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}


.loading-message-hidden {
    display: none;
}

.loading-message-visible {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    z-index: 1000;
}


.sidebar-hidden {
    width: 0;
    overflow: hidden;
    transition: width 0.5s;
}

.sidebar-expand {
    width: 100%;
    transition: width 0.5s;
}

.layer-control-input {
    width: 5rem;
    height: 1.5rem;
}

/* .layer-control-button {
    width: 10rem;
    height: 1.5rem;
} */

/* CSS for layer-control-button */
.layer-control-button {
    cursor: pointer;
    padding: 5px 15px !important;
    margin: 2px;
    margin-top: 4px;
    border-top: none !important;
    border-left:rgba(0, 0, 0, 0.1)!important;
    border-radius: 4px !important;
    background-color: rgb(236, 240, 241, .5) !important;
    color: black;
    font-size: 13px;
    transition: all 0.3s ease !important;
    width:auto !important;
}

.layer-control-button:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
}

.layer-control-button:active {
    background-color: #003580;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.2);
}

/* parcel */
.dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}
.dropdown-content label {
    padding: 8px;
    display: flex;
    align-items: center;
}
.dropdown-content label:hover {
    background-color: #f1f1f1;
}
.dropdown-btn {
    background-color: #4CAF50;
    padding: 8px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    width: fit-content !important;
    text-align: left;
}
.dropdown-btn:disabled {
    background-color: lightgray;
    cursor: not-allowed;
}
.color-legend-box {
    width: 12px;
    height: 12px;
    margin-right: 8px;
}
.show {
    display: block;
}


/* CSS for buttonsContainer */
.buttonsContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center; /* Align items vertically */
}

.progress-ring {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#09f 0%, #09f var(--progress), transparent var(--progress));
    --progress: 0%;
}

/* .progress-ring::after {
    content: attr(data-progress);
    position: absolute;
    font-size: 8px;
    color: #000;
  } */


.sqft-listings-window {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 380px;
    max-width: 29vw;
    max-height: 27vh;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    /* Initially hidden */
    z-index: 1000;
    /* Ensures it stays on top of other elements */
}

.listings-table {
    width: 100%;
    border-collapse: collapse;
}

.listings-table th {
    border-bottom: 1px solid #eee;
    padding: 5px;
    text-align: left;
    font-size: 12px;
    color: grey;

}

.listings-table td {
    border-bottom: 1px solid #eee;
    padding: 5px;
    text-align: left;
}

.listings-table th {
    background-color: #f2f2f2;
}

.store-name {
    font-weight: bold;
    font-size: 14px;
}

.store-location {
    color: grey;
    font-size: 12px;
    display: block;
    /* Makes it appear on a new line */
}

.listings-header {
    font-size: 12px;
    font-weight: bold;
    color: #284277;
    padding: 10px;
    margin-bottom: 5px;
    border-bottom: 2px solid #ddd;
    background-color: #f9f9f9;
}

/* Style for a close button (optional) */
.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    background: none;
    cursor: pointer;
}

.downloadBtn{
    position: absolute;
    top: 5px;
    right: 15px;
    border: none;
    background: none;
    cursor: pointer;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Style for color legend inside layer control */
/* .color-legend {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5px;
    margin-bottom: 0px;
}

.color-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.color-legend-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #000;
} */

/* Additional CSS for the legend layout in two columns */
/* CSS for the two-section color legend layout */
.color-legend {
    display: flex; /* Use flexbox for overall layout */
    justify-content: space-between; /* Space between the two sections */
    margin-top: 10px;
    margin-bottom: 10px;
}

.color-legend-section {
    display: flex; /* Use flexbox for each section */
    flex-direction: column; /* Stack items vertically */
    flex-basis: 50%; /* Each section takes half of the legend width */
}

.color-legend-item {
    display: flex; /* Use flexbox for each legend item */
    align-items: center; /* Align items vertically */
    margin-bottom: 4px; /* Space between items */
}

.color-legend-box {
    width: 20px; /* Width of the color indicator */
    height: 20px; /* Height of the color indicator */
    margin-right: 8px; /* Space after the color indicator */
    border: 1px solid #000;
}

.color-legend-circle {
    width: 20px; /* Width of the color indicator */
    height: 20px; /* Height of the color indicator */
    border-radius: 50%; /* Make it round */
    border: 1px solid #000; /* White border, for visibility on white background */
    margin-right: 8px; /* Space after the color indicator */
}

.color-legend-label {
    font-size: 12px; /* Font size for the label */
}



/* custom map marker */
.custom-geocoder-marker {
    color: black;
}

/* Popup styling */
.dblclick-popup-title {
    font-size: 12px;
    font-weight: bold;
    color: #284277;
    padding: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.radius-input{
    width: 120px;
    margin: 5px;
}

.popup-submit-button {
    color: #284277;
    background-color: #f2f2f2;
    margin: 5px;
    font-size: 13px;
    border: 1px solid #284277;
    border-radius: 5px;
    padding: 4px 8px;
    transition: background-color 0.3s, color 0.3s;
}

.popup-submit-button:hover {
    background-color: #284277;
    color: #fff;
}

.popup-table-header {
    padding: 2px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
}

.popup-table-header {
    padding: 2px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
    border-bottom: 1px solid #ddd;
}

.popup-table-data {
    padding: 2px;
    text-align: right;
    font-size: 14px;
    font-weight:500;
    border-bottom: 1px solid #ddd;
}

.popup-mouse-over {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

/* Changing the tail color to light gray */
.popup-mouse-over .mapboxgl-popup-content::before,
.popup-mouse-over .mapboxgl-popup-content::after {
    color: lightgray !important;
}

/* Adjusting tip color (if needed) */
.popup-mouse-over .mapboxgl-popup-tip {
    color: lightgray !important;
}

.bookmark-controls {
    display: flex; /* Use flexbox to align items in a row */
    align-items: center; /* Align items vertically in the center */
    gap: 5px; /* Optional: Add some space between the elements */
    text-align: center;
    justify-content: center;
}

.bookmark-table {
    table-layout: fixed;
    width: 100%;
}

.bookmark-table th {
    border-bottom: 1px solid #eee;
    padding: 5px;
    text-align: left;
    font-size: 12px;
    color: grey;

}

.bookmark-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Style for unbookmarked (empty) icon */
.bookmark-button .icon-empty {
    color: #333; /* Default color for empty bookmark */
    /* display: inline-block; */
}

/* Style for bookmarked (filled) icon */
.bookmark-button .icon-filled {
    color: green; /* Green color for filled bookmark */
    display: none; /* Hidden by default */
}

/* Style for loading icon */
.bookmark-button .loading-icon {
    display: inline-block; /* Show the loading icon initially */
    border: 2px solid #f3f3f3; /* Light grey border */
    border-top: 2px solid #3498db; /* Blue color for the top border */
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
}


/* Heatmap */
.loading-heatmap .map-overlay {
    pointer-events: none;
    opacity: 0.7;
}

.loading-heatmap:after {
    content: "Loading heatmap...";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 9999;
}

/* Parcel loading indicator */
.parcel-loading-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 14px;
    pointer-events: none; /* Make it non-blocking */
}

.parcel-loading-indicator .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #3498db;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.parcel-loading-indicator span {
    color: #333;
}

/* Keyframe for spinning effect */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style for Toggle Button */
.toggle-bookmark-btn {
    order: -1;
    color: #284277;
    text-align: center;

}

.icon-size-15 {
    font-size: 15px;
}

/* Style for Bookmark Window */
.bookmark-window {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 400px;
    max-width: 29vw;
    max-height: 27vh;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    /* Initially hidden */
    z-index: 1000;
}

.bookmark-btn-content {
    display: flex;  /* Aligns items in a row */
    align-items: center;  /* Centers items vertically */
    justify-content: center;  /* Centers items horizontally */
    gap: 10px;  /* Adds some space between the icon and the text */
}


.bookmark-comment-input {
    /* flex-grow: 1; Allow the input to take up available space */
    /* Additional styling for the input (padding, border, etc.) */
    max-width: 120px;
}

.scrollable-table-cell {
    max-width: 100px;
    max-height: 60px;
    word-wrap: break-word;
    overflow: auto;
}

/* Sidebar minimization */
.minimize-button {
    position: absolute;
    top: 5;
    left: 0;
    z-index: 1000;
    cursor: pointer;
}

/* Minimized state styling */
#sidebarFull.minimized #sidebarA,
#sidebarFull.minimized #listings {
    display: none !important; /* Hide main content */
}

#sidebarFull.minimized {
    width: 60px; /* Adjust as needed */
    min-height: 60px; /* Adjust as needed */
}

/* Fiber Locator */
/* Default marker style using a placeholder icon */
.marker-icon {
    width: 30px;
    height: 30px;
    background-image: url('https://docs.mapbox.com/mapbox-gl-js/assets/custom_marker.png');
    background-size: cover;
    cursor: pointer;
  }




/* Responsive Styles */
@media (max-width: 768px) {
    #layer-control {
        position: fixed;
        right: -100%; /* Start off-screen */
        transition: right 0.3s ease-in-out;
        padding: 10px;
        background-color: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1000; /* Ensure it's above other elements */
    }


    /* Toggle button for showing and hiding the layer control panel */
    .layer-control-toggle {
        position: fixed;
        right: 0; /* Position it at the right edge of the screen */
        top: 5px; /* Align with the top of the layer control */
        width: 30px;
        height: 30px;
        background-color: #f0f0f0;
        border: none;
        border-radius: 0 4px 4px 0; /* Rounded corners on the left side */
        box-shadow: -1px 0 3px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1010; /* Higher z-index to make it clickable */
    }

    .toggle-bookmark-btn {
        width: 100%;
    }

    div#sidebarA {
        display: none !important;
    }

    .bookmark-window {
        width: 75vw !important;
        min-width: 65vw;
        max-width: 80vw;

    }

    .mapboxgl-popup {
        max-width: 40vw !important;
        max-height: 30vh !important;
    }

    .mapboxgl-popup-content {
        max-width: 40vw !important;
        max-height: 30vh !important;
    }

    .sqft-listings-window {
        max-width: 70vw !important;
    }

    .buttonsContainer {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #layer-control {
        position: fixed;
        right: -100%; /* Start off-screen */
        transition: right 0.3s ease-in-out;
        padding: 10px;
        background-color: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1000; /* Ensure it's above other elements */
        max-height: 30vh;
        overflow: scroll;
    }


    /* Toggle button for showing and hiding the layer control panel */
    .layer-control-toggle {
        position: fixed;
        right: 0; /* Position it at the right edge of the screen */
        top: 5px; /* Align with the top of the layer control */
        width: 30px;
        height: 30px;
        background-color: #f0f0f0;
        border: none;
        border-radius: 0 4px 4px 0; /* Rounded corners on the left side */
        box-shadow: -1px 0 3px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1010; /* Higher z-index to make it clickable */
    }

    div#sidebarA {
        display: none !important;
    }

    .toggle-bookmark-btn {
        width: auto;
    }

    .bookmark-window {
        width: auto !important;
        min-width: 30vw;
        max-width: 40vw;
        height: 50vh !important;
        min-height: 40vh;
        max-height: 60vh;
    }

    div#sidebarFull {
        width: 25vw !important;
        min-width: 20vw;
        max-width: 30vw;
    }

}

@media (min-width: 1025px) {
    #layer-control {
        position: fixed;
        right: 0;
        transition: right 0.3s ease-in-out;
        padding: 10px;
        background-color: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1000; /* Ensure it's above other elements */
    }


    /* Toggle button for showing and hiding the layer control panel */
    .layer-control-toggle {
        position: fixed;
        right: 0; /* Position it at the right edge of the screen */
        top: 5px; /* Align with the top of the layer control */
        width: 30px;
        height: 30px;
        background-color: #f0f0f0;
        border: none;
        border-radius: 0 4px 4px 0; /* Rounded corners on the left side */
        box-shadow: -1px 0 3px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1010; /* Higher z-index to make it clickable */
    }

    .toggle-bookmark-btn {
        width: 100%;
    }

    div#sidebarFull {
        width: 17vw !important;
        min-width: 15vw;
        /* max-width: 20vw; */
    }

    .mapboxgl-popup {
        max-width: 30vw !important;
        max-height: 40vh !important;
    }

    .mapboxgl-popup-content {
        max-width: 30vw !important;
        max-height: 40vh !important;
    }
}

/* Radius calculation loading indicator */
.radius-loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    z-index: 1000;
    padding: 10px;
    display: none;
}

.radius-loading-active .radius-loading-indicator {
    display: block;
}
