/* The cruise line page's redesigned parts (adc-api#3344): the hero beside the search box, the
   destination and ship cards, the deals, the Ports tab's regions and the FAQs. Every class is
   new (clp-), so adc-sites' copy of the older page, which loads cruiseline.css, is unaffected.
   The jump links and their sticky bar use the ship page's .jx styles (ship-pricing.css). */

/* Hero: the photo fills the search box's height while the two sit side by side. The single
   photo (.clp-hero-photo, .clp-hero-cap) and the blue band (.clp-band) are the previous hero's,
   which adc-sites serves until it copies cruiseline/hero.php again; the mosaic that replaced
   them is at the end of this file. */

.clp-hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.clp-hero-photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  overflow: hidden;
  background-color: #8aa9c2;
}

.clp-hero-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clp-hero-cap {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: 330px;
  padding: 10px 14px;
  background-color: rgb(255 255 255 / 90%);
  color: #004a83;
}

.clp-hero-cap.right {
  right: 14px;
  left: auto;
}

.clp-hero-cap.top {
  top: 0;
  right: 0;
  left: 0;
  max-width: none;
}

.clp-hero-cap.bottom {
  inset: auto 0 0;
  max-width: none;
}

.clp-hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.2;
}

.clp-hero-text {
  margin-top: 2px;
  font-size: 14px;
}

.clp-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 14px 18px;
  background-color: #004a83;
  color: #fff;
}

