/* KING_ROUTES_V1 */

.king-route-btn {
    width: 100%;
    border: 0;
    border-radius: 15px;
    padding: 17px 12px;
    margin: 14px 0;
    background: #f2b10f;
    color: #071d27;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.king-route-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.king-route-modal[hidden] {
    display: none !important;
}

.king-route-box {
    width: min(720px, 100%);
    max-height: 96vh;
    overflow-y: auto;
    background: #031f2b;
    border: 1px solid #f2b10f;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.king-route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.king-route-header h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.king-route-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ef2b2d;
    color: white;
    font-size: 21px;
    font-weight: bold;
    cursor: pointer;
}

.king-route-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.king-route-field label {
    display: block;
    margin-bottom: 6px;
    color: #f2b10f;
    font-size: 13px;
    font-weight: 800;
}

.king-route-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 9px;
    border: 1px solid #375463;
    border-radius: 9px;
    background: white;
    color: #111;
    font-size: 15px;
}

.king-route-search {
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 11px;
    padding: 14px;
    background: #10a94f;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

#kingRouteStatus {
    margin: 13px 0;
    padding: 10px;
    border-radius: 8px;
    background: #082c39;
    color: white;
    font-size: 14px;
    text-align: center;
}

#kingRouteMap {
    width: 100%;
    height: 55vh;
    min-height: 330px;
    border-radius: 13px;
    overflow: hidden;
    background: #ddd;
}

.king-route-info {
    margin-top: 12px;
    background: white;
    color: #17212b;
    border-radius: 11px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.king-route-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 9px;
    color: white;
    font-size: 13px;
}

@media(max-width:600px) {
    .king-route-fields {
        grid-template-columns: 1fr;
    }

    .king-route-box {
        padding: 12px;
    }

    #kingRouteMap {
        height: 48vh;
    }
}
