/* ============================================================
   CORSO — Ajánlatkérő felület
   3 stílus változat: elegant | modern | business
   ============================================================ */

/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
img, svg { max-width: 100%; }

/* ============================================================
   VARIATION A: ELEGANT (default)
   warm ivory, deep navy, brushed gold
   ============================================================ */
:root,
html[data-style="elegant"],
body[data-style="elegant"],
[data-style="elegant"] {
  --bg: #F4EFE6;
  --bg-soft: #EEE7D8;
  --surface: #FBF8F1;
  --surface-2: #ffffff;
  --ink: #1B2235;
  --ink-soft: #4A5266;
  --ink-mute: #8a8675;
  --line: #DDD3BD;
  --line-soft: #E8DFCB;
  --accent: #A98549;
  --accent-deep: #8B6A35;
  --accent-soft: #E8D9B8;
  --danger: #8B3A2E;
  --ok: #4F6B3A;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", "Inter", -apple-system, system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 2px 8px rgba(27,34,53,0.06), 0 1px 2px rgba(27,34,53,0.04);
  --shadow-lg: 0 12px 32px rgba(27,34,53,0.10), 0 2px 6px rgba(27,34,53,0.05);
}

/* ============================================================
   VARIATION B: MODERN minimal
   bright white, charcoal, single warm accent
   ============================================================ */
html[data-style="modern"],
body[data-style="modern"],
[data-style="modern"] {
  --bg: #FAFAF8;
  --bg-soft: #F2F2EE;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --ink: #111111;
  --ink-soft: #555555;
  --ink-mute: #999999;
  --line: #E5E5E0;
  --line-soft: #EFEFEA;
  --accent: #C9582C;
  --accent-deep: #A8421C;
  --accent-soft: #F4D9CB;
  --danger: #C9582C;
  --ok: #2D6A4F;
  --font-serif: "Fraunces", "Newsreader", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Inter", -apple-system, system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

/* ============================================================
   VARIATION C: BUSINESS clean
   neutral grey, deep navy, professional
   ============================================================ */
html[data-style="business"],
body[data-style="business"],
[data-style="business"] {
  --bg: #F5F6F8;
  --bg-soft: #ECEEF2;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --ink: #0E1B2E;
  --ink-soft: #4A5468;
  --ink-mute: #8892A0;
  --line: #DCE0E8;
  --line-soft: #E8EBF0;
  --accent: #2C4A7C;
  --accent-deep: #1A3257;
  --accent-soft: #D6E0F0;
  --danger: #B8362A;
  --ok: #2D6A4F;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(14,27,46,0.05), 0 2px 6px rgba(14,27,46,0.04);
  --shadow-lg: 0 10px 30px rgba(14,27,46,0.08), 0 2px 6px rgba(14,27,46,0.05);
}

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
  color: var(--ink);
}

/* ---- TOP BAR ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1;
}
.brand-mark span { color: var(--accent); font-style: italic; }
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-soft);
}
.topbar-right a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-right a:hover { color: var(--accent); }

/* ---- MAIN GRID ---- */
.main {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(320px, 380px);
  gap: 0;
  max-width: 1640px;
  margin: 0 auto;
  width: 100%;
}

/* ---- STEPPER (left) ---- */
.stepper {
  padding: 48px 32px 48px 40px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow-y: auto;
  background: var(--bg);
}
.stepper-note {
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 8px;
  line-height: 1.6;
}
.stepper-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.stepper-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 32px;
}
[data-style="modern"] .stepper-title { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.02em; font-size: 26px; }
[data-style="business"] .stepper-title { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; font-size: 24px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 12px 12px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
  color: var(--ink-soft);
  border-radius: var(--radius);
}
.step:hover { color: var(--ink); }
.step.active { color: var(--ink); }
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink-mute);
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}
.step.active .step-num {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.step.done .step-num {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.step-num svg { width: 14px; height: 14px; }
.step-label-wrap { padding-top: 4px; min-width: 0; flex: 1; }
.step-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.step-meta {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* connector line */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 40px;
  bottom: -2px;
  width: 1px;
  background: var(--line);
}

/* ---- CONTENT (center) ---- */
.content {
  padding: 56px clamp(36px, 4vw, 64px) 120px;
  min-width: 0;
  background: var(--bg);
}
.step-header {
  margin-bottom: 40px;
}
.step-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.step-h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--ink);
  text-wrap: balance;
}
[data-style="modern"] .step-h1 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.035em; font-size: 48px; }
[data-style="business"] .step-h1 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.02em; font-size: 38px; }
.step-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 64ch;
  line-height: 1.55;
  text-wrap: pretty;
}

