/**
 * 正隆水銷 — 公開介紹官網
 */
html[data-layout="public"] {
  scroll-behavior: smooth;
  --public-btn-min-height: 40px;
  --public-btn-padding-x: var(--space-5);
  --public-btn-font-size: 14px;
  --public-btn-font-weight: 600;
}

html[data-layout="public"] .btn,
html[data-layout="public"] .btn--sm,
html[data-layout="public"] .btn--lg {
  min-height: var(--public-btn-min-height);
  padding: 0 var(--public-btn-padding-x);
  font-size: var(--public-btn-font-size);
  font-weight: var(--public-btn-font-weight);
}

html[data-layout="public"] .pub-quick-book__submit.btn {
  min-height: var(--public-btn-min-height);
  padding: 0 var(--public-btn-padding-x);
  font-size: var(--public-btn-font-size);
  font-weight: var(--public-btn-font-weight);
}

.pub-section[id],
.pub-hero[id] {
  scroll-margin-top: calc(var(--public-header-height) + var(--space-4));
}

html[data-layout="public"][data-booking="true"],
html[data-layout="public"][data-booking="true"] body {
  height: 100dvh;
  overflow: hidden;
}

body[data-layout="public"][data-booking="true"] .public-site {
  height: 100dvh;
  overflow: hidden;
}

body[data-layout="public"][data-booking="true"] .public-site__main--booking {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 預約流程 — header 精簡、版頭與字級 */
html[data-booking="true"] .public-site__util-link,
html[data-booking="true"] .public-site__util-cta {
  display: none;
}

html[data-booking="true"] .page-header {
  padding: var(--space-8) var(--space-6) var(--space-5);
}

html[data-booking="true"] .page-header__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 24px;
  width: 100%;
}

html[data-booking="true"] .page-header__back,
html[data-booking="true"] .page-header__back:link,
html[data-booking="true"] .page-header__back:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-secondary);
  text-decoration: none;
}

html[data-booking="true"] .page-header__back:hover,
html[data-booking="true"] .page-header__back:focus-visible {
  color: var(--color-text-primary);
  text-decoration: none;
}

html[data-booking="true"] .page-header__back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

html[data-booking="true"] .page-header__back-icon svg {
  width: 18px;
  height: 18px;
}

html[data-booking="true"] .page-header__stack .page-header__title,
html[data-booking="true"] .page-header__stack .page-header__title-row {
  margin: 0;
}

html[data-booking="true"] .page-header__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

html[data-booking="true"] .app-shell__content,
html[data-booking="true"] .app-shell__content-inner {
  font-size: 16px;
}

html[data-booking="true"] .ui-field__label {
  font-size: 14px;
}

html[data-booking="true"] .ui-field__input,
html[data-booking="true"] .ui-field__textarea,
html[data-booking="true"] select.ui-field__input {
  font-size: 16px;
}

html[data-booking="true"] .ui-stepper__step {
  font-size: 14px;
}

html[data-booking="true"] .ui-stepper__num {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

html[data-booking="true"] .ui-form-section__title {
  font-size: 18px;
}

/* 預約流程 — 主表單白色卡片內距（左右 24px、上下 32px） */
html[data-booking="true"] .ui-card__body,
html[data-booking="true"] .ui-card__header {
  padding-top: var(--book-card-padding-y);
  padding-bottom: var(--book-card-padding-y);
  padding-left: var(--book-card-padding-x);
  padding-right: var(--book-card-padding-x);
}

/* 預約摘要側欄 — 左右內距 20px（不套用主卡片 32px） */
html[data-booking="true"] .ui-schedule-panel {
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.ui-card__body:has(.book-vehicle-picker) .ui-form-section__title {
  border-bottom: none;
  padding-bottom: 0;
}

html[data-booking="true"] .book-auth-banner__title {
  font-size: 16px;
}

html[data-booking="true"] .book-auth-banner__text,
html[data-booking="true"] .book-auth-banner__link {
  font-size: 14px;
}

html[data-booking="true"] .book-schedule__slots-title,
html[data-booking="true"] .book-vehicle-option__title {
  font-size: 16px;
}

html[data-booking="true"] .book-vehicle-option__meta,
html[data-booking="true"] .book-schedule-slots__empty,
html[data-booking="true"] .book-slot-chip__meta,
html[data-booking="true"] .book-household-prep__intro,
html[data-booking="true"] .book-household-prep__note,
html[data-booking="true"] .book-prep-check__text,
html[data-booking="true"] .book-forklift-field__hint,
html[data-booking="true"] .book-contact-recap {
  font-size: 16px;
}

html[data-booking="true"] .book-cal__weekdays {
  font-size: 14px;
}

html[data-booking="true"] .form-sticky-footer--viewport {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-shell-footer);
  flex-shrink: 0;
  box-shadow:
    0 -1px 0 var(--color-border-default),
    0 -8px 24px rgba(17, 17, 17, 0.08);
}

html[data-booking="true"] .app-shell__main--viewport-footer .app-shell__content {
  padding-bottom: calc(80px + var(--space-6));
}

body[data-layout="public"] {
  margin: 0;
  background: var(--color-bg-default);
}

.public-site {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.public-site__header {
  position: sticky;
  top: 0;
  z-index: var(--z-public-header);
  isolation: isolate;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.public-site__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--public-header-top-height);
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--color-border-default);
}

