.nearby-entry-btn{
    background:rgba(255,255,255,.16);
    color:#fff;
    border:1px solid rgba(255,255,255,.36);
    backdrop-filter:blur(8px);
}
.nearby-entry-btn:hover{background:rgba(255,255,255,.25)}
.nearby-entry-floating{
    position:fixed;
    left:18px;
    bottom:18px;
    z-index:40;
    box-shadow:var(--shadow);
}

.nearby-page{
    min-height:calc(100vh - 150px);
    background:
        radial-gradient(circle at 88% 2%,rgba(198,155,82,.14),transparent 30%),
        var(--paper);
}

.nearby-hero{
    max-width:1160px;
    margin:0 auto;
    padding:74px 22px 44px;
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:54px;
    align-items:center;
}

.nearby-hero h1{
    font-size:clamp(2.8rem,6vw,5.4rem);
    letter-spacing:-.055em;
    margin:.2em 0;
}

.nearby-hero p{
    max-width:650px;
    color:var(--muted);
    font-size:1.08rem;
}

.nearby-locate-btn{
    margin-top:18px;
    min-height:56px;
    border:0;
    border-radius:16px;
    padding:0 22px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:var(--wine);
    color:#fff;
    font:inherit;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 16px 36px rgba(122,46,36,.22);
}
.nearby-locate-btn:hover{transform:translateY(-1px)}
.nearby-locate-btn:disabled{opacity:.65;cursor:wait}
.nearby-privacy{font-size:.82rem!important;margin:.8rem 0 0!important}

.nearby-visual{
    display:grid;
    place-items:center;
    min-height:330px;
}

.nearby-radar{
    width:min(340px,74vw);
    aspect-ratio:1;
    position:relative;
    border-radius:50%;
    background:
      radial-gradient(circle,rgba(122,46,36,.08) 0 1px,transparent 2px),
      radial-gradient(circle at center,transparent 0 26%,rgba(122,46,36,.12) 26.5% 27%,transparent 27.5% 51%,rgba(122,46,36,.10) 51.5% 52%,transparent 52.5% 76%,rgba(122,46,36,.08) 76.5% 77%,transparent 77.5%),
      #fbf6ee;
    border:1px solid var(--line);
    box-shadow:var(--shadow);
}

.nearby-radar::before,
.nearby-radar::after{
    content:"";
    position:absolute;
    background:rgba(122,46,36,.08);
}
.nearby-radar::before{width:1px;top:8%;bottom:8%;left:50%}
.nearby-radar::after{height:1px;left:8%;right:8%;top:50%}

.nearby-radar__me{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:24px;
    height:24px;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#2d6cdf;
    background:#fff;
    box-shadow:0 0 0 8px rgba(45,108,223,.12),0 6px 16px rgba(0,0,0,.14);
    z-index:3;
}

.nearby-pin{
    position:absolute;
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    border-radius:18px 18px 18px 4px;
    background:#fff;
    border:1px solid var(--line);
    box-shadow:0 12px 24px rgba(49,35,25,.12);
    font-size:1.35rem;
}
.nearby-pin--1{left:18%;top:22%;transform:rotate(-12deg)}
.nearby-pin--2{right:12%;top:32%;transform:rotate(10deg)}
.nearby-pin--3{left:34%;bottom:13%;transform:rotate(4deg)}

