/*
 * BLOCK 숙박 공개면 전용 헤더.
 * 다른 서비스가 쓰는 공용 헤더(block-site-header.css)와 달리 숙박 검색에 맞춘
 * 브랜드 로크업·내비 디자인을 갖는다. block 로고는 상위 브랜드 앵커로 유지하고,
 * '숙박' 워드마크가 현재 운영 중인 공개면을 나타낸다. 마크업은 static/js/travel/header.js가 렌더링한다.
 */

.travel-body {
  --stay-ink: #1c1c1c;
  --stay-muted: #6f6f6f;
  --stay-soft: #9a9a98;
  --stay-hairline: #e4e4e1;
  --stay-hairline-strong: #cfcfcb;
  --stay-gold: #8a6d3b;
  --travel-header-height: 60px;
}

/* ── 헤더 표면 ─────────────────────────────────── */

.travel-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--travel-header-height);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--stay-hairline);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.travel-site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.07);
}

.travel-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100%, 1320px);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.travel-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}

/* ── 브랜드 로크업 (block 상위 브랜드 + 숙박 검색 정체성) ── */

.travel-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.travel-brand .block-brand-switcher {
  flex: 0 0 auto;
}

.travel-brand .block-brand-switcher .nav-logo {
  height: 17px;
  opacity: 0.62;
  transition: opacity 0.15s ease;
}

/* 여행 표현면은 현재 밝은 테마만 제공하므로 계정의 저장 테마와 무관하게 밝은 헤더 로고를 쓴다. */
:root[data-theme] .travel-site-header .block-brand-switcher .nav-logo-image--light {
  display: block;
}

:root[data-theme] .travel-site-header .block-brand-switcher .nav-logo-image--dark {
  display: none;
}

.travel-brand .block-brand-switcher .nav-logo:hover,
.travel-brand .block-brand-switcher .nav-logo:focus-visible {
  opacity: 1;
}

.travel-brand .block-service-menu-trigger {
  color: var(--stay-soft);
}

.travel-brand .block-service-menu-trigger:hover,
.travel-brand .block-service-menu-trigger:focus-visible,
.travel-brand .block-brand-switcher.is-open .block-service-menu-trigger {
  background: var(--stay-panel-soft, #faf9f7);
  color: var(--stay-ink);
}

.travel-brand-logo {
  display: inline-flex;
  align-items: center;
  height: 17px;
  text-decoration: none;
  opacity: 0.62;
  transition: opacity 0.15s ease;
}

.travel-brand-logo:hover,
.travel-brand-logo:focus-visible {
  opacity: 1;
}

.travel-brand-logo-image {
  display: block;
  height: 100%;
  width: auto;
}

.travel-brand-divider {
  width: 1px;
  height: 18px;
  background: var(--stay-hairline-strong);
}

.travel-brand-wordmark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--stay-ink);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

.travel-brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--stay-gold);
}

/* ── 데스크톱 내비 ─────────────────────────────── */

.travel-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.travel-nav-primary {
  display: flex;
  align-items: center;
  gap: 2px;
}

.travel-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--stay-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.travel-nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--stay-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.travel-nav-link:hover,
.travel-nav-link:focus-visible {
  color: var(--stay-ink);
}

.travel-nav-link.is-active {
  color: var(--stay-ink);
  font-weight: 700;
}

.travel-nav-link.is-active::after,
.travel-nav-link:hover::after,
.travel-nav-link:focus-visible::after {
  transform: scaleX(1);
}

.travel-nav-divider {
  width: 1px;
  height: 16px;
  background: var(--stay-hairline);
}

.travel-nav-utility {
  display: flex;
  align-items: center;
  gap: 2px;
}

.travel-nav-util {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--stay-soft);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.travel-nav-util:hover,
.travel-nav-util:focus-visible {
  color: var(--stay-ink);
}

/* ── 우측 (인증 위젯) ─────────────────────────── */

.travel-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.travel-header-right .pc-auth-widget {
  display: flex;
  align-items: center;
  min-height: 34px;
  --border: var(--stay-hairline-strong);
}

