/* ===== BASE ===== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* ===== MAIN CONTAINER ===== */
#mapView {
    position: relative;
    height: 100vh;
    width: 100%;
}

/* ===== MAP ===== */
#map {
    position: absolute;
    top: 120px;
    height: calc(100vh - 120px);
    width: 100%;
    z-index: 1;
}

/* ===== TOP BAR ===== */
#topBar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    color: white;
    font-weight: bold;
    z-index: 1000;
}

/* ===== SEARCH ===== */
#searchTop {
    position: absolute;
    top: 55px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 1000;
}

#searchBox {
    width: 220px;
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ===== STATUS ===== */
#status {
    position: absolute;
    top: 90px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #333;
    z-index: 1000;
}

/* ===== CONTROL BARS ===== */
#controlsMain,
#controlsSecondary {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1000;
}

#controlsMain {
    bottom: 110px;
}

#controlsSecondary {
    bottom: 60px;
}

/* ===== BUTTONS ===== */
button {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    background: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.15s ease;
}

    button:hover {
        background: #ddd;
    }

    button:active {
        transform: scale(0.95);
    }

/* ===== BUTTON COLORS ===== */
#siteBtn {
    background: #4CAF50;
    color: white;
}

#transectBtn {
    background: #2196F3;
    color: white;
}

#finishBtn {
    background: #ff9800;
    color: white;
}

#undoBtn {
    background: #9e9e9e;
    color: white;
}

#controlsSecondary button {
    background: #555;
    color: white;
}

/* ===== MARKERS ===== */
.start-marker {
    color: green;
    font-weight: bold;
}

.end-marker {
    color: red;
    font-weight: bold;
}

/* ===== DISTANCE LABEL (UPDATED) ===== */
.distance-label {
    background: rgba(255,255,255,0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px; /* 🔥 bigger */
    font-weight: bold;
    color: #000;
    border: 1px solid #ccc;
}

/* ===== SUMMARY VIEW ===== */
#summaryView {
    display: none;
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

/* ===== CURSOR ===== */
.crosshair-cursor {
    cursor: crosshair !important;
}
#siteNameDisplay {
    position: absolute;
    top: 50px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #222;
    z-index: 1000;
}