/* XPRS Hotelier — component layer: controls, chrome, cards, media. */

/* ---------------------------------------------------------------- Buttons */
.xh-btn {
  --xh-btn-bg: transparent;
  --xh-btn-fg: var(--xh-color-ink);
  --xh-btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--xh-space-2);
  min-height: 46px;
  padding: 0.8rem 1.7rem;
  font-family: var(--xh-font-body);
  font-size: var(--xh-text-xs);
  font-weight: 600;
  letter-spacing: var(--xh-tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background: var(--xh-btn-bg);
  color: var(--xh-btn-fg);
  border: 1px solid var(--xh-btn-border);
  border-radius: var(--xh-radius);
  transition: background-color var(--xh-duration-fast) var(--xh-ease),
    color var(--xh-duration-fast) var(--xh-ease),
    border-color var(--xh-duration-fast) var(--xh-ease);
}

.xh-btn:hover { color: var(--xh-btn-fg); }

.xh-btn--primary {
  --xh-btn-bg: var(--xh-color-ink);
  --xh-btn-fg: var(--xh-color-surface);
  --xh-btn-border: var(--xh-color-ink);
}

.xh-btn--primary:hover {
  --xh-btn-bg: var(--xh-color-accent);
  --xh-btn-border: var(--xh-color-accent);
  --xh-btn-fg: var(--xh-color-on-accent);
}

.xh-btn--accent {
  --xh-btn-bg: var(--xh-color-accent);
  --xh-btn-fg: var(--xh-color-on-accent);
  --xh-btn-border: var(--xh-color-accent);
}

.xh-btn--accent:hover {
  --xh-btn-bg: color-mix(in srgb, var(--xh-color-accent) 82%, var(--xh-color-ink));
  --xh-btn-border: color-mix(in srgb, var(--xh-color-accent) 82%, var(--xh-color-ink));
}

.xh-btn--ghost {
  --xh-btn-border: var(--xh-color-line-strong);
}

.xh-btn--ghost:hover {
  --xh-btn-border: var(--xh-color-ink);
  --xh-btn-bg: var(--xh-color-ink);
  --xh-btn-fg: var(--xh-color-surface);
}

.xh-btn--quiet { padding-inline: 0; --xh-btn-border: transparent; min-height: 0; }

.xh-btn--on-dark {
  --xh-btn-fg: rgb(var(--xh-color-on-dark));
  --xh-btn-border: rgba(var(--xh-color-on-dark), 0.55);
}

.xh-btn--on-dark:hover {
  --xh-btn-bg: rgb(var(--xh-color-on-dark));
  --xh-btn-fg: #14120e;
  --xh-btn-border: rgb(var(--xh-color-on-dark));
}

.xh-btn--sm { min-height: 38px; padding: 0.5rem 1.1rem; font-size: var(--xh-text-2xs); }
.xh-btn--block { width: 100%; }
.xh-btn--icon { width: 44px; min-height: 44px; padding: 0; border-radius: var(--xh-radius-pill); }

/* Text link with a sliding rule — used for "view all" affordances. */
.xh-link {
  display: inline-flex;
  align-items: center;
  gap: var(--xh-space-2);
  font-size: var(--xh-text-xs);
  font-weight: 600;
  letter-spacing: var(--xh-tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--xh-color-line-strong);
}

.xh-link:hover { border-bottom-color: var(--xh-color-accent); }
.xh-link::after { content: "\2192"; transition: transform var(--xh-duration-fast) var(--xh-ease); }
.xh-link:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ Forms */
.xh-field { display: grid; gap: var(--xh-space-2); }

.xh-field__label {
  font-size: var(--xh-text-2xs);
  font-weight: 600;
  letter-spacing: var(--xh-tracking-wider);
  text-transform: uppercase;
  color: var(--xh-color-muted);
}

