.bottom-gnb {
  width: 100%;
  display: flex;
  justify-content: space-around; /* 아이템들을 균등하게 분배 */
  background-color: var(--gnb-background);
  box-shadow: var(--gnb-shadow);
  z-index: var(--z-index-fixed);
  height: var(--gnb-height);
  --padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box;
  flex-shrink: 0;
}

.gnb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 수직 중앙 정렬 */
  flex: 1;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
  height: 100%; /* 부모 높이를 모두 사용 */
  padding-top: var(--space-2); /* 아이콘과 상단 경계 사이의 여백 */
  box-sizing: border-box; /* 패딩을 높이에 포함 */
}

.gnb-item.active {
  color: var(--color-primary-500); /* 활성화 색상 */
}

.gnb-icon {
  font-size: 24px; /* 아이콘 크기 변경 */
  margin-bottom: var(--space-1);
}

.gnb-label {
  font-size: var(--font-size-xs);
}
/* src/styles/Layout.css */

.app-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.app-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
}

.main-content {
  flex: 1;
  overflow-y: auto;
  display: flex; /* 자식 요소가 높이를 채우도록 flex 컨테이너로 변경 */
  box-sizing: border-box;
}

.full-height {
  height: 100%;
}

.full-width {
  width: 100%;
}

.map-page-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.map-view-wrapper {
  flex-grow: 1;
  position: relative;
}

.overlay-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 20;
}
/* src/styles/TopSearchBar.css */

.top-search-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  z-index: var(--z-index-top);
  padding: calc(env(safe-area-inset-top) + 5px) var(--space-4) var(--space-2) var(--space-4);
  height: calc(61px + env(safe-area-inset-top));
  box-sizing: border-box;
}

.search-bar-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 48px;
}

.search-input-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-4);
  height: 36px;
  box-shadow: var(--shadow-sm);
}

.search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  text-shadow: none;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-icon {
  font-size: 18px;
  color: var(--color-text-tertiary);
  margin-left: var(--space-2);
  text-shadow: none;
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 20px;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-base);
}

.filter-button:hover {
  background-color: var(--color-gray-100);
}


.tag-filter-container {
  display: flex; /* Add flex to allow child to grow */
}

.tag-groups {
  display: flex;
  flex-wrap: nowrap; /* Change to nowrap to keep items in a single line */
  gap: 8px;
  margin-bottom: 0; /* Remove margin */
}

.tag-group-button {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
  text-shadow: none;
}

.tag-group-button.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
  text-shadow: none;
}


.register-place-button-style {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border-strong);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap; /* Prevent text wrapping */
}

.register-place-button-style:hover {
  background-color: var(--color-gray-100);
}

.register-place-button-style .register-place-icon-wrapper {
  display: flex;
  align-items: center;
  margin-right: var(--space-1);
}

.register-place-button-style .register-place-text {
  font-weight: var(--font-weight-medium);
}
/* Button Component Styles */

.btn-full-width {
  width: 100%;
}

.btn-icon-left,
.btn-icon-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-content {
  display: inline-flex;
  align-items: center;
}/* Input Component Styles */

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-full-width {
  width: 100%;
}

.input-icon-left,
.input-icon-right {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  pointer-events: none;
}

.input-icon-left {
  left: var(--space-3);
}

.input-icon-right {
  right: var(--space-3);
}

.input-container:has(.input-icon-left) .input-base {
  padding-left: calc(var(--space-3) * 2 + 20px);
}

.input-container:has(.input-icon-right) .input-base {
  padding-right: calc(var(--space-3) * 2 + 20px);
}

.input-error-message {
  font-size: var(--font-size-xs);
  color: var(--color-error-500);
}/* Modal Component Styles */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-modal);
  padding: var(--space-4);
}

.modal-content {
  background-color: var(--color-background);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-sm {
  width: 100%;
  max-width: 400px;
}

.modal-md {
  width: 100%;
  max-width: 600px;
}

.modal-lg {
  width: 100%;
  max-width: 800px;
}

.modal-full {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.modal-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
}

.modal-close-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xl);
  transition: all var(--transition-base);
}

.modal-close-button:hover {
  background-color: var(--color-gray-100);
  color: var(--color-text-primary);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}.action-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-end;
}

.action-sheet-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.action-sheet-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom, var(--space-4));
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.action-sheet-container.active {
  transform: translateY(0);
}

.action-sheet-handle {
  width: 40px;
  height: 4px;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-full);
  margin: var(--space-3) auto;
}

.action-sheet-header {
  padding: 0 var(--space-4) var(--space-4);
  text-align: center;
}

.action-sheet-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0;
}

.action-sheet-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: var(--space-1) 0 0;
}

.action-sheet-content {
  display: flex;
  flex-direction: column;
}

.action-sheet-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--color-gray-50);
}

.action-sheet-item:last-child {
  border-bottom: none;
}

.action-sheet-item:active {
  background-color: var(--color-gray-50);
}

.action-sheet-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-text-secondary);
}

.action-sheet-item-label {
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

.variant-primary .action-sheet-item-label {
  color: var(--color-primary-600);
}

.variant-danger .action-sheet-item-label {
  color: var(--color-error-500);
}

.action-sheet-footer {
  padding: var(--space-2) var(--space-4) var(--space-4);
}

.action-sheet-cancel {
  width: 100%;
  padding: var(--space-4);
  border: none;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.action-sheet-cancel:active {
  background-color: var(--color-gray-200);
}
.filter-and-register-container {
  position: fixed;
  top: calc(61px + env(safe-area-inset-top)); /* Height of TopSearchBar */
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  background-color: transparent;
  border-bottom: none;
  z-index: 80;
}

.filter-and-register-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}

/* We need to make sure the TagFilter container doesn't shrink */
.filter-and-register-container .tag-filter-container {
  flex-shrink: 0;
}

.sub-tags-container {
  position: fixed;
  top: calc(
    61px + env(safe-area-inset-top) + 49px
  ); /* Height of TopSearchBar + Height of filter-and-register-container */
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background-color: transparent;
  border-bottom: none;
  z-index: 79; /* Below filter-and-register-container */
}

.tag-button {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-default);
  background-color: var(--color-background);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.tag-button.active {
  background-color: var(--color-primary-500);
  color: var(--color-text-inverse);
  border-color: var(--color-primary-500);
}

.floating-register-button {
  position: absolute;
  right: 16px;
  bottom: 16px; 
  z-index: var(--z-index-dropdown);
  width: auto;
  height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-500);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-lg);
  transition: background-color var(--transition-fast);
}

