/* Public hero system. Home and Taxi are the reference: centered copy, a stable
   two-column desktop composition, full artwork, and a clean mobile stack. */

body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero,
body.ui-customer.marsata-events-body .me-hero,
body.ui-customer.marsata-destinations-body .destinations-hero,
body.ui-customer.marsata-tips-body .mtg-hero,
body.ui-customer.marsata-tips-body .mtg-detail-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Tours and Events share the same predictable canvas. */
body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero-inner,
body.ui-customer.marsata-events-body .me-hero-inner {
  width: min(1200px, calc(100% - 64px));
  max-width: 1200px;
  min-height: 390px;
  height: auto;
  margin-inline: auto;
  padding: 0 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: 'crumb crumb' 'copy art';
  column-gap: clamp(28px, 4vw, 64px);
  align-items: center;
  box-sizing: border-box;
  transform: none;
}

body.ui-customer.marsata-tours-body:not(.marsata-events-body) .tour-breadcrumb,
body.ui-customer.marsata-events-body .me-breadcrumb {
  grid-area: crumb;
  padding-top: 24px;
}

body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero-copy,
body.ui-customer.marsata-events-body .me-hero-content {
  grid-area: copy;
  align-self: center;
  min-width: 0;
  max-width: 590px;
  margin: 0;
  padding: 10px 0 0;
  transform: none;
}

body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero h1,
body.ui-customer.marsata-events-body .me-hero h1 {
  max-width: 590px;
  font-size: clamp(40px, 4.5vw, 62px) !important;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero-visual,
body.ui-customer.marsata-events-body .me-hero-visual {
  grid-area: art;
  width: 100%;
  height: 300px;
  min-width: 0;
  max-width: 560px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero-visual img,
body.ui-customer.marsata-events-body .me-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-sticker,
body.ui-customer.marsata-events-body .me-hero-sticker {
  display: none;
}

/* Destinations uses the same canvas without an extra inner wrapper. */
body.ui-customer.marsata-destinations-body .destinations-hero {
  min-height: 390px;
  height: auto;
  padding: 24px max(32px, calc((100vw - 1200px) / 2)) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-areas: 'copy art';
  column-gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

body.ui-customer.marsata-destinations-body .destinations-hero-content {
  grid-area: copy;
  width: auto;
  min-width: 0;
  min-height: 0;
  max-width: 590px;
  margin: 0;
  padding: 0;
  align-self: center;
}

body.ui-customer.marsata-destinations-body .destinations-hero-art {
  grid-area: art;
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  height: 300px;
  max-width: 560px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.ui-customer.marsata-destinations-body .destinations-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body.ui-customer.marsata-destinations-body .destinations-hero-sticker {
  display: none;
}

/* Preserve each page's search overlap without changing its horizontal inset. */
body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-searchdock,
body.ui-customer.marsata-events-body .me-search-shell,
body.ui-customer.marsata-destinations-body .destinations-search-dock {
  position: relative;
  z-index: 5;
}

/* Tips has background artwork rather than a separate image node. */
body.ui-customer.marsata-tips-body .mtg-hero-content,
body.ui-customer.marsata-tips-body .mtg-detail-hero-inner {
  width: min(1200px, calc(100% - 64px));
  max-width: 1200px;
  margin-inline: auto;
  box-sizing: border-box;
}

body.ui-customer.marsata-tips-body .mtg-hero-content {
  min-height: 380px;
  padding: 28px 0 40px;
}

body.ui-customer.marsata-tips-body .mtg-detail-hero-inner {
  min-height: 320px;
  padding: 28px 0 36px;
}

body.ui-customer.marsata-tips-body .mtg-hero-content > :is(h1, p, .mtg-hero-search),
body.ui-customer.marsata-tips-body .mtg-detail-hero-inner > :is(h1, p, .mtg-detail-meta) {
  max-width: min(100%, 650px);
}

body.ui-customer.marsata-tips-body .mtg-hero-search {
  width: min(100%, 590px);
}

@media (max-width: 900px) {
  body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero-inner,
  body.ui-customer.marsata-events-body .me-hero-inner {
    width: calc(100% - 48px);
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  }

  body.ui-customer.marsata-destinations-body .destinations-hero {
    padding-inline: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  }

  body.ui-customer.marsata-tips-body .mtg-hero-content,
  body.ui-customer.marsata-tips-body .mtg-detail-hero-inner {
    width: calc(100% - 48px);
  }
}

@media (max-width: 760px) {
  body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero-inner,
  body.ui-customer.marsata-events-body .me-hero-inner {
    width: calc(100% - 32px);
    min-height: 0;
    padding-bottom: 48px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: 'crumb' 'copy' 'art';
    row-gap: 14px;
  }

  body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero-copy,
  body.ui-customer.marsata-events-body .me-hero-content {
    max-width: none;
    padding-top: 8px;
  }

  body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero h1,
  body.ui-customer.marsata-events-body .me-hero h1 {
    font-size: clamp(34px, 8.5vw, 48px) !important;
    overflow-wrap: break-word;
  }

  body.ui-customer.marsata-tours-body:not(.marsata-events-body) .marsata-tour-hero-visual,
  body.ui-customer.marsata-events-body .me-hero-visual {
    width: 100%;
    height: clamp(175px, 48vw, 235px);
    max-width: 560px;
    justify-self: center;
  }

  body.ui-customer.marsata-destinations-body .destinations-hero {
    min-height: 0;
    padding: 22px 16px 54px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'copy' 'art';
    row-gap: 18px;
  }

  body.ui-customer.marsata-destinations-body .destinations-hero-content {
    max-width: none;
  }

  body.ui-customer.marsata-destinations-body .destinations-hero-art {
    width: 100%;
    height: clamp(175px, 48vw, 235px);
    max-width: 560px;
    justify-self: center;
  }

  body.ui-customer.marsata-tips-body .mtg-hero-content,
  body.ui-customer.marsata-tips-body .mtg-detail-hero-inner {
    width: calc(100% - 32px);
    min-height: 0;
    padding: 24px 0 32px;
  }

  body.ui-customer.marsata-tips-body .mtg-hero h1,
  body.ui-customer.marsata-tips-body .mtg-detail-hero h1 {
    font-size: clamp(32px, 8vw, 46px) !important;
    overflow-wrap: break-word;
  }
}

@media (max-width: 420px) {
  body.ui-customer.marsata-tips-body .mtg-hero-content,
  body.ui-customer.marsata-tips-body .mtg-detail-hero-inner {
    width: calc(100% - 28px);
  }
}
