/* ============================================================
   nearby.css — Nearby Places cards  (Weather Compass)
   ============================================================ */

/* ── filter buttons ──────────────────────────────────────── */
.nb-filters {
  display: flex;
  gap: 8px;
  padding: 0 0 12px;
  flex-wrap: wrap;
}
.nb-filter-btn {
  background: rgba(255,255,255,0.08);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nb-filter-btn:hover {
  background: rgba(255,255,255,0.14);
}
.nb-filter-btn.active {
  background: rgba(96,165,250,0.25);
  color: #60a5fa;
  border-color: rgba(96,165,250,0.4);
}

/* ── horizontal scroll container ─────────────────────────── */
.nb-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
}
.nb-scroll::-webkit-scrollbar { height: 4px; }
.nb-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* ── card ─────────────────────────────────────────────────── */
.nb-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.nb-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,0.35);
}

/* ── photo ────────────────────────────────────────────────── */
.nb-photo {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.04);
}
.nb-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.3;
}

/* ── card body ────────────────────────────────────────────── */
.nb-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nb-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── stars ─────────────────────────────────────────────────── */
.nb-stars { font-size: 0.85rem; }
.nb-star       { font-size: 0.9rem; }
.nb-star.nb-full  { color: #facc15; }
.nb-star.nb-half  { color: #facc15; opacity: 0.55; }
.nb-star.nb-empty { color: rgba(255,255,255,0.2); }
.nb-num     { color: #facc15; font-weight: 600; margin-left: 2px; }
.nb-reviews { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ── meta row (badge + price) ─────────────────────────────── */
.nb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.nb-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.nb-open   { background: rgba(34,197,94,0.2); color: #4ade80; }
.nb-closed { background: rgba(239,68,68,0.2); color: #f87171; }

.nb-price {
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

/* ── address ──────────────────────────────────────────────── */
.nb-addr {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
}

/* ── patio badge ──────────────────────────────────────────── */
.nb-patio {
  background: rgba(250,204,21,0.15);
  color: #facc15;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  margin-bottom: 2px;
  display: inline-block;
  align-self: flex-start;
}

/* ── empty / loading states ───────────────────────────────── */
.nb-empty,
.nb-loading {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}