.consult-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 30px;
  padding: 14px 16px;
  border: 1px solid color-mix(in oklab, var(--accent) 36%, var(--line));
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--accent-soft) 42%, var(--surface));
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(27, 34, 53, 0.05);
}
.consult-toolbar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 34%, var(--line));
}
.consult-toolbar-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consult-toolbar-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.consult-toolbar-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.consult-topic-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 82%, var(--accent-soft));
  border: 1px solid color-mix(in oklab, var(--accent) 24%, var(--line));
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.2;
}

/* section headings inside steps */
.section { margin-top: 36px; }
.consultation-section { margin-top: 18px; }
.section-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- form basics ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field-label-spacer { visibility: hidden; }
.field-hint { font-size: 12px; color: var(--ink-mute); }
.input, .textarea, .select-native {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.input:focus, .textarea:focus, .select-native:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 90px; resize: vertical; font-family: inherit; }

.event-schedule-grid .input,
.event-schedule-grid .date-toggle {
  height: 64px;
  min-height: 64px;
}
.event-schedule-grid .date-toggle {
  align-items: center;
  padding: 10px 14px;
}
.event-schedule-grid .date-toggle .check-label { line-height: 1.25; }
.event-schedule-grid .date-toggle .check-desc {
  line-height: 1.3;
}

/* chip group */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink);
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink-soft); }
.chip.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.chip.selected::after {
  content: "✅";
  font-size: 13px;
  line-height: 1;
}
[data-style="modern"] .chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* number stepper */
.numstep {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.numstep button {
  width: 40px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background 0.15s;
}
.numstep button:hover { background: var(--bg-soft); color: var(--ink); }
.numstep button:disabled { color: var(--ink-mute); cursor: not-allowed; }
.numstep input {
  width: 60px;
  height: 44px;
  border: none;
  outline: none;
  text-align: center;
  background: transparent;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.numstep .sep { width: 1px; height: 24px; background: var(--line); }

/* cards (rooms, packages, layouts) */
.card-grid {
  display: grid;
  gap: 16px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: visible;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover { border-color: var(--ink-soft); }
.card.capacity-warning-card,
.layout-card.capacity-warning-card {
  border-color: color-mix(in oklab, var(--danger) 34%, var(--line));
}
.card.capacity-warning-card:hover,
.layout-card.capacity-warning-card:hover {
  border-color: var(--danger);
}
.card.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
[data-style="modern"] .card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.card.active-room {
  box-shadow: 0 0 0 2px var(--accent);
}
.card-tick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.2s;
}
[data-style="modern"] .card-tick { background: var(--accent); }
.card.selected .card-tick { opacity: 1; transform: scale(1); }
.card.selected .card-tick svg { display: none; }
.card.selected .card-tick::before {
  content: "✅";
  font-size: 15px;
  line-height: 1;
}

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-media-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.28)),
    #f8f5ee;
}
.room-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.card:hover .room-media-photo img {
  transform: scale(1.01);
  filter: saturate(1.03) contrast(1.02);
}
.room-media-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: zoom-in;
  color: white;
  background: rgba(27, 34, 53, 0.78);
  box-shadow: 0 8px 24px rgba(27, 34, 53, 0.22);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.card:hover .room-media-zoom,
.room-media-zoom:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.room-media-zoom:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
[data-style="modern"] .card-title { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
[data-style="business"] .card-title { font-family: var(--font-body); font-weight: 600; font-size: 17px; }
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  position: relative;
  z-index: 6;
}
.card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.room-capacity-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted color-mix(in oklab, var(--ink-mute) 55%, transparent);
  outline: none;
}
.room-capacity-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 30;
  width: min(260px, calc(100vw - 40px));
  padding: 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.room-capacity-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.room-capacity-trigger:hover .room-capacity-tooltip,
