/* Pin + area label on the home map and /search (task #151). Script: assets/js/map-area-labels.js
   .hm-pin = a box the size of the pin (the anchor on the map does not move), the label floats to its right
   (.is-left = to its left when the right is taken). Hidden by default; the script shows only the labels that do not overlap (.is-shown).
   White capsule, bold number, lighter unit, border in the pin's status colour so it is clear whose label it is. */
.hm-pin { position: relative; display: block; width: max-content; }
.hm-pin-label {
    --pin-color: #035432;
    position: absolute;
    left: calc(100% + 1px);
    top: 3px;
    display: flex;
    align-items: baseline;
    /* Text in the middle of the capsule (user 2026-11-13): measured at 4x, the number + "ตร.ม." group sat 1-1.75px high with
       the first padding. The script also starts the capsule on a whole page pixel (see update()), so this is what stays. */
    padding: 3.5px 8px 1.5px;
    border: 1.5px solid var(--pin-color);
    border-radius: 999px;
    background: #fff;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    visibility: hidden;
}
.hm-pin-label.is-left { left: auto; right: calc(100% + 1px); }
.hm-pin-label.is-shown { visibility: visible; }
.hm-pin-num { font-size: 12px; font-weight: 700; color: #111827; }
/* margin, not flex gap: gap needs Chrome/WebView 84+ and iOS 14.1+ (older Android WebViews glue the number to the unit) */
.hm-pin-unit { margin-left: 3px; font-size: 10.5px; font-weight: 500; color: #64748b; }
