/* ##########################################################################
   유니피드 게시판 피드 & GNB & 모달 전용 스타일 (list.css)
   ########################################################################## */

* { box-sizing: border-box; margin: 0; padding: 0; }
body.feed-body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  background: var(--c-gray-50); max-width: none; padding: 0; min-height: 100vh;
}

/* GNB 헤더 (지도 탭 규격 100% 통일) */
.gnb {
  height: 84px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  box-sizing: border-box;
}
.gnb-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.gnb-logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
}
.gnb-logo-fallback {
  display: none;
  font-size: var(--fs-28);
}
.gnb-logo-text {
  font-size: var(--fs-24);
  font-weight: 900;
  color: var(--c-orange-500);
  letter-spacing: -0.5px;
  line-height: 1;
}
.gnb-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  width: max-content;
}
.gnb-nav-link {
  text-decoration: none;
  color: var(--c-slate-500);
  font-size: var(--fs-16);
  font-weight: 600;
  padding: 0 18px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.2s;
  letter-spacing: -0.3px;
  box-sizing: border-box;
}
.gnb-nav-link span {
  white-space: nowrap;
  font-size: var(--fs-16);
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1;
}
.nav-icon {
  flex-shrink: 0;
  transition: stroke 0.2s, transform 0.2s;
}
.gnb-nav-link:hover {
  color: var(--c-orange-500);
  text-decoration: none;
}
.gnb-nav-link:hover .nav-icon {
  stroke: var(--c-orange-500);
  transform: translateY(-1px);
}
.gnb-nav-link.active {
  color: var(--c-orange-500);
}
.gnb-nav-link.active .nav-icon {
  stroke: var(--c-orange-500);
}
.gnb-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-orange-500);
  border-radius: 2px 2px 0 0;
}
.gnb-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gnb-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-gray-200);
  background: var(--c-surface);
  color: var(--c-slate-500);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.gnb-theme-toggle:hover {
  background: var(--c-slate-100);
  color: var(--c-orange-500);
}
.gnb-theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="dark"] .gnb-theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .gnb-theme-toggle .theme-icon-moon { display: block; }

/* 관리자 전용 — 다른 학교 커뮤니티/지도 전환 드롭다운 (posts/list.html, map/index.html) */
.admin-univ-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 20px 0;
  padding: 10px 16px;
  background: var(--c-indigo-50);
  border: 1px solid var(--c-indigo-200);
  border-radius: var(--radius-lg);
  font-size: var(--fs-13);
}
.admin-univ-switcher-label {
  font-weight: 700;
  color: var(--c-indigo-600);
  white-space: nowrap;
}
.admin-univ-switcher-select {
  flex: 1;
  max-width: 280px;
  padding: 6px 10px;
  border: 1px solid var(--c-indigo-200);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-slate-800);
  font-size: var(--fs-13);
  cursor: pointer;
}

/* 알림 벨 */
.gnb-notify-wrap {
  position: relative;
}
.gnb-notify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-gray-200);
  background: var(--c-surface);
  color: var(--c-slate-500);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.gnb-notify-btn:hover {
  background: var(--c-slate-100);
  color: var(--c-orange-500);
}
.gnb-notify-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--c-red-500);
  color: var(--c-white);
  font-size: var(--fs-10);
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.gnb-notify-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 420px;
  background: var(--c-surface);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-modal);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gnb-notify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-gray-200);
  font-size: var(--fs-14);
  font-weight: 800;
  color: var(--c-slate-800);
  flex-shrink: 0;
}
.gnb-notify-readall {
  background: none;
  border: none;
  color: var(--c-orange-500);
  font-size: var(--fs-12);
  font-weight: 700;
  cursor: pointer;
}
.gnb-notify-readall:hover {
  text-decoration: underline;
}
.gnb-notify-list {
  overflow-y: auto;
  flex: 1;
}
.gnb-notify-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--c-slate-400);
  font-size: var(--fs-13);
}
.gnb-notify-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-gray-200);
  text-decoration: none;
  transition: background 0.15s;
}
.gnb-notify-item:hover {
  background: var(--c-slate-50);
  text-decoration: none;
}
.gnb-notify-item:last-child {
  border-bottom: none;
}
.gnb-notify-item.unread {
  background: var(--c-orange-50);
}
.gnb-notify-item-message {
  font-size: var(--fs-13);
  color: var(--c-slate-800);
  font-weight: 600;
  line-height: 1.4;
}
.gnb-notify-item-date {
  font-size: var(--fs-11);
  color: var(--c-slate-400);
  margin-top: 4px;
  display: block;
}