.xh-input,
.xh-select,
.xh-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--xh-color-surface);
  color: var(--xh-color-ink);
  border: 1px solid var(--xh-color-line-strong);
  border-radius: var(--xh-radius);
  font-size: var(--xh-text-sm);
}

.xh-input:focus,
.xh-select:focus,
.xh-textarea:focus { border-color: var(--xh-color-accent); outline: none; }

.xh-textarea { min-height: 150px; resize: vertical; }

/* Stepper (guests / rooms) */
.xh-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--xh-space-3);
  padding: var(--xh-space-2) 0;
}

.xh-stepper__label { font-size: var(--xh-text-sm); }
.xh-stepper__hint { display: block; font-size: var(--xh-text-2xs); color: var(--xh-color-muted); }

.xh-stepper__controls { display: flex; align-items: center; gap: var(--xh-space-2); }

.xh-stepper__btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--xh-color-line-strong);
  border-radius: var(--xh-radius-pill);
  font-size: var(--xh-text-md);
  line-height: 1;
}

.xh-stepper__btn:hover { border-color: var(--xh-color-accent); color: var(--xh-color-accent); }
.xh-stepper__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.xh-stepper__value { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Utility bar */
.xh-utility {
  background: var(--xh-color-ink);
  color: color-mix(in srgb, var(--xh-color-surface) 88%, transparent);
  font-size: var(--xh-text-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.xh-utility__inner {
  min-height: var(--xh-utility-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--xh-space-5);
}

.xh-utility a { text-decoration: none; }
.xh-utility a:hover { color: var(--xh-color-accent); }
.xh-utility ul { display: flex; gap: var(--xh-space-5); list-style: none; margin: 0; padding: 0; }
.xh-utility__phone { margin-inline-end: auto; }

@media (max-width: 780px) {
  .xh-utility { display: none; }
}

/* ---------------------------------------------------------------- Header */
.xh-header {
  position: sticky;
  top: var(--xh-admin-bar-height);
  z-index: var(--xh-z-header);
  background: var(--xh-color-surface);
  border-bottom: 1px solid var(--xh-color-line);
  transition: background-color var(--xh-duration) var(--xh-ease),
    border-color var(--xh-duration) var(--xh-ease),
    box-shadow var(--xh-duration) var(--xh-ease),
    color var(--xh-duration) var(--xh-ease);
}

.xh-header__inner {
  min-height: var(--xh-header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--xh-space-5);
  transition: min-height var(--xh-duration) var(--xh-ease);
}

/* Transparent-over-hero state on pages that open with full-bleed media. */
.xh-header[data-xh-transparent="true"] {
  position: fixed;
  inset: var(--xh-admin-bar-height) 0 auto 0;
  background: transparent;
  border-bottom-color: transparent;
  color: rgb(var(--xh-color-on-dark));
}

.xh-header[data-xh-transparent="true"] .xh-nav > ul > li > a,
.xh-header[data-xh-transparent="true"] .xh-logo,
.xh-header[data-xh-transparent="true"] .xh-nav-toggle,
.xh-header[data-xh-transparent="true"] .xh-switcher__toggle,
.xh-header[data-xh-transparent="true"] .xh-scheme-toggle { color: rgb(var(--xh-color-on-dark)); }

.xh-header[data-xh-transparent="true"] .xh-btn--ghost,
.xh-header[data-xh-transparent="true"] .xh-switcher__toggle,
.xh-header[data-xh-transparent="true"] .xh-scheme-toggle { border-color: rgba(var(--xh-color-on-dark), 0.5); }

.xh-header[data-xh-transparent="true"] .xh-scheme-toggle__icon { background: rgb(var(--xh-color-on-dark)); box-shadow: none; }

.xh-header[data-xh-transparent="true"] .xh-btn--primary {
  --xh-btn-bg: rgb(var(--xh-color-on-dark));
  --xh-btn-fg: #14120e;
  --xh-btn-border: rgb(var(--xh-color-on-dark));
}

.xh-header[data-xh-condensed="true"] {
  position: fixed;
  inset: var(--xh-admin-bar-height) 0 auto 0;
  background: var(--xh-color-surface);
  color: var(--xh-color-ink);
  border-bottom-color: var(--xh-color-line);
  box-shadow: var(--xh-shadow-sm);
}

.xh-header[data-xh-condensed="true"] .xh-header__inner { min-height: var(--xh-header-height-condensed); }
.xh-header[data-xh-condensed="true"] .xh-logo img { max-height: 34px; }

.xh-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-width: max-content;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--xh-font-display);
  font-size: var(--xh-text-lg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.xh-logo:hover { color: inherit; }
.xh-logo img { max-height: 46px; width: auto; transition: max-height var(--xh-duration) var(--xh-ease); }
.xh-logo__img--dark { display: none; }
[data-xh-scheme="dark"] .xh-logo__img--dark { display: block; }
[data-xh-scheme="dark"] .xh-logo__img--light { display: none; }

.xh-header__actions {
  display: flex;
  align-items: center;
  gap: var(--xh-space-3);
  justify-self: end;
}

/* -------------------------------------------------------- Primary nav */
.xh-nav { justify-self: center; min-width: 0; max-width: 100%; }

.xh-nav > ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--xh-space-6);
  margin: 0;
  padding: 0;
}

.xh-nav > ul > li { position: relative; }

.xh-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: var(--xh-space-2);
  padding-block: var(--xh-space-2);
  text-decoration: none;
  font-size: var(--xh-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.xh-nav > ul > li > a:hover,
.xh-nav > ul > li[data-xh-open="true"] > a { border-bottom-color: currentColor; }

.xh-nav .current-menu-item > a,
.xh-nav .current-menu-parent > a { border-bottom-color: var(--xh-color-accent); }

/* Simple dropdown for menus with children but no mega panel. */
.xh-nav ul ul {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: min(230px, calc(100vw - 2rem));
  list-style: none;
  margin: 0;
  padding: var(--xh-space-3) 0;
  background: var(--xh-color-surface);
  border: 1px solid var(--xh-color-line);
  box-shadow: var(--xh-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--xh-duration-fast) var(--xh-ease), transform var(--xh-duration-fast) var(--xh-ease), visibility var(--xh-duration-fast);
  z-index: var(--xh-z-mega);
}

.xh-nav li:hover > ul,
.xh-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }

.xh-nav ul ul a {
  display: block;
  padding: var(--xh-space-2) var(--xh-space-5);
  text-decoration: none;
  font-size: var(--xh-text-sm);
  color: var(--xh-color-ink);
}

.xh-nav ul ul a:hover { color: var(--xh-color-accent); }

.xh-nav-toggle { display: none; }

/* -------------------------------------------------------------- Mega menu */
.xh-mega {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--xh-color-surface);
  color: var(--xh-color-ink);
  border-bottom: 1px solid var(--xh-color-line);
  box-shadow: var(--xh-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--xh-duration) var(--xh-ease), transform var(--xh-duration) var(--xh-ease), visibility var(--xh-duration);
  z-index: var(--xh-z-mega);
}