.clp-band p {
  flex: 1 1 300px;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.clp-band-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clp-btn {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 4px;
  background-color: #e8404f;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
  text-decoration: none;
}

.clp-btn:hover,
.clp-btn:focus-visible {
  background-color: #c92f3d;
  color: #fff;
}

.clp-btn.clp-btn-alt {
  background-color: #fff;
  color: #004a83;
}

.clp-btn.clp-btn-alt:hover,
.clp-btn.clp-btn-alt:focus-visible {
  background-color: #e8f1f8;
  color: #004a83;
}

@media (width >= 1025px) {
  .search_slides_section.clp-section {
    display: flex;
    align-items: stretch;
  }

  .search_slides_section.clp-section > .left,
  .search_slides_section.clp-section > .right {
    float: none;
    height: auto;
  }

  .search_slides_section.clp-section > .right {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
  }

  .search_slides_section.clp-section > .right .clp-hero {
    flex: 1 1 auto;
  }

  .search_slides_section.clp-section > .clear_float {
    display: none;
  }
}

/* Sections */

.clp-block {
  padding: 24px 0 6px;
  scroll-margin-top: 60px;
}

.clp-block h2,
.clp-deals-h,
.clp-tab-h {
  margin: 0;
  color: #004a83;
  font-size: 24px;
  line-height: 1.2;
}

.clp-lede {
  margin: 6px 0 14px;
  color: #5b6b78;
  font-size: 13px;
}

.clp-show-all {
  margin-top: 16px;
  padding: 9px 18px;
  border: 2px solid #004a83;
  border-radius: 4px;
  background-color: #fff;
  color: #004a83;
  font: bold 14px Arial, "Helvetica Neue", Helvetica, sans-serif;
  cursor: pointer;
}

.clp-show-all:hover,
.clp-show-all:focus-visible {
  background-color: #e8f1f8;
}

.clp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Destination cards */

.clp-dgrid,
.clp-sgrid {
  display: grid;

  /* Four across on a full-width page, three at tablet width: the first 12 ships shown before
     Show all fill whole rows. */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clp-dcard,
.clp-scard {
  display: flex;
  flex-direction: column;
  border: 1px solid #d6e0e8;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.clp-dcard > img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.clp-dbody,
.clp-sbody {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 12px 14px 14px;
}

.clp-dbody h3 {
  margin: 0;
  font-size: 17px;
}

.clp-dbody h3 a {
  color: #004a83;
  text-decoration: none;
}

.clp-meta {
  margin: 2px 0 14px;
  color: #5b6b78;
  font-size: 13px;
}

/* The sub-regions a destination includes, set apart from the cruise count above them. */
.clp-covers {
  margin: 0 0 3px;
  color: #5b6b78;
  font-size: 12px;
  font-style: italic;
}

.clp-from {
  margin: 0;
  font-size: 13px;
}

.clp-from strong {
  color: #004a83;
  font-size: 21px;
}

.clp-pp {
  margin: 3px 0 0;
  color: #5b6b78;
  font-size: 12px;
}

.clp-go {
  margin-top: auto;
  padding-top: 10px;
  color: #004a83;
  font-size: 13px;
  font-weight: bold;
}

/* Ship cards */

.clp-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 10px 0 14px;
}

.clp-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  white-space: nowrap;
}

.clp-tool label {
  font-weight: bold;
}

.clp-tool select {
  min-width: 0;
  max-width: 60vw;
  padding: 6px 8px;
  border: 1px solid #8c99a4;
  border-radius: 4px;
  font-size: 14px;
}

/* In the site's dropdown (adc.css, the solid blue arrow), with room for the arrow. */
.clp-tool .adc_select_dropdown select {
  padding-right: 28px;
}

.clp-count {
  color: #5b6b78;
  font-size: 13px;
}

.clp-sphoto {
  position: relative;
}

.clp-sphoto img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.clp-status {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3px 8px;
  background-color: rgb(0 51 92 / 90%);
  color: #ffd84d;
  font-size: 12px;
  font-style: italic;
  font-weight: bold;
}

.clp-sbody {
  gap: 2px;
}

.clp-sbody h3 {
  margin: 0;
  color: #004a83;
  font-size: 16px;
}

.clp-facts {
  margin: 4px 0 10px;
  padding: 0;
  color: #5b6b78;
  font-size: 12px;
  line-height: 1.45;
  list-style: none;
}

.clp-scount {
  margin: 0;
  font-size: 13px;
}

.clp-sprice {
  margin: 10px 0 14px;
  font-size: 13px;
}

.clp-sprice strong {
  color: #004a83;
  font-size: 19px;
}

.clp-sprice span {
  color: #5b6b78;
  font-size: 12px;
}

.clp-sbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.clp-sbtn {
  flex: 1 1 auto;
  padding: 7px 10px;
  border-radius: 4px;
  background-color: #004a83;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.clp-sbtn:hover,
.clp-sbtn:focus-visible {
  background-color: #00335c;
  color: #fff;
}

.clp-sbtn.clp-sbtn-alt {
  background-color: #e8404f;
}

.clp-sbtn.clp-sbtn-alt:hover,
.clp-sbtn.clp-sbtn-alt:focus-visible {
  background-color: #c92f3d;
}

.clp-tours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid #ecd9a8;
  border-radius: 8px;
  background-color: #fff8ea;
}

.clp-tours > div {
  flex: 1 1 420px;
  min-width: 0;
}

.clp-tours h3 {
  margin: 0 0 4px;
  color: #004a83;
  font-size: 18px;
}

.clp-tours p {
  margin: 0;
}

/* Deals */

/* With its id, to win over master_cruiselines.css's centered #deals_content_container. */
#deals_content_container.clp-deals {
  margin: 0;
  padding: var(--band) 0;
  background-color: #fff;
  text-align: left;
  scroll-margin-top: 50px;
}

.clp-deals-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* One card per deal: the logo unframed on a white column, centered both ways at any card
   height, and the offer on a light blue panel, inside the card's blue border. */
.clp-deal {
  display: flex;
  align-items: stretch;
  border: 1px solid #c9dceb;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 1px 2px rgb(16 52 84 / 6%);
}

.clp-deal-img {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 156px;
  padding: 12px;
  background-color: #fff;
}

.clp-deal-img img {
  max-width: 108px;
  max-height: 96px;
  object-fit: contain;
}

.clp-deal-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 18px;
  background-color: #eef5fb;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}

.clp-deal-text h3 {
  margin: 0 0 2px;
  color: #004a83;
  font-size: 16px;
  line-height: 1.25;
}

.clp-deal-body p {
  margin: 0 0 10px;
}

.clp-deal-body ul {
  margin: 0 0 10px;
  padding-left: 20px;
  list-style: disc;
}

.clp-deal-body li {
  margin: 0 0 4px;
  padding: 0;
}

/* Folded, a deal shows the opening of its text (cruiseline-page.js sets .clp-folded). */
.clp-deal-body.clp-folded {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.clp-deal-foot {
  margin-top: 2px;
  color: #5b6b78;
  font-size: 13px;
  line-height: 1.5;
}

.clp-deal-more {
  margin: 2px 0 0 -6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #004a83;
  font: bold 13px Arial, "Helvetica Neue", Helvetica, sans-serif;
  cursor: pointer;
}

.clp-deal-more::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 6px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: rotate(45deg);
}