@media (max-width: 480px) {
  .gnb-notify-dropdown { width: calc(100vw - 32px); right: -8px; }
}
.gnb-search {
  position: relative;
  display: flex;
  align-items: center;
}
.gnb-search-input {
  width: 200px;
  height: 36px;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-pill);
  padding: 0 34px 0 14px;
  font-size: var(--fs-13);
  background: var(--c-slate-50);
  outline: none;
}
.gnb-search-input:focus {
  border-color: var(--c-orange-500);
}
.gnb-search-icon {
  position: absolute;
  right: 12px;
  color: var(--c-slate-400);
}
.gnb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-orange-200);
}
.gnb-avatar-default {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-orange-50);
  border: 2px solid var(--c-orange-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-18);
}
/* 로그인 상태 묶음 (아바타 + 이름 + 로그아웃) */
.gnb-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gnb form,
.gnb .delete-form {
  margin: 0;
  display: inline-flex;
}
.gnb-username {
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--c-slate-800);
  letter-spacing: -0.2px;
}
.gnb-logout-btn {
  white-space: nowrap;
  height: 32px;
  padding: 0 14px;
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  color: var(--c-slate-500);
  font-size: var(--fs-12);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.2px;
  transition: all 0.2s;
}
.gnb-logout-btn:hover {
  border-color: var(--c-red-500);
  color: var(--c-red-500);
}
/* 미로그인 상태 로그인 버튼 */
.gnb-login-link {
  height: 36px;
  padding: 0 18px;
  border: 1.5px solid var(--c-orange-500);
  border-radius: var(--radius-pill);
  color: var(--c-orange-500);
  font-size: var(--fs-13);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.2px;
  transition: all 0.2s;
}
.gnb-login-link:hover {
  background: var(--c-orange-500);
  color: var(--c-white);
  text-decoration: none;
}


/* 메인 컨테이너 */
.feed-container { max-width: 1160px; margin: 0 auto; padding: 28px 24px 100px; }

/* 게시글 검색 */
.feed-search-wrap { position: relative; display: flex; align-items: center; margin-bottom: 16px; }
.feed-search-input {
  width: 100%;
  height: 42px;
  background: var(--c-slate-50);
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-xl);
  padding: 0 42px 0 14px;
  font-size: var(--fs-14);
  color: var(--c-slate-800);
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.feed-search-input:focus {
  border-color: var(--c-orange-500);
  background: var(--c-surface);
  box-shadow: var(--shadow-focus);
}
.feed-search-icon {
  position: absolute;
  right: 14px;
  color: var(--c-slate-400);
  pointer-events: none;
  display: flex;
}
.feed-search-empty {
  text-align: center;
  color: var(--c-slate-400);
  padding: 40px 0;
  font-size: var(--fs-14);
}

/* 무한스크롤 로딩 인디케이터 */
.feed-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 0;
  color: var(--c-slate-400);
  font-size: var(--fs-14);
}
.feed-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--c-gray-200);
  border-top-color: var(--c-orange-500);
  border-radius: 50%;
  animation: feed-loading-spin 0.7s linear infinite;
}
@keyframes feed-loading-spin {
  to { transform: rotate(360deg); }
}

