/* 
 * Map toggle styles for mobile view
 */

@media (max-width: 991px) {
    /* Map toggle floating button */
    .map-toggle {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #E03103;
        color: #FFFFFF;
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 50px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .map-toggle img {
        width: 18px;
        margin-left: 8px;
        filter: brightness(0) invert(1); /* Make the icon white */
    }
    
    .map-toggle.showing-map:before {
        content: "Show Listings";
    }
    
    .map-toggle:not(.showing-map):before {
        content: "Show Map";
    }

    .map-search, .map-product {
        transition: all 0.3s ease-in-out;
    }
    
    /* Hide map by default in mobile */
    body .map-detail-sec .map-search {
        display: none !important;
    }
    
    /* Show listing by default in mobile */
    .map-product {
        display: block !important;
    }
    
    body.showing-map .map-search {
        display: block !important;
    }
    
    body.showing-map .map-product {
        display: none !important;
    }
} 