/* Leaflet control button for the feed (bottom-left). Mirrors .locate-btn. */
.feed-btn {
  font: 500 14px/30px system-ui, sans-serif;
  text-align: center;
  color: #1e88e5;
  padding: 0 10px;
}

.feed-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.feed-modal {
  background: #fff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.feed-back {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 10px;
  font: 500 14px/1 system-ui, sans-serif;
  cursor: pointer;
  color: #1e88e5;
}

.feed-title {
  font: 600 16px/1 system-ui, sans-serif;
}

.feed-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
}

.feed-state {
  padding: 32px 16px;
  text-align: center;
  color: #666;
}

/* Mobile: fullscreen, no backdrop dim. */
@media (max-width: 640px) {
  .feed-overlay { background: #fff; }
  .feed-modal {
    width: 100%;
    height: 100%;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Desktop: centered card with dimmed backdrop. */
@media (min-width: 641px) {
  .feed-overlay {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .feed-modal {
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
  }
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feed-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-row-img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #f4f4f4;
  border-radius: 8px;
}

.feed-row-meta-top,
.feed-row-meta-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 14px/1.2 system-ui, sans-serif;
}

.feed-row-number {
  font-weight: 600;
}

.feed-row-username {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: #1e88e5;
  font: inherit;
  cursor: pointer;
}

.feed-row-time {
  color: #666;
}

.feed-row-likes {
  color: #444;
}

.feed-row-locate {
  margin-left: auto;
  appearance: none;
  background: #1e88e5;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 13px/1 system-ui, sans-serif;
  cursor: pointer;
}

.feed-retry {
  appearance: none;
  background: #1e88e5;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font: 500 14px/1 system-ui, sans-serif;
  cursor: pointer;
  margin-top: 8px;
}

.feed-sentinel {
  height: 1px;
}

.feed-footer {
  padding: 16px;
  text-align: center;
  color: #666;
  font: 500 14px/1.2 system-ui, sans-serif;
}

.feed-footer-retry {
  appearance: none;
  background: transparent;
  border: 1px solid #1e88e5;
  color: #1e88e5;
  border-radius: 8px;
  padding: 6px 12px;
  font: 500 14px/1 system-ui, sans-serif;
  cursor: pointer;
  margin-top: 4px;
}
