
* {
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Tahoma, Arial, sans-serif;
}


/* =====================================================
           MAP
        ====================================================== */

#map {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #e5e5e5;
}


/* =====================================================
           LOCATION PANEL
        ====================================================== */

.location-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 330px;
    padding: 18px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}


.subtitle {
    font-size: 12px;
    color: #777;
    line-height: 1.8;
    margin-bottom: 14px;
}


/* =====================================================
           ADDRESS
        ====================================================== */

.address-box {
    padding: 12px;
    margin-bottom: 10px;
    background: #f4f6f8;
    border-radius: 12px;
    direction: rtl;
}


.address-title {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}


#address {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.8;
    color: #222;
    word-break: break-word;
}


/* =====================================================
           COORDINATES
        ====================================================== */

.coordinate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    padding: 9px 11px;
    margin-bottom: 7px;
    background: #f4f6f8;
    border-radius: 9px;
    font-family: Consolas, monospace;
    font-size: 12px;
}


.coordinate-label {
    color: #888;
    font-family: Tahoma, Arial, sans-serif;
}


.coordinate-value {
    color: #222;
    font-weight: bold;
}


/* =====================================================
           BUTTONS
        ====================================================== */

.buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}


    .buttons button {
        flex: 1;
        border: none;
        border-radius: 10px;
        padding: 11px 8px;
        cursor: pointer;
        font-family: Tahoma, Arial, sans-serif;
        font-size: 13px;
        transition: all .2s ease;
    }


.btn-location {
    color: white;
    background: #1677ff;
}


    .btn-location:hover {
        background: #075fd1;
    }


.btn-clear {
    color: #555;
    background: #edf0f3;
}


    .btn-clear:hover {
        background: #dfe3e7;
    }


/* =====================================================
           HINT
        ====================================================== */

.hint {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 9px 18px;
    border-radius: 30px;
    background: rgba(30, 30, 30, .82);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}


/* =====================================================
           TARGET
        ====================================================== */

.target {
    width: 44px;
    height: 44px;
    position: relative;
}


.target-horizontal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 3px;
    transform: translate(-50%, -50%);
    background: #1677ff;
}


.target-vertical {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: #1677ff;
}


.target-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 25px;
    height: 25px;
    transform: translate(-50%, -50%);
    border: 3px solid #1677ff;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    z-index: 3;
}


.target-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translate(-50%, -50%);
    border: 2px solid white;
    border-radius: 50%;
    background: #1677ff;
    z-index: 5;
}


/* =====================================================
           OPENLAYERS CONTROLS
        ====================================================== */

.ol-zoom {
    top: auto !important;
    bottom: 75px !important;
    left: 15px !important;
}


.ol-control button {
    background: rgba(255,255,255,.95) !important;
    color: #333 !important;
    border-radius: 9px !important;
    margin: 3px !important;
}


/* =====================================================
           MOBILE
        ====================================================== */

@media (max-width: 600px) {

    .location-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        padding: 14px;
        border-radius: 15px;
    }


    .title {
        font-size: 16px;
    }


    .subtitle {
        font-size: 11px;
    }


    #address {
        font-size: 12px;
    }


    .coordinate {
        padding: 8px 10px;
        font-size: 11px;
    }


    .hint {
        bottom: 13px;
        font-size: 11px;
        padding: 8px 14px;
    }


    .ol-zoom {
        left: 8px !important;
        bottom: 60px !important;
    }
}
