/* ==========================================================================
   ESCAPE RANK (방탈출순위) — WHITE-TONE LUXURY MINIMALISM (ZARA / MHZ DNA)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500;6..96,600&family=Cormorant+Garamond:wght@300;400;500&family=Space+Grotesk:wght@300;500;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-subtle: #F7F7F7;

  --text-main: #000000;
  --text-muted: #525252;
  --text-dim: #A3A3A3;

  --header-h: 48px;
  --control-h: 36px;

  --font-logo: 'Didot', 'Bodoni Moda', 'Bodoni 72', 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Minimal Light Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D4D4D4;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: #000000;
}

/* Hide Scrollbar inside Availability Schedule (ZARA Lookbook Style) */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Typography */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* High-Fashion Editorial Masthead Wordmark (ZARA / Didone Couture Contrast) */
.luxury-masthead-logo {
  font-family: var(--font-logo);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.15rem, 4.6vw, 3.4rem);
  letter-spacing: -0.058em;
  line-height: 0.88;
  text-transform: uppercase;
  color: #000000;
  display: inline-block;
  text-decoration: none;
  transform: scaleY(1.14);
  transform-origin: left center;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  -webkit-font-smoothing: antialiased;
}
.luxury-masthead-logo:hover {
  opacity: 0.6;
}

#top-brand-masthead {
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

/* ZARA Scroll-Aware Header:
   - Default / Scroll Stopped: Sheer liquid glass backdrop softly visible
   - Actively Scrolling (.is-scrolling): Header surface turns 100% transparent so only the controls float over content */
.mhz-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-h);
  height: auto;
  z-index: 50;
  background: transparent !important;
  border: none !important;
}

.mhz-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mhz-header.is-scrolling::before {
  opacity: 0;
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.mhz-header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .mhz-header-inner {
    padding: 0 24px;
  }
}

/* Exact Left-to-Right Edge Justified Row (x=0 to x=100%, Mathematically Equal Gaps) */
.edge-justify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ZARA Typographic Genre Selector (Zero Meaningless Borders, Pure Weight/Color Contrast) */
.player-btn {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none !important;
  cursor: pointer;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 300;
  color: #8E8E8E;
  padding: 0;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.player-btn:hover {
  color: #000000;
}

.player-btn.active {
  color: #000000;
  font-weight: 600;
}

/* Header Left Date Selector + Toggle (Slightly Larger, Crisp 14.5px/15px Scale Matching Header Search Icon) */
.date-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 0;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 14.5px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: #000000;
  text-decoration: none !important;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.18s var(--ease);
}

.date-toggle-btn:hover {
  opacity: 0.6;
}

.date-toggle-btn .toggle-icon-wrap {
  width: 10.5px;
  height: 10.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #000000;
}

.date-toggle-btn .toggle-bar-h {
  position: absolute;
  width: 8.5px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: currentColor;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}

.date-toggle-btn .toggle-bar-v {
  position: absolute;
  width: 1px;
  height: 8.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background-color: currentColor;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}

/* ZARA Architectural Micro-Checkbox ('[ ] 빈자리 있는 테마만' -> '[✓] 빈자리 있는 테마만') */
.zara-checkbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.zara-checkbox-box {
  width: 10.5px;
  height: 10.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.8px solid #BDBDBD;
  background-color: transparent;
  border-radius: 0;
  flex-shrink: 0;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.zara-checkbox-mark {
  width: 8.5px;
  height: 8.5px;
  color: transparent;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.16s var(--ease),
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.16s var(--ease);
}

.zara-checkbox-label {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: -0.015em;
  font-weight: 300;
  color: #767676;
  transition: color 0.18s var(--ease);
}

.zara-checkbox-btn:hover .zara-checkbox-box {
  border-color: #000000;
}

.zara-checkbox-btn:hover .zara-checkbox-label {
  color: #000000;
}

.zara-checkbox-btn.is-checked .zara-checkbox-box {
  background-color: #000000;
  border-color: #000000;
}

.zara-checkbox-btn.is-checked .zara-checkbox-mark {
  color: #FFFFFF;
  opacity: 1;
  transform: scale(1);
}

.zara-checkbox-btn.is-checked .zara-checkbox-label {
  color: #000000;
  font-weight: 300 !important;
}

/* ZARA + / - Typographic Toggle ('예약 가능 일정 +') */
.avail-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 0;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: -0.015em;
  font-weight: 300;
  color: #767676;
  text-decoration: none !important;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
}

.avail-toggle-btn:hover,
.avail-toggle-btn:active,
.avail-toggle-btn.is-open {
  color: #000000 !important;
}

.avail-toggle-btn .toggle-icon-wrap {
  width: 9px;
  height: 9px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: currentColor;
}