.floating-register-button:hover {
  background-color: var(--color-primary-600);
}

.current-location-btn {
  position: absolute;
  left: 20px;
  bottom: 16px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: var(--color-background);
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: var(--z-index-dropdown);
  color: var(--color-text-primary);
  transition: background-color var(--transition-fast);
}

.current-location-btn:hover {
  background-color: var(--color-background-secondary);
}

.floating-register-button .register-place-icon-wrapper {
  display: none;
}

.floating-register-button .register-place-text {
  font-weight: 600;
}
.post-tag-filter-container {
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.post-tag-scroll-area {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.post-tag-scroll-area::-webkit-scrollbar {
  display: none;
}

.post-tag-chip {
  padding: 6px 16px;
  border-radius: 20px;
  background-color: #f5f5f5;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.post-tag-chip.active {
  background-color: #333;
  color: #fff;
  font-weight: 600;
}
.post-item-container {
  display: flex;
  justify-content: space-between;
  padding: 24px; /* Increased padding */
  background-color: var(--color-background);
  /* border-bottom: 1px solid var(--color-border-light); REMOVED */
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-base); /* Add transform transition */
  
  /* Card Layout Styles */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); /* Default soft shadow */
  margin-bottom: var(--space-4); /* Space between cards */
  border: 1px solid transparent; /* Prevent layout shift on hover if border added */
}

.post-item-container:hover {
  transform: translateY(-2px); /* Slight lift */
  box-shadow: var(--shadow-md); /* Stronger shadow on hover */
}

.post-item-container:active {
  background-color: var(--color-background); /* Keep white */
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.post-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0; /* Ensures text truncation works */
  margin-right: var(--space-3);
}

.post-item-header {
  margin-bottom: var(--space-2);
}

.post-item-tags {
    margin-bottom: var(--space-1);
}

.post-item-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-1) 0;
  line-height: var(--line-height-tight);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Show max 2 lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-item-board {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin: 0;
}

.post-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.post-meta-stats {
    display: flex;
    gap: var(--space-2);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.post-item-thumbnail {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-gray-100);
}

.post-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-list-container {
  padding-bottom: 80px; /* Space for FAB and Bottom Nav */
  min-height: 100%;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
}

.post-list-loading {
  display: flex;
  justify-content: center;
  padding: 20px;
  flex: 1;
  align-items: center;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.post-list-empty {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 14px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.post-list-error {
    padding: 40px;
    text-align: center;
    color: #ff4d4f;
    font-size: 14px;
}
.write-fab {
  position: fixed;
  bottom: 80px; /* Above bottom nav */
  right: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-gray-900);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  z-index: var(--z-index-fixed);
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.write-fab:active {
  transform: scale(0.95);
  background-color: var(--color-gray-800);
}
.community-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: var(--color-background);
  flex: 1;
  width: 100%;
  margin: 0 auto;
  overflow-y: auto;
}

.community-header {
  padding: var(--space-4);
  background-color: var(--color-background);
}

.community-header h1 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin: 0;
  color: var(--color-text-primary);
}

.community-content {
  flex: 1;
}
.profile-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.settings-icon-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-default, #333);
  border-radius: 50%;
  transition: background-color 0.2s;
}

.settings-icon-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.profile-header {
  text-align: center;
  margin-bottom: 30px;
}
.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--color-border-default);
}
.profile-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0;
}
.profile-email {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-top: 5px;
}
.profile-content {
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-text-primary);
}
.logout-button {
  padding: 10px 20px;
  font-size: var(--font-size-base);
  color: var(--color-text-inverse);
  background-color: var(--color-error-500);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.logout-button:hover {
  background-color: var(--color-error-600);
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: 10px;
  align-items: center;
}

.profile-input {
  padding: 8px 12px;
  font-size: var(--font-size-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  width: 80%;
  max-width: 300px;
  text-align: center;
}

.profile-edit-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: 20px;
  justify-content: center;
}

.profile-button {
  padding: 10px 20px;
  font-size: var(--font-size-base);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--color-primary-500);
  color: var(--color-text-inverse);
  transition: background-color var(--transition-fast);
}

.profile-button:hover {
  background-color: var(--color-primary-600);
}

.profile-button.save {
  background-color: var(--color-success-500);
}

.profile-button.save:hover {
  background-color: var(--color-success-600);
}

.profile-button.cancel {
  background-color: var(--color-gray-500);
}

.profile-button.cancel:hover {
  background-color: var(--color-gray-600);
}.registration-page-container {
  padding: var(--space-5);
  max-width: 700px;
  margin: 0 auto;
  position: relative; /* For absolute positioning of back button */
  padding-top: 60px; /* Add padding to avoid overlap with back button */
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
  background-color: var(--color-background);
  min-height: 100vh;
}

.back-button {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  left: calc(16px + env(safe-area-inset-left));
  z-index: var(--z-index-sticky);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-background);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--font-size-2xl);
  color: var(--color-text-primary);
  transition: background-color var(--transition-fast);
}

.back-button:hover {
  background-color: var(--color-background-secondary);
}

.camping-site-form h2 {
  text-align: center;
  margin-bottom: var(--space-6);
  color: var(--color-text-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
}

.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  min-height: 80px; /* Approx 3 lines */
  font-family: inherit; /* Ensure it uses the same font as other inputs */
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  overflow-y: auto;
}

.address-search-container {
  display: flex;
  gap: var(--space-2);
}

.address-search-container input {
  flex-grow: 1;
}