.public-site__header-nav {
  display: none;
}

.public-site__util-btn:hover {
  text-decoration: none;
}

.public-site__nav--drawer {
  display: none;
}

.public-site__nav-link {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.public-site__nav-link:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
  text-decoration: none;
}

.public-site__nav-link--active {
  color: var(--color-primary-emphasis);
  background: var(--color-primary-subtle);
}

.public-site__brand {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.public-site__brand:hover { text-decoration: none; }

.public-site__brand-logo {
  display: block;
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.public-site__brand-service {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  padding-left: var(--space-4);
  border-left: 1px solid var(--color-border-default);
  line-height: 1.2;
  white-space: nowrap;
}

.public-site__header-utils {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}

.public-site__header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.public-site__auth {
  position: relative;
  display: flex;
  align-items: center;
}

.public-site__auth-user {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: min(200px, 28vw);
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-subtle);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.public-site__auth-user:hover {
  background: var(--color-bg-default);
  border-color: var(--color-border-strong);
}

.public-site__auth[data-menu-open="true"] .public-site__auth-user {
  background: var(--color-bg-default);
  border-color: var(--color-border-strong);
}

.public-site__auth-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-bg-default);
  border: 1px solid var(--color-border-default);
}

.public-site__auth-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-site__auth-menu {
  position: fixed;
  min-width: 160px;
  padding: var(--space-1);
  background: var(--color-bg-default);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-user-menu);
}

.public-site__auth-menu.is-open {
  display: block !important;
  visibility: visible;
  opacity: 1;
}

.public-site__auth-menu:not(.is-open),
.public-site__auth-menu[hidden] {
  display: none !important;
}

.public-site__auth-menu-item {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: var(--font-body);
  color: var(--color-text-primary);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

a.public-site__auth-menu-item:hover {
  background: var(--color-bg-subtle);
  text-decoration: none;
}

button.public-site__auth-menu-item:hover {
  background: var(--color-bg-subtle);
}

.public-site__auth-menu-item--danger {
  color: var(--color-cta);
}

.public-site__util-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.public-site__util-link:hover {
  color: var(--color-text-primary);
  text-decoration: none;
}

.public-site__actions {
  display: none;
}

.public-site__main {
  flex: 1;
  position: relative;
  z-index: 0;
}

.public-site__footer {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 0;
  border-top: 1px solid var(--color-border-strong);
  background: var(--color-ink);
  color: rgba(250, 250, 248, 0.88);
  padding: var(--space-8) var(--space-6) max(var(--space-6), env(safe-area-inset-bottom, 0px));
}

/* 蓋住捲動到底時 body 白底露出的細縫 */
.public-site__footer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2px;
  background: var(--color-ink);
  pointer-events: none;
}

.public-site__footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-7) var(--space-8);
  font-size: var(--font-body);
}

.public-site__footer-brand {
  max-width: 360px;
}

.public-site__footer-logo-link {
  display: inline-block;
  margin: 0 0 var(--space-4);
  line-height: 0;
  text-decoration: none;
}

.public-site__footer-logo-link:hover {
  text-decoration: none;
  opacity: 0.88;
}

.public-site__footer-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(220px, 100%);
}

.public-site__footer-tagline {
  margin: 0 0 var(--space-3);
  font-size: var(--font-body);
  color: rgba(250, 250, 248, 0.92);
}

.public-site__footer-note {
  margin: 0;
  font-size: var(--font-caption);
  line-height: 1.6;
  color: rgba(250, 250, 248, 0.62);
}

.public-site__footer-heading {
  margin: 0 0 var(--space-4);
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.5);
}

.public-site__footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.public-site__footer-links a {
  color: rgba(250, 250, 248, 0.88);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.public-site__footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-site__footer-bottom {
  max-width: var(--content-max-width);
  margin: var(--space-7) auto 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid rgba(250, 250, 248, 0.12);
}

.public-site__footer-copy {
  margin: 0;
  font-size: var(--font-caption);
  color: rgba(250, 250, 248, 0.45);
}

@media (max-width: 767px) {
  .public-site__footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.public-site__menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
  color: var(--color-text-primary);
}

.public-site__menu-btn:hover {
  background: var(--color-bg-subtle);
}

.public-site__drawer {
  display: none;
}

.public-site__overlay {
  display: none;
}

@media (max-width: 991px) {
  .public-site__util-link:nth-child(1),
  .public-site__util-link:nth-child(2) {
    display: none;
  }

  html.public-menu-open,
  html.public-menu-open body {
    overflow: hidden;
  }

  .public-site__header-top {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-4);
  }

  .public-site__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    grid-row: 1;
  }

  .public-site__brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
    min-width: 0;
  }

  .public-site__brand-service,
  .public-site__util-link {
    display: none;
  }

  .public-site__header-utils {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  .public-site__drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    width: 100%;
    max-width: 100%;
    background: var(--color-bg-default);
    z-index: var(--z-drawer);
    transform: translateX(-100%);
    transition: transform var(--duration-base) var(--ease-out);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
  }

  .public-site[data-menu-open="true"] .public-site__drawer {
    transform: translateX(0);
    pointer-events: auto;
  }

  .public-site__drawer-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-height: var(--public-header-top-height);
    padding: 0 var(--space-4);
    border-bottom: 1px solid var(--color-border-default);
  }

  .public-site__drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text-primary);
    cursor: pointer;
  }

  .public-site__drawer-close:hover {
    background: var(--color-bg-subtle);
  }

  .public-site__nav--drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    overflow-y: auto;
    padding: var(--space-2) var(--space-4) var(--space-6);
  }

  .public-site__nav--drawer .public-site__nav-link {
    padding: var(--space-4);
    font-size: var(--font-body);
  }

  .public-site[data-menu-open="true"] .public-site__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: calc(var(--z-drawer) - 1);
  }
}

