/* #block-c47807e04410b23be9ed
  {top:-124px;} */
    /* Spinner Styling */
#sold-map-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  margin-top:0!important;
}
.sold-map-spinner-icon {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#sold-map-spinner p {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

/* Custom Popup Styling */
.map-listing-popup {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0;
    width: 280px !important; /* Set a fixed width for consistency */
}
.map-listing-popup-content {
    position: relative;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    box-sizing: border-box;
}
.map-listing-popup-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
    border-radius: 8px;
}
.map-listing-popup-content h4,
.map-listing-popup-content .map-listing-details,
.map-listing-popup-content .map-listing-popup-button-container {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}
.map-listing-popup-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}
.map-listing-details p {
    margin: 0;
    font-size: 0.9rem;
}
.map-listing-popup-button-container {
    margin-top: 1rem;
    display: flex;
    justify-content: space-around;
}
.map-listing-popup-button-container button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.map-listing-popup-button-container button:hover {
    background-color: #2980b9;
}
.map-listing-popup-button-container button a {
    color: white;
    text-decoration: none;
}

/* Sidebar Filter Styling */
.checkbox-row {
/* display: flex;
flex-wrap: wrap;
flex-direction: column;
padding: 0;
justify-content: center;
gap: 0;
margin-bottom: 0; */
display: flex;
flex-wrap: wrap;
flex-direction: column;
padding: 0;
justify-content: flex-start;
gap: 0;
margin-bottom: 0;
align-items: flex-start;
align-content: flex-start;
}
.checkbox-row label {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}
.checkbox-row input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #666666;
}
.listing-count {
    margin-left: 12px;
    font-style: normal;
    color: #555;
}
.select-all-container {
/*     display: flex;
    justify-content: space-around;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    margin-top: 10px; 
    display: flex;
    justify-content: center;
    padding: 0px 0px;
    border-top: none;
    margin-top: 8px;*/
    display: flex;
    justify-content: space-evenly;
    padding: 0px 0px;
    border-top: none;
    margin: 12px 0 0 -30px;
    text-align: center;
    font-family: 'Karla', arial, sans-serif;
}
.select-all-container button {
    padding: 6px 6px;
    cursor: pointer;
    background:transparent;
    border:1px solid #aaaaaa;
    border-radius:4px;
    text-transform:uppercase;
    font-size:12px;

/*     padding: 8px 12px;
    cursor: pointer;
    background: transparent;
    border: 1px solid #606060;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 14px; */

}

.select-all-container button:hover {
    background:#f0f0f0;
}

/* Custom Re-center Control */
/* #sidebar {
    height:420px;
} */
#sidebar {
    height: 320px;
    left: 20px;
    /* width: 60px; */
}

@media screen and (max-width:768px){
#sidebar {
    height: 320px;
    left: 0px;
    border: none;
    box-shadow: none;
}
}



.sidebar-header {
    background-color: #666666;
    font-family:'Karla', Arial, Helvetica, sans-serif!important;
}
.sidebar-tabs > li.active, .sidebar-tabs > ul > li.active {
    background-color: #666666;
}
.leaflet-control-container {
    position: relative;
    top: 60px;
    z-index: 4000;
    left: 4px;
}
.leaflet-control-recenter {
    background-image: none;
    width: 34px;
    height: 34px;
    background-color: transparent;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left:20px!important;
}
.leaflet-control-recenter:hover {
    background-color: #f4f4f4;
}
.leaflet-control-recenter .fa-crosshairs {
    font-size: 16px;
    color: #333;
}

.leaflet-control-recenter .fa-crosshairs:hover {
    color: #f48132;
}


/* Map Legend Styling */
.map-legend-container {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    right:20px!important;
    top:250px!important;
    opacity:.75;
    text-align:center;
    width:100%;
}

@media screen and (max-width:768px){
.map-legend-container {
    padding: 6px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    right:3px!important;
    left:0px!important;
    top:70vh!important;
    opacity:.75;
    text-align:center;
    width:96%;
    margin-bottom:0!important;
}
}


.legend-icons-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    align-content: center;
}

@media screen and (max-width:768px){
.legend-icons-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 4px;
    align-content: center;}
}



.legend-item {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-direction: column;
    width: auto;
    border: 0px solid #f1f1f1;
    border-radius: 0px;
    padding: 0px 0;
    background: transparent;
    opacity:1;
    box-shadow:none;
}

@media screen and (max-width:768px){
.legend-item {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-direction: row;
    width: auto;
    border: 1px solid #f1f2f3;
    border-radius: 4px;
    background: transparent;
    opacity: 1;
    box-shadow: none;
    padding: 4px 4px;
}
}


.legend-item img {
    width: 16px;
    height: 24px;
    margin-right:8px;
}

@media screen and (max-width:768px){
.legend-item img {
    width: 12px;
    height: 18px;
    margin-right:4px;
}
}


@media screen and (max-width:768px){
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    left:-22px;
}
}


.leaflet-control-attribution {display:none;}

.leaflet-popup-close-button {
    cursor: pointer; /* Change cursor to pointer */
    z-index: 1001; /* Ensure it is above other elements */
}

/* Remove borders from Leaflet controls */
.leaflet-bar {
    border: none !important; /* Remove border */
    box-shadow: none !important; /* Remove any shadow */
}

.leaflet-control {
    border: none !important; /* Remove border from control */
}

/* Optional: Remove background color if needed */
.leaflet-control-zoom {
    background-color: transparent !important; /* Make background transparent */
    margin-left:20px!important;
    padding:0!important;
}

/* Optional: Adjust hover effects if needed */
.leaflet-control-zoom a {
    border: none !important; /* Remove border on hover */
    background-color:transparent!important; /* Make background transparent on hover */
}

.leaflet-control-zoom a:hover {
    background-color:#f4f4f4!important; /* Make background transparent on hover */
}


/* Sidebar styles */
/* .fa {
    color: #0074d9;
} */

/* Custom close button styling */
.sidebar-body-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    color: #666;
    float: right;
    transition: color 0.2s ease;
}

.sidebar-body-close:hover {
    color: #333;
    background-color: #f0f0f0;
    border-radius: 3px;
}

/* If placing in header */
.leaflet-sidebar-header .sidebar-body-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* If placing as a button in body content */
.sidebar-body .sidebar-body-close {
    margin: 10px 0;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    display: inline-block;
}

.sidebar-body .sidebar-body-close:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Fontawesome styling */
.fa {font-weight: 900 !important;}