.address-search-container button {
  padding: 0 var(--space-4);
  background-color: var(--color-gray-600);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.address-search-container button:hover {
  background-color: var(--color-gray-700);
}

.form-group-inline {
  display: flex;
  gap: var(--space-5);
}

.form-group-inline .form-group {
  flex: 1;
}

.error-message {
  background-color: var(--color-error-50);
  color: var(--color-error-700);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  text-align: center;
  font-size: var(--font-size-sm);
}

.camping-site-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  background-color: var(--color-primary-500);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.camping-site-form button[type="submit"]:hover {
  background-color: var(--color-primary-600);
}

.camping-site-form button[type="submit"]:disabled {
  background-color: var(--color-text-disabled);
  cursor: not-allowed;
}

.tag-group {
  margin-bottom: var(--space-3); /* Add some space between tag groups */
}

.tag-group h3 {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.tags-container {
  display: flex; /* Use flexbox for inline display */
  flex-wrap: wrap; /* Allow tags to wrap to the next line if space is limited */
  gap: var(--space-2); /* Space between tags */
}

.tag-item {
  display: flex;
  align-items: center;
  background-color: var(--color-background-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
  border: 1px solid var(--color-border-default);
  user-select: none;
  color: var(--color-text-secondary);
}

.tag-item:hover {
  background-color: var(--color-background-tertiary);
  box-shadow: var(--shadow-sm);
}

.tag-item.selected {
  background-color: var(--color-primary-500);
  color: var(--color-text-inverse);
  border-color: var(--color-primary-600);
}

.tag-icon {
  margin-right: var(--space-2);
  font-size: 1.1em;
}

.tag-name {
  font-size: var(--font-size-sm);
}

.tag-remove-button {
  margin-left: var(--space-2);
  background: none;
  border: none;
  color: var(--color-text-inverse);
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
}

.tag-remove-button:hover {
  opacity: 1;
}

.uploaded-image-preview {
  margin-top: var(--space-3);
  border: 1px solid var(--color-border-default);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  background-color: var(--color-background-secondary);
}

.uploaded-image-preview img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.uploaded-image-preview button {
  padding: 8px 16px;
  background-color: var(--color-error-500); /* Red for delete/change */
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  font-size: var(--font-size-sm);
}

.uploaded-image-preview button:hover {
  background-color: var(--color-error-600);
}

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.image-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
}
.place-search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Bottom sheet style or center */
}

.place-search-modal-content {
  background-color: #fff;
  width: 100%;
  height: 90vh; /* Almost full screen */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.modal-map-container {
  flex: 1;
  position: relative;
  background-color: #eee;
}

.center-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff385c' width='32' height='32'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transform: translate(-50%, -100%); /* Pin point at bottom center */
  z-index: 10;
  pointer-events: none;
}

.modal-footer {
  padding: 16px;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
}

.selected-address-info {
  margin-bottom: 12px;
}

.address-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.coords-text {
  font-size: 12px;
  color: #888;
}

.confirm-btn {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background-color: #333;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.confirm-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
/* src/styles/AddressSearchPage.css */
.address-search-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-3);
  box-sizing: border-box;
  background-color: var(--color-background);
}

.map-container {
  flex-grow: 1;
  position: relative;
  border: 1px solid var(--color-border-strong);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.center-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%); /* Move anchor to bottom-center */
  width: 32px; /* Adjust based on marker image size */
  height: 32px; /* Adjust based on marker image size */
  background-image: url("/icons/markers/default.png");
  background-size: contain;
  pointer-events: none; /* Make sure it doesn't interfere with map events */
  z-index: var(--z-index-dropdown);
}

.info-panel {
  padding: var(--space-4);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-background-secondary);
  text-align: center;
  border-radius: var(--radius-md);
}

.info-panel p {
  margin: 0 0 var(--space-3) 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
}

.info-panel button {
  padding: 12px 20px;
  width: 100%;
  background-color: var(--color-primary-500);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  transition: background-color var(--transition-fast);
}

.info-panel button:hover {
  background-color: var(--color-primary-600);
}

.info-panel button:disabled {
  background-color: var(--color-text-disabled);
  cursor: not-allowed;
}
@keyframes react-loading-skeleton {
  100% {
    transform: translateX(100%);
  }
}

.react-loading-skeleton {
  --base-color: #ebebeb;
  --highlight-color: #f5f5f5;
  --animation-duration: 1.5s;
  --animation-direction: normal;
  --pseudo-element-display: block; /* Enable animation */

  background-color: var(--base-color);

  width: 100%;
  border-radius: 0.25rem;
  display: inline-flex;
  line-height: 1;

  position: relative;
  user-select: none;
  overflow: hidden;
}

.react-loading-skeleton::after {
  content: ' ';
  display: var(--pseudo-element-display);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-repeat: no-repeat;
  background-image: var(
    --custom-highlight-background,
    linear-gradient(
      90deg,
      var(--base-color) 0%,
      var(--highlight-color) 50%,
      var(--base-color) 100%
    )
  );
  transform: translateX(-100%);

  animation-name: react-loading-skeleton;
  animation-direction: var(--animation-direction);
  animation-duration: var(--animation-duration);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@media (prefers-reduced-motion) {
  .react-loading-skeleton {
    --pseudo-element-display: none; /* Disable animation */
  }
}
.bookmarks-page {
  width: 100%;
  background-color: var(--color-background);
  min-height: 100vh;
}

.bookmarks-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-4);
  padding-bottom: calc(var(--gnb-height) + var(--space-4));
}

.bookmarks-page .page-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.bookmarks-page .page-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-base);
}

.bookmarks-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .bookmarks-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bookmark-item {
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bookmark-item:active {
  transform: scale(0.98);
  background-color: var(--color-gray-50);
}

.bookmark-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background-color: var(--color-gray-100);
  flex-shrink: 0;
}

.bookmark-content {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0; /* text-overflow: ellipsis를 위해 필요 */
}

.bookmark-content h3 {
  margin: 0 0 4px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-address {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-tags {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.bookmark-tags::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-4);
  text-align: center;
  color: var(--color-text-tertiary);
}

.empty-icon {
  margin-bottom: var(--space-4);
  color: var(--color-gray-300);
}

.empty-state h2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}
.login-button {
  justify-content: center !important;
  margin: 0 var(--space-4) var(--space-2) !important;
  border-radius: var(--radius-md) !important;
  border-bottom: none !important;
}

.login-button.google {
  background-color: #f2f2f2 !important;
  color: #333 !important;
}

.login-button.google:active {
  background-color: #e0e0e0 !important;
}

.login-button.kakao {
  background-color: #fee500 !important;
  color: #3c1e1e !important;
}

.login-button.kakao:active {
  background-color: #f2d700 !important;
}

.login-button .action-sheet-item-label {
  color: inherit !important;
}

.login-button .action-sheet-item-icon {
  color: inherit !important;
}/* 전체 페이지 컨테이너 - 전체 화면 사용 */
._container_eofre_2 {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
  position: relative;
}

._backButton_eofre_13 {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 1.5rem);
  left: 1.2rem;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