@media (max-width: 767px) {
  .public-site__auth-user {
    max-width: min(120px, 36vw);
    padding: 2px 6px 2px 2px;
  }

  .public-site__auth-avatar {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .public-site__auth-name {
    font-size: 14px;
  }
}

/* 預約 CTA — 全寬照片底 · 細線網格 pattern · 無卡片 */
.pub-cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-8), 6vw, var(--space-9)) var(--space-6);
  min-height: clamp(220px, 26vw, 300px);
  display: flex;
  align-items: center;
}

.pub-cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pub-cta-band__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.pub-cta-band__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(6, 10, 18, 0.88) 0%,
    rgba(6, 10, 18, 0.62) 42%,
    rgba(168, 34, 34, 0.38) 78%,
    rgba(6, 10, 18, 0.52) 100%
  );
}

.pub-cta-band__scrim::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture-cta-grid);
  background-size: 32px 32px;
  opacity: 0.85;
}

.pub-cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--texture-noise-fine);
  background-size: 128px 128px;
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.pub-cta-band__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 3;
}

.pub-cta-band__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.pub-cta-band__copy {
  max-width: 560px;
}

.pub-cta-band__eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: #ffc9c9;
}

.pub-cta-band__title {
  font-size: clamp(22px, 3vw, var(--font-h1));
  font-weight: 700;
  margin: 0 0 var(--space-3);
  line-height: var(--line-height-heading);
  color: var(--color-text-on-brand);
  letter-spacing: var(--letter-spacing-tight);
}

.pub-cta-band__desc {
  margin: 0;
  font-size: var(--font-ui);
  line-height: 1.6;
  color: rgba(250, 250, 248, 0.82);
  white-space: nowrap;
}

.pub-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  align-items: center;
}

.pub-cta-band__actions .btn--primary {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.pub-cta-band__actions .btn--secondary {
  color: var(--color-text-on-brand);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(6px);
}

.pub-cta-band__actions .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-text-on-brand);
}

/* 中網：按鈕維持與大網相同的左右排列 */
@media (min-width: 768px) and (max-width: 991px) {
  .pub-cta-band__content {
    align-items: flex-start;
  }

  .pub-cta-band__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
  }

  .pub-cta-band__actions .btn {
    width: auto;
    flex: 0 1 auto;
  }
}

@media (max-width: 767px) {
  .pub-cta-band {
    min-height: 0;
    padding: var(--space-8) var(--space-5);
  }

  .pub-cta-band__bg-img {
    object-position: 55% center;
  }

  .pub-cta-band__scrim {
    background: linear-gradient(
      180deg,
      rgba(6, 10, 18, 0.9) 0%,
      rgba(6, 10, 18, 0.75) 55%,
      rgba(168, 34, 34, 0.45) 100%
    );
  }

  .pub-cta-band__content {
    align-items: stretch;
  }

  .pub-cta-band__actions {
    width: 100%;
    flex-direction: column;
  }

  .pub-cta-band__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-cta-band__actions .btn--secondary {
    backdrop-filter: none;
  }
}

/* Hero */
.pub-hero {
  background: linear-gradient(135deg, var(--color-primary-gradient-from) 0%, var(--color-primary-gradient-to) 100%);
  color: var(--color-text-on-brand);
  padding: var(--space-8) var(--space-6);
}

.pub-hero__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (max-width: 991px) {
  .pub-hero__inner { grid-template-columns: 1fr; }
}

.pub-hero__eyebrow {
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-3);
}

.pub-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin: 0 0 var(--space-4);
}

.pub-hero__desc {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 var(--space-6);
  max-width: 480px;
}

.pub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.pub-hero__actions .btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.pub-hero__actions .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.pub-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.pub-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.pub-stat__value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.pub-stat__label {
  font-size: var(--font-caption);
  opacity: 0.85;
}

/* Sections */
.pub-section {
  padding: var(--space-8) var(--space-6);
}

.pub-section--muted {
  background: var(--color-bg-subtle);
}

.pub-section__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

html.has-section-reveal [data-section-reveal]:not(.is-section-revealed) {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: opacity, transform;
}

html.has-section-reveal [data-section-reveal].is-section-revealed {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-section-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

.pub-section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-7);
}

.pub-section__title {
  font-size: var(--font-h1);
  font-weight: 700;
  margin: 0 0 var(--space-3);
}

.pub-section__desc {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 16px;
}

/* Process steps */
.pub-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 991px) {
  .pub-process-grid { grid-template-columns: 1fr; }
}

.pub-process-card {
  background: var(--color-bg-default);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
}

.pub-process-card__num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--font-caption);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.pub-process-card__title {
  font-size: var(--font-h3);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.pub-process-card__desc {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Feature cards row */
.pub-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 991px) {
  .pub-feature-row { grid-template-columns: 1fr; }
}

.pub-feature {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-bg-default);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--duration-base), border-color var(--duration-base);
}

