/* EzzyFinda — styles for views/listings/map.blade.php (moved from inline <style>) */

.map-toolbar {
    background: #fff;
    border-bottom: 1px solid var(--ef-border);
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    z-index: 10;
    flex-shrink: 0;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    padding: .5rem .85rem;
    background: #fff;
    border: 1.5px solid var(--ef-border);
    border-radius: 99px;
    font-family: 'Jost', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ef-text);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    gap: 5px;
    white-space: nowrap;
}

.map-btn:hover, .map-btn.active {
    background: var(--ef-blue-pale);
    border-color: rgba(13,59,140,.25);
    color: var(--ef-blue);
}

/* Sidebar */
.map-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--ef-border);
    display: flex;
    flex-direction: column;
    transition: width .25s;
    overflow: hidden;
}

.map-sidebar.collapsed { width: 0; }

.map-sidebar-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--ef-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.map-sidebar-toggle {
    background: none;
    border: 1px solid var(--ef-border);
    border-radius: 6px;
    padding: .2rem .45rem;
    cursor: pointer;
    color: var(--ef-muted);
    font-size: .85rem;
    transition: background .12s;
}

.map-sidebar-toggle:hover { background: var(--ef-surface); }

.map-sidebar-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}

.map-listing-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--ef-border);
    cursor: pointer;
    transition: background .12s;
}

.map-listing-card:hover   { background: var(--ef-surface); }

.map-listing-card.active  { background: var(--ef-blue-pale); border-left: 3px solid var(--ef-blue); }

/* Popup */
.map-popup {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(13,59,140,.18);
    z-index: 1001;
    width: 280px;
    overflow: hidden;
}

.map-popup-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: rgba(0,0,0,.5);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: #fff;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}

/* Custom marker */
.ef-marker {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ef-marker img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .map-sidebar {
        position: absolute;
        left: 0; top: 0; bottom: 0;
        z-index: 999;
        width: 280px;
        transform: translateX(-100%);
        transition: transform .25s;
        box-shadow: 4px 0 20px rgba(0,0,0,.15);
    }
    .map-sidebar.mobile-open {
        transform: translateX(0);
    }
    .map-sidebar.collapsed { width: 280px; }
}