.avail-toggle-btn .toggle-bar-h,
.avail-toggle-btn .toggle-bar-v {
  position: absolute;
  background-color: currentColor;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}

.avail-toggle-btn .toggle-bar-h {
  width: 7px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.avail-toggle-btn .toggle-bar-v {
  width: 1px;
  height: 7px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
}

.date-toggle-btn.is-open .toggle-icon-wrap,
.avail-toggle-btn.is-open .toggle-icon-wrap {
  transform: rotate(180deg);
}

.date-toggle-btn.is-open .toggle-bar-v,
.avail-toggle-btn.is-open .toggle-bar-v {
  transform: translate(-50%, -50%) rotate(90deg) scale(0, 1);
  opacity: 0;
}

/* ZARA Minimalist Liquid-Glass Calendar Drawer (Shares Header's Single Continuous Glass Surface — Zero Seam) */
.zara-calendar-popover-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.zara-calendar-popover-wrap.is-visible {
  max-height: 280px;
  opacity: 1;
  pointer-events: auto;
}

.zara-calendar-panel {
  width: 100%;
  padding: 6px 0 20px 0;
  background: transparent;
}

@media (min-width: 640px) {
  .zara-calendar-panel {
    width: 280px;
    padding: 8px 0 20px 0;
  }
}

.zara-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 20px);
  justify-content: space-between;
  width: 100%;
}

.nav-arrow-btn {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #767676;
  cursor: pointer;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.nav-arrow-btn:hover:not(:disabled) {
  color: #000000;
}

.nav-arrow-btn:disabled {
  opacity: 0.22;
  cursor: default;
}

.zara-cal-dow {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: #A3A3A3;
  line-height: 1.5;
}

/* Uniform font-weight: 300 across all calendar days (zero heavy bold on today) */
.zara-cal-day {
  width: 20px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 300 !important;
  color: #525252;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.16s var(--ease), opacity 0.16s var(--ease);
}

.zara-cal-day:hover:not(:disabled) {
  color: #000000;
}

.zara-cal-day.is-selected {
  color: #000000;
  font-weight: 300 !important;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.zara-cal-day:disabled {
  color: #E2E2E2;
  cursor: default;
  pointer-events: none;
}

/* Minimalist Typographic Input Field */
.input-field {
  height: var(--control-h);
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  font-family: var(--font-body) !important;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 300 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  border-radius: 0;
  transition: border-color 0.2s ease;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

.input-field::placeholder {
  color: #8E8E8E !important;
  -webkit-text-fill-color: #8E8E8E !important;
  font-family: var(--font-body) !important;
  font-size: 0.75rem;
  font-weight: 300 !important;
}

.input-field:focus {
  outline: none;
  border-bottom: 1.5px solid #000000;
}

/* Theme Photo Frame (Portrait Poster Ratio - Seamless Zero Border) */
.theme-photo-frame {
  width: 100%;
  aspect-ratio: 819 / 1024;
  background: #F5F5F5;
  border: none;
  position: relative;
  overflow: hidden;
}

/* Selected-Date Open-Only Timetable (ZARA Editorial Typography, Zero Lines, Zero Closed Clutter) */
.open-timetable-track {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 18px;
  row-gap: 10px;
  width: 100%;
}

@media (min-width: 640px) {
  .open-timetable-track {
    column-gap: 24px;
    row-gap: 11px;
  }
}

/* 14-Day Availability Drawer List (Revealed when '빈자리 보기 +' is toggled) */
.avail-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 152px;
  overflow-y: auto;
  width: 100%;
}

@media (min-width: 640px) {
  .avail-schedule-list {
    gap: 10px;
  }
}

.avail-day-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  min-width: 0;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .avail-day-row {
    gap: 24px;
  }
}

.avail-date-label {
  width: 54px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 3.5px;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 300;
  color: #8E8E8E;
  line-height: 1.25;
  letter-spacing: -0.01em;
  user-select: none;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .avail-date-label {
    width: 60px;
    gap: 4px;
  }
}

.avail-date-num,
.avail-date-dow {
  color: #8E8E8E;
  font-weight: 300;
  font-size: 0.75rem;
}

.avail-times-track {
  display: flex;
  align-items: baseline;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .avail-times-track {
    gap: 22px;
  }
}

.avail-time-link {
  display: inline-block;
  width: 34px;
  flex-shrink: 0;
  text-align: left;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 300;
  color: #000000;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.16s var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.avail-time-link:hover {
  opacity: 0.42;
}

/* ZARA Korean Editorial Closed Micro-Typography */
.zara-soldout-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: -0.015em;
  color: #A3A3A3;
  line-height: 1.25;
  user-select: none;
}

/* Editorial Scroll Reveal (Subtle Fade-in & Slight Upward Drift) */
.theme-card-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.theme-card-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