.room-capacity-trigger:focus-visible .room-capacity-tooltip {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}
.room-capacity-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-bottom-color: transparent;
}
.capacity-tooltip-title {
  display: block;
  margin-bottom: 8px;
  color: color-mix(in oklab, var(--surface) 72%, var(--accent-soft));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.capacity-tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.25;
}
.capacity-tooltip-row strong {
  color: white;
  font-weight: 700;
  white-space: nowrap;
}
.room-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
  position: relative;
  z-index: 4;
}
.room-feature {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  background: var(--bg-soft);
  color: var(--ink-soft);
  cursor: help;
}
.room-feature-daylight {
  color: var(--accent-deep);
  background: color-mix(in oklab, var(--accent-soft) 54%, var(--surface));
}
.room-feature-ac {
  color: #2C6B8E;
  background: color-mix(in oklab, #BFDDEB 52%, var(--surface));
}
.room-feature-tech {
  color: #4F5F77;
  background: color-mix(in oklab, #D8DFEB 52%, var(--surface));
}
.room-feature::before,
.room-feature::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.room-feature::before {
  content: "";
  bottom: calc(100% + 3px);
  transform: translate(-50%, 4px);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.room-feature::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 12px);
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}
.room-feature:hover::before,
.room-feature:hover::after,
.room-feature:focus-visible::before,
.room-feature:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.room-feature:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.card-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 4px; }
.capacity-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
}
.capacity-hint.warning {
  border-color: color-mix(in oklab, var(--danger) 45%, var(--line));
  color: var(--danger);
}
.capacity-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid color-mix(in oklab, var(--danger) 36%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--danger) 8%, var(--surface));
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.capacity-warning-icon {
  flex: 0 0 auto;
  line-height: 1.4;
}
.capacity-status {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.capacity-status.ok {
  background: color-mix(in oklab, var(--ok) 13%, var(--surface));
  color: var(--ok);
}
.capacity-status.blocked {
  background: color-mix(in oklab, var(--danger) 10%, var(--surface));
  color: var(--danger);
}

.selected-rooms-panel {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--surface) 72%, var(--bg-soft));
}
.selected-rooms-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.selected-room-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.selected-room-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}
.selected-room-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.selected-room-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
[data-style="modern"] .selected-room-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.selected-room-chip small {
  color: currentColor;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.68;
  white-space: nowrap;
}
.active-room-badge {
  display: inline-flex;
  align-self: flex-start;
  width: max-content;
  margin-top: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.room-view-tabs {
  margin-bottom: 14px;
}

.room-compare-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.room-compare-wrap:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.room-compare-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}
.room-compare-table th,
.room-compare-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
.room-compare-table th:last-child,
.room-compare-table td:last-child {
  border-right: 0;
}
.room-compare-table tbody tr:last-child th,
.room-compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.room-compare-table thead th {
  background: var(--bg-soft);
  color: var(--ink-mute);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}
.room-compare-table .room-col {
  width: 190px;
}
.room-compare-table .action-col {
  width: 132px;
}
.room-compare-table tbody tr {
  background: var(--surface);
  transition: background 0.15s;
}
.room-compare-table tbody tr:hover {
  background: color-mix(in oklab, var(--bg-soft) 62%, var(--surface));
}
.room-compare-table tbody tr.selected {
  background: color-mix(in oklab, var(--accent-soft) 34%, var(--surface));
}
.room-compare-table tbody tr.active-room {
  box-shadow: inset 3px 0 0 var(--accent);
}
.room-compare-table tbody tr.capacity-warning-row:not(.selected) {
  background: color-mix(in oklab, var(--danger) 4%, var(--surface));
}
.room-name-cell {
  color: var(--ink);
  font-weight: 500;
}
.compare-room-name,
.compare-room-capacity,
.compare-room-size,
.compare-status {
  display: block;
}
.compare-room-name {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.2;
}
[data-style="modern"] .compare-room-name,
[data-style="business"] .compare-room-name {
  font-family: var(--font-body);
  font-weight: 600;
}
.compare-room-size {
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 500;
}
.compare-room-size svg {
  margin-right: 4px;
  vertical-align: -2px;
}
.compare-room-capacity,
.compare-capacity {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.compare-capacity.is-small {
  color: var(--danger);
}
.compare-capacity.needs-consultation {
  color: var(--ink-mute);
  font-weight: 500;
}
.compare-status {
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.compare-status.ok {
  background: color-mix(in oklab, var(--ok) 13%, var(--surface));
  color: var(--ok);
}
.compare-status.blocked {
  background: color-mix(in oklab, var(--danger) 10%, var(--surface));
  color: var(--danger);
}
.compare-features-cell .room-features {
  margin-top: 0;
  flex-wrap: nowrap;
}
.compare-muted {
  color: var(--ink-mute);
}
.compare-action-cell {
  text-align: right;
}
.compare-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
}
.compare-select-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.compare-select-btn.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
[data-style="modern"] .compare-select-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

body.lightbox-open { overflow: hidden; }
.room-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 18, 28, 0.82);
  backdrop-filter: blur(5px);
}
.room-lightbox-panel {
  width: min(1180px, 100%);
  max-height: min(860px, calc(100vh - 56px));
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f8f5ee;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}
.room-lightbox-panel img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  display: block;
  background: #f8f5ee;
}
.room-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: white;
  background: rgba(27, 34, 53, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}