.clp-deal-more[aria-expanded="true"]::after {
  margin-bottom: -1px;
  transform: rotate(-135deg);
}

/* FAQs and fine print */

.clp-faq h3 {
  margin: 18px 0 4px;
  color: #1f2d3a;
  font-size: 16px;
}

.clp-faq p {
  max-width: 75ch;
  margin: 0;
  line-height: 1.5;
}

.clp-fine {
  margin: 24px 0 8px;
  padding-top: 12px;
  border-top: 1px solid #d6e0e8;
  color: #5b6b78;
  font-size: 12px;
}

@media (width <= 760px) {
  .clp-deal-img {
    width: 124px;
    padding: 10px;
  }

  .clp-deal-img img {
    max-width: 84px;
    max-height: 84px;
  }

  .clp-deal-text {
    padding: 12px 14px;
  }

  .clp-hero-photo {
    min-height: 220px;
  }

  .clp-hero-cap,
  .clp-hero-cap.right {
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .clp-band p {
    font-size: 15px;
  }
}

/* Section bands (adc-api#3344): Destinations on white, Ships on the site's light blue, Deals on
   white, and the Overview tabs on blue (ship-pricing.css) with the FAQs and the fine print in
   the same band, each with the same space above and below (--band, ship-pricing.css). The
   Ships band is drawn with border-image so it reaches the window's edges from inside the
   page's width. */
#clp-destinations {
  padding: var(--band) 0;
}

#clp-destinations .clp-show-all {
  margin-top: 24px;
}

#clp-ships {
  padding: var(--band) 0;
  border-image: linear-gradient(#d0e8ff, #d0e8ff) fill 0 / 0 / 0 100vmax;
}

/* The FAQs as a white card in the tabs band, like the tab panel above them. */
[id="tabs_section"] > #clp-faqs {
  margin-top: 32px;
  padding: 28px 32px 30px;
  border: 1px solid #b7d3ea;
  border-radius: 8px;
  background-color: #fff;
}

[id="tabs_section"] > #clp-faqs .clp-faq:last-child p {
  margin-bottom: 0;
}

@media (width <= 760px) {
  [id="tabs_section"] > #clp-faqs {
    padding: 20px 18px 22px;
  }
}

/* Without deals the Ships and tabs bands would meet, so the tabs stay on white. */
body:not(:has(.clp-deals)) [id="tabs_section"] {
  border-image: none;
}

/* Destination cards: the name is the card's one link, stretched over the card, and every card
   ends in the same See cruises button, prices and buttons lined up along each row. */
.clp-dcard {
  position: relative;
}

.clp-dlink::after {
  content: "";
  position: absolute;
  inset: 0;
}

.clp-dlink:focus-visible {
  outline: none;
}

.clp-dcard:has(.clp-dlink:focus-visible) {
  outline: 3px solid #004a83;
  outline-offset: 2px;
}

.clp-dcard:has(.clp-go-btn):hover {
  box-shadow: 0 4px 14px rgb(16 52 84 / 14%);
}

.clp-dbody:has(.clp-go-btn) .clp-from {
  margin-top: auto;
  padding-top: 10px;
}

.clp-go-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  height: 40px;
  margin-top: auto;
  padding: 0 14px;
  border: 2px solid #004a83;
  border-radius: 4px;
  background-color: #fff;
  color: #004a83;
  font-size: 14px;
  font-weight: bold;
}

.clp-go-btn::after {
  content: "\203A";
  font-size: 18px;
  line-height: 1;
}

.clp-dbody:has(.clp-from) .clp-go-btn {
  margin-top: 14px;
}

.clp-dcard:hover .clp-go-btn,
.clp-dcard:has(.clp-dlink:focus-visible) .clp-go-btn {
  background-color: #004a83;
  color: #fff;
}

/* Hero mosaic (cruiseline/hero.php): the first slide large, up to four tiles under it. On wide
   screens it takes the search box's height, the large photo growing or shrinking to fit. */
.clp-hm {
  gap: 8px;
}

.clp-hm-main,
.clp-hm-t {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background-color: #8aa9c2;
  color: #fff;
  text-decoration: none;
}

.clp-hm-main img,
.clp-hm-t img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.clp-hm-main {
  flex: 1 1 auto;
  min-height: 240px;
}

