/* Keep login and registration aligned in a centered, readable column. */
.post-type-archive-voyage .page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(118deg, #0b3348 0%, #105c6a 63%, #18837e 100%);
}

/* Keep the long booking action inside the voyage card at every viewport width. */
.booking-card-cta{display:flex;box-sizing:border-box;width:calc(100% - 52px);max-width:calc(100% - 42px);min-width:0;margin:14px 26px 0!important;padding:14px 12px;gap:8px;white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.35}
.booking-card-cta span{flex:0 0 auto}
@media(max-width:700px){.booking-card-cta{width:calc(100% - 42px);margin:14px 21px 0!important;padding-inline:10px}}

/* Replace the decorative homepage ship art with the image selected in the Customizer. */
.editorial-art.has-image:before,.editorial-art.has-image:after,.editorial-art.has-image .art-ship{display:none}
.editorial-art.has-image .editorial-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}

/* Keep each fare intact and balance the old/current price pair in the booking card. */
.booking-card .price{display:flex;flex-wrap:wrap;align-items:baseline;gap:.12em .42em;font-size:clamp(1.55rem,2.05vw,1.95rem);line-height:1.2;overflow-wrap:normal;word-break:normal}
.booking-card .price del,.booking-card .price ins{display:inline-block;white-space:nowrap;word-break:keep-all}
.booking-card .price del{font-size:.64em}
.booking-card .price ins{font-size:.84em}

.post-type-archive-voyage .page-hero::after {
  position: absolute;
  right: 5%;
  top: -155px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.045), 0 0 0 74px rgba(255,255,255,.03);
  content: "";
  pointer-events: none;
}