.room-lightbox-close:hover,
.room-lightbox-close:focus-visible {
  background: rgba(27, 34, 53, 0.92);
}
.room-lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}
.room-lightbox-caption strong {
  font-weight: 600;
}
.room-lightbox-caption span {
  color: var(--ink-mute);
}
@media (max-width: 640px) {
  .room-lightbox {
    padding: 12px;
  }
  .room-lightbox-panel {
    max-height: calc(100vh - 24px);
    border-radius: var(--radius);
  }
  .room-lightbox-panel img {
    max-height: calc(100vh - 100px);
  }
  .room-lightbox-caption {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
  }
  .room-lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
  .room-media-zoom {
    opacity: 1;
    transform: none;
  }
}

/* layout (room arrangement) selector */
.layouts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.layout-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 12px 12px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.layout-card:hover { border-color: var(--ink-soft); }
.layout-card.selected {
  border-color: var(--ink);
  background: var(--bg-soft);
  position: relative;
}
[data-style="modern"] .layout-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.layout-card.selected::after {
  content: "✅";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
}
.layout-svg {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  display: grid;
  place-items: center;
}
.layout-svg svg { width: 80%; height: 80%; }
.layout-name { font-size: 12px; font-weight: 500; }
.layout-cap { font-size: 11px; color: var(--ink-mute); }

/* package / drink cards (smaller, no media) */
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s;
  position: relative;
}
.tile:hover { border-color: var(--ink-soft); }
.tile.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
[data-style="modern"] .tile.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile.selected::after {
  content: "✅";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 15px;
}
.tile-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}
[data-style="modern"] .tile-title { font-family: var(--font-body); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
[data-style="business"] .tile-title { font-family: var(--font-body); font-weight: 600; font-size: 16px; }
.tile-meta { font-size: 12px; color: var(--ink-mute); }
.tile-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 2px; }
.tile-items {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.tile-bottom {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.meal-group + .meal-group {
  margin-top: 34px;
}

/* tile that has quantity (qty + select) */
.tile.with-qty.selected .tile-bottom .qty-add { display: none; }
.qty-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.qty-add svg { width: 14px; height: 14px; }

/* checkbox row */
.check-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
}
.check-row:hover { border-color: var(--ink-soft); }
.check-row.selected { border-color: var(--ink); background: var(--bg-soft); }
[data-style="modern"] .check-row.selected { border-color: var(--accent); background: var(--accent-soft); }
.check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.check-row.selected .check-box {
  background: var(--ink);
  border-color: var(--ink);
}
[data-style="modern"] .check-row.selected .check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.check-box svg {
  width: 12px; height: 12px;
  color: white;
  opacity: 0;
  transition: opacity 0.15s;
}
.check-row.selected .check-box svg { display: none; }
.check-row.selected .check-box::before {
  content: "✅";
  font-size: 14px;
  line-height: 1;
}
.unknown-choice {
  appearance: none;
  width: 100%;
  margin-top: 14px;
  text-align: left;
  font: inherit;
  border-style: dashed;
  background: color-mix(in oklab, var(--accent-soft) 20%, var(--surface));
}
.consultation-section .unknown-choice { margin-top: 0; }
.unknown-choice:hover {
  border-color: color-mix(in oklab, var(--accent) 60%, var(--ink-soft));
}
.unknown-choice.selected {
  border-style: solid;
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent-soft) 56%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 38%, transparent);
}
.unknown-choice + .card-grid,
.unknown-choice + .layouts,
.unknown-choice + div,
.unknown-choice + .summary-empty {
  margin-top: 14px;
}
.check-main { flex: 1; min-width: 0; }
.check-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.check-desc { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.check-desc-meta {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.show-more-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.show-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.show-more-btn span {
  color: var(--ink-mute);
  font-weight: 400;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: all 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-deep); }
[data-style="modern"] .btn-primary { background: var(--accent); color: white; border-radius: 999px; padding: 14px 28px; }
[data-style="modern"] .btn-primary:hover { background: var(--accent-deep); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-soft); padding: 14px 16px; }
.btn-ghost:hover { color: var(--ink); }