.pub-feature:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  text-decoration: none;
  color: inherit;
}

.pub-feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.pub-feature__title {
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.pub-feature__desc {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  margin: 0;
}

/* 360° Virtual Tour — ref. DS Smith Kemsley Mill */
.pub-vtour {
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-default);
  box-shadow: var(--shadow-md);
}

.pub-vtour__intro {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border-default);
}

.pub-vtour__intro-eyebrow {
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.pub-vtour__intro-title {
  font-size: var(--font-h2);
  font-weight: 700;
  margin: 0 0 var(--space-3);
}

.pub-vtour__intro-desc {
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}

.pub-vtour__body {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
}

@media (max-width: 991px) {
  .pub-vtour__body { grid-template-columns: 1fr; }
}

.pub-vtour__stops {
  background: var(--color-bg-subtle);
  border-right: 1px solid var(--color-border-default);
  padding: var(--space-4);
  overflow-y: auto;
}

@media (max-width: 991px) {
  .pub-vtour__stops {
    border-right: none;
    border-bottom: 1px solid var(--color-border-default);
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding: var(--space-3);
  }
}

.pub-vtour__stops-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
}

@media (max-width: 991px) {
  .pub-vtour__stops-label { display: none; }
}

.pub-vtour__stop {
  display: flex;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  padding: var(--space-3);
  margin-bottom: var(--space-1);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

@media (max-width: 991px) {
  .pub-vtour__stop {
    flex-shrink: 0;
    width: auto;
    min-width: 140px;
    margin-bottom: 0;
  }
}

.pub-vtour__stop:hover {
  background: var(--color-bg-default);
}

.pub-vtour__stop--active {
  background: var(--color-bg-default);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xs);
}

.pub-vtour__stop-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-vtour__stop--active .pub-vtour__stop-num {
  background: var(--color-primary);
  color: #fff;
}

.pub-vtour__stop-title {
  font-size: var(--font-body);
  font-weight: 600;
  margin: 0 0 2px;
}

.pub-vtour__stop-desc {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .pub-vtour__stop-desc { display: none; }
}

.pub-vtour__viewer {
  position: relative;
  background: #0d1117;
  display: flex;
  flex-direction: column;
}

.pub-vtour__canvas {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.pub-vtour__canvas:active { cursor: grabbing; }

.pub-vtour__pano {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a2332;
  clip-path: inset(0);
}

.pub-vtour__pano .pnlm-container {
  overflow: hidden !important;
  background: transparent !important;
}

.pub-vtour__pano .pnlm-load-box,
.pub-vtour-tgm__pano .pnlm-load-box,
.pub-vtour__pano .pnlm-lbox,
.pub-vtour-tgm__pano .pnlm-lbox {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pub-vtour__pano .pnlm-render-container {
  transform: scale(var(--vtour-pano-scale, 2)) !important;
  transform-origin: 50% 50% !important;
  will-change: transform;
}

.pub-vtour__scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 45%);
  pointer-events: none;
  z-index: 2;
}

.pub-vtour__scene-info {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  right: var(--space-5);
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.pub-vtour__scene-tag {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-1);
}

.pub-vtour__scene-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  line-height: 1.35;
}

.pub-vtour__scene-desc {
  margin: 0;
  opacity: 0.9;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.5;
}

.pub-vtour__scene-detail {
  margin: var(--space-3) 0 0;
  max-width: 560px;
  font-size: var(--font-caption);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

/* Pannellum 場景內導覽箭頭（3D 看房式） */
.pnlm-hotspot.pub-vtour-pano-hotspot {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 2px solid var(--color-primary) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
  cursor: pointer !important;
  animation: vtour-pano-pulse 2s ease-in-out infinite;
}

.pnlm-hotspot.pub-vtour-pano-hotspot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: var(--color-primary);
  clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);
}

.pnlm-hotspot.pub-vtour-pano-hotspot--back::after {
  clip-path: polygon(100% 20%, 40% 20%, 40% 0%, 0% 50%, 40% 100%, 40% 80%, 100% 80%);
}

.pnlm-hotspot.pub-vtour-pano-hotspot .pnlm-hotspot-label {
  top: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 4px 10px !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(17, 17, 17, 0.82) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  pointer-events: none;
}

.pnlm-hotspot.pub-vtour-pano-hotspot:hover {
  background: #fff !important;
  transform: scale(1.06);
}

@keyframes vtour-pano-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(223, 47, 47, 0.45); }
  50% { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(223, 47, 47, 0); }
}