/* 필터 칩 */
.chip-row { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.chip {
  padding: 8px 18px; border-radius: var(--radius-pill); border: 1px solid var(--c-gray-200);
  background: var(--c-surface); color: var(--c-slate-500); font-size: var(--fs-13); font-weight: 600; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}
.chip:hover {
  border-color: var(--c-orange-500);
  color: var(--c-orange-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}
.chip:active {
  transform: scale(0.94);
}
.chip-active {
  background: var(--c-orange-500) !important;
  color: var(--c-white) !important;
  border-color: var(--c-orange-500) !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

/* 카드 그리드 & 스태거(순차) 페이드업 애니메이션 */
@keyframes feedCardFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.005);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feed-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  animation: feedCardFadeUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.feed-card-link:nth-child(1) { animation-delay: 0.04s; }
.feed-card-link:nth-child(2) { animation-delay: 0.08s; }
.feed-card-link:nth-child(3) { animation-delay: 0.12s; }
.feed-card-link:nth-child(4) { animation-delay: 0.16s; }
.feed-card-link:nth-child(5) { animation-delay: 0.20s; }
.feed-card-link:nth-child(6) { animation-delay: 0.24s; }
.feed-card-link:nth-child(7) { animation-delay: 0.28s; }
.feed-card-link:nth-child(8) { animation-delay: 0.32s; }
.feed-card-link:nth-child(9) { animation-delay: 0.36s; }
.feed-card-link:nth-child(n+10) { animation-delay: 0.40s; }

.feed-card {
  background: var(--c-surface);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.28s ease;
  height: 100%;
  will-change: transform, box-shadow;
}
.feed-card-link:hover .feed-card {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(249, 115, 22, 0.18);
  border-color: var(--c-orange-200);
}

/* 작성자 정보 */
.card-author { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-orange-200); }
.author-avatar-default {
  width: 38px; height: 38px; border-radius: 50%; background: var(--c-orange-50);
  border: 2px solid var(--c-orange-200); display: flex; align-items: center; justify-content: center; font-size: var(--fs-18);
}
.author-info { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-size: var(--fs-14); font-weight: 700; color: var(--c-slate-800); }
.author-meta { font-size: var(--fs-11); color: var(--c-slate-400); }

/* 카드 이미지 (부드러운 줌인 효과) */
.card-img-wrap { width: 100%; height: 210px; overflow: hidden; background: var(--c-slate-100); }
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.feed-card-link:hover .card-img { transform: scale(1.06); }

/* 카드 바디 */
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: var(--fs-15); font-weight: 700; color: var(--c-slate-800); line-height: 1.4; }
.card-content {
  font-size: var(--fs-13); color: var(--c-slate-500); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { font-size: var(--fs-12); font-weight: 600; color: var(--c-orange-500); }
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--c-slate-100); margin-top: auto;
}
.card-reactions { display: flex; gap: 14px; }
.reaction {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-13); color: var(--c-slate-500); font-weight: 600; cursor: pointer;
  transition: color 0.15s;
}
.card-icon { flex-shrink: 0; transition: stroke 0.15s, transform 0.15s; }

@keyframes heartIconPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}
.reaction-like:hover { color: var(--c-red-500); }
.reaction-like:hover .card-icon {
  stroke: var(--c-red-500);
  fill: var(--c-red-100);
  animation: heartIconPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reaction-comment:hover { color: var(--c-orange-500); }
.reaction-comment:hover .card-icon { stroke: var(--c-orange-500); transform: scale(1.15); }
.card-save {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-13); color: var(--c-slate-400); font-weight: 600; cursor: pointer;
  transition: color 0.15s;
}
.card-save:hover { color: var(--c-orange-500); }
.card-save:hover .card-icon { stroke: var(--c-orange-500); fill: var(--c-orange-50); transform: scale(1.15); }
.feed-empty { text-align: center; padding: 80px 0; color: var(--c-slate-400); font-size: var(--fs-16); }

/* FAB 버튼 (부드러운 펄스 & 젤리 인터랙션) */
.fab {
  position: fixed; bottom: 32px; right: 40px;
  background: var(--c-orange-500); color: var(--c-white); text-decoration: none;
  padding: 0 22px; height: 50px; border-radius: var(--radius-pill);
  font-size: var(--fs-14); font-weight: 700; letter-spacing: -0.2px;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 20px rgba(249,115,22,0.45);
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  line-height: 1; z-index: 90; cursor: pointer;
}
.fab svg { flex-shrink: 0; }
.fab:hover {
  background: var(--c-orange-600); transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(249,115,22,0.55);
  color: var(--c-white); text-decoration: none;
}
.fab:active {
  transform: scale(0.94);
}