.travel-header-right .pc-auth-widget .pc-auth-login {
  min-width: max-content;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--stay-hairline-strong);
  color: var(--stay-ink);
  font-weight: 700;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.travel-header-right .pc-auth-widget .pc-auth-login:hover,
.travel-header-right .pc-auth-widget .pc-auth-login:focus-visible {
  border-color: var(--stay-ink);
  background: #f2f2ef;
}

/* ── 모바일 토글 ───────────────────────────────── */

.travel-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--stay-ink);
  cursor: pointer;
}

.travel-menu-toggle:hover {
  background: #f2f2ef;
}

.travel-menu-toggle .hz-icon {
  font-size: 22px;
  line-height: 1;
}

/* ── 모바일 내비 시트 ─────────────────────────── */

.travel-mobile-shell {
  position: fixed;
  inset: var(--travel-header-height) 0 0;
  z-index: 60;
}

.travel-mobile-shell[hidden] {
  display: none;
}

.travel-mobile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 18, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.travel-mobile-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 18px 20px 22px;
  border-radius: 0 0 22px 22px;
  border-bottom: 1px solid var(--stay-hairline);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.14);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.travel-mobile-shell.is-open .travel-mobile-backdrop {
  opacity: 1;
}

.travel-mobile-shell.is-open .travel-mobile-panel {
  transform: translateY(0);
  opacity: 1;
}

.travel-mobile-group-title {
  margin: 14px 2px 4px;
  color: var(--stay-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.travel-mobile-group-title:first-child {
  margin-top: 2px;
}

.travel-mobile-links {
  display: grid;
}

.travel-mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  color: var(--stay-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-top: 1px solid var(--stay-hairline);
}

.travel-mobile-links .travel-mobile-link:first-child {
  border-top: 0;
}

.travel-mobile-link.is-active {
  color: var(--stay-ink);
  font-weight: 700;
}

.travel-mobile-link.is-active::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--stay-gold);
}

/* ── 항공편 준비 안내 ── */

.travel-flights-page {
  background: #f7f7f5;
  color: var(--stay-ink);
  font-family: "Instrument Sans", "Noto Sans KR", "Noto Sans", system-ui, sans-serif;
}

.travel-flights-page .page-wrapper {
  min-height: 100vh;
  background: #f7f7f5;
}

.travel-flights-main {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 136px 24px 88px;
}

.travel-flights-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin: 0 0 22px;
  padding: 0 11px;
  border: 1px solid var(--stay-hairline-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--stay-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.travel-flights-status .hz-icon {
  font-size: 17px;
}

.travel-flights-hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--stay-ink);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.travel-flights-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--stay-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.travel-flights-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.travel-flights-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--stay-hairline-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--stay-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.travel-flights-action--primary {
  border-color: var(--stay-ink);
  background: var(--stay-ink);
  color: #fff;
}

.travel-flights-action:hover,
.travel-flights-action:focus-visible {
  border-color: var(--stay-ink);
}

.travel-flights-action .hz-icon {
  font-size: 19px;
}

.travel-flights-scope {
  margin-top: 76px;
  padding-top: 28px;
  border-top: 1px solid var(--stay-hairline-strong);
}

.travel-flights-scope h2 {
  margin: 0 0 24px;
  color: var(--stay-ink);
  font-size: 1.1rem;
}

.travel-flights-scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
}

.travel-flights-scope-list div {
  display: grid;
  gap: 7px;
}

.travel-flights-scope-list dt {
  color: var(--stay-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.travel-flights-scope-list dd {
  margin: 0;
  color: var(--stay-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ── 반응형 ───────────────────────────────────── */

@media (max-width: 1024px) {
  .travel-nav {
    display: none;
  }

  .travel-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .travel-header-inner {
    padding: 0 16px;
  }

  .travel-flights-main {
    padding: 108px 18px 64px;
  }

  .travel-flights-scope {
    margin-top: 56px;
  }

  .travel-flights-scope-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
