.mps-ship-directory {
  margin: 60px 0;
}

body:not(.home) .mps-site-header {
  background: #234a98;
}

.mps-ship-directory h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.mps-ship-directory ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid #b9cdd4;
  list-style: none;
}

.mps-ship-directory li {
  display: grid;
  gap: 5px;
  padding: 18px 12px 18px 0;
  border-bottom: 1px solid #b9cdd4;
}

.mps-ship-directory li span {
  color: #56717e;
  font-size: .84rem;
}

.mps-line-directory h2 {
  max-width: 820px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.mps-line-directory ul {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.35);
  background: transparent;
  list-style: none;
}

.mps-line-directory a {
  min-height: 92px;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
  color: #fff;
  background: transparent;
  text-decoration: none;
}

.mps-line-directory img {
  grid-row: 1 / span 2;
  width: 74px;
  height: auto;
  padding: 8px 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}

.mps-line-directory strong { font-size: 1.15rem; }
.mps-line-directory a > span { color: rgba(255,255,255,.7); font-size: .76rem; }
.mps-line-logo-fallback { grid-row: 1 / span 2; font-size: 1.4rem!important; font-weight: 900; color: #fff!important; }

.mps-cruise-lines-page {
  min-height: 100svh;
  margin: 0 !important;
  padding: 36px 22px calc(92px + env(safe-area-inset-bottom));
  background: #fff;
}

.mps-cruise-lines-page > * {
  width: 100%;
  max-width: none;
  margin: 0;
}

body:has(.mps-cruise-lines-page) .mps-site-footer { display: none; }

.mps-line-directory--screen {
  width: 100%;
  max-width: 414px;
  min-height: 0;
  margin: 0 auto;
  padding: 40px 28px;
  color: #050505;
  background: #fff;
}

.mps-line-directory--screen + h2 {
  margin-block-start: 0 !important;
}

.mps-line-directory--screen ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 14px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  list-style: none;
}

.mps-line-directory--screen li {
  min-width: 0;
  animation: mps-directory-logo-in .38s ease-out both;
}

.mps-line-directory--screen li:nth-child(2),
.mps-line-directory--screen li:nth-child(5),
.mps-line-directory--screen li:nth-child(8) { animation-delay: .04s; }
.mps-line-directory--screen li:nth-child(3),
.mps-line-directory--screen li:nth-child(6),
.mps-line-directory--screen li:nth-child(9) { animation-delay: .08s; }

.mps-line-directory--screen a {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  padding: 8px;
  place-items: center;
  border: 0;
  border-radius: 17px;
  color: #0c3e9e;
  background: #efedee;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease;
}

.mps-line-directory--screen a:hover,
.mps-line-directory--screen a:focus-visible { transform: translateY(-3px); background: #e5e3e4; }
.mps-line-directory--screen a:active { transform: scale(.95); }
.mps-line-directory--screen a:focus-visible { outline: 3px solid #294f9b; outline-offset: 3px; }

.mps-line-directory--screen img {
  grid-row: auto;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.mps-line-directory--screen strong { font-size: clamp(.62rem, 2.7vw, .82rem); line-height: 1.1; }

body.single-mps_cruise_line .mps-cruise-line > .wp-block-post-featured-image {
  width: 80%;
  max-width: 560px;
  aspect-ratio: auto !important;
  height: auto !important;
  margin: 34px auto 28px;
  overflow: hidden;
  padding: 8px 0;
}

body.single-mps_cruise_line .mps-cruise-line > .wp-block-post-featured-image img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  object-position: center;
}

@keyframes mps-directory-title-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mps-directory-logo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mps-section--lines {
  min-height: 100svh;
  padding: 72px 20px 118px;
  box-sizing: border-box;
  background: #5676cd !important;
}

.mps-home-specialist-media {
  width: 100%;
  margin: 0 !important;
  padding: 46px 18px;
  background: var(--mps-app-blue);
}

.mps-home-form-media {
  width: 100%;
  margin: 0 !important;
  padding: 22px 18px;
  background: var(--mps-app-blue);
}

.mps-home-form-image {
  width: 100%;
  max-width: 484px;
  margin: 0 auto !important;
}

.mps-home-form-image__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(7, 28, 72, .28);
}

.mps-home-fleet-media {
  width: 100%;
  margin: 0 !important;
  padding: 22px 18px;
  background: var(--mps-app-blue);
}

.mps-home-fleet-image {
  width: 100%;
  max-width: 484px;
  margin: 0 auto !important;
}

.mps-home-fleet-image__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(7, 28, 72, .28);
}

.mps-home-specialist-image {
  width: 100%;
  max-width: 484px;
  margin: 0 auto !important;
}

.mps-home-specialist-image__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(7, 28, 72, .28);
}

.mps-about-specialist-media {
  width: 100%;
  margin: 0 !important;
  padding: 0 18px 22px;
  background: #fff;
}

.mps-about-fleet-media {
  width: 100%;
  margin: 0 !important;
  padding: 0 18px 22px;
  background: #fff;
}