/* 모달 (스프링 팝업 & Backdrop Blur) */
@keyframes modalSpringUpFeed {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active {
  opacity: 1; visibility: visible;
}
.modal-card {
  background: var(--c-surface);
  border-radius: var(--radius-4xl);
  width: 100%; max-width: 520px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.25);
  padding: 28px 32px;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-card {
  animation: modalSpringUpFeed 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(0) scale(1);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--c-slate-100);
}
.modal-title { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-20); font-weight: 800; color: var(--c-slate-800); }
.modal-title-icon { flex-shrink: 0; }
.modal-close-btn {
  background: none; border: none; font-size: var(--fs-26); color: var(--c-slate-400); cursor: pointer;
  line-height: 1; transition: color 0.15s;
}
.modal-close-btn:hover { color: var(--c-orange-500); }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: var(--fs-13); font-weight: 700; color: var(--c-slate-600); }
.form-control {
  width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--c-slate-200);
  border-radius: var(--radius-lg); font-size: var(--fs-14); background: var(--c-slate-50); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { border-color: var(--c-orange-500); background: var(--c-surface); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); }
.form-control.textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form-error { font-size: var(--fs-12); color: var(--c-red-500); font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.btn-cancel {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius-lg); border: 1px solid var(--c-slate-200);
  background: var(--c-surface); color: var(--c-slate-500); font-weight: 600; font-size: var(--fs-14); cursor: pointer;
  text-decoration: none;
}
.btn-cancel:hover { background: var(--c-slate-100); }
.btn-submit {
  padding: 10px 24px; border-radius: var(--radius-lg); border: none;
  background: var(--c-orange-500); color: var(--c-white); font-weight: 700; font-size: var(--fs-14); cursor: pointer;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35); transition: background 0.2s;
}
.btn-submit:hover { background: var(--c-orange-600); }

/* 이미지 업로드 박스 (게시글 작성 모달) */
.img-upload-input-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.img-upload-box {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border: 1.5px dashed var(--c-slate-200); border-radius: var(--radius-lg);
  background: var(--c-slate-50); color: var(--c-slate-500);
  font-size: var(--fs-13); font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.img-upload-box:hover { border-color: var(--c-orange-500); background: var(--c-orange-50); color: var(--c-orange-600); }
.img-upload-box svg { flex-shrink: 0; color: var(--c-orange-500); }
.img-upload-box-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-upload-status { font-size: var(--fs-12); color: var(--c-slate-400); margin: 2px 0 0; min-height: 15px; }
.img-upload-status.uploading { color: var(--c-orange-600); font-weight: 600; }
.img-upload-status.success { color: var(--c-emerald-600); font-weight: 600; }
.img-upload-status.error { color: var(--c-red-500); font-weight: 600; }
.img-upload-preview {
  display: block; max-width: 140px; max-height: 140px; object-fit: cover;
  border-radius: var(--radius-lg); margin-top: 4px; border: 1px solid var(--c-slate-200);
}

/* 맛집 태그 검색 (게시글 작성 모달) */
.restaurant-tag-results { display: flex; flex-direction: column; gap: 4px; max-height: 160px; overflow-y: auto; }
.restaurant-tag-results:empty { display: none; }
.restaurant-tag-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 8px 12px; border: 1px solid var(--c-slate-200); border-radius: var(--radius-md);
  background: var(--c-surface); cursor: pointer; text-align: left; font-family: inherit;
  font-size: var(--fs-13); transition: border-color 0.2s, background-color 0.2s;
}
.restaurant-tag-item:hover { border-color: var(--c-orange-500); background: var(--c-orange-50); }
.restaurant-tag-item-name { font-weight: 700; color: var(--c-slate-800); }
.restaurant-tag-item-cat { font-size: var(--fs-11); color: var(--c-slate-400); flex-shrink: 0; }
.restaurant-tag-empty { padding: 8px 4px; font-size: var(--fs-12); color: var(--c-slate-400); }
.restaurant-tag-chip {
  align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: var(--radius-pill);
  background: var(--c-orange-50); border: 1px solid var(--c-orange-200); color: var(--c-orange-600);
  font-size: var(--fs-12); font-weight: 700; width: fit-content;
}