/* ---- NAV FOOTER (next / back) ---- */
.nav-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.nav-spacer { width: 1px; height: 1px; }

/* ============================================================
   LIVE SUMMARY (right sidebar)
   ============================================================ */
.summary {
  border-left: 1px solid var(--line);
  padding: 48px 32px;
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.summary-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.summary-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
}
[data-style="modern"] .summary-title { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.02em; font-size: 22px; }
[data-style="business"] .summary-title { font-family: var(--font-body); font-weight: 600; font-size: 20px; }

.summary-scroll {
  flex: 1;
  overflow-y: auto;
  margin: 0 -32px;
  padding: 0 32px;
}
.summary-group { margin-bottom: 24px; }
.summary-group-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-group-label svg { width: 12px; height: 12px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.4;
}
.summary-row + .summary-row { border-top: 1px dashed var(--line-soft); }
.summary-row .lbl { color: var(--ink); }
.summary-row .val { color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.summary-consult {
  padding: 12px 14px;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--accent-soft) 28%, var(--surface));
}
.summary-consult .summary-group-label {
  color: var(--accent);
}
.summary-consult .summary-row .val {
  color: var(--accent);
  font-size: 11px;
}
.summary-empty {
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
  padding: 8px 0;
}

.summary-foot {
  border-top: 1px solid var(--line);
  margin: 24px -32px 0;
  padding: 24px 32px 0;
}
.summary-note {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ============================================================
   PLATTER BUILDER (modal-ish inline)
   ============================================================ */
.platter-builder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-top: 16px;
  overflow: hidden;
}
.pb-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
}
.pb-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}
[data-style="modern"] .pb-title { font-family: var(--font-body); font-weight: 600; }
.pb-progress {
  font-size: 12px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.pb-progress strong { color: var(--ink); font-weight: 600; }

.pb-body {
  display: grid;
  grid-template-columns: 1fr 280px;
}
.pb-items {
  padding: 18px 22px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}
.pb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13px;
}
.pb-item:hover { border-color: var(--ink-soft); }
.pb-item.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pb-item.selected::after {
  content: "✅";
  font-size: 14px;
  line-height: 1;
}
.pb-item.with-image {
  min-height: 84px;
  padding: 10px;
  align-items: center;
}
.pb-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  flex: 0 0 64px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.pb-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.pb-item-name { line-height: 1.3; }
.pb-item-tags {
  display: flex;
  gap: 4px;
  margin-left: 6px;
}
.pb-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-soft);
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pb-tag.v { background: #DCEDC8; color: #4A7C2A; }
.pb-tag.gf { background: #FFF3C0; color: #8B6A18; }
.pb-tag.lf { background: #E0E7FF; color: #3D4A99; }

.pb-preview {
  border-left: 1px solid var(--line);
  padding: 20px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}
.pb-preview-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.pb-plate {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #f0e9d8 60%, #d9cba7 100%);
  border: 1px solid var(--line);
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
}
.pb-plate-items {
  position: absolute;
  inset: 12%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.pb-plate-chip {
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pop 0.3s forwards;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}
.pb-preview-meta {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.pb-preview-meta strong { color: var(--ink); font-weight: 600; }

.pb-foot {
  border-top: 1px solid var(--line);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pb-foot-info {
  font-size: 12px;
  color: var(--ink-mute);
}

/* ============================================================
   ORNAMENT / divider for elegant variant
   ============================================================ */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 24px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.3em;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  background: var(--accent);
  flex: 0 0 32px;
  opacity: 0.4;
  margin: 0 10px;
}
[data-style="modern"] .ornament { display: none; }
[data-style="business"] .ornament { display: none; }

/* ============================================================
   tabs (catering: csomagok / tálak)
   ============================================================ */
.tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
  gap: 2px;
}
.tab {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 3px;
  color: var(--ink-soft);
  transition: all 0.15s;
  font-weight: 500;
}
.tab.active {
  background: var(--ink);
  color: var(--bg);
}
[data-style="modern"] .tabs { border-radius: 999px; padding: 5px; }
[data-style="modern"] .tab { border-radius: 999px; }
[data-style="modern"] .tab.active { background: var(--accent); color: white; }

/* ============================================================
   PLATTER LIST (built platters in catering step)
   ============================================================ */
.built-platter {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.built-platter-main { flex: 1; min-width: 0; }
.built-platter-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.built-platter-items {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.built-platter-actions { display: flex; gap: 4px; }
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn.danger:hover { color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; }

/* ============================================================
   contact form (last step)
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }

/* ============================================================
   misc
   ============================================================ */
.divider {
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}
.muted { color: var(--ink-mute); }
.serif { font-family: var(--font-serif); }
.tabular { font-variant-numeric: tabular-nums; }

/* scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* date input */
input[type="date"], input[type="time"] {
  font-family: inherit;
}

/* ============================================================
   RESPONSIVE LAYOUT
   ============================================================ */
@media (max-width: 1320px) {
  .main {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(290px, 320px);
  }
  .stepper { padding: 40px 24px 40px 28px; }
  .content { padding: 48px 40px 100px; }
  .summary { padding: 40px 24px; }
  .summary-scroll {
    margin: 0 -24px;
    padding: 0 24px;
  }
  .summary-foot {
    margin: 24px -24px 0;
    padding: 20px 24px 0;
  }
  .card-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layouts { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .room-compare-table { min-width: 1020px; }
  .pb-body { grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (max-width: 1100px) {
  .topbar {
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .topbar-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 18px;
  }
  .topbar-right span {
    padding-left: 0 !important;
    border-left: 0 !important;
  }
  .main {
    max-width: none;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }
  .stepper {
    top: 118px;
    height: calc(100vh - 118px);
  }
  .summary {
    grid-column: 2;
    position: relative;
    top: auto;
    height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .summary-scroll {
    overflow: visible;
    max-height: none;
  }
  .summary-foot { margin-top: 20px; }
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-4,
  .card-grid.cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    position: relative;
    top: auto;
    padding: 14px 16px;
  }
  .brand { gap: 10px; }
  .brand-mark { font-size: 23px; }
  .brand-sub {
    font-size: 10px;
    letter-spacing: 0.16em;
    padding-left: 10px;
  }
  .topbar-right {
    font-size: 12px;
    line-height: 1.3;
  }
  .main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .stepper {
    grid-column: 1;
    position: sticky;
    top: 0;
    z-index: 25;
    height: auto;
    max-height: none;
    padding: 14px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: color-mix(in oklab, var(--surface) 90%, var(--bg));
    box-shadow: 0 10px 24px rgba(27,34,53,0.06);
  }
  .stepper-eyebrow {
    margin-bottom: 10px;
    letter-spacing: 0.16em;
  }
  .stepper-title,
  .stepper .ornament,
  .stepper-note {
    display: none;
  }
  .steps {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  .step {
    min-width: 142px;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    scroll-snap-align: start;
  }
  .step.active {
    border-color: var(--ink);
    background: var(--bg-soft);
  }
  [data-style="modern"] .step.active {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .step:not(:last-child)::before { display: none; }
  .step-num {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .step-label-wrap { padding-top: 0; }
  .step-label { font-size: 12px; }
  .step-meta { display: none; }
  .content {
    grid-column: 1;
    padding: 30px 16px 72px;
  }
  .step-header { margin-bottom: 28px; }
  .step-eyebrow {
    margin-bottom: 10px;
    letter-spacing: 0.16em;
  }
  .step-h1,
  [data-style="modern"] .step-h1,
  [data-style="business"] .step-h1 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: 0;
  }
  .step-sub {
    font-size: 14px;
    line-height: 1.55;
  }
  .section { margin-top: 28px; }
  .section-title {
    letter-spacing: 0.13em;
    gap: 10px;
  }
  .form-grid,
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-4,
  .card-grid.cols-5 {
    grid-template-columns: minmax(0, 1fr);
  }
  .date-toggle-field .field-label-spacer { display: none; }
  .layouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .chip {
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
    min-height: 44px;
  }
  .card-body { padding: 15px 16px 16px; }
  .selected-rooms-panel {
    padding: 12px;
  }
  .selected-room-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .selected-room-chip {
    justify-content: space-between;
    width: 100%;
    border-radius: var(--radius);
    text-align: left;
  }
  .room-view-tabs {
    display: flex;
    width: 100%;
  }
  .room-view-tabs .tab {
    flex: 1;
    text-align: center;
  }
  .room-compare-wrap {
    border-radius: var(--radius);
    margin-right: -16px;
    width: calc(100% + 16px);
  }
  .room-compare-table {
    min-width: 920px;
    font-size: 11px;
  }
  .room-compare-table th,
  .room-compare-table td {
    padding: 10px 9px;
  }
  .room-compare-table .room-col {
    width: 166px;
  }
  .room-compare-table .action-col {
    width: 118px;
  }
  .compare-room-name {
    font-size: 14px;
  }
  .compare-status {
    font-size: 10px;
    padding: 4px 7px;
  }
  .compare-select-btn {
    min-width: 88px;
    min-height: 34px;
    padding: 7px 10px;
  }
  .tile { padding: 16px; }
  .tile-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .check-row { padding: 13px 14px; }
  .nav-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 40px -16px -72px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .nav-footer .btn {
    min-height: 46px;
    flex: 1;
    padding: 12px 14px;
    white-space: normal;
    text-align: center;
  }
  .nav-footer.first-step .nav-spacer { display: none; }
  .summary {
    grid-column: 1;
    padding: 30px 16px 36px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .summary-scroll,
  .summary-foot {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .summary-row {
    gap: 10px;
    font-size: 12px;
  }
  .pb-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .pb-title input {
    display: block;
    width: 100%;
    min-width: 0 !important;
    margin-top: 8px;
  }
  .pb-body { grid-template-columns: minmax(0, 1fr); }
  .pb-items {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  .pb-item.with-image {
    min-height: 76px;
  }
  .pb-item-image {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .pb-preview {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .pb-foot {
    align-items: stretch;
    flex-direction: column;
  }
  .pb-foot > div:last-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }
  .built-platter {
    align-items: flex-start;
    gap: 12px;
  }
  .built-platter-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .brand-sub { display: none; }
  .topbar-right span { display: none; }
  .topbar-right a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .step {
    min-width: 128px;
  }
  .step-h1,
  [data-style="modern"] .step-h1,
  [data-style="business"] .step-h1 {
    font-size: 31px;
  }
  .layouts { grid-template-columns: minmax(0, 1fr); }
  .numstep {
    width: 100%;
    justify-content: space-between;
  }
  .numstep input { flex: 1; }
  .card-title { font-size: 18px; }
  .room-compare-table {
    min-width: 860px;
  }
  .room-compare-table th,
  .room-compare-table td {
    padding: 9px 8px;
  }
  .room-compare-table .room-col {
    width: 150px;
  }
  .room-compare-table .action-col {
    width: 108px;
  }
  .compare-select-btn {
    min-width: 80px;
    padding: 7px 8px;
  }
  .tile-title { font-size: 17px; }
  .built-platter {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .built-platter-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media print {
  .topbar,
  .stepper,
  .nav-footer,
  .summary,
  .twk-panel {
    display: none !important;
  }
  .app,
  .main,
  .content {
    display: block;
    min-height: auto;
    padding: 0;
    background: #fff;
    color: #111;
  }
  body { background: #fff; }
}