.xh-mega[data-open="true"] { opacity: 1; visibility: visible; transform: none; }

.xh-mega__inner {
  display: grid;
  gap: var(--xh-space-7);
  padding-block: var(--xh-space-7);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1000px) {
  .xh-mega__inner { grid-template-columns: 200px minmax(0, 1fr) 320px; }
}

.xh-mega__intro { border-right: 1px solid var(--xh-color-line); padding-right: var(--xh-space-5); }
.xh-mega__title { font-size: var(--xh-text-xl); margin-bottom: var(--xh-space-2); }
.xh-mega__lead { font-size: var(--xh-text-sm); color: var(--xh-color-muted); margin: 0; }

.xh-mega__columns {
  display: grid;
  gap: var(--xh-space-5) var(--xh-space-6);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.xh-mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--xh-space-2); }

.xh-mega__list a {
  display: block;
  text-decoration: none;
  font-size: var(--xh-text-sm);
  color: var(--xh-color-ink);
}

.xh-mega__list a:hover { color: var(--xh-color-accent); }
.xh-mega__list .xh-mega__meta { font-size: var(--xh-text-2xs); color: var(--xh-color-muted); display: block; }

.xh-mega__feature { display: grid; gap: var(--xh-space-3); }
.xh-mega__feature figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.xh-mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--xh-duration-slow) var(--xh-ease); }
.xh-mega__feature a:hover img { transform: scale(1.04); }