.pub-vtour__pano-pending {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: center;
  background: linear-gradient(165deg, #1a2332 0%, #0d1117 55%, #151b24 100%);
}

.pub-vtour__pano-pending-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.pub-vtour__pano-pending-desc {
  margin: 0;
  max-width: 28em;
  font-size: var(--font-caption);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.pub-vtour[data-pano-pending="true"] .pub-vtour__poster {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pub-vtour[data-pano-pending="true"] .pub-vtour__launch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.pub-vtour-tgm[data-pano-pending="true"] .pub-vtour-tgm__poster {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pub-vtour-tgm[data-pano-pending="true"] .pub-vtour-tgm__launch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pub-vtour__poster {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(4px);
  transition: opacity var(--duration-slow), visibility var(--duration-slow);
}

.pub-vtour[data-started="true"] .pub-vtour__poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pub-vtour__launch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-7);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.pub-vtour__launch:hover {
  background: var(--color-primary-hover);
  transform: scale(1.02);
}

.pub-vtour__launch-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pub-vtour__poster-hint {
  color: rgba(255,255,255,0.7);
  font-size: var(--font-caption);
  margin: 0;
}

.pub-vtour__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(0,0,0,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 5;
}

.pub-vtour__toolbar-hint {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.pub-vtour__toolbar-actions {
  display: flex;
  gap: var(--space-2);
}

.pub-vtour__tool-btn {
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.pub-vtour__tool-btn:hover {
  background: rgba(255,255,255,0.2);
}

.pub-vtour__tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 場域導覽實驗版 — ref. 臺中綠美圖 #guide（左 3D / 右環景） */
.pub-section--is-hidden {
  display: none !important;
}

.pub-section--tgm-tour {
  background: var(--color-bg-default);
  border-top: none;
  /* 上下留白見 factory.css 與 --about / --process 共用規則 */
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.pub-section__inner--tgm-tour {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.pub-section__header--tgm-tour {
  margin-bottom: var(--space-4);
}

.pub-section--tgm-tour .pub-factory-tabs {
  margin-bottom: 40px;
}

/* 廠區環景 — 標題與卡片間的膠囊 tab（原型僅視覺，預設竹北廠） */
.pub-factory-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-7);
  padding: 3px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-full);
}

.pub-factory-tabs__pill {
  flex: 0 1 auto;
  min-width: 0;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  font: inherit;
  font-size: var(--font-body);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-secondary);
  white-space: nowrap;
  cursor: default;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.pub-factory-tabs__pill:not(.pub-factory-tabs__pill--active):hover {
  color: var(--color-text-primary);
  background: rgba(17, 17, 17, 0.05);
}

.pub-factory-tabs__pill--active {
  background: var(--color-ink);
  color: var(--color-text-on-brand);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
  .pub-factory-tabs {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pub-factory-tabs::-webkit-scrollbar {
    display: none;
  }

  .pub-factory-tabs__pill {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: var(--font-caption);
  }
}

.pub-section__desc--badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.pub-section__desc--badge::before {
  content: 'Beta';
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
}

.pub-vtour-tgm {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-default);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 0;
}

/* 模型區左上角標題：英文輔助行 + 中文主標，上下層次 */
.pub-vtour-tgm__model-head {
  position: absolute;
  top: 32px;
  left: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: min(16em, calc(100% - 48px));
  pointer-events: none;
}

@media (min-width: 992px) {
  .pub-vtour-tgm__model-head {
    gap: var(--space-1);
  }
}

.pub-vtour-tgm__eyebrow {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--color-primary);
  background: none;
  border-radius: 0;
}

.pub-vtour-tgm__card-title {
  margin: 0;
  font-size: var(--font-h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.pub-vtour-tgm__layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 992px) {
  .pub-vtour-tgm__layout {
    flex-direction: row;
    align-items: stretch;
    /* 主內容區較前一版上下各少 80px（共 160px） */
    min-height: min(calc(80vh - 160px), 560px);
  }
}

.pub-vtour-tgm__model-col {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border-default);
  overflow: visible;
}

@media (min-width: 992px) {
  .pub-vtour-tgm__model-col {
    flex: 0 0 50%;
    max-width: 50%;
    border-bottom: none;
    border-right: 1px solid var(--color-border-default);
    padding: var(--space-2) var(--space-3);
    justify-content: center;
  }
}

.pub-vtour-tgm__model-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  /* 較前一版再少上下各 50px（共 100px） */
  min-height: min(calc(52vh - 260px), 160px);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  cursor: default;
  touch-action: none;
}

@media (min-width: 992px) {
  .pub-vtour-tgm__model-wrap {
    flex: 0 0 calc(100% - 100px);
    height: calc(100% - 100px);
    max-height: calc(100% - 100px);
    min-height: 0;
  }
}

.pub-vtour-tgm__poi-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pub-vtour-tgm__poi {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -100%);
  font: inherit;
  color: inherit;
}

.pub-vtour-tgm__poi-tip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition: background var(--duration-fast), color var(--duration-fast), box-shadow var(--duration-fast);
  pointer-events: none;
}

.pub-vtour-tgm__poi-dot {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #9aa3af;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  transition: background var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}

.pub-vtour-tgm__poi:hover .pub-vtour-tgm__poi-dot,
.pub-vtour-tgm__poi:focus-visible .pub-vtour-tgm__poi-dot {
  background: #d66b63;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(214, 107, 99, 0.4);
}

.pub-vtour-tgm__poi--active .pub-vtour-tgm__poi-dot {
  background: #d66b63;
  transform: scale(1.14);
  box-shadow:
    0 0 0 3px rgba(214, 107, 99, 0.35),
    0 6px 18px rgba(214, 107, 99, 0.5);
}

.pub-vtour-tgm__poi--active .pub-vtour-tgm__poi-tip {
  background: #d66b63;
  color: #fff;
  box-shadow: 0 4px 12px rgba(214, 107, 99, 0.45);
}

.pub-vtour-tgm__model-wrap:active {
  cursor: grabbing;
}

.pub-vtour-tgm__model-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.pub-vtour-tgm__model-shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 8px 4px rgba(255, 255, 255, 0.35);
}

