/* WordPress-specific map styles - prevents scrolling issues */
#abm-map-container {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#abm-map {
    position: relative;
    z-index: 1;
}

/* Leaflet Popup Styles - COMPACT VERSION */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
}

.leaflet-popup-content-wrapper {
    padding: 0;
    width: 180px !important;
    max-width: 180px !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.2;
    width: 180px !important;
    max-width: 180px !important;
    font-size: 11px;
}

/* Popup Header */
.pin-popup-header {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.1));
    padding: 0.4rem 0.6rem 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px 6px 0 0;
}

.pin-name {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1.1;
}

/* Description */
.pin-description {
    margin: 0;
    padding: 0.4rem 0.6rem;
    color: #f8fafc;
    font-size: 0.65rem;
    line-height: 1.2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Address */
.pin-address {
    margin: 0;
    padding: 0.4rem 0.6rem;
    font-style: italic;
    font-size: 0.6rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pin-icon {
    font-size: 0.7rem;
}

/* Images - 2 COLUMN GRID */
.pin-images {
    padding: 0.4rem 0.6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pin-image {
    width: 100%;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 45px;
    object-fit: cover;
    transition: transform 0.2s;
}

.pin-image:hover {
    transform: scale(1.05);
}

/* Delete Button */
.leaflet-popup-content .delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 0 0 6px 6px;
    cursor: pointer;
    width: 100%;
    margin: 0;
    font-weight: 600;
    font-size: 0.6rem;
    transition: all 0.2s;
    text-transform: uppercase;
}

.leaflet-popup-content .delete-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Close Button */
.leaflet-popup-close-button {
    color: #94a3b8 !important;
    font-size: 16px !important;
    padding: 2px 4px !important;
}

.leaflet-popup-close-button:hover {
    color: #f8fafc !important;
}

/* Keep popup compact */
.leaflet-popup {
    margin-bottom: 10px;
}

.leaflet-container {
    font-size: 11px;
}