/* --------------------------------------------------------- Mobile drawer */
.xh-drawer {
  position: fixed;
  inset: var(--xh-admin-bar-height) 0 0;
  z-index: var(--xh-z-drawer);
  background: var(--xh-color-surface);
  color: var(--xh-color-ink);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--xh-duration) var(--xh-ease-out), visibility var(--xh-duration);
  overflow-y: auto;
}

.xh-drawer[data-open="true"] { transform: none; visibility: visible; }

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

.xh-drawer__body { padding: var(--xh-space-5); flex: 1; }
.xh-drawer__foot { padding: var(--xh-space-5); border-top: 1px solid var(--xh-color-line); display: grid; gap: var(--xh-space-3); }

.xh-drawer ul { list-style: none; margin: 0; padding: 0; }

.xh-drawer > .xh-drawer__body > ul > li { border-bottom: 1px solid var(--xh-color-line); }

.xh-drawer a {
  display: block;
  padding: var(--xh-space-4) 0;
  text-decoration: none;
  font-family: var(--xh-font-display);
  font-size: var(--xh-text-xl);
}

.xh-drawer ul ul a { font-family: var(--xh-font-body); font-size: var(--xh-text-sm); padding: var(--xh-space-2) 0 var(--xh-space-2) var(--xh-space-4); }

@media (max-width: 1000px) {
  .xh-nav { display: none; }
  .xh-nav-toggle { display: inline-flex; }
  .xh-header__inner { grid-template-columns: auto minmax(0, 1fr); }
  .xh-header__book { display: none; }
  /* The property list and appearance switch move into the menu drawer so they
     cannot crowd or overlap the brand name on a phone. */
  .xh-header__actions .xh-switcher,
  .xh-header__actions .xh-scheme-toggle { display: none; }
  .xh-header__actions { gap: var(--xh-space-2); }
  .xh-header__inner { gap: var(--xh-space-4); }
}

/* JavaScript promotes the existing drawer whenever the actual row cannot fit. */
.xh-header[data-xh-nav-mode="drawer"] .xh-nav { display: none; }
.xh-header[data-xh-nav-mode="drawer"] .xh-nav-toggle { display: inline-flex; }
.xh-header[data-xh-nav-mode="drawer"] .xh-header__inner { grid-template-columns: auto minmax(0, 1fr); }
.xh-header[data-xh-nav-mode="drawer"] .xh-header__book,
.xh-header[data-xh-nav-mode="drawer"] .xh-header__actions .xh-switcher,
.xh-header[data-xh-nav-mode="drawer"] .xh-header__actions .xh-scheme-toggle { display: none; }
.xh-header[data-xh-nav-mode="drawer"] .xh-header__actions { gap: var(--xh-space-2); }

@media (min-width: 1001px) and (max-width: 1380px) {
  .xh-header__inner { gap: var(--xh-space-4); }
  .xh-nav > ul { gap: var(--xh-space-4); }
  .xh-header__actions { gap: var(--xh-space-2); }
}

/* Property list inside the mobile drawer */
.xh-drawer__properties {
  padding-bottom: var(--xh-space-4);
  margin-bottom: var(--xh-space-4);
  border-bottom: 1px solid var(--xh-color-line);
}

