/* Opt-in city guide within the native hotel landing page. */
.ts-hotel-hub-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  margin-block: clamp(30px, 4vw, 56px);
}

.ts-hotel-hub-guide > section {
  min-width: 0;
}

.ts-hotel-hub-guide .ts-hotel-hub-guide-stays > .ts-hotel-platform-native {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.ts-hotel-hub-guide .ts-hotel-editorial-title,
.ts-hotel-hub-guide > section > h2 {
  margin: 0 0 12px;
  line-height: 1.15;
  text-wrap: balance;
}

.ts-hotel-hub-guide .ts-hotel-hub-guide-intro {
  max-width: 65ch;
  margin: 0 0 20px;
}

.ts-hotel-hub-guide .ts-hotel-editorial-cards--hub > .ts-hotel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.ts-hotel-hub-guide .ts-hotel-editorial-cards--hub .ts-hotel-card {
  box-sizing: border-box;
  min-width: 0;
}

.ts-hotel-hub-guide .ts-hotel-card > .ts-hotel-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  align-self: end;
  text-align: center;
  white-space: normal;
}

.ts-hotel-hub-guide-neighborhoods-grid,
.ts-hotel-hub-guide .ts-hotel-hub-planning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.ts-hotel-hub-guide-neighborhoods-grid > article,
.ts-hotel-hub-guide .ts-hotel-hub-planning-grid > article {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--ts-hotel-line, #c4c8c3);
}

.ts-hotel-hub-guide-neighborhoods-grid h3,
.ts-hotel-hub-guide .ts-hotel-hub-planning-grid h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.ts-hotel-hub-guide-neighborhoods-grid p,
.ts-hotel-hub-guide .ts-hotel-hub-planning-grid p {
  max-width: 58ch;
  margin: 0;
}

.ts-hotel-hub-guide-neighborhood > a {
  display: inline-block;
  margin-top: 10px;
  text-underline-offset: 0.2em;
}

.ts-hotel-hub-guide a[data-ts-hotel-guide-link] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ts-hotel-hub-guide-city-photo {
  margin: 20px 0;
}

.ts-hotel-hub-guide-city-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: 50% 40%;
}

.ts-hotel-hub-guide-city-photo figcaption {
  margin-top: 6px;
  color: var(--ts-hotel-muted);
  font-size: 0.85em;
}

.ts-hotel-hub-guide .ts-hotel-hub-faq summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
}

@container (min-width: 640px) {
  .ts-hotel-hub-guide-neighborhoods-grid,
  .ts-hotel-hub-guide .ts-hotel-hub-planning-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  }

  .ts-hotel-hub-guide .ts-hotel-editorial-cards--hub > .ts-hotel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 920px) {
  .ts-hotel-hub-guide-neighborhoods:has(> .ts-hotel-hub-guide-city-photo) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 20px clamp(24px, 3vw, 42px);
    align-items: start;
  }

  .ts-hotel-hub-guide-neighborhoods:has(> .ts-hotel-hub-guide-city-photo) > h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .ts-hotel-hub-guide-neighborhoods > .ts-hotel-hub-guide-city-photo {
    margin: 0;
  }

  .ts-hotel-hub-guide-city-photo img {
    aspect-ratio: 3 / 4;
  }
}

/* Longer editorial entries need a reading column rather than a card grid. */
.ts-hotel-hub-guide :is(.ts-hotel-hub-guide-neighborhood, .ts-hotel-hub-planning-grid > article, .ts-hotel-hub-faq > details) > p + p {
  margin-block-start: 0.85em;
}

.ts-hotel-hub-guide .ts-hotel-hub-faq > details > p {
  max-width: 68ch;
}

.ts-hotel-hub-guide .ts-hotel-hub-guide-neighborhoods-grid:has(article > p + p),
.ts-hotel-hub-guide .ts-hotel-hub-planning-grid:has(article > p + p) {
  grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 920px) {
  .ts-hotel-hub-guide-neighborhoods:has(> .ts-hotel-hub-guide-city-photo) > .ts-hotel-hub-guide-neighborhoods-grid:has(article > p + p) {
    display: contents;
  }

  .ts-hotel-hub-guide-neighborhoods:has(> .ts-hotel-hub-guide-city-photo) > .ts-hotel-hub-guide-neighborhoods-grid:has(article > p + p) > article:not(:first-child, :has(> .ts-hotel-hub-guide-row-photo)),
  .ts-hotel-hub-guide .ts-hotel-hub-planning-grid:has(article > p + p) > article:not(:has(> .ts-hotel-hub-guide-row-photo)) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: clamp(24px, 3vw, 42px);
    align-items: start;
  }

  .ts-hotel-hub-guide-neighborhoods-grid:has(article > p + p) > article:not(:first-child) > :is(p, a),
  .ts-hotel-hub-guide .ts-hotel-hub-planning-grid:has(article > p + p) > article > p {
    grid-column: 2;
  }
}

