/* ── Shared icon button base (all toolbar buttons share this shape) ─────── */
#apk-btn,
#tracking-btn,
#ham-btn,
#heading-btn,
#geolocation-btn,
#pin-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    padding: 0;
}

#apk-btn:hover,
#tracking-btn:hover,
#ham-btn:hover,
#heading-btn:hover,
#geolocation-btn:hover,
#pin-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* ── SVG icon sizing for buttons that use SVG ───────────────────────────── */
#apk-btn svg,
#tracking-btn svg,
#geolocation-btn svg,
#pin-btn svg {
    width: 20px;
    height: 20px;
    stroke: #2c3e50;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Emoji buttons: font sizing ─────────────────────────────────────────── */
#ham-btn,
#heading-btn {
    font-size: 20px;
    line-height: 1;
}

/* ── APK download link ──────────────────────────────────────────────────── */
#apk-btn {
    text-decoration: none;
}

#apk-btn.ham-item {
    width: 100%;
    height: auto;
    box-shadow: none;
    border-radius: 0;
}

/* ── Tracking button ────────────────────────────────────────────────────── */
#tracking-btn.active {
    background: #4CAF50;
}

#tracking-btn.active svg {
    stroke: white;
}

/* ── Hamburger button ───────────────────────────────────────────────────── */
#ham-btn {
    z-index: 1001;
}

#ham-btn.active {
    background: #e0e0e0;
}

/* ── Heading / compass button ───────────────────────────────────────────── */
#heading-btn.active {
    background: #2196F3;
    color: white;
}

/* ── Geolocation button ─────────────────────────────────────────────────── */
#geolocation-btn.active {
    background: #4CAF50;
}

#geolocation-btn.active svg {
    stroke: white;
    fill: rgba(255, 255, 255, 0.3);
}

/* ── Pin button ─────────────────────────────────────────────────────────── */
#pin-btn.active {
    background: #2196F3;
}

#pin-btn.active svg {
    stroke: white;
}