.pub-vtour-tgm__pano-col {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 992px) {
  .pub-vtour-tgm__pano-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.pub-vtour-tgm__tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border-default);
  -webkit-overflow-scrolling: touch;
}

.pub-vtour-tgm__tab {
  flex: 1 0 auto;
  min-width: max-content;
  padding: var(--space-3) var(--space-4);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  font-size: var(--font-caption);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

.pub-vtour-tgm__tab:hover {
  color: var(--color-text-primary);
}

.pub-vtour-tgm__tab--active {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.pub-vtour-tgm__viewer {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  background: transparent;
}

.pub-vtour-tgm__canvas {
  position: relative;
  flex: 1 1 auto;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: #0d1117;
}

@media (min-width: 992px) {
  .pub-vtour-tgm__canvas {
    aspect-ratio: unset;
    min-height: 0;
  }
}

.pub-vtour-tgm__canvas:active {
  cursor: grabbing;
}

.pub-vtour-tgm__pano {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a2332;
  clip-path: inset(0);
}

.pub-vtour-tgm__pano .pnlm-container {
  overflow: hidden !important;
  background: transparent !important;
}

.pub-vtour-tgm__pano .pnlm-render-container {
  transform: scale(var(--vtour-pano-scale, 2)) !important;
  transform-origin: 50% 50% !important;
  will-change: transform;
}

.pub-vtour-tgm__scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 45%);
  pointer-events: none;
  z-index: 2;
}

.pub-vtour-tgm__scene-info {
  position: absolute;
  left: var(--space-4);
  bottom: calc(var(--space-4) + 52px);
  right: var(--space-4);
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.pub-vtour-tgm__scene-tag {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-1);
  line-height: 1.4;
}

.pub-vtour-tgm__scene-title {
  font-size: var(--font-h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
}

.pub-vtour-tgm__scene-desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.92;
  max-width: 36em;
}

.pub-vtour-tgm__poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: rgba(13, 17, 23, 0.72);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pub-vtour-tgm[data-started="true"] .pub-vtour-tgm__poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pub-vtour-tgm__launch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pub-vtour-tgm__launch:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pub-vtour-tgm__launch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
}

.pub-vtour-tgm__poster-hint {
  margin: 0;
  font-size: var(--font-caption);
  color: rgba(255, 255, 255, 0.65);
}

.pub-vtour-tgm__advance {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  overflow: hidden;
}

.pub-vtour-tgm__advance-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-primary);
  border-radius: 0 2px 2px 0;
}

@keyframes pub-vtour-tgm-advance {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-vtour-tgm__advance-fill {
    width: 100%;
  }
}

.pub-vtour-tgm__toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-9) var(--space-4) var(--space-3);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 55%, transparent 100%);
  border-top: none;
  pointer-events: none;
}

.pub-vtour-tgm__toolbar-actions,
.pub-vtour-tgm__tool-btn {
  pointer-events: auto;
}

.pub-vtour-tgm__toolbar-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.pub-vtour-tgm__toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pub-vtour-tgm__tool-btn {
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.pub-vtour-tgm__tool-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pub-vtour-tgm__tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Video placeholder (legacy) */
.pub-video {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1a1a1a, #2d4a3e);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: var(--space-4);
  border: 1px solid var(--color-border-default);
}

.pub-video__play {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.pub-video__label {
  font-size: var(--font-body);
  opacity: 0.8;
}

/* Process timeline (detail page) */
.pub-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.pub-timeline__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  position: relative;
}

.pub-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--color-border-default);
}

.pub-timeline__marker {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--color-primary);
}

.pub-timeline__title {
  font-size: var(--font-h3);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  padding-top: var(--space-2);
}

.pub-timeline__desc {
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.pub-timeline__note {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary-subtle);
  border-radius: var(--radius-md);
  font-size: var(--font-caption);
  color: var(--color-primary-emphasis);
}

/* Member portal — reuse client-portal with member badge */
.member-portal__brand-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}

/* Public page content wrapper (non-full-bleed pages) */
.pub-page {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-7) var(--space-6);
}

.pub-page__title {
  font-size: var(--font-h1);
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

.pub-page__desc {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-6);
}

/* —— 預約流程（四步驟） —— */
.book-flow-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: var(--space-6);
}

.book-flow-top .book-auth-banner {
  margin-bottom: 0;
}

.book-flow-top .ui-stepper {
  margin-bottom: 0;
}

.book-success-page {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.book-success-card {
  margin: 0;
}

.book-success-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(420px, 55vh);
  padding: var(--book-card-padding-y) var(--book-card-padding-x);
  box-sizing: border-box;
}

.book-success-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 0 var(--space-5);
  border-radius: 50%;
  color: var(--color-sustain-emphasis);
  background: var(--color-success-subtle);
}

.book-success-card__title {
  margin: 0;
  font-size: var(--font-h2);
  line-height: 1.3;
  color: var(--color-text-primary);
}

.book-success-card__ref {
  margin: var(--space-3) 0 0;
  font-size: var(--font-caption);
  line-height: 1.45;
  color: var(--color-text-muted);
}

