/* "Barbers near you" (/near): map + list. Phone first; on wide screens the list sits beside a full-height map. */
.near { min-height: 100vh; }
.nr-top { background: linear-gradient(160deg, var(--ink) 0%, var(--accent-dark) 100%); color: #fff; padding: max(12px, env(safe-area-inset-top)) 16px 14px; }
.nr-bar { display: flex; align-items: center; gap: 10px; max-width: 1200px; margin: 0 auto; }
.nr-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.nr-brand img { width: 34px; height: 34px; border-radius: 10px; }
.nr-top h1 { font-size: clamp(1.45rem, 5vw, 2rem); margin: 14px auto 2px; max-width: 1200px; }
.nr-sub { color: rgb(255 255 255 / 80%); font-size: .9rem; max-width: 1200px; margin: 0 auto; }
.nr-search { display: flex; gap: 8px; margin: 14px auto 0; max-width: 1200px; }
.nr-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text); border-radius: 13px; padding: 0 12px; border: 1px solid var(--border); }
.nr-input input { border: 0; background: transparent; padding: 11px 0; min-width: 0; flex: 1; font: inherit; color: inherit; outline: none; box-shadow: none; }
.nr-search .btn { flex: none; padding-inline: 14px; }
.nr-find { position: relative; flex: 1; min-width: 0; display: flex; }
.nr-x { flex: none; border: 0; background: var(--surface-2); color: var(--muted); width: 26px; height: 26px; border-radius: 50%; font-size: .75rem; cursor: pointer; }
/* suggestions under the search box (above the map) */
.nr-sugg { position: absolute; z-index: 1200; top: calc(100% + 6px); inset-inline: 0; max-height: min(60vh, 420px); overflow-y: auto; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 5px; }
.sg { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.sg:hover, .sg.on { background: var(--accent-soft); }
.sg-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); }
.sg b { display: block; font-size: .93rem; }
.sg small { display: block; color: var(--muted); font-size: .78rem; }
.sg.more b { color: var(--accent); }
.sg-note { padding: 10px 12px; color: var(--muted); font-size: .85rem; }
.nr-privacy { max-width: 1200px; margin: 8px auto 0; font-size: .78rem; color: rgb(255 255 255 / 72%); }
.nr-chips { display: flex; gap: 7px; overflow-x: auto; margin: 12px auto 0; max-width: 1200px; padding-bottom: 2px; scrollbar-width: none; }
.nr-chips::-webkit-scrollbar { display: none; }
.nr-chips .chip { flex: none; background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 22%); color: #fff; }
.nr-chips .chip.on { background: #fff; border-color: #fff; color: #1d1a17; }

.nr-main { max-width: 1200px; margin: 0 auto; }
.nr-map-wrap { position: relative; }
.nr-map { height: 44vh; min-height: 260px; max-height: 460px; background: #ece7dd; z-index: 0; }
.nr-map-hint { position: absolute; z-index: 5; bottom: 8px; left: 50%; transform: translateX(-50%); margin: 0; max-width: calc(100% - 120px); text-align: center;
  font-size: .76rem; background: rgb(20 18 14 / 78%); color: #fff; padding: 4px 11px; border-radius: 999px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-list { padding: 14px 16px 30px; display: flex; flex-direction: column; gap: 10px; }
.nr-count { font-weight: 700; font-size: .95rem; min-height: 1.3em; }
#list { display: flex; flex-direction: column; gap: 10px; }

.nr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.nr-card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.nr-pick { display: flex; gap: 12px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.nr-logo { width: 60px; height: 60px; flex: none; border-radius: 15px; overflow: hidden; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem;
  background: linear-gradient(150deg, #0e0d0b 10%, var(--c)); color: #fff; }
.nr-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.nr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nr-t1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nr-t1 b { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-dist { flex: none; font-size: .8rem; color: var(--muted); font-weight: 600; }
.nr-rate { font-size: .86rem; }
.nr-rate small { color: var(--muted); }
.nr-stars { color: #d9a53c; }
.nr-new { font-size: .72rem; font-weight: 700; color: #fff; background: var(--blue); padding: 1px 8px; border-radius: 7px; }
.nr-addr { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.nr-meta > span { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.nr-meta .open { background: var(--green-soft); color: var(--green); border-color: transparent; }
.nr-meta .closed { background: var(--red-soft); color: var(--red); border-color: transparent; }
.nr-meta .q { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
[data-theme="dark"] .nr-meta .open { color: #6ee7a8; }
[data-theme="dark"] .nr-meta .closed { color: #fb8f8f; }
[data-theme="dark"] .nr-meta .q { color: #fbbf5a; }
.nr-acts { display: flex; gap: 7px; margin-top: 10px; }
.nr-acts .btn { flex: 1; min-width: 0; padding-inline: 8px; }

.nr-empty { text-align: center; padding: 26px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: 18px; }
.nr-empty .big { font-size: 2.2rem; }
.nr-empty h2 { font-size: 1.1rem; margin: 6px 0 4px; }
.nr-empty p { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.nr-owner { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: var(--accent-soft); border: 1px solid var(--accent-line); }
.nr-owner > span:first-child { font-size: 1.6rem; }
.nr-owner > span:nth-child(2) { flex: 1; }
.nr-owner b { display: block; }
.nr-owner small { color: var(--muted); }
.nr-skel { height: 118px; border-radius: 18px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: nrSk 1.2s infinite; border: 1px solid var(--border); }
@keyframes nrSk { to { background-position: -200% 0; } }

/* map pins */
.leaflet-container { direction: ltr; font-family: var(--font); }
.nm { background: none; border: 0; }
.nm-pin { position: absolute; transform: translate(-50%, calc(-100% - 6px)); display: block; white-space: nowrap; font: 700 12px/1 var(--font); padding: 6px 9px; border-radius: 999px;
  background: #1d1a17; color: #fff; border: 2px solid #fff; box-shadow: 0 4px 12px rgb(0 0 0 / 30%); cursor: pointer; }
.nm-pin::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }
.nm-pin.closed { background: #6b645a; }
.nm-pin.on { background: linear-gradient(135deg, #ecca85, #b8893e); color: #1a1307; transform: translate(-50%, calc(-100% - 6px)) scale(1.15); }
.nm-me { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: #2f7cf6; border: 3px solid #fff;
  box-shadow: 0 0 0 9px rgb(47 124 246 / 18%), 0 2px 6px rgb(0 0 0 / 30%); }

@media (min-width: 900px) {
  .nr-main { display: grid; grid-template-columns: 430px 1fr; align-items: start; }
  .nr-map-wrap { order: 2; position: sticky; top: 0; }
  .nr-map { height: 100vh; max-height: none; }
  .nr-list { order: 1; }
}
