/* QTH Locator Plugin CSS */
#qthlocator-wrap {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #222;
    width: 100%;
    box-sizing: border-box;
}

/* ===== Toolbar ===== */
#qthlocator-toolbar {
    background: #f5f7fa;
    border: 1px solid #d0d7e0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.qthl-section-label {
    font-weight: bold;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
    margin-bottom: 4px;
}
.qthl-section-label:first-child { margin-top: 0; }

.qthl-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.qthl-input-row input[type="text"] {
    width: 160px;
    padding: 6px 10px;
    border: 1px solid #b0bac8;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    font-family: monospace;
    background: #fff;
    color: #222;
}

.qthl-latlon {
    font-size: 12px;
    color: #667;
    min-width: 180px;
}

/* ===== Buttons ===== */
.qthl-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.15s;
}
.qthl-btn-pick      { background: #2a6ebb; color: #fff; }
.qthl-btn-pick:hover{ background: #1d5299; }
.qthl-btn-pick.active { background: #e05a00; }
.qthl-btn-home      { background: #1a7a3f; color: #fff; }
.qthl-btn-home:hover{ background: #145e30; }
.qthl-btn-profile   { background: #6a3db8; color: #fff; }
.qthl-btn-profile:hover{ background: #4e2a8a; }
.qthl-btn-share     { background: #555; color: #fff; }
.qthl-btn-share:hover{ background: #333; }

/* ===== Results ===== */
.qthl-result-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #d0d7e0;
    border-radius: 5px;
}
.qthl-result-block {
    display: flex;
    flex-direction: column;
    min-width: 110px;
}
.qthl-result-label {
    font-size: 11px;
    color: #778;
    margin-bottom: 2px;
}
.qthl-result-value {
    font-size: 16px;
    font-weight: bold;
    color: #1a3e6e;
    font-family: monospace;
}

/* ===== Toggles ===== */
.qthl-toggles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #d0d7e0;
}
.qthl-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}
.qthl-toggle input[type="checkbox"] { cursor: pointer; }
.qthl-elev-label { font-size: 13px; color: #555; }
#qthl-elev-provider {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #b0bac8;
    font-size: 13px;
    background: #fff;
}

/* ===== Karte ===== */
#qthl-map-container {
    position: relative;
    width: 100%;
}
#qthl-map {
    width: 100%;
    height: 520px;
    border: 1px solid #c0c8d5;
    border-radius: 5px;
}
#qthl-pick-hint {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(230, 90, 0, 0.92);
    color: #fff;
    padding: 7px 16px;
    border-radius: 5px;
    font-size: 13px;
    z-index: 1000;
    white-space: nowrap;
}
#qthl-pick-hint button {
    margin-left: 10px;
    background: rgba(255,255,255,0.25);
    border: 1px solid #fff;
    color: #fff;
    border-radius: 3px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 12px;
}

/* ===== Hoehenprofil ===== */
#qthl-profile-container {
    margin-top: 10px;
    border: 1px solid #c0c8d5;
    border-radius: 5px;
    background: #fff;
    padding: 0 0 12px;
    overflow: hidden;
}
#qthl-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a3e6e;
    color: #fff;
    padding: 8px 14px;
    font-weight: bold;
    font-size: 14px;
}
#qthl-profile-stats {
    font-size: 12px;
    font-weight: normal;
    color: #aac4e8;
}
#qthl-profile-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}
#qthl-profile-canvas {
    width: 100% !important;
    height: 220px !important;
    display: block;
    margin: 10px 0 6px;
    padding: 0 10px;
    box-sizing: border-box;
}
#qthl-los-result {
    padding: 4px 16px;
    font-size: 13px;
    font-weight: bold;
}
#qthl-los-result.los-ok   { color: #1a7a3f; }
#qthl-los-result.los-bad  { color: #b00; }

/* ===== Status ===== */
#qthl-status {
    margin-top: 6px;
    min-height: 22px;
    font-size: 12px;
    color: #555;
    padding: 0 4px;
}
#qthl-status.err { color: #b00; }

/* ===== Marker-Popup ===== */
.qthl-popup-sota { color: #8B3A00; font-size: 12px; }
.qthl-popup-pota { color: #1a5c2a; font-size: 12px; }

/* ===== Grid-Label ===== */
.qthl-grid-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 11px;
    font-weight: bold;
    color: rgba(30,60,120,0.75);
    pointer-events: none;
    white-space: nowrap;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .qthl-input-row { flex-direction: column; align-items: flex-start; }
    .qthl-result-row { gap: 8px; }
    #qthl-map { height: 360px; }
}