.book-success-card__ref:empty {
  display: none;
}

.book-success-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-7);
  width: 100%;
  max-width: 280px;
}

.book-success-card__actions .btn {
  width: 100%;
  justify-content: center;
}

.book-auth-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(0, 128, 96, 0.2);
  border-radius: var(--radius-md);
}

.book-auth-banner--signed-in {
  background: var(--color-bg-muted);
  border-color: var(--color-border-default);
}

.book-auth-banner__title {
  margin: 0 0 var(--space-1);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-primary);
}

.book-auth-banner__text {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.book-auth-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.book-auth-banner__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.book-checkout-auth {
  margin: 0;
}

.book-contact-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.book-contact-auth {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.book-checkout-auth-card {
  margin: 0;
}

.book-checkout-auth-card--signed-in .ui-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.book-checkout-auth--signed-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  width: 100%;
}

.book-checkout-auth__signed-in-text {
  margin: 0;
  font-size: var(--font-body);
  color: var(--color-text-primary);
}

.book-checkout-auth__switch {
  font: inherit;
  font-size: var(--font-caption);
  color: var(--color-text-link);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.book-checkout-auth__title {
  margin: 0 0 var(--space-2);
  font-size: 18px;
  font-weight: 600;
}

.book-checkout-auth__hint {
  margin: 0 0 var(--space-4);
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.book-checkout-auth__guest-lead {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  text-align: center;
}

.book-checkout-auth__divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.book-checkout-auth__divider[hidden],
.book-checkout-auth__guest-lead[hidden] {
  display: none;
}

.book-checkout-auth__divider::before,
.book-checkout-auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-default);
}

.book-checkout-auth__divider span {
  flex-shrink: 0;
}

.book-auth-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.book-auth-modal[hidden] {
  display: none;
}

.book-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
}

.book-auth-modal__dialog {
  position: relative;
  width: min(100%, 440px);
  background: var(--color-bg-default);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.book-auth-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-default);
}

.book-auth-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.book-auth-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.book-auth-modal__close:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
}

.book-auth-modal__body {
  padding: var(--space-5);
}

.book-auth-modal__lead {
  margin: 0 0 var(--space-4);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.book-auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.book-auth-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

body.book-auth-modal-open {
  overflow: hidden;
}

/* 水銷分類（步驟 3） */
.book-paper-lead {
  margin: 0 0 var(--space-5);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.book-paper-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.book-paper-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-5);
  border: 2px solid var(--color-border-default);
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.book-paper-option:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-default);
}

.book-paper-option:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.book-paper-option--selected {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.book-paper-option--boost {
  background: #fffafa;
  border-color: rgba(223, 47, 47, 0.18);
}

.book-paper-option--boost.book-paper-option--selected {
  background: linear-gradient(165deg, var(--color-primary-subtle) 0%, #fff8f8 100%);
}

.book-paper-option__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.book-paper-option__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.book-paper-option__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.book-paper-option__list li + li {
  margin-top: var(--space-2);
}

.book-paper-option__tag {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-default);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.book-paper-option__tag--boost {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.book-household-prep {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
}

.book-household-prep__intro {
  margin: 0 0 var(--space-4);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.book-prep-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.book-prep-checklist li {
  display: block;
}

.book-prep-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 52px;
  padding: var(--space-4);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  background: var(--color-bg-default);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color var(--duration-fast),
    background var(--duration-fast),
    opacity var(--duration-fast);
}

.book-prep-check:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-subtle);
}

.book-prep-check--done {
  border-color: var(--color-border-strong);
  background: var(--color-bg-default);
}

.book-prep-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-text-primary);
  cursor: pointer;
}

.book-prep-check__index {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-bg-muted);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  pointer-events: none;
}

.book-prep-check--done .book-prep-check__index {
  background: var(--color-text-primary);
  color: #fff;
}

.book-prep-check__text {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-text-primary);
  pointer-events: none;
}

.book-household-prep__note {
  margin: var(--space-4) 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .book-paper-picker {
    grid-template-columns: 1fr;
  }

}

/* 車型 — 四格 Lucide 線圖按鈕 */

.book-vehicle-picker {
  margin: 0;
}

.book-vehicle-picker__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.book-vehicle-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-height: 132px;
  padding: var(--space-4) var(--space-3);
  border: 2px solid var(--color-border-default);
  border-radius: var(--radius-md);
  background: var(--color-bg-default);
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: center;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.book-vehicle-option:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-subtle);
}

.book-vehicle-option:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.book-vehicle-option--selected {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.book-vehicle-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  color: var(--color-ink-muted);
}

.book-vehicle-option__icon svg {
  width: 56px;
  height: 56px;
}

.book-vehicle-option--selected .book-vehicle-option__icon {
  color: var(--color-primary);
}

.book-vehicle-option__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.book-vehicle-option__meta {
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.book-vehicle-option--selected .book-vehicle-option__meta {
  color: var(--color-text-secondary);
}

@media (max-width: 960px) {
  .book-vehicle-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .book-vehicle-picker__grid {
    grid-template-columns: 1fr;
  }

  .book-vehicle-option {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-height: 0;
    text-align: left;
  }

  .book-vehicle-option__icon {
    width: 88px;
    flex-shrink: 0;
  }

  .book-vehicle-option__title,
  .book-vehicle-option__meta {
    flex: 1 1 120px;
  }
}

/* 預估車數 — 左對齊圓形步進器 */
.book-vehicle-qty-field {
  margin-top: var(--space-8);
}

.book-vehicle-qty-field__title {
  margin-bottom: var(--space-3);
}

.book-vehicle-qty {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
}

.book-vehicle-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-full);
  background: var(--color-bg-default);
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.book-vehicle-qty__btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.book-vehicle-qty__btn:active {
  transform: scale(0.96);
}

