.texas-service-map-1002fd78-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%; /* Default, can be overridden by Elementor control */
    margin: 0 auto;
}

.tx-map-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: transparent;
}

.tx-map-container svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
}

.tx-map-container path {
    cursor: pointer;
    vector-effect: non-scaling-stroke;
}

.tx-map-container path:hover {
    outline: none;
    z-index: 10;
}

.tx-map-loading,
.tx-map-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: sans-serif;
    color: #666;
    text-align: center;
}

/* Legend Styles */
.tx-map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 20;
    min-width: 150px;
}

.tx-map-legend-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.tx-map-legend-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tx-map-legend-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.tx-map-legend-list li:last-child {
    margin-bottom: 0;
}

.tx-map-legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

.tx-map-legend-name {
    flex-grow: 1;
}

@media (max-width: 767px) {
    .tx-map-legend {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        box-shadow: none;
        border: 1px solid #eee;
    }
}