.clp-hm-main img {
  position: absolute;
  inset: 0;
}

.clp-hm-main:hover img,
.clp-hm-t:hover img {
  transform: scale(1.03);
}

.clp-hm-main::after,
.clp-hm-t::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgb(4 22 40 / 78%));
  pointer-events: none;
}

.clp-hm-cap {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 16px 20px;
}

.clp-hm-title {
  display: block;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgb(0 0 0 / 35%);
}

.clp-hm-text {
  display: block;
  max-width: 60ch;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgb(0 0 0 / 40%);
}

/* Always four columns, as the ship page's grid, so a line with fewer tiles leaves the slots
   empty rather than growing its tiles taller than the search box. */
.clp-hm-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.clp-hm-t {
  aspect-ratio: 4 / 3;
}

.clp-hm-label {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  z-index: 1;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
}

.clp-hm-more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgb(0 36 68 / 62%);
}

.clp-hm-over {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
}

.clp-hm-play {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background-color: rgb(232 65 79 / 95%);
  box-shadow: 0 2px 8px rgb(0 0 0 / 35%);
}

.clp-hm-play::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 17px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #fff;
}

/* How many videos the tile plays, at every width, since phones hide the tile's label. */
.clp-hm-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 10px;
  background-color: rgb(0 30 58 / 82%);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.5;
  white-space: nowrap;
}

/* The captions stay white on hover: main.css turns every link red on hover (a:hover), which
   reads poorly on a photo. The photo's zoom shows the hover. */
.clp-hm-main:hover,
.clp-hm-main:focus,
.clp-hm-t:hover,
.clp-hm-t:focus {
  color: #fff;
}

.clp-hm-main:focus-visible,
.clp-hm-t:focus-visible {
  outline: 3px solid #004a83;
  outline-offset: 2px;
}

.fancybox-title .clp-hm-count {
  display: block;
  margin-top: 4px;
  color: #707070;
  font-size: 12px;
}

/* Below the side-by-side width the mosaic sets its own height. */
@media (width <= 1024px) {
  .clp-hm-main {
    flex: none;
    aspect-ratio: 16 / 8;
  }
}

@media (width <= 760px) {
  .clp-hm-main {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .clp-hm-cap {
    padding: 12px 14px;
  }

  .clp-hm-title {
    font-size: 19px;
  }

  .clp-hm-text {
    font-size: 14px;
  }

  .clp-hm-row {
    gap: 6px;
  }

  .clp-hm-label {
    display: none;
  }

  .clp-hm-over {
    font-size: 12px;
  }

  .clp-hm-play {
    top: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
  }

  .clp-hm-play::after {
    top: 9px;
    left: 13px;
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clp-hm-main img,
  .clp-hm-t img {
    transition: none;
  }
}

/* The cruise line page's header (cruiselines/cruiseline.php): the name, the line's types as pills
   and its fleet in a line under it, and the logo on the right without a box, as the tour
   operator page's header has them (operator-page.css). */
.clp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 12px;
}

.clp-head .page_title {
  margin: 0 0 8px;
}

.clp-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.clp-head-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clp-head-types li {
  padding: 3px 10px;
  border: 1px solid #b7d3ea;
  border-radius: 999px;
  background-color: #f1f7fd;
  color: #004a83;
  font-size: 12px;
  font-weight: 600;
}

.clp-head-facts {
  color: #5b6b78;
  font-size: 14px;
}

.clp-head-facts strong {
  color: #1f2a37;
}

.clp-head-logo {
  flex: 0 0 auto;
  max-width: 220px;
  max-height: 72px;
  object-fit: contain;
}

@media (width <= 760px) {
  /* On a phone the breadcrumbs stay first and the logo sits beside the name, then the types and
     fleet: one row for who the line is, as on the tour operator page. */
  .clp-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 16px;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 10px;
  }

  .clp-head > .clp-head-text {
    display: contents;
  }

  .clp-head .breadcrumbs {
    grid-area: 1 / 1 / 2 / 3;
  }

  .clp-head .page_title {
    grid-area: 2 / 1;
  }

  .clp-head-meta {
    grid-area: 3 / 1 / 4 / 3;
  }

  .clp-head-logo {
    grid-area: 2 / 2;
    max-width: 120px;
    max-height: 40px;
    margin-bottom: 8px;
  }
}
