/* MY Ohana and MS Melody pages. Mobile first. Reuses .yc-* pieces from charter.css and the lightbox from fleet.css. */
:root { --sec: clamp(64px, 12vw, 140px); }

/* Hero: photo on top with the whole ship in view on phones, full-bleed overlay from tablet up */
.sh-hero { position: relative; display: flex; flex-direction: column; background: var(--sea-900); color: var(--white); }
.sh-hero__pic { position: relative; display: block; order: 1; aspect-ratio: 5 / 4; overflow: hidden; background: var(--sea-900); }
.sh-hero__pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-m, 50% 50%); }
.sh-hero__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 32, .55) 0%, rgba(6, 26, 32, 0) 32%); }
.sh-hero__in { position: relative; z-index: 1; order: 2; margin-top: -30px; padding: 34px var(--gutter) 40px; border-radius: 28px 28px 0 0; background: var(--sea-900); }
body.cc .sh-hero h1 { margin: 0; color: var(--white); }
.sh-hero__brand { display: block; font: 500 clamp(52px, 14vw, 104px)/.96 var(--font-serif); letter-spacing: -.02em; }
.sh-hero__sub { display: block; margin-top: 16px; font: italic 500 clamp(22px, 5.6vw, 30px)/1.2 var(--font-serif); color: var(--sun); }
.sh-hero .yc-hero__cta { margin-top: 26px; }
body.cc .sh-hero .yc-hero__cta .cc-btn { flex: 1 1 auto; justify-content: center; padding: 16px 20px; font-size: 15px; }

@media (prefers-reduced-motion: no-preference) {
  .sh-hero__pic img { animation: yc-zoom 2.4s var(--ease) both; }
  .sh-hero__brand, .sh-hero__sub, .sh-hero .yc-hero__cta { animation: yc-rise 1s var(--ease) both; }
  .sh-hero__sub { animation-delay: .12s; } .sh-hero .yc-hero__cta { animation-delay: .24s; }
}

/* Intro */
.sh-intro { padding-bottom: clamp(48px, 8vw, 100px); }
.sh-intro__text { display: grid; gap: 0; }
.sh-intro__text p:not(.yc-lede) { margin: 0 0 1.1em; font-size: 17px; color: #3d4f55; }
.sh-intro__text .yc-lede { max-width: 30ch; }
.cc-video { position: relative; margin-top: clamp(36px, 6vw, 72px); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: var(--sea-900); cursor: pointer; }
.cc-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cc-video:hover img { transform: scale(1.03); }
.cc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cc-video.is-playing { cursor: default; }
.cc-video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 40px rgba(6, 26, 32, .35); transition: transform .35s var(--ease); }
.cc-video__play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -7px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--sea-900); }
.cc-video:hover .cc-video__play { transform: scale(1.08); }
.cc-video.is-playing .cc-video__play, .cc-video.is-playing .cc-video__cap { display: none; }
.cc-video__cap { position: absolute; left: 18px; bottom: 18px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--sea-900); font: 600 13px/1 var(--font-sans); }
.cc-video:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 4px; }

/* About the yacht (accordion) */
.sh-details { padding: var(--sec) 0; background: var(--sand-50); }
.sh-details__grid { display: grid; gap: 40px; }
.sh-details__img { margin: 0 calc(var(--gutter) * -1); }
.sh-details__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sh-details__list .yc-q:last-of-type { border-bottom: 1px solid var(--sand-200); }

