/* The redesigned port pages (adc-api#3516): the cruises-from and cruises-to pages, in the
   layout the owner approved on 2026-11-16. They share the ship page's photo grid, jump bar,
   pricing section and tab band (ship.css, ship-pricing.css) and the cruise line page's cards and
   FAQs (cruiseline-page.css); this adds only what a port page has of its own. Every rule is
   scoped to markup only these pages write, so pages still on the older port markup are
   unchanged. */


/* A card's ship and cruise line. */
.sx-ship {
  margin: 2px 0 6px;
  color: #444;
  font-size: 14px;
}

.sx-ship a {
  color: #0b5ea8;
}

#ship-cruises.sx {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.sx-fine {
  margin-top: 26px;
}

/* The tabs sit on the blue band, as on the ship page. cruiseline-page.css takes the band away
   from a page without deals, which a port page never has, so it is put back here. */
body:not(:has(.clp-deals)) [id="tabs_section"].pp-tabs {
  border-image: linear-gradient(#d0e8ff, #d0e8ff) fill 0 / 0 / 0 100vmax;
}

.pp-tabs .pp-tabsec .clp-lede {
  margin-top: -4px;
}

[id="tabs_section"] > #clp-faqs h2 {
  margin: 0 0 16px;
}

/* The Overview tab's Low Price Guarantee paragraph closes it, under a thin line. */
.pp-tabs .pp-lpg {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e3ebf5;
}

.pp-tabs #port_overview.departure-page {
  margin-top: 10px;
}

/* A place in a day (the cruises-to page's attractions). */
.pp-guide {
  max-width: 860px;
  font-size: 15px;
  line-height: 1.6;
}

.pp-guide p {
  margin: 0 0 10px;
}

.pp-guide .cruisesFromAttraction {
  margin: 16px 0 4px;
  color: #0b3a66;
  font-weight: 700;
}

.pp-guide h3 {
  margin: 18px 0 6px;
  font-size: 20px;
}

/* Cruise lines: the type chips, and a card per line, three to a row. */
.pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}

.pp-chip {
  padding: 6px 14px;
  border: 1px solid #c9d6e6;
  border-radius: 999px;
  background: #fff;
  color: #0b3a66;
  font-size: 14px;
  cursor: pointer;
}

.pp-chip-n {
  margin-left: 4px;
  color: #7a8ca3;
}

.pp-chip[aria-pressed="true"] {
  border-color: #0b3a66;
  background: #0b3a66;
  color: #fff;
}

.pp-chip[aria-pressed="true"] .pp-chip-n {
  color: #cfe0f5;
}

.pp-type-info {
  max-width: 900px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-left: 3px solid #7fb6e8;
  background: #f3f8fd;
  color: #3b4a5c;
  font-size: 14px;
}

.pp-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pp-line {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(11 58 102 / 6%);
}

.pp-line[hidden] {
  display: none;
}

.pp-line-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e9f0f8;
}

.pp-line-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-type {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgb(11 58 102 / 88%);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pp-logo {
  position: absolute;
  bottom: -28px;
  left: 12px;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 9px 14px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
}

.pp-logo img {
  max-width: 190px;
  max-height: 38px;
  object-fit: contain;
}

.pp-line-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px 16px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.pp-line-body h3 {
  margin: 0 0 2px;
  font-size: 19px;
}

.pp-line-body h3 a {
  color: #0b3a66;
  text-decoration: none;
}

.pp-fleet {
  margin: 0 0 8px;
  color: #5d6b7c;
}

.pp-offer {
  margin: 0 0 8px;
  color: #b3123a;
  font-weight: 600;
}

.pp-offer-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fde8ee;
  color: #b3123a;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pp-perks {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.pp-perks li {
  position: relative;
  margin: 2px 0;
  padding-left: 18px;
}

.pp-perks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2e8540;
  font-weight: 700;
}

.pp-here {
  margin: 0 0 6px;
  color: #24364a;
}

.pp-about {
  margin: 0 0 10px;
}

.pp-about summary {
  color: #0b5ea8;
  cursor: pointer;
}

