/* ===== Map container ===== */
#map {
    width: 100%;
    height: 500px;
    border: 1px solid #ccc;
    border-radius: 8px;
    /* margin-bottom: 20px; */
}

.custom-marker {
    width: 24px;
    height: 24px;
    background: #FF3D30;
    position: relative;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.custom-marker::after {
    content: '';
    width: 12px;
    height: 12px;
    margin: 6px 0 0 6px;
    background: white;
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== Hover effect for marker ===== */
.custom-marker:hover {
    transform: scale(1.2);
    background-color: #2a9fd6;
}

/* Padding inside the popup content */
.mapboxgl-popup-content {
    padding: 20px;
    /* padding inside content */
    font-family: Arial, sans-serif;
    color: #333;
}

/* Padding around the entire popup container (adds space around popup box itself) */
.mapboxgl-popup {
    padding: 10px;
    /* add some space outside content but inside popup container */
}

/* Style the popup title */
.popup-title {
    font-weight: bold;
    margin-top: 7px;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Close button styles */
.mapboxgl-popup-close-button {
    color: #FF3D30 !important;
    outline: none;
    box-shadow: none;
}

.mapboxgl-popup-close-button:focus {
    outline: none;
    box-shadow: none;
}

#store-list {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 5px !important;
}

.store-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.store-item:hover {
    background-color: #f0f0f0;
}

.store-item.active {
    background-color: #FF3D30;
    color: white;
}

#store-search {
    padding: 10px 12px;
    font-size: 14px;
    width: calc(100% - 24px);
    /* To account for padding */
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background-color: #fff;
    font-family: Arial, sans-serif;
}

#store-search::placeholder {
    color: #888;
}

#store-search:focus {
    border-color: #FF3D30;
    box-shadow: 0 0 0 2px rgba(255, 61, 48, 0.2);
}

/* Base styles for sidebar */
#store-list {
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Firefox */
#store-list {
    scrollbar-width: thin;
    /* options: auto | thin | none */
    scrollbar-color: #FF3D30 #f0f0f0;
    /* thumb color | track color */
}

/* WebKit (Chrome, Safari, Edge) */
#store-list::-webkit-scrollbar {
    width: 2px;
}

#store-list::-webkit-scrollbar-track {
    background: #f0f0f0;
}

#store-list::-webkit-scrollbar-thumb {
    background-color: #FF3D30;
    border-radius: 4px;
    border: 2px solid #f0f0f0;
}


/* Responsive behavior */
@media screen and (max-width: 768px) {
    #store-map-wrapper {
        flex-direction: column;
        /* height: auto; */
    }

    #left-panel {
        display: none !important;
        width: 100%;
        border-right: none;
        /* border-bottom: 1px solid #ddd; */
    }

    #map {
        width: 100% !important;
        padding: 0px;
    }

    #toggle-store-list {
        display: block;
    }
}