.book-vehicle-qty__btn:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.book-vehicle-qty__num {
  min-width: 1.75rem;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary);
}

.book-vehicle-qty__hint {
  margin: var(--space-3) 0 0;
  font-size: 14px;
  color: var(--color-text-muted);
}


.book-schedule__slots-title {
  margin: 0 0 var(--space-4);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.book-schedule-site-bar {
  margin-bottom: var(--space-5);
}

.book-schedule-site-field {
  max-width: 360px;
  margin: 0;
}

.book-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 767px) {
  .book-schedule {
    grid-template-columns: 1fr;
  }
}

.book-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.book-cal__month {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.book-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

.book-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
}

.book-cal__day {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-bg-default);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.book-cal__day:hover:not(:disabled):not(.book-cal__day--disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.book-cal__day--selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.book-cal__day--today:not(.book-cal__day--selected) {
  border-color: var(--color-border-strong, var(--color-border-default));
}

.book-cal__day--disabled,
.book-cal__day--empty {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.book-cal__day--empty {
  opacity: 0;
  border: none;
  min-height: 0;
}

.book-schedule-slots__heading {
  margin: 0 0 var(--space-3);
  font-weight: 600;
  font-size: 18px;
}

.book-schedule-slots__empty {
  margin: 0;
  padding: var(--space-5);
  font-size: 16px;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
}

.book-schedule-slots__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.book-slot-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  background: var(--color-bg-default);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.book-slot-chip:hover {
  border-color: var(--color-primary);
}

.book-slot-chip--selected {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.book-slot-chip__time {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.book-slot-chip__meta {
  font-size: 14px;
  color: var(--color-text-muted);
}

.book-vehicle-forklift__title {
  margin-top: var(--space-8);
}

.book-forklift-field .book-vehicle-forklift__title {
  margin-bottom: var(--space-1);
  padding-bottom: 0;
  border-bottom: none;
}

.book-forklift-field__hint {
  margin: 0 0 var(--space-4);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.book-forklift-segment {
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--color-border-default);
  border-radius: 12px;
  background: var(--color-bg-muted);
}

.book-forklift-segment__option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 100%;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
}

.book-forklift-segment__option span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text-secondary);
  pointer-events: none;
}

.book-forklift-segment__option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.book-forklift-segment__option:has(input:checked) {
  background: var(--color-bg-default);
  box-shadow: var(--shadow-xs);
}

.book-forklift-segment__option:has(input:checked) span {
  color: var(--color-text-primary);
  font-weight: 600;
}

.book-forklift-segment__option:has(input[value="yes"]:checked) {
  background: var(--color-primary);
}

.book-forklift-segment__option:has(input[value="yes"]:checked) span {
  color: #fff;
}

.book-forklift-segment__option:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.book-tour-preview-link {
  font: inherit;
  color: var(--color-text-link);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  vertical-align: baseline;
}

.book-tour-preview-link:hover {
  color: var(--color-text-link-hover, var(--color-text-link));
}

.book-contact-footer__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-left: auto;
}

.book-contact-footer__tour.ui-field__checkbox {
  align-items: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: var(--font-body);
  white-space: nowrap;
}

.book-contact-footer__tour.ui-field__checkbox:has(input:checked) {
  border: none;
  background: transparent;
}

.book-contact-footer__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 767px) {
  .form-sticky-footer__inner:has(.book-contact-footer__end) {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }

  .book-contact-footer__end {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .book-contact-footer__tour {
    white-space: normal;
  }

  .book-contact-footer__buttons .btn {
    width: 100%;
  }
}

.book-tour-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 1200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 28px);
}

.book-tour-modal[hidden] {
  display: none;
}

.book-tour-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(4px);
}

.book-tour-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1100px);
  max-height: min(92dvh, 900px);
  background: var(--color-bg-default, #fff);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.book-tour-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-shrink: 0;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-default);
}

.book-tour-modal__title {
  margin: 0;
  font-size: var(--font-h3);
  font-weight: 600;
}

.book-tour-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  font-size: 24px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.book-tour-modal__close:hover {
  background: var(--color-bg-muted, #eee);
  color: var(--color-text-primary);
}

.book-tour-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.book-tour-modal__vtour {
  min-width: 0;
}

body.book-tour-modal-open {
  overflow: hidden;
}

.book-contact-recap {
  --book-contact-recap-label-width: 3.5em;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.ui-schedule-panel .ui-schedule-panel__title {
  color: var(--color-text-primary);
}

.book-contact-recap__row {
  display: grid;
  grid-template-columns: var(--book-contact-recap-label-width) 1fr;
  column-gap: var(--space-3);
  align-items: baseline;
}

.book-contact-recap__term {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.book-contact-recap__value {
  color: var(--color-text-primary);
}

.book-contact-recap__row--slot .book-contact-recap__value {
  font-size: var(--font-detail-data);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
}