.xh-drawer__properties .xh-label { margin: 0 0 var(--xh-space-2); }

.xh-drawer__property-list a {
  font-family: var(--xh-font-body);
  font-size: var(--xh-text-base);
  padding: var(--xh-space-2) 0;
}

.xh-drawer__property-list .is-current > a {
  color: var(--xh-color-accent);
  font-weight: 600;
}


/* ------------------------------------------------------------ Scheme toggle */
.xh-scheme-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--xh-color-line-strong);
  border-radius: var(--xh-radius-pill);
  transition: border-color var(--xh-duration-fast) var(--xh-ease);
}

.xh-scheme-toggle:hover { border-color: var(--xh-color-accent); }

.xh-scheme-toggle__icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--xh-color-ink);
  box-shadow: inset -4px -2px 0 0 var(--xh-color-surface);
}

/* -------------------------------------------------------- Property switcher */
.xh-switcher { position: relative; }

.xh-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--xh-space-2);
  font-size: var(--xh-text-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--xh-color-line-strong);
  border-radius: var(--xh-radius);
  padding: 0.6rem 0.9rem;
  max-width: 220px;
}

.xh-switcher__toggle > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.xh-switcher__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: min(260px, calc(100vw - 2rem));
  max-height: 340px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: var(--xh-space-2);
  background: var(--xh-color-surface);
  color: var(--xh-color-ink);
  border: 1px solid var(--xh-color-line);
  box-shadow: var(--xh-shadow-md);
  z-index: var(--xh-z-mega);
}

.xh-switcher__list a {
  display: block;
  padding: var(--xh-space-2) var(--xh-space-3);
  text-decoration: none;
  font-size: var(--xh-text-sm);
}

.xh-switcher__list .is-current a { color: var(--xh-color-accent); }

/* --------------------------------------------------------------- Cards */
.xh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.xh-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--xh-color-surface-3);
}

.xh-card--portrait .xh-card__media { aspect-ratio: 3 / 4; }
.xh-card--wide .xh-card__media { aspect-ratio: 16 / 10; }

.xh-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--xh-duration-cinematic) var(--xh-ease-out);
}

.xh-card:hover .xh-card__media img { transform: scale(1.05); }

