/* ===== 베트남 항공권 최저가 페이지 (#/flights) =====
   사이트 다크 테마 변수 체계 사용:
     배경: --bg-0(가장 어둠) → --bg-1, --bg-2, --bg-3(가장 밝음)
     텍스트: --ink-0(밝음) → --ink-1, --ink-2(흐림)
     라인: --line  |  강조: --accent (violet)
*/
.fl-page {
  padding: 16px 12px 80px;
  max-width: 900px;
  margin: 0 auto;
  color: var(--ink-0);
}

/* ── 헤더 ── */
.fl-header {
  margin-bottom: 20px;
}
.fl-header h1 {
  font-size: 22px;
  margin: 0 0 6px;
  line-height: 1.3;
  color: var(--ink-0);
}
.fl-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.fl-back {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 6px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  cursor: pointer;
  color: var(--ink-0);
  font-family: var(--font-body);
}
.fl-back:hover {
  background: var(--bg-3);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── 카드 그리드 (목록 페이지) ── */
.fl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .fl-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .fl-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.fl-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-0);
}
.fl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 0 0 1px var(--accent-soft);
  border-color: var(--accent);
}
.fl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fl-card-head h3 {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  color: var(--ink-0);
}
.fl-card-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin: 4px 0;
  letter-spacing: -0.5px;
  font-family: var(--font-display);
}
.fl-card-meta {
  font-size: 13px;
  color: var(--ink-1);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.fl-card-arrow {
  font-size: 12px;
  color: var(--accent);
  margin-top: 8px;
  font-weight: 500;
  text-align: right;
}

/* ── 태그 ── */
.fl-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  border: 1px solid var(--accent-soft-2);
}
.fl-tag-sm {
  background: var(--bg-3);
  color: var(--ink-1);
  border-color: var(--line);
  margin-left: 6px;
}

/* ── 상세 페이지 리스트 ── */
.fl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fl-row {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-0);
}
.fl-row:hover { border-color: var(--accent-soft-2); }
.fl-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.fl-row-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-0);
}
.fl-row-price strong {
  font-size: 18px;
  color: var(--accent);
  display: block;
  text-align: right;
  font-family: var(--font-display);
}
.fl-row-exact {
  font-size: 11px;
  text-align: right;
  color: var(--ink-2);
}
.fl-row-info {
  font-size: 13px;
  color: var(--ink-1);
  display: flex;
  gap: 12px;
}

/* ── 예약 버튼 ── */
.fl-book-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
@media (min-width: 500px) {
  .fl-book-buttons { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.fl-btn {
  display: block;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 9px 10px;
  text-decoration: none;
  color: var(--ink-0);
  font-size: 13px;
  font-weight: 500;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
  font-family: var(--font-body);
}
.fl-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* ── 상태 (로딩/비어있음) ── */
.fl-loading, .fl-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-2);
  font-size: 14px;
  background: var(--bg-1);
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  grid-column: 1 / -1;
}
.fl-muted { color: var(--ink-2); font-size: 12px; }
.fl-center { text-align: center; margin: 10px 0; }

/* ── 안내 박스 ── */
.fl-footnote {
  margin-top: 24px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 12px;
  color: var(--ink-1);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  line-height: 1.6;
}
.fl-footnote b { color: var(--ink-0); }

/* ── 🎬 베여베 유튜브 채널 섹션 ── */
.fl-yt-section {
  margin-top: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
}
.fl-yt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.fl-yt-head h3 {
  margin: 0;
  font-size: 17px;
  color: var(--ink-0);
}
.fl-yt-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-2);
}
.fl-yt-cta {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fl-yt-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.45);
}
.fl-yt-embed {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #000;
}
.fl-yt-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