/* Spec sheet */
.sh-sheet { padding: var(--sec) 0; }
.sh-sheet__head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 52px); }
.sh-sheet__head .yc-rule { margin-bottom: 0; }
.sh-sheet__grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--sand-200); }
.sh-sheet__grid > div { padding: 18px 0 18px 16px; border-bottom: 1px solid var(--sand-200); border-left: 1px solid var(--sand-200); }
.sh-sheet__grid > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
.sh-sheet__grid dt { font: 600 11px/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sh-sheet__grid dd { margin: 5px 0 0; font: 500 clamp(22px, 5.6vw, 28px)/1.15 var(--font-serif); color: var(--sea-900); font-variant-numeric: lining-nums; }

/* Staterooms */
.sh-rooms { padding: var(--sec) 0; background: var(--sand-50); }
.sh-amen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sh-amen li { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 12px 22px; border-radius: 16px; background: var(--white); box-shadow: 0 1px 0 var(--sand-200); text-align: center; }
.sh-amen li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sh-amen img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.sh-amen span { font: 600 12px/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sea-900); }

/* Gallery */
.sh-gallery-sec { padding: var(--sec) 0; }
.sh-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sh-gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--sand-100); }
.sh-gallery a[hidden] { display: none; }
.sh-gallery a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.sh-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sh-gallery a:hover img { transform: scale(1.05); }

/* Equipment */
.sh-equip { padding: var(--sec) 0; background: var(--sand-50); }
.sh-equip__grid { display: grid; gap: 40px; align-items: center; }
.sh-equip__list { margin: 0; padding: 0; list-style: none; }
.sh-equip__list li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--sand-200); font: 500 clamp(24px, 6vw, 30px)/1.2 var(--font-serif); color: var(--sea-900); }
.sh-equip__list li:first-child { border-top: 1px solid var(--sand-200); }
.sh-equip__list img { width: 40px; height: 40px; object-fit: contain; }
.sh-equip__img img { width: 100%; max-width: 480px; margin: 0 auto; }
.sh-equip__img--duo { position: relative; max-width: 520px; margin: 0 auto; padding-bottom: 22%; }
.sh-equip__img--duo img { display: block; max-width: none; margin: 0; object-fit: cover; }
.sh-equip__img--duo .sh-equip__main { width: 82%; aspect-ratio: 4 / 5; margin-left: auto; }
.sh-equip__img--duo .sh-equip__inset { position: absolute; left: 0; bottom: 0; width: 58%; aspect-ratio: 4 / 3; border: 6px solid var(--sand-50); box-shadow: 0 18px 40px -18px rgba(6, 26, 32, .45); }

/* Pricing */
.sh-pricing { padding: var(--sec) 0; scroll-margin-top: 70px; }
.sh-pricing__grid { display: grid; gap: 40px; }
.sh-label { margin: 28px 0 8px; font: 600 12px/1.3 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sh-price { margin: 0; white-space: nowrap; font: 500 clamp(30px, 8.6vw, 68px)/1.04 var(--font-serif); color: var(--sea-900); font-variant-numeric: lining-nums; }
.sh-actions { display: grid; gap: 10px; margin-top: 26px; }
body.cc .cc-btn--ghost-dark { justify-content: center; border-color: var(--sea-900); color: var(--sea-900); background: transparent; }
body.cc .cc-btn--ghost-dark:hover { background: var(--sea-900); color: var(--white); }
.sh-cal { margin-top: 8px; }
.sh-cal .sh-label { margin-top: 24px; }
.sh-cal__years { display: flex; flex-wrap: wrap; gap: 10px; }
body.cc .sh-cal__years a { padding: 11px 20px; border: 1.5px solid var(--sand-200); border-radius: 999px; font-weight: 600; color: var(--sea-900); }
body.cc .sh-cal__years a:hover { border-color: var(--teal-500); color: var(--teal-700); }
.sh-inc { padding: 30px 26px; border-radius: 18px; background: var(--sand-50); align-self: start; }
body.cc .sh-inc h3 { margin-bottom: 14px; font-size: 32px; }
.sh-inc ul { margin: 0 0 30px; padding: 0; list-style: none; }
.sh-inc ul:last-child { margin-bottom: 0; }
.sh-inc li { position: relative; padding: 9px 0 9px 24px; border-bottom: 1px solid var(--sand-200); }
.sh-inc li::before { content: ""; position: absolute; left: 0; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-deep); }
.sh-inc ul:last-child li::before { background: transparent; border: 1.5px solid var(--sun-deep); width: 7px; height: 7px; }