.post-type-archive-voyage .page-hero .wrap { position: relative; z-index: 1; }
.post-type-archive-voyage .page-hero .eyebrow { color: #b9e6dc; }
.post-type-archive-voyage .page-hero h1 { color: #fff; }
.post-type-archive-voyage .page-hero p { color: #e0eeea; }
.post-type-archive-voyage .page-hero .back-link { color: #d5eee4; }

.voyage-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
}

.voyage-card-media-link { display: block; }
.voyage-card .card-art.has-card-image::after { display: none !important; }
.voyage-card .card-art.has-card-image .art-deco {
  bottom: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 2px;
  background: rgba(7, 45, 58, .84);
  font-size: 1rem;
  text-shadow: none;
}

.voyage-card .card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 17px; }
.voyage-card .card-meta { gap: 10px; margin-bottom: 12px; font-size: .72rem; }
.voyage-card .card-meta span:last-child { text-align: right; }
.voyage-card .card-body h3 { min-height: 2.16em; margin-bottom: 7px; font-size: clamp(1.3rem, 1.6vw, 1.55rem); line-height: 1.12; }
.voyage-card .card-route { min-height: 1.4em; margin-bottom: 14px; font-size: .8rem; }
.card-departure-details { margin: 0 0 15px; padding: 11px 12px; background: #f1f6f2; border-left: 2px solid var(--sea); }
.card-departure-details .eyebrow { display: block; margin-bottom: 4px; font-size: .58rem; }
.card-departure-details p { margin: 0; color: #526771; font-size: .74rem; line-height: 1.5; }
.card-departure-details p + p { margin-top: 3px; }
.card-departure-details strong { color: var(--ink); }
.voyage-card .card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.voyage-card-fare { min-width: 0; }
.voyage-card .price-label { margin-bottom: 4px; }
.voyage-card .price { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 1.5rem; line-height: 1.15; }
.voyage-card .price del { color: #b33d42 !important; opacity: 1; font-size: .72em; text-decoration: line-through; text-decoration-color: #b33d42; text-decoration-thickness: 2px; }
.voyage-card .price ins { color: #126b63; font-weight: 800; text-decoration: none; }
.voyage-card .price small { margin-top: 2px; color: #71818a; font: .66rem/1.4 var(--sans); }
.voyage-card .card-bottom .text-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid #b8d2ca; background: #f7faf7; font-size: .75rem; }
.voyage-card .card-bottom .text-link:hover { border-color: var(--sea); background: var(--sea); color: #fff; }
.voyage-card-price-note { margin: 11px 0 0; color: #71818a; font-size: .65rem; line-height: 1.45; }

.travel-policy-notice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  margin: 24px 0 0;
  padding: 20px 23px;
  border: 1px solid #ead6a9;
  border-left: 4px solid #c98228;
  background: #fff8e9;
}

.travel-policy-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #c98228;
  color: #fff;
  font-weight: 800;
}

.travel-policy-notice .eyebrow { display: block; margin: 0 0 6px; color: #875414; }
.travel-policy-notice p { margin: 0; color: #4f5f62; font-size: .86rem; line-height: 1.6; }
.travel-policy-notice p + p { margin-top: 5px; }
.travel-policy-notice strong { color: #253e48; }
.pelagic-checkout-page .travel-policy-notice { margin: 0 auto 24px; max-width: 1180px; }
.voyage-policy-wrap { padding-top: 1px; }

@media (max-width: 760px) {
  .voyage-card .card-body { padding: 17px; }
  .voyage-card .card-bottom { align-items: stretch; flex-direction: column; }
  .voyage-card .card-bottom .text-link { justify-content: center; width: 100%; }
  .travel-policy-notice { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 16px 14px; }
  .travel-policy-icon { width: 29px; height: 29px; }
}

@media (max-width: 480px) {
  .post-type-archive-voyage .page-hero { padding: 48px 0 42px; }
  .voyage-card .card-art { height: auto; aspect-ratio: 16 / 10; }
  .voyage-card .card-bottom { flex-direction: row; align-items: end; }
  .voyage-card .card-bottom .text-link { width: auto; }
  .travel-policy-notice { grid-template-columns: minmax(0, 1fr); }
}

/* Keep uploaded voyage photos clear of the decorative sun/circle overlay. */
.card-art.has-card-image:before { display: none; }

/* The homepage voyage finder now uses a single destination control. */
.search-fields-destination { grid-template-columns: minmax(0, 1fr) auto; max-width: 760px; }
.search-fields-destination .button { grid-column: auto; }
@media (max-width: 480px) {
  .search-fields-destination { grid-template-columns: minmax(0, 1fr); }
  .search-fields-destination .button { width: 100%; }
}

/* Give the voyages archive a balanced three-row page and clearer navigation. */
.post-type-archive-voyage .archive-content {
  padding: 48px 0 88px;
  background: linear-gradient(180deg, #f3f8f6 0, #fff 370px);
}
.post-type-archive-voyage .filter-row { flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.post-type-archive-voyage .filter-pill {
  padding: 9px 15px;
  border: 1px solid #9abfba;
  border-radius: 3px;
  background: #edf5f2;
  color: #123f50;
  font-size: .76rem;
  font-weight: 700;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.post-type-archive-voyage .filter-pill:hover,
.post-type-archive-voyage .filter-pill:focus-visible {
  border-color: #0d5969;
  background: #0d5969;
  color: #fff;
}
.post-type-archive-voyage .card-grid { gap: 23px; }
.post-type-archive-voyage .voyage-card {
  border: 1px solid #d5e2dd;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(18, 63, 80, .055);
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-type-archive-voyage .voyage-card:hover {
  box-shadow: 0 15px 32px rgba(18, 63, 80, .13);
  transform: translateY(-3px);
}
.post-type-archive-voyage .pagination { flex-wrap: wrap; gap: 9px; margin-top: 38px; }
.post-type-archive-voyage .pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid #83b4ae;
  border-radius: 3px;
  background: #edf5f2;
  color: #123f50;
  font-weight: 700;
}
.post-type-archive-voyage .pagination .current,
.post-type-archive-voyage .pagination .page-numbers:hover,
.post-type-archive-voyage .pagination .page-numbers:focus-visible {
  border-color: #0d5969;
  background: #0d5969;
  color: #fff;
}

/* Keep login and registration aligned in a centered, readable column. */
.woocommerce-account .woocommerce {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
}

.woocommerce-account #customer_login.u-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 22px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(22px, 4vw, 34px) !important;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(16, 44, 61, .07);
}

.woocommerce-account #customer_login .u-column1 h2,
.woocommerce-account #customer_login .u-column2 h2 {
  margin: 0 0 22px;
  font: clamp(1.8rem, 3vw, 2.35rem)/1.1 var(--serif);
  color: var(--ink);
}

.woocommerce-account #customer_login form .form-row,
.woocommerce-account #customer_login form .form-row .woocommerce-input-wrapper {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 17px !important;
  padding: 0 !important;
}

.woocommerce-account #customer_login form .form-row label {
  display: block;
  margin: 0 0 6px;
  font-size: .84rem;
  font-weight: 700;
}

.woocommerce-account #customer_login form .form-row input.input-text,
.woocommerce-account #customer_login form .form-row input[type="email"],
.woocommerce-account #customer_login form .form-row input[type="password"],
.woocommerce-account #customer_login form .form-row input[type="text"] {
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 48px;
  padding: 11px 13px !important;
  border: 1px solid #cbd8d4;
  background: #fff;
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 14px 12px 0;
}

.woocommerce-account #customer_login button.button,
.woocommerce-account #customer_login .woocommerce-Button {
  width: 100%;
  min-height: 50px;
  padding: 13px 20px;
  background: var(--sea);
  color: #fff;
  font-weight: 800;
}

.woocommerce-account .pelagic-account-intro {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 26px;
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .header-main { gap: 12px; }
  .brand { min-width: 0; }
  .brand-name { font-size: 1.1rem; }
  .site-nav {
    z-index: 20;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .site-nav > li {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .site-nav > li > a { display: block; padding: 12px 4px; }
  .site-nav .account-link {
    display: flex;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .search-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search-fields .field,.search-fields select,.search-fields input { min-width: 0; }
  .card-grid,.fleet-archive-grid,.destination-profile,.ship-profile,
  .voyage-detail-layout,.offer-list-grid,.offer-detail-layout,
  .contact-layout,.planning-grid,.trip-steps,.checklist-grid,
  .destination-guides,.ship-guides { grid-template-columns: minmax(0, 1fr) !important; }
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dest-card { min-height: 235px; }
  .single-hero h1,.page-hero h1 { font-size: clamp(2.35rem, 10vw, 4rem); overflow-wrap: anywhere; }
  .single-meta { flex-wrap: wrap; }
  .booking-card { width: 100%; max-width: none; }
  .voyage-departures li { gap: 8px; }
  .voyage-departures .departure-fare { white-space: normal; }
  .woocommerce-checkout form.checkout.woocommerce-checkout {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review { width: 100%; max-width: 100%; min-width: 0; }
  .woocommerce-checkout #order_review { padding: 0 16px 18px; overflow-wrap: anywhere; }
  .woocommerce-checkout #order_review table.shop_table { table-layout: fixed; }
  .woocommerce-checkout #order_review table.shop_table th:first-child { width: 65%; }
  .woocommerce-checkout #order_review table.shop_table td,
  .woocommerce-checkout #order_review table.shop_table th { padding: 10px 6px; font-size: .82rem; }
  .pelagic-checkout-intro { padding: 21px 18px; }
  .woocommerce-cart-form { max-width: 100%; overflow-x: auto; }
  .woocommerce-cart-form table.shop_table { min-width: 600px; }
  .woocommerce-account #customer_login .u-column1,
  .woocommerce-account #customer_login .u-column2 { padding: 22px !important; }
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
  }
  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product .summary {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
  }
  .woocommerce div.product form.cart { padding: 18px; }
  .woocommerce div.product form.cart table.variations,
  .woocommerce div.product form.cart table.variations tbody,
  .woocommerce div.product form.cart table.variations tr,
  .woocommerce div.product form.cart table.variations td {
    display: block;
    width: 100%;
  }
  .woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; }
  .woocommerce form .form-row,
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select { width: 100%; max-width: 100%; min-width: 0; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 28px); }
  .brand-mark { width: 29px; height: 29px; }
  .brand-name { font-size: 1rem; }
  .dest-grid,.search-fields,.footer-grid,.site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .search-fields .button { grid-column: auto; width: 100%; }
  .dest-card { min-height: 245px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 3.4rem); }
  .booking-progress { padding: 14px 10px; }
  .booking-progress ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .booking-progress li { font-size: .63rem; }
  .booking-progress li > span { width: 26px; height: 26px; flex-basis: 26px; }
  .woocommerce-checkout #order_review table.shop_table th:first-child { width: 58%; }
  .site-footer .footer-brand { grid-column: auto; }
}