._backButton_eofre_13:active {
  transform: scale(0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

/* 이미지 모달 */
._imageModal_eofre_41 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: _fadeIn_eofre_1 0.2s ease-out;
}

._modalImage_eofre_56 {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: _zoomIn_eofre_1 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes _fadeIn_eofre_1 {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes _zoomIn_eofre_1 {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 이미지 슬라이더 - 고정 크기 */
._imageSliderWrapper_eofre_74 {
  position: relative;
  width: 100vw;
  height: 100vw;
  max-height: 400px;
  min-height: 300px;
  background-color: var(--color-background-secondary);
  flex-shrink: 0;
}

._imageSwiper_eofre_84 {
  width: 100%;
  height: 100%;
}

._mainImage_eofre_89 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

._placeholderImage_eofre_95 {
  width: 100%;
  height: 100%;
}

/* Swiper Pagination 커스텀 */
._imageSwiper_eofre_84 .swiper-pagination {
  bottom: 16px !important;
}

._imageSwiper_eofre_84 .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: white;
  opacity: 0.5;
  transition: all 0.3s ease;
}

._imageSwiper_eofre_84 .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 4px;
  background: white;
}

/* 컨텐츠 영역 - 스크롤 가능 */
._content_eofre_121 {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  background-color: #ffffff;
}

/* 타이틀 섹션 */
._headerSection_eofre_135 {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-gray-100);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

._typeBadge_eofre_143 {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-600);
  background-color: var(--color-primary-50);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

._headerSection_eofre_135 h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin: 0;
  color: var(--color-text-primary);
  line-height: 1.2;
  flex: 1;
}

._titleRow_eofre_162 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
}

._actionButtons_eofre_169 {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
}

._bookmarked_eofre_176 {
  color: var(--color-primary-500);
}

._editButton_eofre_180 {
  flex-shrink: 0;
  padding: 4px 12px !important;
  height: auto !important;
  font-size: var(--font-size-sm) !important;
}

