
    .popup-img {
        width: 120px;
        height: 120px;
        border-radius: 5px;
        cursor: pointer;
    }

    .popup-txt {
        text-align: center;
        font-family: Montserrat-Light, serif;
        font-size: 1.5rem;
        font-weight: bold;
        color: #1f6b12;
        line-height: 1.2;
        margin-top: 4px;
        width: 120px;
        cursor: pointer;

    }
    .custom_locate {
        position: absolute;
        font-size: 2rem;
        font-weight: bold;
        color: #1f6b12;
        line-height: 30px;
        bottom: 30px;
        right: 10px;
        width: 30px;
        height: 30px;
        z-index: 1000;
        box-shadow: 0 1px 5px rgba(0,0,0,0.65);
        border-radius: 4px;
        border-bottom: none;
        cursor: pointer;

        text-align: center;
        background-color: #fff;
        background-image: url(https://sitenear.com/frontend/images/bullseye.svg);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center center;
        background-origin: content-box;
        padding: 0.125em;
    }


    .custom_locate.disabled {
        background-color: #ccc;
    }

    .option-dialog-buttons { margin: 0 2em; }
    .order-1 { order: 1; }
    .order-2 { order: 2; }
    .order-3 { order: 3; }

    .right-gap {
        margin-right: auto;
    }

    .option-geo-input {
        display: inline-block;
        margin-top: 2em;
    }


    div.customize-locate-options {
        display: none ;
        cursor: pointer;
    }
    div.custom_locate_side {
        position: absolute;
        bottom: 30px;
        right: 80px;
        background-color: black;
        color: white;
        font-weight: bold;
        padding: .2em;
        text-align: center;
    }

    div.custom_locate_side .line {
        display: block;
    }
    div.custom_locate_side .smalls {
        font-size: 80%;
    }

    div.location-pointer {
        width: 0;
        height: 0;
        border-top: 20px solid transparent;
        border-bottom: 30px solid transparent;
        border-left: 30px solid black;
        position: absolute;
        bottom: 25px;
        right: 42px;
    }

    /* On mobile, the fixed floating search button (.sitenear-floating-search-btn,
       bottom-right of the viewport) overlaps the locate/bullseye button, which sits
       bottom-right of the map itself. Move the locate button to the top-right corner
       of the map instead, where it's clear of both the search button and the
       top-left zoom controls. */
    @media (max-width: 479px) {
        .custom_locate {
            bottom: auto;
            top: 10px;
            right: 10px;
        }
        div.custom_locate_side {
            bottom: auto;
            top: 10px;
            right: 80px;
        }
        div.location-pointer {
            bottom: auto;
            top: 5px;
            right: 42px;
        }
    }

    /* On wider mobile/tablet screens (no floating search button, so the locate button stays
       bottom-right), lift it clear of the fixed tab bar using the same measured clearance
       as the Leaflet controls below (--sitenear-map-footer-clearance, set by
       sitenearAdjustMapControlsClearance() in mapframe.blade.php). The 30px fallback is
       used only until that JS measurement has run. */
    @media  only screen and (min-width: 480px) and (max-width: 991px) {
        .custom_locate {
            bottom: var(--sitenear-map-footer-clearance, calc(env(safe-area-inset-bottom, 0px) + 30px));
        }
        div.custom_locate_side {
            bottom: var(--sitenear-map-footer-clearance, calc(env(safe-area-inset-bottom, 0px) + 30px));
        }
        div.location-pointer {
            bottom: calc(var(--sitenear-map-footer-clearance, calc(env(safe-area-inset-bottom, 0px) + 30px)) - 5px);
        }
    }


    .custom-confirmation-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        border: 2px solid #1f6b12;
        padding: 1.5rem;
        width: 320px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1600;
        text-align: center;
        border-radius: 8px;
    }

    .location-coordinates {
        margin: 15px 0;
        padding: 10px;
        background-color: #f8f9fa;
        border-radius: 4px;
        font-family: monospace;
        font-size: 14px;
    }

    .custom-confirmation-buttons {
        margin-top: 20px;
        display: flex;
        justify-content: space-around;
    }

    .custom-confirmation-buttons button {
        padding: 10px 24px;
        font-size: 14px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
        min-width: 100px;
    }

    .confirm-yes {
        background-color: #28a745;
        color: white;
        border: none;
        transition: background-color 0.3s ease;
    }

    .confirm-no {
        background-color: #dc3545;
        color: white;
        border: none;
        transition: background-color 0.3s ease;
    }

    .confirm-yes:hover {
        background-color: #218838;
    }

    .confirm-no:hover {
        background-color: #c82333;
    }
    /* Styles for SweetAlert2 customization */
    .custom-swal-popup {
        background-color: white;
        border: 2px solid #1f6b12;
        border-radius: 8px;
        padding: 1.5rem;
        width: 320px !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    }

    .custom-swal-title {
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #333 !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
    }

    .custom-swal-actions {
        margin-top: 20px !important;
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .custom-swal-confirm-button {
        padding: 10px 24px !important;
        font-size: 14px !important;
        border-radius: 4px !important;
        cursor: pointer;
        font-weight: 500 !important;
        min-width: 100px;
        background-color: #28a745 !important;
        color: white !important;
        border: none !important;
        transition: background-color 0.3s ease !important;
        margin: 0 !important;
    }

    .custom-swal-cancel-button {
        padding: 10px 24px !important;
        font-size: 14px !important;
        border-radius: 4px !important;
        cursor: pointer;
        font-weight: 500 !important;
        min-width: 100px;
        background-color: #dc3545 !important;
        color: white !important;
        border: none !important;
        transition: background-color 0.3s ease !important;
        margin: 0 !important;
        order: -1 !important; /* Makes cancel button appear first */
    }

    .custom-swal-confirm-button:hover {
        background-color: #218838 !important;
    }

    .custom-swal-cancel-button:hover {
        background-color: #c82333 !important;
    }

    /* Remove SweetAlert2 focus outline */
    .custom-swal-confirm-button:focus,
    .custom-swal-cancel-button:focus {
        box-shadow: none !important;
    }

    /* Override SweetAlert2 icon colors for info message */
    .swal2-icon.swal2-info {
        border-color: #1f6b12 !important;
        color: #1f6b12 !important;
    }

    .swal2-html-container {
        font-size: 2em;
        text-align: justify;
    }
    .swal2-styled.swal2-confirm{
        font-size: 1.5em;
    }

    .swal2-styled.swal2-cancel{
        font-size: 1.5em;
    }

    /* Fix Issue 1: Ensure hamburger menu appears above map zoom controls */
    @media (max-width: 767px) {
        #bs-example-navbar-collapse-1 {
            z-index: 1100 !important;
        }
    }

    /* Fix Issue 2: Ensure map ruler/scale (bottom-left) and attribution (bottom-right)
       always appear above the bottom tabs, attached to the bottom of the map itself.
       Margin-bottom goes on the .leaflet-bottom corner containers (not the individual
       controls) so each stays anchored right above the real fixed footer height (see
       .footer-nav.sitenear-footer). The floating search button (see
       floating-search-styles.blade.php) is pushed up further so it clears the attribution
       text with a visible gap instead of overlapping it. A `bottom` offset would have no
       effect here since these are statically-positioned/floated elements.

       The map's own height is vh-based while the tab bar's height is fixed px, so those
       two don't scale together across screen sizes - a single hardcoded px/vh clearance
       value that looks right on a phone can be wrong on a tablet (different aspect ratio).
       --sitenear-map-footer-clearance is the actual measured overlap between the map's
       rendered bottom edge and the tab bar's top edge (see
       sitenearAdjustMapControlsClearance() in mapframe.blade.php); the calc() here is only
       a fallback used until that JS measurement has run. */
    @media  only screen and (max-width: 991px) {
        .leaflet-bottom.leaflet-left,
        .leaflet-bottom.leaflet-right {
            margin-bottom: var(--sitenear-map-footer-clearance, calc(env(safe-area-inset-bottom, 0px) + 30px)) !important;
        }
    }

    /* Cluster Preview Popup Styles */
    .sitenear-cluster-preview-popup .leaflet-popup-content-wrapper {
        background: white;
        border-radius: 8px;
        box-shadow: 0 3px 14px rgba(0,0,0,0.4);
        padding: 0;
        min-width: 280px;
        max-width: 320px;
    }

    .sitenear-cluster-preview-popup .leaflet-popup-content {
        margin: 0;
        width: 100% !important;
    }

    .sitenear-cluster-preview-popup .leaflet-popup-tip {
        background: white;
    }

    .sitenear-cluster-preview {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }

    .cluster-preview-header {
        background: linear-gradient(135deg, #1f6b12 0%, #3d9b1c 100%);
        color: white;
        padding: 12px 16px;
        font-weight: 600;
        font-size: 14px;
        border-radius: 8px 8px 0 0;
        text-align: center;
    }

    .cluster-preview-list {
        max-height: 300px;
        overflow-y: auto;
        padding: 8px 0;
    }

    .cluster-preview-list::-webkit-scrollbar {
        width: 6px;
    }

    .cluster-preview-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .cluster-preview-list::-webkit-scrollbar-thumb {
        background: #1f6b12;
        border-radius: 3px;
    }

    .cluster-preview-list::-webkit-scrollbar-thumb:hover {
        background: #3d9b1c;
    }

    .cluster-preview-item {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        cursor: pointer;
        transition: background-color 0.2s ease;
        border-bottom: 1px solid #f0f0f0;
    }

    .cluster-preview-item:hover {
        background-color: #f8f9fa;
    }

    .cluster-preview-item:last-child {
        border-bottom: none;
    }

    .cluster-preview-item img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 12px;
        flex-shrink: 0;
        border: 2px solid #e0e0e0;
    }

    .cluster-preview-name {
        font-size: 13px;
        color: #333;
        font-weight: 500;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .cluster-preview-more {
        padding: 12px 16px;
        text-align: center;
        font-size: 12px;
        color: #666;
        font-style: italic;
        background-color: #f8f9fa;
        border-top: 1px solid #e0e0e0;
    }

    .cluster-preview-footer {
        padding: 10px 16px;
        text-align: center;
        font-size: 11px;
        color: #999;
        border-top: 1px solid #e0e0e0;
        background-color: #fafafa;
        border-radius: 0 0 8px 8px;
    }

    /* ========================================
       PROFESSIONAL MAP MARKER STYLES
       Three options: Switch by commenting/uncommenting sections
       ======================================== */

    /* OPTION 1: MINIMAL PIN MARKERS (RECOMMENDED - Most Professional) */
    /* Compact markers with image only, text shows on hover */
    .sitenear-marker-container {
        width: 42px;
        height: 54px;
        margin-left: -21px;
        margin-top: -54px;
        position: relative;
        cursor: pointer;
        transition: transform 0.2s ease;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
    }

    .sitenear-marker-container:hover {
        transform: scale(1.15);
        z-index: 1000 !important;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    }

    .sitenear-marker-wrapper {
        position: relative;
        width: 42px;
        height: 42px;
    }

    .sitenear-marker-image {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 4px solid white;
        box-shadow: 0 0 0 2px #1f6b12,
                    0 3px 10px rgba(0, 0, 0, 0.4);
        object-fit: cover;
        display: block;
        background: white;
    }

    .sitenear-marker-badge {
        display: none; /* Hidden - not needed */
    }

    .sitenear-marker-label {
        display: none;
        position: absolute;
        top: -36px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        color: white;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        pointer-events: none;
        z-index: 1001;
        letter-spacing: 0.3px;
        backdrop-filter: blur(8px);
    }

    .sitenear-marker-label::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #1f2937;
        filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
    }

    .sitenear-marker-container:hover .sitenear-marker-label {
        display: block;
        animation: fadeInLabel 0.2s ease-out;
    }

    @keyframes  fadeInLabel {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }

    /* Modern styling for private site marker labels */
    .sitenear-marker-label.sitenear-private-site {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow:
            0 4px 15px rgba(102, 126, 234, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .sitenear-marker-label.sitenear-private-site::after {
        border-top-color: #667eea !important;
    }

    /* Alternative: If you prefer a more subtle gray style, uncomment below and comment the gradient above */
    /*
    .sitenear-marker-label.sitenear-private-site {
        background: #374151 !important;
        color: white !important;
        border: 2px solid #6b7280;
        box-shadow: 0 4px 12px rgba(55, 65, 81, 0.5);
    }

    .sitenear-marker-label.sitenear-private-site::after {
        border-top-color: #374151 !important;
    }
    */

    /* Keep the original sitenear-private-site for other elements */
    .sitenear-private-site:not(.sitenear-marker-label) {
        background: rgba(243, 244, 246, 1) !important;
    }

    /* Add extra visual prominence for private markers */
    .sitenear-marker-container:has(.sitenear-private-badge) .sitenear-marker-image {
        box-shadow:
            0 0 0 2px rgba(102, 126, 234, 0.6),
            0 3px 10px rgba(102, 126, 234, 0.4);
    }

    /* Hide default Leaflet marker icon class */
    .my-div-icon {
        background: transparent !important;
        border: none !important;
    }

    /* Optional: Subtle pulse animation to draw attention (subtle on initial load) */
    @keyframes  markerPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }

    /* Uncomment below to enable subtle pulse animation on markers */
    .sitenear-marker-wrapper {
        animation: markerPulse 2s ease-in-out infinite;
    }

    /* Highlighted marker styles (when hovering over place list) */
    .sitenear-marker-container.sitenear-marker-highlighted {
        transform: scale(1.3) !important;
        z-index: 10000 !important;
        filter: drop-shadow(0 6px 20px rgba(31, 107, 18, 0.8)) !important;
    }

    .sitenear-marker-container.sitenear-marker-highlighted .sitenear-marker-image {
        box-shadow: 0 0 0 4px #1f6b12,
                    0 0 20px rgba(31, 107, 18, 0.6),
                    0 6px 20px rgba(0, 0, 0, 0.5) !important;
        border-width: 5px !important;
    }

    .sitenear-marker-container.sitenear-marker-highlighted .sitenear-marker-label {
        display: block !important;
        animation: fadeInLabel 0.2s ease-out;
    }

    /* Temporary highlight marker (appears on top of clusters) */
    .sitenear-temp-highlight-marker {
        background: transparent !important;
        border: none !important;
    }


    /* ========================================
       OPTION 2: COMPACT BADGE STYLE
       Uncomment this section and comment Option 1 to use
       ======================================== */
    /*
    .sitenear-marker-container {
        width: 26px;
        height: 26px;
        margin-left: -13px;
        margin-top: -13px;
        position: relative;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .sitenear-marker-container:hover {
        transform: scale(1.2);
        z-index: 1000 !important;
    }

    .sitenear-marker-wrapper {
        position: relative;
        width: 26px;
        height: 26px;
    }

    .sitenear-marker-image {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 2px solid #1f6b12;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25),
                    0 0 0 1px rgba(255, 255, 255, 0.5);
        object-fit: cover;
        display: block;
        background: white;
    }

    .sitenear-marker-badge {
        display: none;
    }

    .sitenear-marker-label {
        display: none;
        position: absolute;
        top: -32px;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        color: #333;
        padding: 4px 8px;
        border-radius: 3px;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        border: 1px solid #1f6b12;
        pointer-events: none;
        z-index: 1001;
    }

    .sitenear-marker-container:hover .sitenear-marker-label {
        display: block;
    }

    .sitenear-private-badge {
        border-color: #ff6b6b !important;
    }

    .my-div-icon {
        background: transparent !important;
        border: none !important;
    }
    */


    /* ========================================
       OPTION 3: GOOGLE MAPS STYLE
       Uncomment this section and comment Option 1 to use
       ======================================== */
    /*
    .sitenear-marker-container {
        width: 36px;
        height: 48px;
        margin-left: -18px;
        margin-top: -48px;
        position: relative;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .sitenear-marker-container:hover {
        transform: scale(1.1);
        z-index: 1000 !important;
    }

    .sitenear-marker-wrapper {
        position: relative;
        width: 36px;
        height: 36px;
        background: white;
        border-radius: 50% 50% 50% 0;
        transform: rotate(-45deg);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
        border: 3px solid #1f6b12;
        overflow: hidden;
    }

    .sitenear-marker-image {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
        background: white;
    }

    .sitenear-marker-badge {
        display: none;
    }

    .sitenear-marker-label {
        display: none;
        position: absolute;
        bottom: 52px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        pointer-events: none;
        z-index: 1001;
    }

    .sitenear-marker-container:hover .sitenear-marker-label {
        display: block;
    }

    .sitenear-private-badge {
        border-color: #ff6b6b !important;
    }

    .my-div-icon {
        background: transparent !important;
        border: none !important;
    }
    */

