/* ============================
   Resort Header
============================ */

.resort-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;

  grid-template-areas:
    "dest  share"
    "title logos"
    "meta  logos";

  column-gap: 40px;
  row-gap: 0;

  width: 100%;
  max-width: 100%;

  margin-bottom: 28px;

  align-items: start;
}

/* ============================
   Destination / Location
============================ */

.resort-destination {
  grid-area: dest;

  font-size: 1rem;
  font-weight: 400;
  color: #000;

  text-transform: uppercase;
  letter-spacing: 0.5px;

  margin: 0 0 8px;
}

/* ============================
   Share
============================ */

.resort-share {
  grid-area: share;

  justify-self: end;
  align-self: start;
}

/* ============================
   Resort Title
============================ */

.resort-title {
  grid-area: title;

  font-size: 3rem;
  line-height: 1.15;
  font-weight: 400;

  text-transform: uppercase;
  color: #000;

  margin: 0;

  max-width: 760px;

  white-space: normal;
  overflow-wrap: break-word;
}

/* ============================
   Registered Mark
============================ */

.resort-title sup.reg-mark,
.resort-subtitle sup.reg-mark {
  font-size: 55%;
  vertical-align: super;
  line-height: 0;
  margin-left: 2px;
}

/* ============================
   Meta
   Subtitle + Stars
============================ */

.resort-meta {
  grid-area: meta;

  align-self: start;

  margin-top: 12px;
}

/* ============================
   Resort Subtitle
============================ */

.resort-subtitle {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;

  color: #000;

  margin: 0 0 8px;
}

/* ============================
   Star Rating
============================ */

.resort-stars-row {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0;
}

.resort-stars {
  font-size: 18px;
  line-height: 1;

  letter-spacing: 3px;

  color: #000;
}

/* Half star if being used */
.half-star {
  position: relative;
  display: inline-block;
  overflow: hidden;

  width: 0.55em;
  vertical-align: top;
}

/* ============================
   Collection Logos
============================ */

.resort-logos {
  grid-area: logos;

  justify-self: end;
  align-self: end;

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;

  gap: 18px;

  min-height: 0;
  padding-bottom: 0;
}

/* Wrapper for each logo */
.resort-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
}

.resort-logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
}

.resort-logo-item img {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;

  object-fit: contain;
}

/* Luxe */
.resort-logo-luxe img {
  width: 90px;
  max-height: 55px;
}

/* HIC */
.resort-logo-hic img {
  width: 125px;
  max-height: 64px;
}

/* ============================
   Share Button
============================ */

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 14px;

  min-height: 30px;

  border-radius: 20px;

  border: 1px solid rgba(0, 0, 0, 0.15);

  background: #fff;

  font-family:
    "Lato",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;

  font-size: 13px;
  font-weight: 600;

  letter-spacing: 0.5px;

  color: #01426a;

  cursor: pointer;

  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

.share-btn:hover {
  background: rgba(1, 66, 106, 0.06);

  border-color: rgba(1, 66, 106, 0.35);

  transform: translateY(-1px);

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn:focus-visible {
  outline: 3px solid rgba(1, 66, 106, 0.25);
  outline-offset: 2px;
}

/* ============================
   Share Toast
============================ */

.share-toast {
  font-size: 12px;
  line-height: 1.2;

  color: #6b7280;

  margin-left: 6px;
}

/* ============================
   Tablet
============================ */

@media (max-width: 1000px) {
  .resort-header {
    column-gap: 24px;
  }

  .resort-title {
    font-size: 2.6rem;
    max-width: 620px;
  }

  .resort-subtitle {
    font-size: 1.75rem;
  }

  .resort-logo-luxe img {
    width: 80px;
  }

  .resort-logo-hic img {
    width: 110px;
  }
}

/* ============================
   Mobile
============================ */

@media (max-width: 768px) {
  .resort-header {
    grid-template-columns: 1fr;

    grid-template-areas:
      "dest"
      "title"
      "meta"
      "logos"
      "share";

    row-gap: 12px;

    margin-bottom: 22px;
  }

  .resort-destination {
    margin-bottom: 0;
  }

  .resort-title {
    font-size: 2.25rem;
    max-width: 100%;
  }

  .resort-meta {
    margin-top: 0;
  }

  .resort-subtitle {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }

  .resort-share {
    justify-self: start;
    align-self: start;
  }

  .resort-logos {
    justify-self: start;
    align-self: start;

    justify-content: flex-start;

    min-height: 0;
  }

  .resort-logo-luxe img {
    width: 80px;
  }

  .resort-logo-hic img {
    width: 110px;
  }

  .resort-stars {
    font-size: 17px;
  }
}

/* ============================
   Small Mobile
============================ */

@media (max-width: 480px) {
  .resort-title {
    font-size: 1.9rem;
  }

  .resort-subtitle {
    font-size: 1.4rem;
  }

  .resort-stars {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .resort-logo-luxe img {
    width: 72px;
  }

  .resort-logo-hic img {
    width: 100px;
  }
}


/* ============================
   Resort Share Menu
============================ */

.resort-share {
  position: relative;
  min-width: 0;
}

.resort-share-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;

  width: 260px;
  max-width: calc(100vw - 40px);

  box-sizing: border-box;
  z-index: 1000;
}

.resort-share-menu[hidden] {
  display: none !important;
}

/* ============================
   Mobile Share
============================ */

@media (max-width: 768px) {

  .resort-header {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .resort-share {
    justify-self: start;
    width: max-content;
    max-width: 100%;
  }

  .resort-share-menu {
    left: 0;
    right: auto;

    width: 260px;
    max-width: calc(100vw - 40px);
  }

}

@media (max-width: 480px) {

  .resort-share-menu {
    width: min(260px, calc(100vw - 40px));
  }

}