.mps-about-fleet-image {
  width: 100%;
  max-width: 484px;
  margin: 0 auto !important;
}

.mps-about-fleet-image__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(7, 28, 72, .28);
}

.mps-section--specialist { background: var(--mps-deep-blue) !important; }

.mps-route-landing {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.mps-route-intro {
  margin-bottom: 28px;
  text-align: center;
}

.mps-route-intro .mps-eyebrow {
  margin-bottom: 10px;
  color: #294f9b;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mps-route-intro h1 {
  max-width: 700px;
  margin: 0 auto 16px;
  color: #050505;
  font-size: clamp(2.35rem, 10vw, 4.6rem);
  line-height: .96;
  text-wrap: balance;
  text-transform: uppercase;
}

.mps-route-intro > p:last-child {
  max-width: 620px;
  margin: 0 auto;
  color: #344752;
  line-height: 1.55;
}

.mps-route-booking {
  margin-bottom: 54px;
}

.mps-route-content {
  display: grid;
  gap: 22px;
}

.mps-route-content > div {
  margin: 0;
  padding: 28px 24px;
  border-radius: 24px;
  background: #f7f8fb;
}

.mps-route-content > .mps-route-facts,
.mps-route-content > .mps-route-section--steps {
  background: #d7d8f7;
}

.mps-route-content h2 {
  margin: 0 0 16px;
  color: #050505;
  font-size: clamp(1.9rem, 7vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.mps-route-content h3 {
  margin: 22px 0 7px;
  color: #294f9b;
  font-size: 1.12rem;
}

.mps-route-content p,
.mps-route-content li {
  color: #273943;
  line-height: 1.65;
}

.mps-route-content ul,
.mps-route-content ol {
  margin: 0;
  padding-left: 1.25rem;
}

.mps-route-content li + li { margin-top: 10px; }
.mps-route-content a { color: #234a98; font-weight: 700; }

.mps-route-faq details {
  padding: 16px 0;
  border-bottom: 1px solid #ccd4db;
}

.mps-route-faq details:first-of-type { border-top: 1px solid #ccd4db; }
.mps-route-faq summary { color: #102c3c; font-weight: 800; cursor: pointer; }
.mps-route-faq details p { margin: 11px 0 0; }

.mps-route-final {
  color: #fff;
  background: #294f9b !important;
  text-align: center;
}

.mps-route-final h2,
.mps-route-final p { color: #fff; }
.mps-route-final .wp-block-buttons { justify-content: center; }
.mps-route-final .wp-block-button__link { border-radius: 16px; color: #fff; background: #050505; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; }
.mps-route-final .mps-route-alternate { margin-bottom: 0; font-size: .88rem; }
.mps-route-final .mps-route-alternate a { color: #fff; }

@media (max-width: 480px) {
  .mps-route-content > div { padding: 24px 20px; border-radius: 20px; }
  .mps-route-booking { margin-inline: -6px; }
}

.mps-line-directory--home {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.mps-line-directory--home .mps-eyebrow {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -.02em;
  text-transform: none;
}

.mps-line-directory--home h2 {
  max-width: 390px;
  margin: 0;
  color: #050505;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2.05rem, 9.5vw, 3.15rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

.mps-line-directory--home ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 14px;
  margin: 64px 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.mps-line-directory--home li {
  min-width: 0;
}

.mps-line-directory--home a {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  padding: 8px;
  border: 0;
  border-radius: 20px;
  box-sizing: border-box;
  color: #0c3e9e;
  background: #E5E3E4;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(23, 54, 125, .13);
  transition: transform .18s ease, box-shadow .18s ease;
}

.mps-line-directory--home a:hover,
.mps-line-directory--home a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(23, 54, 125, .2);
}

.mps-line-directory--home a:focus-visible {
  outline: 3px solid #050505;
  outline-offset: 3px;
}

.mps-line-directory--home img {
  grid-row: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.mps-line-directory--home strong {
  font-size: clamp(.65rem, 2.7vw, .85rem);
  line-height: 1.1;
}

/* Homepage motion and card treatment follow the About page without changing typography. */
body.home.mps-motion-ready .mps-home-booking:not(.is-visible),
body.home.mps-motion-ready .mps-section:not(.is-visible) {
  opacity: 0;
  transform: translateY(26px);
}

body.home .mps-home-booking,
body.home .mps-section {
  transition: opacity .7s cubic-bezier(.22, .8, .2, 1), transform .7s cubic-bezier(.22, .8, .2, 1), box-shadow .38s ease;
  will-change: opacity, transform;
}

body.home .mps-home-booking.is-visible,
body.home .mps-section.is-visible {
  opacity: 1;
  transform: none;
}

body.home .mps-section {
  margin: 22px 14px !important;
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(11, 31, 78, .18);
}

body.home .mps-home-booking {
  margin: 0 14px !important;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 18px 50px rgba(11, 31, 78, .18);
}

body.home .mps-section .wp-block-column {
  border-radius: 18px;
  transition: transform .38s cubic-bezier(.22, .8, .2, 1), box-shadow .38s ease;
}

body.home .mps-section .wp-block-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16, 44, 60, .12);
}

@media (max-width: 390px) {
  .mps-section--lines { padding-inline: 18px; }
  .mps-line-directory--home ul { gap: 14px 12px; margin-top: 54px; }
  .mps-line-directory--home a { padding: 6px; border-radius: 18px; }
  .mps-line-directory--screen { padding-inline: 22px; }
  .mps-line-directory--screen ul { gap: 18px 12px; margin-top: 58px; }
  .mps-line-directory--screen a { border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home .mps-home-booking,
  body.home .mps-section,
  body.home .mps-section .wp-block-column { transition: none; }
  body.home .mps-home-booking,
  body.home .mps-section { opacity: 1; transform: none; }
  body.home .mps-section .wp-block-column:hover { transform: none; }
  .mps-line-directory--home a,
  .mps-line-directory--screen a { transition: none; }
  .mps-line-directory--screen h1,
  .mps-line-directory--screen li { animation: none; }
}

/* About page ------------------------------------------------------------- */

.mps-about {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.mps-about-intro {
  margin-bottom: 34px;
  text-align: center;
}

.mps-about-intro .mps-eyebrow {
  margin-bottom: 10px;
  color: #294f9b;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mps-about-intro h1 {
  max-width: 700px;
  margin: 0 auto 16px;
  color: #050505;
  font-size: clamp(2.35rem, 10vw, 4.6rem);
  line-height: .96;
  text-wrap: balance;
  text-transform: uppercase;
}

.mps-about-intro > p:last-child {
  max-width: 620px;
  margin: 0 auto;
  color: #344752;
  line-height: 1.55;
}

.mps-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}

.mps-stat-grid li {
  display: grid;
  gap: 4px;
  padding: 22px 18px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(155deg, #2f57a8, #16305f);
  text-align: center;
}

.mps-stat-grid strong {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2.1rem, 9vw, 2.9rem);
  line-height: 1;
}

.mps-stat-grid span {
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
  line-height: 1.3;
}

.mps-about-content {
  display: grid;
  gap: 22px;
}

.mps-about-content > div {
  margin: 0;
  padding: 30px 26px;
  border-radius: 26px;
  background: #f2f4f7;
}

.mps-about-content h2 {
  margin: 0 0 14px;
  color: #050505;
  font-size: clamp(1.6rem, 6.4vw, 2.3rem);
  line-height: 1.04;
  text-wrap: balance;
}

.mps-about-content h3 {
  margin: 24px 0 8px;
  color: #102c3c;
  font-size: 1.1rem;
}

.mps-about-content p,
.mps-about-content li {
  color: #344752;
  line-height: 1.6;
}

.mps-about-content ul { margin: 0; padding-left: 20px; }
.mps-about-content li + li { margin-top: 10px; }
.mps-about-content a { color: #234a98; font-weight: 700; }

.mps-about-note {
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid #d3dae2;
  font-size: .84rem !important;
  color: #5c6b78 !important;
}

.mps-about-section--fleet { background: #e9edf4; }

.mps-about-cards {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.mps-about-cards li {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid #d6dde7;
  border-radius: 20px;
  background: #fff;
  transition: transform .38s cubic-bezier(.22, .8, .2, 1), box-shadow .38s;
}

.mps-about-cards li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16, 44, 60, .12);
}

.mps-about-cards strong { color: #102c3c; font-size: 1.05rem; }
.mps-about-cards span { color: #45596a; font-size: .92rem; line-height: 1.5; }

.mps-about-faq details {
  padding: 16px 0;
  border-bottom: 1px solid #ccd4db;
}

.mps-about-faq details:first-of-type { border-top: 1px solid #ccd4db; }
.mps-about-faq summary { color: #102c3c; font-weight: 800; cursor: pointer; }
.mps-about-faq details p { margin: 11px 0 0; }

.mps-about-final {
  color: #fff;
  background: #294f9b !important;
  text-align: center;
}

.mps-about-final h2,
.mps-about-final p { color: #fff; }
.mps-about-final .wp-block-buttons { justify-content: center; }
.mps-about-final .wp-block-button__link { border-radius: 16px; color: #fff; background: #050505; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; }
.mps-about-final .mps-about-alternate { margin-bottom: 0; font-size: .88rem; }
.mps-about-final .mps-about-alternate a { color: #fff; }

/* Scroll reveal: sections rise into place as they enter the viewport. */
.mps-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .8, .2, 1), transform .7s cubic-bezier(.22, .8, .2, 1);
  will-change: opacity, transform;
}

.mps-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 480px) {
  .mps-about-content > div { padding: 24px 20px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .mps-reveal { opacity: 1; transform: none; transition: none; }
  .mps-about-cards li { transition: none; }
  .mps-about-cards li:hover { transform: none; }
}