/* ==========================================================================
   반응형 — GNB(전 페이지 공통) + 피드 그리드 + 모달
   ========================================================================== */
@media (max-width: 900px) {
  .feed-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* 관리자 탭(신고/회원 관리) 배지 — 네비 링크 안에서는 아이콘 우상단에 붙인다 */
.gnb-nav-link .gnb-notify-badge {
  display: inline-block;
  top: 18px;
  left: auto;
  right: 4px;
  font-size: var(--fs-10);
}
/* 탭이 6개(관리자)일 때만 좁아지는 폭에서 간격/글자를 줄여 우측 영역과 겹치지 않게 */
@media (max-width: 1440px) {
  .gnb-nav:has(.gnb-nav-link:nth-child(6)) .gnb-nav-link { padding: 0 12px; gap: 6px; }
}
@media (max-width: 1260px) {
  .gnb-nav:has(.gnb-nav-link:nth-child(6)) .gnb-nav-link span:not(.gnb-notify-badge) { display: none; }
}
/* 관리자 6탭: 중앙 절대배치 대신 일반 흐름으로 두고 로고 글자/사용자명을 줄여 우측 영역과 안 겹치게 */
@media (max-width: 900px) {
  .gnb:has(.gnb-nav-link:nth-child(6)) { padding: 0 12px; }
  .gnb:has(.gnb-nav-link:nth-child(6)) .gnb-nav { position: static; transform: none; gap: 2px; }
  .gnb:has(.gnb-nav-link:nth-child(6)) .gnb-logo-text,
  .gnb:has(.gnb-nav-link:nth-child(6)) .gnb-username { display: none; }
  .gnb:has(.gnb-nav-link:nth-child(6)) .gnb-right { gap: 8px; }
}
@media (max-width: 520px) {
  .gnb:has(.gnb-nav-link:nth-child(6)) .gnb-logo,
  .gnb:has(.gnb-nav-link:nth-child(6)) .gnb-avatar,
  .gnb:has(.gnb-nav-link:nth-child(6)) .gnb-avatar-default { display: none; }
  .gnb:has(.gnb-nav-link:nth-child(6)) .gnb-nav-link { padding: 0 6px; }
}

@media (max-width: 640px) {
  /* GNB: 높이(84px)는 다른 페이지들이 calc(100vh - 84px)로 참조하므로 유지하고,
     가로 폭만 줄여서 로고/네비/유저정보가 겹치거나 넘치지 않게 한다. */
  .gnb { padding: 0 12px; }
  .gnb-logo-img { height: 42px; }
  .gnb-logo-text { display: none; }
  .gnb-nav {
    position: static;
    transform: none;
    gap: 2px;
  }
  .gnb-nav-link { padding: 0 8px; }
  .gnb-nav-link span { display: none; }
  .gnb-username { display: none; }
  .gnb-right { gap: 8px; }

  .feed-container { padding: 18px 14px 100px; }
  .feed-grid { grid-template-columns: 1fr; }
  .card-img-wrap { height: 180px; }

  .modal-card { padding: 20px 18px; }
}

/* 좁은 휴대폰(390px 등) — 위 640px 규칙만으로는 로고+메뉴+우측버튼 합이 407px 라
   페이지 전체에 17px 가로 스크롤이 생겼다. 더 줄여서 390px 안에 들어가게 한다.
   [주의] 640px 블록보다 뒤에 와야 값이 덮어써진다(둘 다 적용되므로 나중 것이 이긴다). */
@media (max-width: 460px) {
  .gnb { padding: 0 8px; }
  .gnb-logo-img { height: 34px; }
  .gnb-nav-link { padding: 0 5px; }
  .gnb-right { gap: 6px; }
  .gnb-theme-toggle, .gnb-notify-btn { width: 30px; height: 30px; }
  .gnb-logout-btn { padding: 0 9px; font-size: var(--fs-11); }
}
.restaurant-tag-chip button { background: none; border: none; color: inherit; cursor: pointer; display: flex; padding: 2px; }
