﻿#gnmSearchPanel {
    position: fixed;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 540px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #000;
    display: block;
}

.gnmPanelBody {
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 4px;
}

.gnmInputRow {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
    position: relative;
    background: #fff;
    width: 100%;
}

#gnmCoordInput {
    flex: 1;
    min-width: 0;
    margin: 0;
    border: none !important;
    outline: none !important;
    padding: 9px 12px;
    font-size: 13px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    background: transparent;
    border-radius: 4px 0 0 4px; 
}

    #gnmCoordInput::placeholder {
        color: #aaa;
    }

    #gnmCoordInput:focus {
        outline: 0;
    }

    #gnmCoordInput:disabled {
        background: #f5f5f5;
        cursor: default;
    }

.gnmModeWrap {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

#gnmModeBtn {
    display: flex;
    align-items: center;
    background: #dd6a17;
    color: #ffffff;
    border: none;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    white-space: nowrap;
    min-width: 162px;
    justify-content: space-between;
    gap: 8px;
    transition: background-color 125ms ease-in-out;
    height: 100%;
    justify-content: space-around;
}

    #gnmModeBtn:hover {
        background: #c25c12;
    }

/* ── MODE DROPDOWN MENU ── */
#gnmModeMenu {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    width: 160px;
    z-index: 300;
    overflow: hidden;
}

    #gnmModeMenu.gnmMenuOpen {
        display: block;
    }

.gnmModeOpt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 300;
    color: #333;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: background 0.1s;
}

    .gnmModeOpt i {
        width: 16px;
        text-align: center;
    }

    .gnmModeOpt:hover {
        background: #f8f9fa;
    }

    .gnmModeOpt.gnmSel {
        background: #dd6a17;
        color: #fff;
    }

/* ── AUTOSUGGEST LIST MENU ── */
.gnmSuggestList {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 200;
    max-height: 250px;
    overflow-y: auto;
}

.gnmSuggestItem {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    padding: 10px 14px; 
    font-size: 13px;
    color: #555555;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    cursor: pointer;
    border-bottom: 1px solid #eaeced;
    transition: all 0.15s ease;
}

    .gnmSuggestItem i {
        color: #a0aab2;
        font-size: 14px;
        margin-right: 10px;
    }

    .gnmSuggestItem:last-child {
        border-bottom: none;
    }

    /* Hover state */
    .gnmSuggestItem:hover {
        background-color: #f8f9fa;
        color: #dd6a17; 
    }

        .gnmSuggestItem:hover i {
            color: #dd6a17; 
        }

.gnmDistRow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

    .gnmDistRow label {
        font-size: 13px;
        font-weight: 400;
        color: #495057;
        min-width: 64px;
        font-family: 'Roboto', sans-serif;
    }

#gnmDistSlider {
    flex: 1;
    accent-color: #272f8e;
    cursor: pointer;
    height: 4px;
}

#gnmDistLabel {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    min-width: 90px;
    text-align: right;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
}

.gnmActionRow {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

#gnmCheckBtn, #gnmClearBtn {
    border: none;
    color: #fff;
    padding: 8px 22px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
    transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

    #gnmCheckBtn:hover, #gnmClearBtn:hover {
        box-shadow: 0 3px 8px 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
    }

#gnmCheckBtn {
    background: #272f8e;
}

    #gnmCheckBtn:disabled {
        background: #8d92c1;
        cursor: not-allowed;
        box-shadow: 0 2px 2px 0 rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.05);
    }

#gnmClearBtn {
    background: #a9a9a9;
}

.gnmResultDivider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 14px 0 10px;
}

#gnmResultSection {
    overflow: visible;
}

.gnmResultContent {
    padding: 2px 0 4px;
}

#gnmResultIcon {
    display: none;
}

#gnmResultMsg {
    display: block;
    background-color: #fde8e8;
    color: #c0392b;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

    #gnmResultMsg.gnmMsgAvailable {
        background-color: #e6f9ed;
        color: #1a7a3c;
    }

    #gnmResultMsg strong {
        display: block;
        margin-bottom: 5px;
        font-size: 14px;
    }

    #gnmResultMsg p {
        margin: 3px 0 0;
    }

body.gnmMarking #viewDiv {
    cursor: crosshair !important;
}

.gnmValidationError {
    margin-top: 10px;
    padding: 7px 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
}

#gnmToast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 30, 0.80);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 600;
    pointer-events: none;
    display: none;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

#gnmApplyBtn {
    background: linear-gradient(135deg, rgb(255 167 104) 0%, rgb(226 136 70) 50%, rgb(232 137 68) 52%, rgb(148 69 13) 100%);
    color: #ffffff;
    border: 1px solid #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    padding: 5px 15px;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    transition: background-color 125ms ease-in-out;
    margin-left: auto; 
}

    #gnmApplyBtn:hover {
        background: linear-gradient(135deg, rgb(226 136 70) 0%, rgb(200 110 40) 50%, rgb(200 110 40) 52%, rgb(130 55 5) 100%);
        color: #ffffff;
    }