._ratingRow_eofre_187 {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

._starIcon_eofre_195 {
  color: #ffb800; /* Star yellow */
  fill: #ffb800;
}

._ratingValue_eofre_200 {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

._reviewCount_eofre_205 {
  color: var(--color-text-tertiary);
}

._addressRow_eofre_209 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

._addressText_eofre_217 {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.4;
  flex: 1;
}

._addressActions_eofre_224 {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

._iconButton_eofre_230 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

._iconButton_eofre_230:active {
  background-color: var(--color-background-secondary);
  transform: scale(0.95);
}

._iconButton_eofre_230._primary_eofre_249 {
  background-color: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: white;
}

/* 정보 섹션 (헤더와 동일한 레벨 디자인) */
._section_eofre_256 {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-gray-100);
}

._section_eofre_256:last-child {
  border-bottom: none;
}

._section_eofre_256 h2 {
  grid-column: 1 / -1;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

._infoRow_eofre_276 {
  display: contents;
}

._infoRow_eofre_276 ._label_eofre_280 {
  grid-column: 1;
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) 0;
  white-space: nowrap;
}

._infoRow_eofre_276 ._value_eofre_289,
._infoRow_eofre_276 ._tags_eofre_290,
._infoRow_eofre_276 ._referralLinks_eofre_291 {
  grid-column: 2;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

._infoRow_eofre_276:last-child ._value_eofre_289,
._infoRow_eofre_276:last-child ._tags_eofre_290,
._infoRow_eofre_276:last-child ._referralLinks_eofre_291 {
  border-bottom: none;
}

._description_eofre_308 {
  grid-column: 1 / -1;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  line-height: 1.7;
  white-space: pre-wrap;
  padding: var(--space-2) 0;
}

/* 태그 섹션 */
._tagSection_eofre_318 {
  margin-top: var(--space-4);
}

._tagSection_eofre_318 h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

._tagGroup_eofre_328 {
  margin-bottom: var(--space-4);
}

._tagGroup_eofre_328 h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

._tags_eofre_290 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* .tag related styles removed as we will use the Tag component */
/* .tag { ... } */
/* .tagIcon { ... } */

._adminActions_eofre_348 {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

/* .editButton, .approveButton removed as we will use Button component */.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.review-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-stars {
  display: flex;
  gap: 2px;
  color: var(--color-warning-500);
}

.review-content {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.review-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px; /* Scrollbar space */
}

.review-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  background-color: var(--color-gray-100);
}

.review-footer {
  display: flex;
  gap: 12px;
}

.review-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.review-action:hover {
  color: var(--color-text-secondary);
}

.review-action.active {
  color: var(--color-primary-600);
}
.review-list-container {
  display: flex;
  flex-direction: column;
}

.review-list-loading,
.review-list-empty,
.review-list-error {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.review-section {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-default);
}

.review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.review-section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.review-action-area {
  background-color: var(--color-background-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-6);
}

.review-prompt {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.review-sub-prompt {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.write-review-button {
  width: 100%;
  max-width: 300px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 20px;
  background-color: var(--color-primary-600);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: background-color 0.2s;
}

.write-review-button:hover {
  background-color: var(--color-primary-700);
}/**
 * Swiper 12.0.3
 * Most modern mobile touch slider and framework with hardware accelerated transitions
 * https://swiperjs.com
 *
 * Copyright 2014-2025 Vladimir Kharlampidi
 *
 * Released under the MIT License
 *
 * Released on: October 21, 2025
 */

:root {
  --swiper-theme-color: #007aff;
  /*
  --swiper-preloader-color: var(--swiper-theme-color);
  --swiper-wrapper-transition-timing-function: initial;
  */
}
:host {
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}
.swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  /* Fix of Webkit flickering */
  z-index: 1;
  display: block;
}
.swiper-vertical > .swiper-wrapper {
  flex-direction: column;
}
.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
  box-sizing: content-box;
}
.swiper-android .swiper-slide,
.swiper-ios .swiper-slide,
.swiper-wrapper {
  transform: translate3d(0px, 0, 0);
}
.swiper-horizontal {
  touch-action: pan-y;
}
.swiper-vertical {
  touch-action: pan-x;
}
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}
.swiper-slide-invisible-blank {
  visibility: hidden;
}
/* Auto Height */
.swiper-autoheight,
.swiper-autoheight .swiper-slide {
  height: auto;
}
.swiper-autoheight .swiper-wrapper {
  align-items: flex-start;
  transition-property: transform, height;
}
.swiper-backface-hidden .swiper-slide {
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* 3D Effects */
.swiper-3d.swiper-css-mode .swiper-wrapper {
  perspective: 1200px;
}
.swiper-3d .swiper-wrapper {
  transform-style: preserve-3d;
}
.swiper-3d {
  perspective: 1200px;
  .swiper-slide,
  .swiper-cube-shadow {
    transform-style: preserve-3d;
  }
}

/* CSS Mode */
.swiper-css-mode {
  > .swiper-wrapper {
    overflow: auto;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    &::-webkit-scrollbar {
      display: none;
    }
  }
  > .swiper-wrapper > .swiper-slide {
    scroll-snap-align: start start;
  }
  &.swiper-horizontal {
    > .swiper-wrapper {
      scroll-snap-type: x mandatory;
    }
  }
  &.swiper-vertical {
    > .swiper-wrapper {
      scroll-snap-type: y mandatory;
    }
  }
  &.swiper-free-mode {
    > .swiper-wrapper {
      scroll-snap-type: none;
    }
    > .swiper-wrapper > .swiper-slide {
      scroll-snap-align: none;
    }
  }
  &.swiper-centered {
    > .swiper-wrapper::before {
      content: '';
      flex-shrink: 0;
      order: 9999;
    }
    > .swiper-wrapper > .swiper-slide {
      scroll-snap-align: center center;
      scroll-snap-stop: always;
    }
  }
  &.swiper-centered.swiper-horizontal {
    > .swiper-wrapper > .swiper-slide:first-child {
      margin-inline-start: var(--swiper-centered-offset-before);
    }
    > .swiper-wrapper::before {
      height: 100%;
      min-height: 1px;
      width: var(--swiper-centered-offset-after);
    }
  }
  &.swiper-centered.swiper-vertical {
    > .swiper-wrapper > .swiper-slide:first-child {
      margin-block-start: var(--swiper-centered-offset-before);
    }
    > .swiper-wrapper::before {
      width: 100%;
      min-width: 1px;
      height: var(--swiper-centered-offset-after);
    }
  }
}

/* Slide styles start */
/* 3D Shadows */
.swiper-3d {
  .swiper-slide-shadow,
  .swiper-slide-shadow-left,
  .swiper-slide-shadow-right,
  .swiper-slide-shadow-top,
  .swiper-slide-shadow-bottom,
  .swiper-slide-shadow,
  .swiper-slide-shadow-left,
  .swiper-slide-shadow-right,
  .swiper-slide-shadow-top,
  .swiper-slide-shadow-bottom {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
  }
  .swiper-slide-shadow {
    background: rgba(0, 0, 0, 0.15);
  }
  .swiper-slide-shadow-left {
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
  .swiper-slide-shadow-right {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
  .swiper-slide-shadow-top {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
  .swiper-slide-shadow-bottom {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
}
.swiper-lazy-preloader {
  width: 42px;
  height: 42px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -21px;
  margin-top: -21px;
  z-index: 10;
  transform-origin: 50%;
  box-sizing: border-box;
  border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
  border-radius: 50%;
  border-top-color: transparent;
}
.swiper:not(.swiper-watch-progress),
.swiper-watch-progress .swiper-slide-visible {
  .swiper-lazy-preloader {
    animation: swiper-preloader-spin 1s infinite linear;
  }
}
.swiper-lazy-preloader-white {
  --swiper-preloader-color: #fff;
}
.swiper-lazy-preloader-black {
  --swiper-preloader-color: #000;
}
@keyframes swiper-preloader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Slide styles end */
:root {
  /*
  --swiper-pagination-color: var(--swiper-theme-color);
  --swiper-pagination-left: auto;
  --swiper-pagination-right: 8px;
  --swiper-pagination-bottom: 8px;
  --swiper-pagination-top: auto;
  --swiper-pagination-fraction-color: inherit;
  --swiper-pagination-progressbar-bg-color: rgba(0,0,0,0.25);
  --swiper-pagination-progressbar-size: 4px;
  --swiper-pagination-bullet-size: 8px;
  --swiper-pagination-bullet-width: 8px;
  --swiper-pagination-bullet-height: 8px;
  --swiper-pagination-bullet-border-radius: 50%;
  --swiper-pagination-bullet-inactive-color: #000;
  --swiper-pagination-bullet-inactive-opacity: 0.2;
  --swiper-pagination-bullet-opacity: 1;
  --swiper-pagination-bullet-horizontal-gap: 4px;
  --swiper-pagination-bullet-vertical-gap: 6px;
  */
}
.swiper-pagination {
  position: absolute;
  text-align: center;
  transition: 300ms opacity;
  transform: translate3d(0, 0, 0);
  z-index: 10;
  &.swiper-pagination-hidden {
    opacity: 0;
  }
  .swiper-pagination-disabled > &,
  &.swiper-pagination-disabled {
    display: none !important;
  }
}
/* Common Styles */
.swiper-pagination-fraction,
.swiper-pagination-custom,
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: var(--swiper-pagination-bottom, 8px);
  top: var(--swiper-pagination-top, auto);
  left: 0;
  width: 100%;
}
/* Bullets */
.swiper-pagination-bullets-dynamic {
  overflow: hidden;
  font-size: 0;
  .swiper-pagination-bullet {
    transform: scale(0.33);
    position: relative;
  }
  .swiper-pagination-bullet-active {
    transform: scale(1);
  }
  .swiper-pagination-bullet-active-main {
    transform: scale(1);
  }
  .swiper-pagination-bullet-active-prev {
    transform: scale(0.66);
  }
  .swiper-pagination-bullet-active-prev-prev {
    transform: scale(0.33);
  }
  .swiper-pagination-bullet-active-next {
    transform: scale(0.66);
  }
  .swiper-pagination-bullet-active-next-next {
    transform: scale(0.33);
  }
}
.swiper-pagination-bullet {
  width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
  height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
  display: inline-block;
  border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
  background: var(--swiper-pagination-bullet-inactive-color, #000);
  opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
  button& {
    border: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    appearance: none;
  }
  .swiper-pagination-clickable & {
    cursor: pointer;
  }

  &:only-child {
    display: none !important;
  }
}
.swiper-pagination-bullet-active {
  opacity: var(--swiper-pagination-bullet-opacity, 1);
  background: var(--swiper-pagination-color, var(--swiper-theme-color));
}

.swiper-vertical > .swiper-pagination-bullets,
.swiper-pagination-vertical.swiper-pagination-bullets {
  right: var(--swiper-pagination-right, 8px);
  left: var(--swiper-pagination-left, auto);
  top: 50%;
  transform: translate3d(0px, -50%, 0);
  .swiper-pagination-bullet {
    margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
    display: block;
  }
  &.swiper-pagination-bullets-dynamic {
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    .swiper-pagination-bullet {
      display: inline-block;
      transition:
        200ms transform,
        200ms top;
    }
  }
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-horizontal.swiper-pagination-bullets {
  .swiper-pagination-bullet {
    margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
  }
  &.swiper-pagination-bullets-dynamic {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    .swiper-pagination-bullet {
      transition:
        200ms transform,
        200ms left;
    }
  }
}
.swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
  transition:
    200ms transform,
    200ms right;
}
/* Fraction */
.swiper-pagination-fraction {
  color: var(--swiper-pagination-fraction-color, inherit);
}
/* Progress */
.swiper-pagination-progressbar {
  background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));
  position: absolute;
  .swiper-pagination-progressbar-fill {
    background: var(--swiper-pagination-color, var(--swiper-theme-color));
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transform-origin: left top;
  }
  .swiper-rtl & .swiper-pagination-progressbar-fill {
    transform-origin: right top;
  }
  .swiper-horizontal > &,
  &.swiper-pagination-horizontal,
  .swiper-vertical > &.swiper-pagination-progressbar-opposite,
  &.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {
    width: 100%;
    height: var(--swiper-pagination-progressbar-size, 4px);
    left: 0;
    top: 0;
  }
  .swiper-vertical > &,
  &.swiper-pagination-vertical,
  .swiper-horizontal > &.swiper-pagination-progressbar-opposite,
  &.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {
    width: var(--swiper-pagination-progressbar-size, 4px);
    height: 100%;
    left: 0;
    top: 0;
  }
}
.swiper-pagination-lock {
  display: none;
}
.post-create-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-background);
}

.post-create-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  z-index: var(--z-index-sticky);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box; /* padding-top을 높이 외로 처리 */
}

/* 상단바 높이만큼 컨텐츠 여백 확보 */
.post-create-content {
  margin-top: calc(var(--header-height) + env(safe-area-inset-top));
}

.back-button, .submit-button {
  background: none;
  border: none;
  font-size: var(--font-size-base);
  cursor: pointer;
  padding: 0;
  color: var(--color-text-primary);
  width: 40px; /* 고정 너비 할당 */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.back-button {
  justify-content: flex-start;
}

.submit-button {
  justify-content: flex-end;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-500);
}

.submit-button:disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.header-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin: 0;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text-primary);
}

