.loop-map-wrapper {
    position: relative;
    width: 100%;
}

.loop-map-container {
    width: 100%;
    min-height: 300px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1; /* Leaflet z-index fix */
}

/* Leaflet Popup Styling Overrides */
.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 0;
    width: 250px !important;
}

.loop-map-popup {
    width: 100%;
    font-family: inherit;
}

.loop-map-popup-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.loop-map-popup-content {
    padding: 15px;
}

.loop-map-popup h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.loop-map-popup p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.loop-map-popup a.loop-map-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.loop-map-popup a.loop-map-btn:hover {
    background-color: #005177;
    color: #fff;
}