.pp-about p {
  margin: 8px 0 0;
}

.pp-ships {
  color: #5d6b7c;
}

.pp-line-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

.pp-price {
  margin: 0 0 10px;
}

.pp-price strong {
  margin: 0 4px;
  color: #0b3a66;
  font-size: 22px;
}

.pp-price-unit {
  display: block;
  color: #5d6b7c;
  font-size: 12px;
}

.pp-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pp-btn,
.pp-btn:visited {
  display: block;
  padding: 9px 6px;
  border-radius: 6px;
  background: #0b3a66;
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.pp-btn-alt,
.pp-btn-alt:visited {
  background: #e8174b;
}

/* Six line or destination cards until Show all (eight destinations when four fit across, below),
   once port-page.js runs (.pp-ready); a type chosen shows all of its lines. */
.pp-limit.pp-ready:not(.pp-open, .pp-filtered) > li:nth-child(n + 7) {
  display: none;
}

/* The destination cards fit four across on a wide panel (260px minimum each, 16px gaps), where six
   would leave two empty spots: there the first eight show, two full rows. */
.pp-tabsec:has(> .clp-dgrid.pp-limit) {
  container-type: inline-size;
}

@container (min-width: 1088px) {
  .clp-dgrid.pp-limit.pp-ready:not(.pp-open, .pp-filtered) > li:nth-child(7),
  .clp-dgrid.pp-limit.pp-ready:not(.pp-open, .pp-filtered) > li:nth-child(8) {
    display: flex;
  }

  /* Eight or fewer then all show, so Show all would reveal nothing. */
  .clp-dgrid.pp-two-rows ~ .pp-more {
    display: none;
  }
}

.pp-more {
  display: block;
  margin: 14px auto 0;
}

.pp-filtered ~ .pp-more {
  display: none;
}

/* Weather: a column per month, its bar from the average low to the average high on a scale
   every month shares, and the month's rain under it. */
.pp-wx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pp-units {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #c9d6e6;
  border-radius: 999px;
}

.pp-unit {
  padding: 6px 14px;
  border: 0;
  background: #fff;
  color: #0b3a66;
  font-size: 14px;
  cursor: pointer;
}

.pp-unit[aria-pressed="true"] {
  background: #0b3a66;
  color: #fff;
}

.pp-wx-lede {
  margin: 4px 0 12px;
  color: #3b4a5c;
  font-size: 14px;
}

.pp-wx {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(54px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  font-size: 14px;
  text-align: center;
  list-style: none;
}

.pp-m {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  text-align: center;
}

.pp-mname {
  margin-bottom: 8px;
  color: #0b3a66;
  font-weight: 700;
}

/* The labels sit in the track's padding, above and below the bar, never on the month name. */
.pp-range {
  position: relative;
  width: 100%;
  height: 190px;
  padding: 26px 0;
  box-sizing: border-box;
  border-radius: 8px;
  background: repeating-linear-gradient(to top, #f4f7fb 0 33px, #fff 33px 34px);
}

.pp-plot {
  position: relative;
  height: 100%;
}

.pp-rbar {
  position: absolute;
  left: 50%;
  width: 18px;
  min-height: 18px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.pp-t {
  position: absolute;
  left: 50%;
  font-size: 13px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.pp-thi {
  bottom: 100%;
  margin-bottom: 3px;
  color: #c0392b;
}

.pp-tlo {
  top: 100%;
  margin-top: 3px;
  color: #1f5fbf;
}

.pp-rain {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 24px;
}

.pp-drop {
  width: 60%;
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  background: #7fb6e8;
}

.pp-rv {
  margin-top: 4px;
  color: #24364a;
  font-weight: 600;
}

.pp-rd {
  color: #6b7a8c;
  font-size: 12px;
}

.pp-wx-note {
  margin-top: 12px;
  color: #666;
  font-size: 12px;
}

/* The FAQs: two columns on wide screens, one on phones. */
.pp-faqgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pp-faqgrid .clp-faq {
  max-width: none;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid #e3ebf5;
  border-radius: 10px;
  background: #f7fafd;
}

.pp-faqgrid .clp-faq h3 {
  margin-top: 0;
}

@media (width <= 1000px) {
  .pp-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 640px) {
  .pp-lines,
  .pp-faqgrid {
    grid-template-columns: 1fr;
  }

  .pp-range {
    height: 160px;
  }
}

/* The last photo's label covers it, so its own caption would sit under the label. */
.sg-thumb:has(.sg-more) .sx-photo-cap {
  display: none;
}

/* The switch between the port's two pages, under the title. */
.pp-switch {
  display: flex;
  width: fit-content;
  margin: 6px 0 14px;
  overflow: hidden;
  border: 1px solid #c9d6e6;
  border-radius: 999px;
  font-size: 14px;
}

.pp-sw {
  padding: 7px 16px;
  color: #0b3a66;
  text-decoration: none;
  white-space: nowrap;
}

.pp-sw:hover,
.pp-sw:focus-visible {
  background: #e8f0fa;
  color: #0b3a66;
  text-decoration: none;
}

.pp-sw[aria-current],
.pp-sw[aria-current]:hover {
  background: #0b3a66;
  color: #fff;
  font-weight: 600;
}

.pp-sw-n {
  font-weight: 400;
  opacity: 0.8;
}

.pp-pn {
  font-weight: inherit;
}

@media (width <= 520px) {
  .pp-switch {
    width: 100%;
    max-width: 100%;
  }

  .pp-sw {
    flex: 1 1 50%;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  .pp-sw-n {
    display: block;
  }

  .pp-pn {
    display: none;
  }
}

/* The nearby ports, beside the title where the ship page has its menus, wide enough that most
   names fit on one line, which keeps the card about as tall as the price box. On narrow screens the
   card drops below the price box, as far below it as the price box is below the switch. */
.page_header .right:has(.pp-near) {
  float: right;
  width: 400px;
}

.pp-near {
  margin-top: 34px;
  padding: 16px 18px;
  border: 1px solid #d6e0e8;
  border-radius: 10px;
  background: #f7fafd;
  text-align: left;
}

.pp-near-h {
  margin: 0 0 8px;
  color: #0b3a66;
  font-size: 15px;
}

.pp-near ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-near-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #e3ebf5;
  font-size: 14px;
}

.pp-near-item:first-child {
  border-top: 0;
}

.pp-miles {
  color: #5b6b78;
  font-size: 13px;
  white-space: nowrap;
}

@media (width <= 760px) {
  .page_header .right:has(.pp-near) {
    float: none;
    clear: both;
    width: auto;

    /* With the title column's own 10px under the price box, 14px in all. */
    padding-top: 4px;
  }

  .pp-near {
    margin: 0;
  }
}

/* A destination card's text, inside the tab panel. */
#tabs_section .clp-dbody p {
  margin: 0 0 6px;
}

/* The "{Port} in a Day" tab (port_page_day_guide()): day plans, then sights, each a card in a
   grid. A plan leads with its "Good for" line as a tag; a sight ends with its Allow, Getting
   there and Tip lines as labeled details. */
/* stylelint-disable no-descending-specificity -- every selector here is inside .pp-day, which no other rule reaches. */
.pp-guide:has(> .pp-day),
.pp-day {
  max-width: none;
}

.pp-day > h3 {
  margin: 28px 0 6px;
  color: #004a83;
  font-size: 20px;
}

.pp-day > h3:first-child {
  margin-top: 0;
}

.pp-day > p {
  max-width: 80ch;
  margin: 0 0 14px;
  color: #3b4a56;
}

.pp-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 12px 0 8px;
}

.pp-day-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid #d6e0e8;
  border-radius: 10px;
  background-color: #fff;
}

.pp-day-plan {
  border-top: 4px solid #004a83;
  background-color: #f7fafd;
}

.pp-day-card h4 {
  margin: 0 0 8px;
  color: #1f2a37;
  font-size: 17px;
}

.pp-day-card p {
  margin: 0 0 10px;
  color: #33414d;
  font-size: 15px;
  line-height: 1.55;
}

.pp-day-plan p:first-of-type {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #e8f1f8;
  color: #004a83;
  font-size: 13px;
  font-weight: 600;
}

.pp-day-plan p:first-of-type strong {
  font-weight: 700;
}

.pp-day-card ul {
  margin: auto 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #e3ebf5;
  list-style: none;
}

.pp-day-card li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
  margin: 0 0 8px;
  color: #33414d;
  font-size: 14px;
  line-height: 1.45;
}

.pp-day-card li:last-child {
  margin-bottom: 0;
}

.pp-day-card li strong {
  padding-top: 2px;
  color: #004a83;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (width <= 640px) {
  .pp-day-grid {
    grid-template-columns: 1fr;
  }

  .pp-day-card li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Old copy, not yet in plans and cards: one column at a readable line length (WCAG 1.4.8 caps
   lines at 80 characters), with the side panel (port_page_day_rail()) beside it. */
.pp-day-plain > p {
  max-width: none;
  font-size: 16px;
}

/* stylelint-enable no-descending-specificity */

/* The note under a port page's copy (port_page_copy_note()), in the weather tab's fine-print style.
   Scoped to .pp-tabs so it outranks .pp-guide p's margin: equal space above and below the rule. */
.pp-tabs .pp-copy-note {
  max-width: 90ch;
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e3ebf5;
  color: #5b6b78;
  font-size: 13px;
  line-height: 1.5;
}

/* The cruise line's logo atop each card's price column, so lines stand out while scrolling. */
.sx-price .sx-cl-logo {
  display: block;
  max-width: 190px;
  max-height: 46px;
  margin: 0 auto 16px;
  object-fit: contain;
}

/* The side panel beside older day-tab copy: the page's cruises and the lines that visit. */
/* stylelint-disable no-descending-specificity -- every selector here is inside .pp-rail or its .pp-tabsec, which no other rule reaches. */
.pp-tabsec:has(> .pp-rail) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: 44px;
  align-items: start;
}

.pp-tabsec:has(> .pp-rail) > h2 {
  grid-column: 1 / -1;
}

.pp-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pp-rail-box {
  padding: 18px 20px;
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  background: #f5f9fd;
}

#tabs_section .pp-rail-box p {
  margin: 0 0 8px;
  color: #3b4a56;
  font-size: 14px;
  line-height: 1.5;
}