.post-create-content {
  margin-top: calc(var(--header-height) + env(safe-area-inset-top));
  flex: 1;
  padding: var(--space-5);
  overflow-y: auto;
  display: flex; 
  flex-direction: column;
  gap: var(--space-4);
}

/* Removed .post-form-fields as it's no longer used in TSX */

.post-title-input {
  width: 100%;
  padding: var(--space-3) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  border: none;
  border-bottom: 1px solid var(--color-border-light);
  outline: none;
  background-color: transparent;
  color: var(--color-text-primary);
}

.post-title-input::placeholder {
  color: var(--color-text-disabled);
}

.post-content-input {
  width: 100%;
  padding: var(--space-3) 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  border: none;
  resize: none;
  outline: none;
  min-height: 200px;
  flex: 1; /* Allow content area to expand */
  background-color: transparent;
  color: var(--color-text-primary);
}

.post-content-input::placeholder {
  color: var(--color-text-disabled);
}
.topic-selector-container {
  margin-bottom: 20px;
}

.topic-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
}

.topic-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #f5f5f5;
  color: #666;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-chip.selected {
  background-color: #e6f7ff;
  color: #1890ff;
  border-color: #1890ff;
  font-weight: 600;
}
.place-selector-container {
  margin-bottom: 20px;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.place-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
}

.place-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.place-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.place-name {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.place-address {
  font-size: 13px;
  color: #888;
}

.place-remove-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
}
.image-uploader-container {
  margin-top: 20px;
}

.image-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px; /* For scrollbar */
}

.image-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #eee;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
}

.image-add-btn {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #666;
  gap: 4px;
}

.image-add-count {
  font-size: 12px;
  color: #888;
}

.image-input {
  display: none;
}
/* Post Detail Page Container */
.post-detail-container {
  background-color: var(--color-gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1; /* Added based on user feedback to fill parent */
  padding-bottom: var(--space-20); /* Space for fixed comment input */
}

/* Header */
.post-detail-header {
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--space-4);
  background-color: var(--color-background); /* Using solid theme background */
  border-bottom: 1px solid var(--color-border-light);
  width: 100%;
  margin: 0 auto; /* Center like the card */
}

.header-back-btn {
  padding: var(--space-2);
  margin-left: calc(var(--space-2) * -1);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-base);
}

.header-back-btn:hover {
  background-color: var(--color-gray-100);
}

.header-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-left: var(--space-2);
  color: var(--color-text-primary);
}

/* Post Content Area - Card Style */
.post-content-area {
  width: 100%;
  max-width: 896px; /* Increased from 640px to 896px (container-md roughly) for better desktop view */
  margin: var(--space-4) auto;
  padding: var(--space-6) var(--space-6);
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .post-content-area {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: calc(100vh - var(--header-height));
  }
}

/* Post Header (Author info) */
.post-author-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.author-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-profile-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--color-gray-100);
  border: 1px solid var(--color-border-light);
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.author-name {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
}

.author-badge {
  padding: 2px 8px;
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
}

.post-time {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Post Body */
.post-body {
  margin-bottom: var(--space-8);
}

.post-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-tight);
}

.post-text {
  white-space: pre-wrap;
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-base);
}

.post-image-slider {
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-border-light);
}

.post-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: contain;
  display: block;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.post-tag {
  padding: 6px 14px;
  background-color: var(--color-gray-100);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-base);
}

.post-tag:hover {
  background-color: var(--color-gray-200);
}


/* Camping Sites Section */
.post-camping-sites-section {
  margin-bottom: var(--space-6);
}

