/* 여행팁 인덱스 전용 스타일 */

.tips-card {
  padding: 32px 40px 40px;
}

.tips-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}

.tips-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips-icon {
  font-size: 1.6rem;
}

.tips-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.tips-subtitle {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: #666;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
  padding: 0;            /* 데스크탑: 좌우 여백 X, 카드 정렬 */
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid #f1f1f1;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

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

.tip-item:hover {
  background-color: #fafafa;
  transform: translateY(-2px);
}

.tip-thumb {
  width: 180px;
  min-width: 180px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}

.tip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tip-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;          /* ✅ 남은 공간을 차지하게 */
  min-width: 0;     /* ✅ 모바일에서 오른쪽 잘림 방지 */
}

.tip-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.4;
}

.tip-title span {
  font-weight: 700;
}

.tip-desc {
  margin: 0;
  font-size: 0.92rem;
  color: #555;
}

.tip-label {
  display: inline-flex;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #555;
  background-color: #f3f5ff;
}

/* 반응형 */
@media (max-width: 768px) {
  .tips-card {
    padding: 24px 0 24px;      /* 카드 바깥 패딩 정리 */
  }

  .tips-list {
    padding: 0 16px;           /* ✅ 모바일에서 좌우 여백 추가 */
    gap: 14px;
  }

  .tip-item {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }

  .tip-thumb {
    width: 120px;
    min-width: 120px;
    height: 80px;
    border-radius: 8px;
  }

  .tip-title {
    font-size: 0.98rem;
  }

  .tip-desc {
    font-size: 0.82rem;
  }
}