.xh-card__badge {
  position: absolute;
  top: var(--xh-space-3);
  left: var(--xh-space-3);
  padding: 0.35rem 0.7rem;
  background: var(--xh-color-surface);
  color: var(--xh-color-ink);
  font-size: var(--xh-text-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xh-card__body {
  padding: var(--xh-space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--xh-space-2);
  flex: 1;
}

.xh-card__title { margin: 0; font-size: var(--xh-text-lg); line-height: var(--xh-leading-snug); }
.xh-card__title a { text-decoration: none; }
.xh-card__title a:hover { color: var(--xh-color-accent); }
.xh-card__excerpt { margin: 0; color: var(--xh-color-muted); font-size: var(--xh-text-sm); }

.xh-card__meta {
  margin: 0;
  font-size: var(--xh-text-2xs);
  font-weight: 600;
  letter-spacing: var(--xh-tracking-wider);
  text-transform: uppercase;
  color: var(--xh-color-muted);
}

.xh-card__footer {
  margin-top: auto;
  padding-top: var(--xh-space-4);
  border-top: 1px solid var(--xh-color-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--xh-space-3);
}

.xh-card__price { font-family: var(--xh-font-display); font-size: var(--xh-text-lg); }
.xh-card__price small { display: block; font-family: var(--xh-font-body); font-size: var(--xh-text-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--xh-color-muted); }

/* Attribute chips (occupancy, size, bed) */
.xh-chips { display: flex; flex-wrap: wrap; gap: var(--xh-space-2); list-style: none; margin: 0; padding: 0; }

.xh-chip {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--xh-color-line);
  border-radius: var(--xh-radius-pill);
  font-size: var(--xh-text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xh-color-muted);
}

/* Promo code */
.xh-code {
  display: inline-flex;
  align-items: center;
  gap: var(--xh-space-3);
  padding: 0.55rem 0.9rem;
  border: 1px dashed var(--xh-color-line-strong);
  font-family: var(--xh-font-body);
  font-size: var(--xh-text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xh-code__copy { font-size: var(--xh-text-2xs); font-weight: 600; letter-spacing: 0.12em; color: var(--xh-color-accent); }

/* -------------------------------------------------------- Section heading */
.xh-section-heading { max-width: 46ch; margin-bottom: var(--xh-space-6); }
.xh-section-heading__title { margin-bottom: var(--xh-space-3); }
.xh-section-heading__lead { color: var(--xh-color-muted); margin: 0; font-size: var(--xh-text-md); }

.xh-section-head {
  display: grid;
  gap: var(--xh-space-4);
  margin-bottom: var(--xh-space-6);
}

@media (min-width: 900px) {
  .xh-section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .xh-section-head .xh-section-heading { margin-bottom: 0; }
}

/* ------------------------------------------------------------- Meta list */
.xh-meta-list {
  display: grid;
  gap: 0;
  margin: 0 0 var(--xh-space-5);
  border-top: 1px solid var(--xh-color-line);
}

.xh-meta-list__row {
  display: flex;
  justify-content: space-between;
  gap: var(--xh-space-4);
  padding: var(--xh-space-3) 0;
  border-bottom: 1px solid var(--xh-color-line);
}

.xh-meta-list dt { color: var(--xh-color-muted); font-size: var(--xh-text-sm); }
.xh-meta-list dd { margin: 0; text-align: right; font-size: var(--xh-text-sm); }

/* ---------------------------------------------------------- Filter bar */
.xh-filters {
  display: grid;
  gap: var(--xh-space-4);
  padding: var(--xh-space-5) 0;
  border-block: 1px solid var(--xh-color-line);
  margin-bottom: var(--xh-space-7);
}

.xh-filters__row {
  display: grid;
  gap: var(--xh-space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: end;
}

.xh-filters__actions { display: flex; gap: var(--xh-space-3); align-items: center; }
.xh-filters__count { font-size: var(--xh-text-sm); color: var(--xh-color-muted); }

/* ----------------------------------------------------------- Breadcrumbs */
.xh-breadcrumb {
  font-size: var(--xh-text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xh-color-muted);
  padding-block: var(--xh-space-4);
}

.xh-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--xh-space-2); margin: 0; padding: 0; }
.xh-breadcrumb li::after { content: "/"; margin-left: var(--xh-space-2); color: var(--xh-color-faint); }
.xh-breadcrumb li:last-child::after { content: none; }
.xh-breadcrumb a { text-decoration: none; }

/* -------------------------------------------------------------- Carousel */
.xh-carousel { position: relative; }

.xh-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(82%, 320px), 1fr);
  gap: var(--xh-space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: var(--xh-space-3);
}

.xh-carousel__track::-webkit-scrollbar { display: none; }
.xh-carousel__track > * { scroll-snap-align: start; }

@media (min-width: 900px) {
  .xh-carousel__track { grid-auto-columns: minmax(0, calc((100% - (var(--xh-space-5) * 2)) / 3)); }
  .xh-carousel--wide .xh-carousel__track { grid-auto-columns: minmax(0, calc((100% - var(--xh-space-5)) / 2)); }
}

.xh-carousel__nav {
  display: flex;
  gap: var(--xh-space-2);
  justify-content: flex-end;
  margin-top: var(--xh-space-4);
}

.xh-carousel__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--xh-color-line-strong);
  border-radius: var(--xh-radius-pill);
  transition: border-color var(--xh-duration-fast) var(--xh-ease), color var(--xh-duration-fast) var(--xh-ease);
}

