#search-map {
    height: 100%;
    min-height: 420px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(23, 43, 99, 0.15);
    overflow: hidden;
}

.map-container {
    position: relative;
}

.route-controls {
    border-radius: 18px;
    z-index:1000
}

.route-controls .toggle-btn,
.route-controls .toggle-btn-close {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
}

.route-controls .panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.route-controls .panel.open {
    max-height: 600px;
}

.route-controls .panel-content {
    padding-top: 0.75rem;
}

.route-controls .flexbox {
    gap: 0.25rem;
}

#routeInfo,
#routeInfolist {
    direction: rtl;
}

.sug-box {
    z-index: 1050;
}

.autocomplete {
    position: relative;
}

.autocomplete .suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1;
    background: #fff;
    border: 1px solid #e5e5e5;
    max-height: 300px;
    overflow: auto;
    border-radius: 0 0 12px 12px;
}

.autocomplete .suggestions button {
    display: block;
    width: 100%;
    text-align: right;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.autocomplete .suggestions button:hover {
    background: #f6f6f6;
}

@media (max-width: 992px) {
    #search-map {
        min-height: 360px;
    }

    .route-controls {
        left: 50% !important;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    #search-map {
        min-height: 280px;
    }

    .route-controls {
        width: 95% !important;
        padding: 0.75rem !important;
    }

    .route-controls .flexbox {
        flex-wrap: wrap;
    }
}
