.feed-list {
  display: flex;                /* Stack posts vertically */
  flex-direction: column;
  gap: 1.1rem;                  /* Space between posts */
  max-height: 480px;            /* Limit feed height */
  overflow-y: auto;             /* Scroll if too many posts */
  padding-right: 8px;           /* Space for scrollbar */
}

.feed-post {
  background: #f4f6f8;          /* Light background */
  border-radius: 10px;           /* Rounded corners */
  padding: 0.9rem 1.1rem;        /* Inner spacing */
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); /* Subtle shadow */
  margin-bottom: 1.1rem;
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.feed-post-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;            /* Circular avatar */
  object-fit: cover;
  border: 1px solid #d1d9e6;
}

.feed-username {
  font-weight: 700;
  color: #4a90e2;                /* Primary color for username */
}

.feed-date {
  color: #888;
  font-size: 0.95rem;
}

.feed-content {
  font-size: 1.1rem;
  color: #222;
  white-space: pre-line;         /* Preserve line breaks */
}

.feed-image img {
  max-width: 220px;
  max-height: 180px;
  border-radius: 10px;           /* Rounded image corners */
  margin-top: 10px;
  display: block;
  object-fit: cover;
}

.feed-placeholder {
  background: #f4f6f8;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: #888;
  font-size: 1.1rem;
}

.no-posts {
  color: #888;
  text-align: center;
  margin: 2rem 0;
}

.feed-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.7rem;
}

.like-btn, .comment-toggle-btn {
  background: none;
  border: none;
  color: #4a90e2;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

/* Liked state for like button */
.like-btn.liked, .like-btn.liked i {
  color: #e74c3c;
}

.feed-comments {
  margin-top: 0.7rem;
  background: #f9fafb;
  border-radius: 8px;
  padding: 0.7rem 1rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.comment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
}

.comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;            /* Circular avatar */
  object-fit: cover;
}

.comment-username {
  font-weight: 600;
  color: #4a90e2;
}

.comment-content {
  color: #222;
}

.comment-date {
  color: #888;
  font-size: 0.85rem;
  margin-left: auto;             /* Push date to the right */
}

.comment-form {
  display: flex;
  gap: 0.5rem;
}

.comment-form input[type="text"] {
  flex: 1;
  border-radius: 6px;
  border: 1px solid #d1d9e6;
  padding: 0.4rem 0.7rem;
  font-size: 1rem;
}

.comment-form button {
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form button:hover {
  background: #357abd;
}

.feed-location-map {
    width: 100%;
    height: 220px;
    margin-top: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
}