.post-section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.post-camping-sites-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.camping-site-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background-color: var(--color-background-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.camping-site-card:hover {
  border-color: var(--color-primary-200);
  background-color: var(--color-gray-100);
}

.camping-site-icon {
  margin-top: 2px;
  color: var(--color-primary-500);
  flex-shrink: 0;
}

.camping-site-info {
  flex: 1;
  min-width: 0;
}

.camping-site-name {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.camping-site-address {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Interaction Buttons */
.interaction-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-8);
  position: relative;
}

.interaction-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  flex: 1; /* Distribute width equally */
}

.interaction-btn.active {
  background-color: var(--color-primary-50);
  color: var(--color-primary-600);
}

.interaction-btn.default {
  background-color: var(--color-gray-50);
  color: var(--color-text-secondary);
}

.interaction-btn.default:hover {
  background-color: var(--color-gray-100);
  transform: translateY(-1px);
}

.toast-message {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, var(--space-2));
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-gray-800);
  color: var(--color-text-inverse);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-md);
  white-space: nowrap;
  z-index: var(--z-index-tooltip);
  box-shadow: var(--shadow-lg);
}

/* Comment List */
.comment-list-container {
  margin-bottom: var(--space-8);
}

.comment-empty {
  padding: var(--space-12) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.comment-loading {
  padding: var(--space-4) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Comment Item */
.comment-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-item.reply {
  background-color: var(--color-background-secondary);
  border-radius: var(--radius-md);
  margin-top: var(--space-2);
  padding: var(--space-3);
  border-bottom: none;
}

.comment-content-wrapper {
  display: flex;
  gap: var(--space-3);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--color-gray-200);
}

.comment-main {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.comment-author {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}

.comment-time {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.comment-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  white-space: pre-wrap;
  line-height: var(--line-height-normal);
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.comment-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.comment-action-btn:hover {
  color: var(--color-text-secondary);
}

.comment-action-btn.active {
  color: var(--color-primary-500);
}

.replies-list {
  margin-top: var(--space-2);
  padding-left: var(--space-2);
  border-left: 2px solid var(--color-border-light);
  margin-left: var(--space-4);
}

/* Comment Input */
.comment-input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  z-index: var(--z-index-fixed);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.reply-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-primary-50);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  color: var(--color-primary-700);
  max-width: 896px; /* Increased from 640px to 896px (container-md roughly) for better desktop view */
  margin-left: auto;
  margin-right: auto;
}

.reply-target {
  font-weight: var(--font-weight-bold);
}

.cancel-reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.comment-form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 896px; /* Increased from 640px to 896px (container-md roughly) for better desktop view */
  margin: 0 auto;
}

.comment-input-field {
  flex: 1;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: var(--font-size-sm);
  border: 1px solid transparent;
  outline: none;
  transition: all var(--transition-base);
  min-height: 48px; /* Touch target size */
}

.comment-input-field:focus {
  background-color: var(--color-background);
  border-color: var(--color-primary-300);
  box-shadow: 0 0 0 2px var(--color-primary-100);
}

.comment-submit-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  background-color: var(--color-gray-200);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.comment-submit-btn.active {
  background-color: var(--color-primary-500);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
  transform: scale(1.05); /* Subtle pop */
}

.comment-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Loading/Error States */
.loading-container, .error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50vh;
  gap: var(--space-4);
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-gray-200);
  border-top-color: var(--color-primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-text {
  color: var(--color-text-muted);
}

.back-btn {
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-gray-100);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
}

/* Import Design Tokens */
/* Design Tokens */
/* 모든 디자인 토큰을 한 곳에서 관리하여 일관성 유지 */
/* ============================================ */
/* 1. Shared Tokens (Typography, Spacing, etc.) */
/* ============================================ */
:root {
  /* Spacing Scale */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --font-family-mono: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  /* Z-Index */
  --z-index-base: 1;
  --z-index-dropdown: 10;
  --z-index-sticky: 20;
  --z-index-fixed: 30;
  --z-index-modal-backdrop: 40;
  --z-index-modal: 50;
  --z-index-popover: 60;
  --z-index-tooltip: 70;
  --z-index-notification: 80;
  --z-index-top: 90;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* Component Dimensions */
  --header-height: 56px;
  --gnb-height: 68px;
  --input-height-sm: 32px;
  --input-height-md: 40px;
  --input-height-lg: 48px;
  --button-height-sm: 32px;
  --button-height-md: 40px;
  --button-height-lg: 48px;
}
/* ============================================ */
/* 2. Theme: Ocean (Default)                    */
/* ============================================ */
:root, [data-theme="ocean"] {
  /* Primary Colors (Blue) */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;

  /* Gray Scale (Default Cool Gray) */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Semantic Colors */
  --color-success-50: #f0fdf4;
  --color-success-500: #10b981;
  --color-success-600: #059669;
  --color-success-700: #047857;

  --color-error-50: #fef2f2;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;

  --color-warning-50: #fffbeb;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;

  --color-info-50: #eff6ff;
  --color-info-500: #3b82f6;
  --color-info-600: #2563eb;

  /* Functional Colors */
  --color-background: #ffffff;
  --color-background-secondary: #f9fafb;
  --color-background-tertiary: #f3f4f6;
  
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-tertiary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-text-disabled: #d1d5db;
  --color-text-inverse: #ffffff;

  --color-border-light: #f3f4f6;
  --color-border-default: #e5e7eb;
  --color-border-strong: #d1d5db;

  --gnb-background: var(--color-background);
  --gnb-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
/* ============================================ */
/* 3. Theme: Forest                             */
/* ============================================ */
[data-theme="forest"] {
  /* Primary Colors (Green/Emerald) */
  --color-primary-50: #ecfdf5;
  --color-primary-100: #d1fae5;
  --color-primary-200: #a7f3d0;
  --color-primary-300: #6ee7b7;
  --color-primary-400: #34d399;
  --color-primary-500: #10b981;
  --color-primary-600: #059669;
  --color-primary-700: #047857;
  --color-primary-800: #065f46;
  --color-primary-900: #064e3b;

  /* Gray Scale (Warm Gray / Stone) */
  --color-gray-50: #fafaf9;
  --color-gray-100: #f5f5f4;
  --color-gray-200: #e7e5e4;
  --color-gray-300: #d6d3d1;
  --color-gray-400: #a8a29e;
  --color-gray-500: #78716c;
  --color-gray-600: #57534e;
  --color-gray-700: #44403c;
  --color-gray-800: #292524;
  --color-gray-900: #1c1917;
  
  /* Background Colors - slightly warmer */
  --color-background: #ffffff;
  --color-background-secondary: #fafaf9; /* Stone 50 */
  --color-background-tertiary: #f5f5f4; /* Stone 100 */

  /* Text Colors */
  --color-text-primary: #1c1917; /* Stone 900 */
  --color-text-secondary: #44403c; /* Stone 700 */
  --color-text-tertiary: #78716c; /* Stone 500 */
  
  /* Borders */
  --color-border-light: #f5f5f4;
  --color-border-default: #e7e5e4;
  --color-border-strong: #d6d3d1;
}
/* Utility Classes */
/* 재사용 가능한 유틸리티 클래스들 */
/* ============================================ */
/* Text Utilities */
/* ============================================ */
.text-primary {
  color: var(--color-text-primary);
}
.text-secondary {
  color: var(--color-text-secondary);
}
.text-tertiary {
  color: var(--color-text-tertiary);
}
.text-muted {
  color: var(--color-text-muted);
}
.text-inverse {
  color: var(--color-text-inverse);
}
.text-error {
  color: var(--color-error-500);
}
.text-success {
  color: var(--color-success-500);
}
/* ============================================ */
/* Heading Utilities */
/* ============================================ */
.heading-xl {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}
.heading-lg {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}
.heading-md {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}
.heading-sm {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
}
/* ============================================ */
/* Button Base Styles */
/* ============================================ */
.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
  outline: none;
  text-decoration: none;
  user-select: none;
}
.btn-base:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Button Sizes */
.btn-sm {
  height: var(--button-height-sm);
  padding: 0 var(--space-3);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
}
.btn-md {
  height: var(--button-height-md);
  padding: 0 var(--space-4);
  font-size: var(--font-size-base);
  border-radius: var(--radius-md);
}
.btn-lg {
  height: var(--button-height-lg);
  padding: 0 var(--space-6);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}