/* Other ship */
.sh-other { padding: var(--sec) 0; background: var(--sand-50); }
body.cc a.sh-other__card { display: grid; overflow: hidden; border-radius: 18px; background: var(--white); color: var(--sea-900); box-shadow: 0 1px 0 var(--sand-200), 0 36px 60px -44px rgba(6, 26, 32, .45); }
.sh-other__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.sh-other__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sh-other__card:hover img { transform: scale(1.04); }
.sh-other__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 26px 22px 28px; }
body.cc .sh-other__body h3 { font-size: clamp(40px, 10vw, 60px); line-height: 1; }
body.cc .sh-other__body h3 em { color: var(--teal-700); font-style: italic; }
.sh-other__desc { font-size: 16px; line-height: 1.6; color: #3d4f55; max-width: 44ch; }
.sh-other__card:hover .yc-arrow { transform: translateX(5px); }

/* Closing band */
.sh-cta { padding: clamp(72px, 12vw, 130px) 0; background: var(--sea-900); color: var(--white); }
body.cc .sh-cta .yc-title { max-width: 16ch; color: var(--white); }
body.cc .sh-cta .yc-title em { color: var(--sun); }
.sh-cta .yc-lede { margin-top: 22px; max-width: 34ch; color: rgba(255, 255, 255, .86); }
body.cc .sh-cta .yc-hero__cta .cc-btn { flex: 1 1 auto; justify-content: center; }

@media (min-width: 640px) {
  .sh-sheet__grid { grid-template-columns: repeat(4, 1fr); }
  .sh-sheet__grid > div:nth-child(2n+1) { padding-left: 16px; border-left: 1px solid var(--sand-200); }
  .sh-sheet__grid > div:nth-child(4n+1) { padding-left: 0; border-left: 0; }
  .sh-amen { grid-template-columns: repeat(5, 1fr); }
  .sh-amen li:last-child:nth-child(odd) { grid-column: auto; }
  .sh-actions { display: flex; flex-wrap: wrap; }
  body.cc .sh-hero .yc-hero__cta .cc-btn, body.cc .sh-cta .yc-hero__cta .cc-btn { flex: 0 0 auto; padding: 17px 30px; }
}
@media (min-width: 768px) {
  .sh-hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: max(620px, 88svh); overflow: hidden; isolation: isolate; }
  .sh-hero__pic { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; }
  .sh-hero__pic img { object-position: var(--pos-d, 50% 50%); }
  .sh-hero__pic::after { background: linear-gradient(180deg, rgba(6, 26, 32, .5) 0%, rgba(6, 26, 32, 0) 30%, rgba(6, 26, 32, .1) 52%, rgba(6, 26, 32, .82) 100%), linear-gradient(90deg, rgba(6, 26, 32, .35) 0%, rgba(6, 26, 32, 0) 55%); }
  .sh-hero__in { width: 100%; max-width: var(--container); margin: 0 auto; padding: 130px var(--gutter) 72px; border-radius: 0; background: none; }
  .sh-details__img { margin: 0; }
  .sh-details__img img { border-radius: 18px; }
  .sh-gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .sh-gallery a { border-radius: 14px; }
  .sh-gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  body.cc a.sh-other__card { grid-template-columns: 1.15fr 1fr; }
  .sh-other__img { aspect-ratio: auto; min-height: 340px; }
  .sh-other__body { padding: 40px; }
}
@media (min-width: 960px) {
  .sh-intro__text { grid-template-columns: 1.1fr 1fr; gap: 0 80px; align-items: start; }
  .sh-details__grid { grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
  .sh-details__img { position: sticky; top: 100px; }
  .sh-equip__grid { grid-template-columns: 1fr 1fr; gap: 96px; }
  .sh-pricing__grid { grid-template-columns: 7fr 5fr; gap: 88px; align-items: start; }
  .sh-inc { padding: 40px 38px; }
}