.xh-carousel__btn:hover { border-color: var(--xh-color-accent); color: var(--xh-color-accent); }
.xh-carousel__btn[disabled] { opacity: 0.3; cursor: not-allowed; }
.xh-carousel__track:focus-visible { outline: 2px solid var(--xh-color-accent); outline-offset: 4px; }
.xh-carousel[data-xh-static] .xh-carousel__nav { display: none; }
html:not(.xh-js) .xh-carousel__nav { display: none; }

/* --------------------------------------------------------------- Gallery */
.xh-gallery {
  display: grid;
  gap: var(--xh-space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.xh-gallery__item { margin: 0; overflow: hidden; position: relative; }
.xh-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--xh-duration-slow) var(--xh-ease-out); }
.xh-gallery__item:hover img { transform: scale(1.04); }

.xh-gallery__btn {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.xh-gallery--masonry { display: block; columns: 3 260px; column-gap: var(--xh-space-3); }
.xh-gallery--masonry .xh-gallery__item { margin-bottom: var(--xh-space-3); break-inside: avoid; }

/* -------------------------------------------------------------- Lightbox */
.xh-lightbox {
  position: fixed;
  inset: var(--xh-admin-bar-height) 0 0;
  z-index: var(--xh-z-lightbox);
  display: none;
  place-items: center;
  background: rgba(10, 9, 8, 0.94);
  padding: var(--xh-space-5);
}

.xh-lightbox[data-open="true"] { display: grid; }
.xh-lightbox__figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.xh-lightbox__figure img { max-height: 78vh; width: auto; margin-inline: auto; object-fit: contain; }
.xh-lightbox__caption { color: rgba(var(--xh-color-on-dark), 0.76); font-size: var(--xh-text-sm); margin-top: var(--xh-space-4); }

.xh-lightbox__close,
.xh-lightbox__prev,
.xh-lightbox__next {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: rgb(var(--xh-color-on-dark));
  border: 1px solid rgba(var(--xh-color-on-dark), 0.4);
  border-radius: var(--xh-radius-pill);
}

.xh-lightbox__close { top: var(--xh-space-5); right: var(--xh-space-5); }
.xh-lightbox__prev { left: var(--xh-space-4); top: 50%; transform: translateY(-50%); }
.xh-lightbox__next { right: var(--xh-space-4); top: 50%; transform: translateY(-50%); }
.xh-lightbox__counter { position: absolute; bottom: var(--xh-space-5); left: 50%; transform: translateX(-50%); color: rgba(var(--xh-color-on-dark), 0.7); font-size: var(--xh-text-2xs); letter-spacing: 0.2em; }

/* ------------------------------------------------------------ Pagination */
.xh-pagination { margin-top: var(--xh-space-8); display: flex; gap: var(--xh-space-2); flex-wrap: wrap; }

.xh-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 0.7rem;
  border: 1px solid var(--xh-color-line);
  text-decoration: none;
  font-size: var(--xh-text-sm);
}

.xh-pagination .page-numbers:hover { border-color: var(--xh-color-ink); }
.xh-pagination .page-numbers.current { background: var(--xh-color-ink); color: var(--xh-color-surface); border-color: var(--xh-color-ink); }

/* ------------------------------------------------------- Sticky book bar */
.xh-bookbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--xh-z-bookbar);
  display: none;
  gap: var(--xh-space-3);
  padding: var(--xh-space-3) var(--xh-space-4);
  background: var(--xh-color-surface);
  border-top: 1px solid var(--xh-color-line);
  box-shadow: 0 -8px 24px -18px rgba(var(--xh-color-overlay), 0.4);
}

@media (max-width: 780px) {
  .xh-bookbar { display: flex; }
  .xh-bookbar .xh-btn { flex: 1; }
  body { padding-bottom: 74px; }
}

