.map-widget {
    width: 100%;
    max-width: 900px;
    margin: 0.1rem auto;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    overflow: visible;
}

.route-map {
    width: 100%;
    height: 450px;
}

.map-widget-controls {
    display: flex;
    gap: 10px;
    padding: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.map-button {
    border: 1px solid #ccc;
    background: #00635d;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    min-width: 0;
    flex-shrink: 1;
}

.map-button:hover {
    background: #f5f5f5;
}

.map-button-primary {
    color: white;
    background: #00635d;
    border-color: #00635d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-button-primary:hover {
    background: #1d4ed8;
}

.route-info {
    padding: 0 15px 15px;
    font-size: 15px;
}

.map-button-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.map-button-text {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .route-map {
        height: 350px;
    }

    .map-button {
        width: 100%;
        flex: 1 1 100%;
    }

    .map-button-text {
        white-space: normal;
        text-align: center;
    }
}
