/* Foodie Maps + Nearby — Alaska winter palette */
.ff-mapsec {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(10, 22, 48, 0.85), rgba(20, 36, 72, 0.72));
  border: 1px solid rgba(155, 123, 255, 0.28);
  box-shadow: 0 8px 28px rgba(0, 8, 24, 0.35);
}
.ff-mapsec-single { margin-top: 1.5rem; }
.ff-map-toolbar { margin-bottom: 0.75rem; }
.ff-map-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.65rem;
}
.ff-btn-nearby {
  background: linear-gradient(135deg, rgba(61, 255, 240, 0.28), rgba(155, 123, 255, 0.22));
  border: 1px solid rgba(61, 255, 240, 0.5);
  color: var(--ff-snow, #f4f8ff) !important;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
}
.ff-btn-nearby:hover,
.ff-btn-nearby.is-on {
  box-shadow: 0 0 16px rgba(61, 255, 240, 0.28);
  border-color: var(--ff-aurora-teal, #3dfff0);
}
.ff-btn-nearby:disabled { opacity: 0.65; cursor: wait; }
.ff-nearby-ico { margin-right: 0.15rem; }
.ff-btn-map-fallback {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(155, 123, 255, 0.4);
  color: var(--ff-ice, #eef5ff) !important;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}
.ff-map-msg {
  font-size: 0.85rem;
  color: var(--ff-frost, #d8e6ff);
  flex: 1 1 12rem;
  min-height: 1.2em;
}
.ff-map-msg.is-err { color: #ffb4a8; }
.ff-map-msg.is-far { color: #ffd28a; }
.ff-map-msg.is-ok { color: var(--ff-aurora-green, #5cffb0); }

.ff-map-wrap { position: relative; }
.ff-map {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #1a2a44;
  z-index: 1;
  border: 1px solid rgba(61, 255, 240, 0.18);
}
.ff-map--directory,
.ff-map--tax { height: min(52vh, 480px); min-height: 300px; }
.ff-map--single { height: 280px; min-height: 220px; }
.ff-map-ns { padding: 2rem; text-align: center; color: var(--ff-frost, #d8e6ff); }
.ff-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  font-size: 0.8rem;
  margin: 0.55rem 0.15rem 0;
  color: var(--ff-muted, #9bb0cc);
}
.ff-map-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.ff-map-credit { margin-left: auto; }
.ff-map-credit a { color: var(--ff-aurora-teal, #3dfff0) !important; }
.ff-pin-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ff-aurora-teal, #3dfff0);
  box-shadow: 0 0 8px rgba(61, 255, 240, 0.5);
}

/* Leaflet pins */
.leaflet-marker-icon.ff-pin {
  background: transparent !important;
  border: none !important;
}
.ff-pin span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(20, 36, 72, 0.95), rgba(10, 22, 48, 0.98));
  border: 2px solid var(--ff-aurora-teal, #3dfff0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 12px rgba(61, 255, 240, 0.25);
  font-size: 14px;
  line-height: 1;
}
.leaflet-popup-content-wrapper {
  background: #0f1c36;
  color: #eef5ff;
  border-radius: 12px;
  border: 1px solid rgba(155, 123, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.leaflet-popup-tip { background: #0f1c36; }
.leaflet-container a.leaflet-popup-close-button { color: #9bb0cc; }
.ff-pop-name {
  display: block;
  font-weight: 700;
  color: #3dfff0 !important;
  text-decoration: none !important;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.ff-pop-meta, .ff-pop-addr { font-size: 0.82rem; color: #9bb0cc; margin: 0.1rem 0; }
.ff-pop-dist { font-size: 0.85rem; color: #5cffb0; margin: 0.25rem 0; font-weight: 600; }
.ff-pop-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.ff-pop-btn {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 240, 0.4);
  color: #eef5ff !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  background: rgba(61, 255, 240, 0.1);
}
.ff-pop-btn-more { border-color: rgba(155, 123, 255, 0.45); background: rgba(155, 123, 255, 0.12); }

.ff-near-list {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(61, 255, 240, 0.06);
  border: 1px solid rgba(61, 255, 240, 0.2);
}
.ff-near-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--ff-snow, #f4f8ff);
}
.ff-near-ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ff-frost, #d8e6ff);
}
.ff-near-ol li { margin: 0.25rem 0; }
.ff-near-ol a { color: var(--ff-aurora-teal, #3dfff0) !important; }
.ff-dist { color: var(--ff-aurora-green, #5cffb0); font-weight: 600; font-size: 0.85rem; }
.ff-near-cat { color: var(--ff-muted, #9bb0cc); font-size: 0.8rem; }
.ff-venue .ff-dist { list-style: none; }
.ff-map-pending {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 210, 138, 0.08);
  border: 1px solid rgba(255, 210, 138, 0.3);
  color: var(--ff-frost, #d8e6ff);
  font-size: 0.92rem;
}

/* Sticky-feeling filter chips already in theme; ensure mapsec chips look right */
.ff-mapsec .ff-food-filter { margin: 0.15rem 0 0.35rem; }
.ff-mapsec .ff-food-chip {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ff-ice, #eef5ff);
}

.ff-venue.ff-filtered-out { display: none !important; }

@media (max-width: 600px) {
  .ff-mapsec { padding: 0.85rem; margin: 1rem 0 1.35rem; }
  .ff-map--directory, .ff-map--tax { height: min(48vh, 400px); min-height: 260px; }
  .ff-map--single { height: 240px; }
  .ff-map-credit { margin-left: 0; }
  .ff-btn-nearby { width: 100%; text-align: center; }
}