.nearby-tools{
    max-width:1160px;
    margin:0 auto 8px;
    padding:18px 22px;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.nearby-tools strong{display:block}
.nearby-tools small{color:var(--muted)}

.nearby-filters{
    display:flex;
    align-items:end;
    gap:10px;
}
.nearby-filters label{
    display:grid;
    gap:5px;
    font-size:.78rem;
}
.nearby-filters select{
    padding:10px 12px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    font:inherit;
}
.nearby-refresh{
    border:1px solid var(--line);
    background:#fff;
    border-radius:12px;
    padding:10px 14px;
    font-weight:800;
    cursor:pointer;
}

.nearby-content{
    max-width:1160px;
    margin:0 auto;
    padding:42px 22px 82px;
}

.nearby-message{
    min-height:280px;
    display:grid;
    place-items:center;
    align-content:center;
    text-align:center;
    padding:35px;
    border:1px dashed #cdbba8;
    border-radius:24px;
    background:#fff;
}
.nearby-message>span{font-size:2.4rem}
.nearby-message h2{font-size:clamp(1.8rem,4vw,2.7rem);margin:.4rem 0}
.nearby-message p{color:var(--muted);max-width:580px}
.nearby-message a{color:var(--wine);font-weight:900}

.nearby-results-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:24px;
}
.nearby-results-head h2{
    font-size:clamp(2rem,4vw,3.2rem);
    margin:.2rem 0 0;
}
.nearby-results-head>strong{
    color:var(--wine);
    background:#f3e6dc;
    padding:8px 12px;
    border-radius:999px;
}

.nearby-results{
    display:grid;
    gap:18px;
}

.nearby-card{
    min-height:220px;
    display:grid;
    grid-template-columns:300px 1fr;
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 8px 28px rgba(52,39,28,.06);
}
.nearby-card--closest{
    border-color:rgba(122,46,36,.35);
    box-shadow:0 18px 44px rgba(122,46,36,.12);
}

.nearby-card__media{
    min-height:220px;
    position:relative;
    background:
        linear-gradient(135deg,#eee0d3,#d9bfa7);
    background-size:cover;
    background-position:center;
}
.nearby-card__media::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.32));
}
.nearby-distance,
.nearby-closest{
    position:absolute;
    z-index:2;
    top:14px;
    background:rgba(255,255,255,.94);
    border-radius:999px;
    padding:7px 10px;
    font-size:.78rem;
    font-weight:900;
    box-shadow:0 5px 16px rgba(0,0,0,.12);
}
.nearby-distance{right:14px;color:var(--wine)}
.nearby-closest{left:14px;color:#17663a}

.nearby-card__body{
    padding:24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.nearby-card__body h3{
    font-size:1.65rem;
    margin:.45rem 0;
}
.nearby-card__body>p{
    color:var(--muted);
    margin:.25rem 0 .75rem;
}
.nearby-address{
    display:flex;
    gap:8px;
    color:#5d5148;
    font-size:.9rem;
    margin-top:.2rem;
}
.nearby-card__actions{
    margin-top:18px;
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}
.nearby-directions{
    background:#f5efe7;
    color:var(--wine);
    border:1px solid #e6d7c7;
}

.nearby-loading,
.nearby-empty{
    min-height:220px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:10px;
    text-align:center;
    border:1px dashed #cfbeac;
    border-radius:20px;
    padding:30px;
    background:#fff;
}
.nearby-empty>span{font-size:2rem}
.nearby-empty p{color:var(--muted);max-width:560px}

.nearby-spinner{
    width:34px;
    height:34px;
    border-radius:50%;
    border:3px solid #eadfd3;
    border-top-color:var(--wine);
    animation:nearby-spin .8s linear infinite;
}
@keyframes nearby-spin{to{transform:rotate(360deg)}}

.analytics-gps-link{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:9px 12px;
    border-radius:10px;
    background:#f3e6dc;
    color:var(--wine);
    font-weight:850;
}

@media(max-width:800px){
    .nearby-hero{
        grid-template-columns:1fr;
        padding-top:52px;
        gap:20px;
    }
    .nearby-visual{min-height:260px}
    .nearby-radar{width:min(290px,78vw)}
    .nearby-tools{
        align-items:flex-start;
        flex-direction:column;
    }
    .nearby-filters{
        width:100%;
        align-items:stretch;
        flex-direction:column;
    }
    .nearby-card{
        grid-template-columns:1fr;
    }
    .nearby-card__media{min-height:190px}
    .nearby-results-head{
        align-items:flex-start;
        flex-direction:column;
    }
}
