.wp-block-fourpalestine-map {
    position: relative;
    margin: 2rem 0;
}

.wp-block-fourpalestine-map.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

/* Two-column layout */
.map-container-wrapper {
    display: flex;
    gap: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Map column */
.map-column {
    flex: 1;
    min-width: 0;
}

.organization-map {
    width: 100%;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    background: #f4f4f4;
}

/* Sidebar column */
.map-sidebar {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    border-left: 1px solid #e0e0e0;
    max-height: var(--map-height, 500px);
    height: var(--map-height, 500px);
}

.map-sidebar-header {
    padding: 1.5rem;
    background: #fff;
    border-bottom: 2px solid #2c5f2d;
    flex-shrink: 0;
}

.map-sidebar-header h3 {
    margin: 0 0 1rem;
    color: #2c5f2d;
    font-size: 1.25rem;
}

/* Filters */
.map-filter {
    margin-bottom: 0.75rem;
}

.map-filter:last-child {
    margin-bottom: 0;
}

.org-search-input,
.city-filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.org-search-input:focus,
.city-filter-select:focus {
    outline: none;
    border-color: #2c5f2d;
    box-shadow: 0 0 0 2px rgba(44, 95, 45, 0.1);
}

/* Organizations list */
.map-orgs-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    min-height: 0;
}

.map-org-item {
    background: #fff;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.map-org-item:hover {
    border-color: #2c5f2d;
    box-shadow: 0 2px 6px rgba(44, 95, 45, 0.1);
}

.map-org-item.hidden {
    display: none;
}

.org-item-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.org-item-title a {
    color: #2c5f2d;
    text-decoration: none;
}

.org-item-title a:hover {
    text-decoration: underline;
}

.org-item-address {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
}

.org-item-address .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.org-locate-btn {
    background: transparent;
    border: 1px solid #2c5f2d;
    color: #2c5f2d;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
}

.org-locate-btn:hover {
    background: #2c5f2d;
    color: #fff;
}

.org-locate-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.no-orgs {
    text-align: center;
    color: #999;
    padding: 2rem 1rem;
}

/* Mobile responsive */
@media (max-width: 968px) {
    .map-container-wrapper {
        flex-direction: column;
    }
    
    .map-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .organization-map {
        border-radius: 8px 8px 0 0;
    }
    
    .map-orgs-list {
        max-height: 400px;
    }
}

.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

/* Leaflet map styles */
.leaflet-popup-content-wrapper {
    border-radius: 4px;
}

.leaflet-popup-content h3 {
    margin: 0 0 0.5rem;
    color: #2c5f2d;
}

.leaflet-popup-content p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.leaflet-popup-content a {
    color: #2c5f2d;
    text-decoration: none;
    font-weight: 500;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}