/* ---------------------------------------------------------------- Footer */
.xh-footer {
  background: var(--xh-color-ink);
  color: color-mix(in srgb, var(--xh-color-surface) 86%, transparent);
  padding-block: var(--xh-space-8) var(--xh-space-5);
  margin-top: var(--xh-space-9);
}

.xh-footer a { text-decoration: none; }
.xh-footer a:hover { color: var(--xh-color-accent); }
.xh-footer h2, .xh-footer .xh-widget__title { color: var(--xh-color-surface); }

.xh-footer__brand {
  display: grid;
  gap: var(--xh-space-4);
  padding-bottom: var(--xh-space-7);
  border-bottom: 1px solid color-mix(in srgb, var(--xh-color-surface) 18%, transparent);
  margin-bottom: var(--xh-space-7);
}

@media (min-width: 900px) {
  .xh-footer__brand { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: var(--xh-space-8); }
}

.xh-footer__wordmark { font-family: var(--xh-font-display); font-size: var(--xh-text-2xl); letter-spacing: 0.1em; text-transform: uppercase; margin: 0; color: var(--xh-color-surface); }

.xh-footer__grid {
  display: grid;
  gap: var(--xh-space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.xh-footer__bottom {
  margin-top: var(--xh-space-7);
  padding-top: var(--xh-space-4);
  border-top: 1px solid color-mix(in srgb, var(--xh-color-surface) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: var(--xh-space-4);
  justify-content: space-between;
  font-size: var(--xh-text-xs);
}

.xh-footer ul, .xh-social { list-style: none; margin: 0; padding: 0; }
.xh-footer__grid ul { display: grid; gap: var(--xh-space-2); }
.xh-footer__grid a, .xh-social a { font-size: var(--xh-text-sm); }
.xh-social { display: flex; flex-wrap: wrap; gap: var(--xh-space-4); }

.xh-widget__title {
  font-family: var(--xh-font-body);
  font-size: var(--xh-text-2xs);
  font-weight: 600;
  letter-spacing: var(--xh-tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--xh-space-4);
}

/* Newsletter */
.xh-newsletter { display: flex; flex-wrap: wrap; gap: var(--xh-space-3); }
.xh-newsletter .xh-input {
  flex: 1 1 220px;
  background: transparent;
  color: inherit;
  border-color: color-mix(in srgb, var(--xh-color-surface) 34%, transparent);
}
.xh-newsletter .xh-input::placeholder { color: color-mix(in srgb, var(--xh-color-surface) 55%, transparent); }

/* Gallery captions */
.xh-gallery__caption {
	font-size: var(--xh-text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--xh-color-muted);
	padding: var(--xh-space-1) 0 0;
}

/* The appearance switch also lives in the mobile drawer; keep it compact. */
.xh-drawer__foot .xh-scheme-toggle { justify-self: start; }

/* -------------------------------------------------------------- Homepage */
.xh-home__intro .xh-display {
  max-width: 14ch;
}

.xh-home__intro-copy > p:first-child {
  margin-top: 0;
  font-family: var(--xh-font-display);
  font-size: var(--xh-text-lg);
  line-height: var(--xh-leading-body);
}

.xh-home__editorial {
  border-bottom: 1px solid var(--xh-color-line);
}

.xh-home__section .xh-section-head {
  align-items: end;
}

.xh-home__section .xh-section-heading {
  max-width: 720px;
}

@media (max-width: 720px) {
  .xh-home__section .xh-section-head {
    align-items: start;
  }

  .xh-home__section .xh-section-head > .xh-link {
    margin-top: var(--xh-space-3);
  }
}

/* Editable icon used by the "why book direct" strip. */
.xh-benefit__icon {
  display: block;
  margin-bottom: var(--xh-space-3);
  color: var(--xh-color-accent, currentColor);
}

.xh-benefit__icon .xh-icon {
  width: 26px;
  height: 26px;
}
