.leaflet-combined-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.leaflet-combined-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaflet-combined-right {
    flex: 1;
    min-width: 300px;
    position: relative;
    /* Map height will be set inline or via control, defaulting to min-height */
    min-height: 400px;
}

/* Form Styles */
.leaflet-route-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.leaflet-input-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.route-input {
    width: 100%;
    padding: 10px;
    padding-right: 30px;
    /* space for X */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.route-input-clear {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    display: none;
    /* Hidden by default */
}

.route-input:not(:placeholder-shown)+.route-input-clear {
    display: block;
}

.route-btn {
    padding: 10px 15px;
    border: none;
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.route-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.route-swap {
    font-size: 18px;
    padding: 9px 12px;
}

/* List Styles */
.route-stops-list-container {
    border: 1px solid #eee;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 4px;
    margin-top: 10px;
}

.route-stops-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.route-stops-list__item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.route-stops-list__item:hover {
    background-color: #f9f9f9;
}

.route-stops-list__item:last-child {
    border-bottom: none;
}

/* Popup and Map */
.leaflet-popup-content {
    font-family: inherit;
    font-size: 14px;
}

/* No Results Message */
.route-stops-no-results {
    padding: 12px;
    margin: 0;
    color: #666;
    text-align: center;
    font-style: italic;
}