.ts-hotel-hub-guide > [data-ts-hotel-hub-stays][hidden] {
  display: none;
}

/* Illustrated guide sections use the surrounding site's type and colors. */
.ts-hotel-hub-guide .ts-hotel-hub-guide-row-photo {
  min-width: 0;
  margin: 16px 0 20px;
}

.ts-hotel-hub-guide-row-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ts-hotel-hub-guide-row-photo figcaption,
.ts-hotel-hub-guide-airport-table caption {
  padding-block: 8px;
  color: var(--ts-hotel-muted, inherit);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: start;
}

.ts-hotel-hub-guide .ts-hotel-hub-guide-airports {
  margin: 24px 0 clamp(30px, 4vw, 52px);
}

.ts-hotel-hub-guide-airports > h3 {
  margin: 0 0 8px;
}

.ts-hotel-hub-guide-airport-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.ts-hotel-hub-guide-airport-scroll:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.ts-hotel-hub-guide .ts-hotel-hub-guide-airport-table {
  width: 100%;
  min-width: 32rem;
  margin: 0;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.ts-hotel-hub-guide-airport-table :is(th, td) {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--ts-hotel-line, #b9c2ba);
  text-align: start;
  vertical-align: top;
}

.ts-hotel-hub-guide-airport-table thead th {
  background: var(--ts-hotel-ink, #1d2a27);
  color: white;
}

.ts-hotel-hub-guide-airport-code {
  white-space: nowrap;
}

.ts-hotel-hub-guide .ts-hotel-hub-guide-callout {
  grid-column: 2;
  margin: 18px 0 0;
  padding: 4px 0 4px 16px;
  border-inline-start: 3px solid var(--ts-hotel-accent, currentColor);
}

.ts-hotel-hub-guide-callout h4 {
  margin: 0 0 5px;
  font-size: 1em;
}

@container (min-width: 920px) {
  .ts-hotel-hub-guide .ts-hotel-hub-guide-neighborhoods-grid > article:has(> .ts-hotel-hub-guide-row-photo),
  .ts-hotel-hub-guide .ts-hotel-hub-planning-grid > article:has(> .ts-hotel-hub-guide-row-photo) {
    display: flow-root;
    grid-column: 1 / -1;
  }

  .ts-hotel-hub-guide-neighborhoods:has(> .ts-hotel-hub-guide-city-photo) .ts-hotel-hub-guide-neighborhood:first-child:has(> .ts-hotel-hub-guide-row-photo) {
    grid-column: auto;
  }

  .ts-hotel-hub-guide article > .ts-hotel-hub-guide-row-photo {
    float: inline-start;
    width: 34%;
    margin: 8px 0 0;
  }

  .ts-hotel-hub-guide article:has(> .ts-hotel-hub-guide-row-photo) > :is(p, a, aside) {
    box-sizing: border-box;
    display: block;
    width: 62%;
    max-width: 68ch;
    margin-inline-start: auto;
  }
  /* The lead portrait already sits beside this entry; its detail photograph
     stays in the reading column rather than creating a third column. */
  .ts-hotel-hub-guide-neighborhoods:has(> .ts-hotel-hub-guide-city-photo) .ts-hotel-hub-guide-neighborhood:first-child > .ts-hotel-hub-guide-row-photo {
    float: none;
    width: min(100%, 32rem);
    margin-block: 16px;
  }

  .ts-hotel-hub-guide-neighborhoods:has(> .ts-hotel-hub-guide-city-photo) .ts-hotel-hub-guide-neighborhood:first-child:has(> .ts-hotel-hub-guide-row-photo) > :is(p, a) {
    width: auto;
    max-width: 68ch;
    margin-inline-start: 0;
  }

}

.ts-hotel-hub-guide-legacy {
  container-type: inline-size;
  min-width: 0;
}

.ts-hotel-hub-guide-legacy .ts-hotel-related-experiences {
  margin-block: clamp(36px, 5vw, 72px) 0;
}