#tabs_section .pp-rail-box .pp-rail-title {
  margin-bottom: 6px;
  color: #0b3a66;
  font-size: 17px;
  font-weight: 700;
}

#tabs_section .pp-rail-box .pp-rail-price {
  margin: 0;
  color: #0b4f8a;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

#tabs_section .pp-rail-box .pp-rail-pp {
  margin-bottom: 14px;
  font-size: 13px;
}

/* #tabs_section .content a colors every link in the tabs, so these outrank it by id. */
#tabs_section .pp-rail .pp-rail-btn,
#tabs_section .pp-rail .pp-rail-btn:visited,
#tabs_section .pp-rail .pp-rail-btn:hover,
#tabs_section .pp-rail .pp-rail-btn:focus-visible {
  display: block;
  padding: 11px;
  border-radius: 8px;
  background: #0b4f8a;
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

#tabs_section .pp-rail .pp-rail-btn:hover {
  background: #0b3a66;
}

.pp-rail-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.pp-rail-lines > a,
.pp-rail-lines > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #e3ebf5;
  border-radius: 8px;
  background: #fff;
}

.pp-rail-lines img {
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}

#tabs_section .pp-rail .pp-rail-more,
#tabs_section .pp-rail .pp-rail-more:hover {
  color: #0b4f8a;
  font-size: 14px;
  font-weight: 600;
}

@media (width <= 900px) {
  .pp-tabsec:has(> .pp-rail) {
    display: block;
  }

  .pp-rail {
    position: static;
    margin-top: 24px;
  }
}
/* stylelint-enable no-descending-specificity */

/* Port pages carry more section links than ship pages, so the fixed bar drops the page name (the
   heading the reader just scrolled past) sooner, leaving room for every link beside the price. */
@media (width <= 1440px) {
  .jx-fixed .jx-name {
    display: none;
  }
}
