.nearby-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    border-color: rgba(66, 167, 211, .3);
    background: rgba(81, 184, 224, .075);
    font-weight: 760;
}

.nearby-chip svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.nearby-chip.active {
    box-shadow: 0 7px 18px rgba(27, 131, 178, .16);
}

.nearby-chip[aria-busy="true"] svg {
    animation: nearby-pulse 1.1s ease-in-out infinite;
}

.nearby-chip--error {
    border-color: rgba(180, 104, 81, .34);
    background: rgba(180, 104, 81, .08);
}

.result-distance {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 1px 7px;
    border: 1px solid rgba(53, 145, 187, .2);
    border-radius: 999px;
    background: rgba(67, 165, 207, .08);
    color: #176486;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
}

html[data-theme="dark"] .nearby-chip {
    border-color: rgba(129, 208, 239, .2);
    background: rgba(105, 190, 226, .07);
}

html[data-theme="dark"] .nearby-chip--error {
    border-color: rgba(232, 157, 132, .28);
    background: rgba(190, 103, 77, .1);
}

html[data-theme="dark"] .result-distance {
    border-color: rgba(127, 204, 235, .17);
    background: rgba(97, 183, 219, .08);
    color: #9bdcf6;
}

@keyframes nearby-pulse {
    0%, 100% { opacity: .45; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .nearby-chip[aria-busy="true"] svg { animation: none; }
}

@media (max-width: 760px), (max-width: 900px) and (max-height: 500px) {
    .nearby-chip { min-height: 38px; }
    .result-distance { font-size: 10.5px; }
}