/* Button Variants */
.btn-primary {
  background-color: var(--color-primary-500);
  color: var(--color-text-inverse);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--color-primary-600);
}
.btn-primary:active:not(:disabled) {
  background-color: var(--color-primary-700);
}
.btn-secondary {
  background-color: var(--color-gray-100);
  color: var(--color-text-primary);
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-gray-200);
}
.btn-secondary:active:not(:disabled) {
  background-color: var(--color-gray-300);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-primary-500);
  border: 1px solid var(--color-primary-500);
}
.btn-outline:hover:not(:disabled) {
  background-color: var(--color-primary-50);
}
.btn-outline:active:not(:disabled) {
  background-color: var(--color-primary-100);
}
.btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background-color: var(--color-gray-100);
  color: var(--color-text-primary);
}
.btn-ghost:active:not(:disabled) {
  background-color: var(--color-gray-200);
}
.btn-icon {
  width: var(--button-height-md);
  height: var(--button-height-md);
  padding: 0;
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--color-text-secondary);
}
.btn-icon:hover:not(:disabled) {
  background-color: var(--color-gray-100);
  color: var(--color-text-primary);
}
.btn-icon.btn-sm {
  width: var(--button-height-sm);
  height: var(--button-height-sm);
}
.btn-icon.btn-lg {
  width: var(--button-height-lg);
  height: var(--button-height-lg);
}
/* ============================================ */
/* Card Utilities */
/* ============================================ */
.card {
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.card-elevated {
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}
.card-bordered {
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--color-border-default);
}
/* ============================================ */
/* Divider */
/* ============================================ */
.divider {
  height: 1px;
  background-color: var(--color-border-light);
  margin: var(--space-4) 0;
}
.divider-strong {
  height: 1px;
  background-color: var(--color-border-default);
  margin: var(--space-4) 0;
}
/* ============================================ */
/* Tag/Badge Utilities */
/* ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background-color: var(--color-gray-100);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
}
.tag-sm {
  padding: 1px 6px;
  font-size: 10px;
}
.tag-primary {
  background-color: var(--color-primary-50);
  color: var(--color-primary-600);
}
.tag-success {
  background-color: var(--color-success-50);
  color: var(--color-success-600);
}
.tag-error {
  background-color: var(--color-error-50);
  color: var(--color-error-600);
}
.tag-warning {
  background-color: var(--color-warning-50);
  color: var(--color-warning-600);
}
/* ============================================ */
/* Avatar Utilities */
/* ============================================ */
.avatar {
  display: inline-block;
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--color-gray-200);
}
.avatar-sm {
  width: 32px;
  height: 32px;
}
.avatar-md {
  width: 40px;
  height: 40px;
}
.avatar-lg {
  width: 48px;
  height: 48px;
}
/* ============================================ */
/* Input Utilities */
/* ============================================ */
.input-base {
  width: 100%;
  padding: 0 var(--space-3);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-base);
}
.input-base:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-50);
}
.input-base:disabled {
  background-color: var(--color-gray-50);
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.input-base::placeholder {
  color: var(--color-text-muted);
}
.input-sm {
  height: var(--input-height-sm);
  font-size: var(--font-size-sm);
}
.input-md {
  height: var(--input-height-md);
}
.input-lg {
  height: var(--input-height-lg);
  font-size: var(--font-size-lg);
}
.input-error {
  border-color: var(--color-error-500);
}
.input-error:focus {
  border-color: var(--color-error-500);
  box-shadow: 0 0 0 3px var(--color-error-50);
}
/* ============================================ */
/* Loading Spinner */
/* ============================================ */
.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid var(--color-gray-200);
  border-top-color: var(--color-primary-500);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}
.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}
.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 6px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ============================================ */
/* Container Utilities */
/* ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.container-sm {
  max-width: 640px;
}
.container-md {
  max-width: 768px;
}
.container-lg {
  max-width: 1024px;
}
/* ============================================ */
/* Flexbox Utilities */
/* ============================================ */
.flex {
  display: flex;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
/* ============================================ */
/* Spacing Utilities */
/* ============================================ */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
/* ============================================ */
/* Visibility Utilities */
/* ============================================ */
.hidden {
  display: none;
}
.visible {
  display: block;
}
:root {
  --vh: 1vh; /* JavaScript로 동적 업데이트될 변수 */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
}
html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-gray-50); /* Soft gray background */
  color: var(--color-text-primary);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
code {
  font-family:
    source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}
