/* Content block library — front-end presentation, built on the theme tokens. */

.xh-block__head {
  max-width: 62ch;
  margin-bottom: var(--xh-space-6, 2rem);
}

.xh-block__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.xh-block__title {
  font-family: var(--xh-font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0.25rem 0 0.75rem;
}

.xh-block__lead {
  color: var(--xh-color-muted);
  margin: 0;
}

.xh-block__action {
  margin-top: 1.5rem;
}

.xh-block__action:empty {
  display: none;
}

/* Hero */
.xh-block--hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  padding: clamp(3rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.xh-block--hero .xh-block__media {
  position: absolute;
  inset: 0;
}

.xh-block--hero .xh-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xh-block--hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6));
}

.xh-block--hero .xh-block__inner {
  position: relative;
  z-index: 1;
}

.xh-block--hero-media .xh-block__inner,
.xh-block--hero-media .xh-block__title,
.xh-block--hero-media .xh-eyebrow,
.xh-block--hero-media .xh-block__lead {
  color: #fff;
}

/* A sequence of inserted blocks should read as one editorial flow. */
.xh-blocks { display: flow-root; }
.xh-blocks:empty { display: none; }
.xh-blocks .xh-block__head { margin-bottom: var(--xh-space-6); }

.xh-block__booking {
  margin-top: 2rem;
}

/* Split */
.xh-block__split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .xh-block__split {
    grid-template-columns: 1fr 1fr;
  }

  .xh-block--media-left .xh-block__copy {
    order: 2;
  }
}

.xh-block__figure {
  margin: 0;
}

.xh-block__figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grids */
.xh-block__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .xh-block__grid--cards,
  .xh-block__grid--quotes {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .xh-block__grid--icons {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.xh-block-card__media {
  margin: 0 0 1rem;
  overflow: hidden;
}

.xh-block-card__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}

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

.xh-block-card__title {
  font-family: var(--xh-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.xh-block-card__text {
  color: var(--xh-color-muted);
  margin: 0;
}

.xh-block-card__action {
  margin: 0.75rem 0 0;
}

.xh-block-icon {
  border-top: 1px solid var(--xh-color-hairline, rgba(0, 0, 0, 0.12));
  padding-top: 1rem;
}

.xh-block-icon__mark svg,
.xh-block-icon__mark img {
  width: 1.5rem;
  height: 1.5rem;
}

.xh-block-icon__num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--xh-color-muted);
}

.xh-block-icon__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0 0.35rem;
}

.xh-block-icon__text {
  color: var(--xh-color-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Facts */
.xh-block__facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.xh-block-fact {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--xh-color-hairline, rgba(0, 0, 0, 0.12));
}

.xh-block-fact dt {
  font-weight: 600;
  margin: 0;
}

.xh-block-fact dd {
  margin: 0;
  color: var(--xh-color-muted);
  text-align: right;
}

/* Quotes */
.xh-block-quote {
  margin: 0;
  border-top: 1px solid var(--xh-color-hairline, rgba(0, 0, 0, 0.12));
  padding-top: 1.25rem;
}

.xh-block-quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--xh-font-display);
  font-size: 1.15rem;
  line-height: 1.5;
}

.xh-block-quote__name {
  display: block;
  font-weight: 600;
}

.xh-block-quote__meta {
  color: var(--xh-color-muted);
  font-size: 0.85rem;
}

/* Gallery */
.xh-block__gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.xh-block--gallery-carousel .xh-block__gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.xh-block--gallery-carousel .xh-block-shot {
  flex: 0 0 min(80%, 420px);
  scroll-snap-align: start;
}

.xh-block-shot {
  margin: 0;
  position: relative;
}

.xh-block-shot .xh-gallery__btn {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.xh-block--gallery-mosaic .xh-block__gallery {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.xh-block--gallery-mosaic .xh-block-shot:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.xh-block-gallery__controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.xh-block--gallery-carousel[data-xh-static] .xh-block-gallery__controls {
  display: none;
}

.xh-block-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.xh-block-shot figcaption {
  font-size: 0.85rem;
  color: var(--xh-color-muted);
  margin-top: 0.5rem;
}

/* Video and map */
.xh-block__video .xh-embed iframe,
.xh-block__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.xh-block__mapframe iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

.xh-block__address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Accordion */
.xh-block-faq {
  border-top: 1px solid var(--xh-color-hairline, rgba(0, 0, 0, 0.12));
  padding: 0.9rem 0;
}

.xh-block-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.xh-block-faq__body {
  color: var(--xh-color-muted);
  padding-top: 0.5rem;
}

/* Contact */
.xh-block__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.xh-block__contact li {
  border-top: 1px solid var(--xh-color-hairline, rgba(0, 0, 0, 0.12));
  padding-top: 0.75rem;
}

.xh-block__contact address {
  font-style: normal;
}

/* Comparisons */
.xh-block-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--xh-color-line);
  border-bottom: 1px solid var(--xh-color-line);
}

.xh-block-table-wrap:focus-visible {
  outline: 2px solid var(--xh-color-accent);
  outline-offset: 3px;
}

.xh-block-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.xh-block-table th,
.xh-block-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--xh-color-line);
  text-align: left;
  vertical-align: top;
}

.xh-block-table thead th {
  font-family: var(--xh-font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.xh-block-table th:first-child {
  width: 11rem;
}

.xh-block-table tbody th {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--xh-color-muted);
}

.xh-block-table__image {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.xh-block-table__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xh-block-table__title {
  display: block;
}

.xh-block-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--xh-color-line);
  border-left: 1px solid var(--xh-color-line);
}

.xh-block-price {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--xh-color-line);
  border-bottom: 1px solid var(--xh-color-line);
}

.xh-block-price.is-direct {
  background: var(--xh-color-surface-2);
}

.xh-block-price__channel {
  margin: 0 0 1rem;
  font-family: var(--xh-font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.xh-block-price__rate {
  margin: 0 0 0.25rem;
  font-family: var(--xh-font-display);
  font-size: 1.8rem;
}

.xh-block-price__fees,
.xh-block-price__benefit,
.xh-block-price-note {
  color: var(--xh-color-muted);
}

.xh-block-price-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

/* Packages and editorial stories */
.xh-block-package__price {
  margin: 0.6rem 0;
  font-family: var(--xh-font-display);
  font-size: 1.35rem;
}

.xh-block-package__inclusions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--xh-color-line);
  color: var(--xh-color-muted);
}

.xh-block-package__inclusions > :first-child,
.xh-block-package__inclusions > :last-child {
  margin-top: 0;
  margin-bottom: 0;
}

.xh-block-stories {
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.xh-block-story {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.xh-block-story__media {
  margin: 0;
}

.xh-block-story__media img,
.xh-block-story-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.xh-block-story__title,
.xh-block-story-card__title {
  margin: 0.25rem 0 0.75rem;
  font-family: var(--xh-font-display);
  font-weight: 500;
}

.xh-block-story__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.xh-block__grid--stories {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.xh-block-story-card {
  min-width: 0;
  border-top: 1px solid var(--xh-color-line);
  padding-top: 1rem;
}

.xh-block-story-card__media {
  margin: 0 0 1rem;
  overflow: hidden;
}

.xh-block-story-card__text {
  color: var(--xh-color-muted);
}

@media (min-width: 820px) {
  .xh-block-story {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .xh-block-story.is-reversed {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .xh-block-story.is-reversed .xh-block-story__media {
    order: 2;
  }
}
