/* pres-de-moi/assets/near.css — bandeau « Près de moi » du catalogue */

.near-bar {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e8e6e1;
    border-radius: 1rem;
    background: #fff;
}

.near-bar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
}

.near-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1.15rem;
    border: 2px solid transparent;
    border-radius: .75rem;
    background: #c2410c;          /* contraste suffisant avec le texte blanc */
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease;
}
.near-btn:hover { background: #9a3412; }
.near-btn:focus-visible,
.near-clear:focus-visible,
.near-bar select:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }
.near-btn.is-on { background: #1c1917; }
.near-btn.is-on:hover { background: #292524; }
.near-btn.is-loading { opacity: .7; cursor: progress; }

.near-status,
.near-hint {
    margin: 0;
    color: #44403c;
    font-size: .92rem;
    flex: 1 1 14rem;
}
.near-status i { color: #c2410c; margin-right: .25rem; }
.near-hint a { color: #c2410c; font-weight: 700; text-decoration: underline; }

.near-radius {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: #44403c;
}
.near-bar select {
    padding: .5rem .75rem;
    border: 1px solid #d6d3d1;
    border-radius: .6rem;
    background: #fff;
    font-size: .92rem;
    color: #1c1917;
}

.near-clear {
    border: 0;
    background: none;
    padding: .4rem .25rem;
    color: #b91c1c;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    text-decoration: underline;
}

.near-chooser {
    display: grid;
    gap: .6rem;
    margin-top: .9rem;
    padding: .9rem 1rem;
    border-radius: .85rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.near-chooser[hidden] { display: none; }
.near-chooser p { margin: 0; color: #7c2d12; font-size: .92rem; }
.near-chooser-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.near-chooser-row select { flex: 1 1 14rem; min-width: 0; }

/* Distance affichée sur chaque carte */
.near-chip {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: .5rem;
    padding: .1rem .55rem;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, .35);
    color: #9a3412;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .near-btn { width: 100%; justify-content: center; }
    .near-radius { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    .near-btn { transition: none; }
}
