/* Yacht charter index, MY Ohana and MS Melody. Depends on site.css tokens. */
:root { --yacht-surface-elevated: var(--sand-50); --yacht-space-lg: 48px; }

/* Hero */
.yacht-hero { position: relative; display: flex; align-items: flex-end; min-height: min(78vh, 760px); min-height: min(78svh, 760px); color: var(--white); background: var(--sea-900); overflow: hidden; }
.yacht-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yacht-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 29, 36, .4) 0%, rgba(7, 29, 36, 0) 32%, rgba(7, 29, 36, .72) 100%); }
.yacht-hero-content { position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto; padding: 150px var(--gutter) clamp(40px, 7vw, 88px); }
body.cc .yacht-hero-title, body.cc .fl-hero h1 { color: var(--white); font-size: clamp(44px, 7vw, 96px); line-height: .98; }
.yacht-hero-title span, .fl-hero h1 span { display: block; margin-top: 16px; font: 500 clamp(18px, 2vw, 26px)/1.3 var(--font-sans); letter-spacing: .02em; opacity: .92; }
.yacht-hero-subtitle { max-width: 52ch; margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 19px); opacity: .9; }

/* Generic sections */
.yacht-section { padding: clamp(64px, 9vw, 120px) 0; }
.yacht-section-sm { padding: clamp(48px, 7vw, 88px) 0; }
.yacht-content-block { max-width: 760px; margin: 0 auto; }
.yacht-content-block h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 24px; }
.yacht-section-header { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
body.cc .yacht-section-title { font-size: clamp(34px, 4.6vw, 58px); }
.yacht-section-subtitle { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.yacht-divider { width: 56px; height: 2px; margin: 22px auto 0; background: var(--teal-500); }
.yacht-lead-text { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; color: var(--sea-900); }
.yacht-text-highlight { color: var(--teal-700); font-weight: 600; }
.yacht-feature-image { margin: 40px 0 0; }
.yacht-feature-image img { width: 100%; border-radius: var(--radius); }
.yacht-feature-image figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* Fleet cards (index) */
.yacht-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.yacht-card { overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 0 var(--sand-200), 0 24px 48px -28px rgba(11, 42, 51, .35); }
.yacht-card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.yacht-card-image img { width: 100%; height: 100%; object-fit: cover; }
.yacht-card-badge { position: absolute; left: 20px; top: 20px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--sea-900); font: 600 12px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.yacht-card-content { padding: clamp(24px, 3vw, 36px); }
body.cc .yacht-card-title { font-size: clamp(32px, 3.4vw, 42px); }
.yacht-card-year { margin: 4px 0 18px; color: var(--teal-700); font-weight: 600; font-size: 14px; }
.yacht-card-description { color: var(--muted); font-size: 16px; }
.yacht-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 24px 0; border-top: 1px solid var(--sand-200); }
.yacht-spec-item { padding: 14px 0; border-bottom: 1px solid var(--sand-200); }
.yacht-spec-label { display: block; font: 600 11px/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.yacht-spec-value { display: block; margin-top: 4px; font: 500 22px/1.2 var(--font-serif); color: var(--sea-900); }
.yacht-card-pricing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.yacht-price { display: block; font: 500 26px/1.1 var(--font-serif); color: var(--sea-900); }
.yacht-price-period { font-size: 13px; color: var(--muted); }
body.cc .yacht-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--sea-900); color: var(--white); font: 600 15px/1 var(--font-sans); transition: background .2s; }
body.cc .yacht-cta-btn:hover { background: var(--teal-700); }

/* FAQ accordion (native details) */
.yacht-faq-container, .fl-acc-wrap { max-width: 820px; margin: 0 auto; }
.cc-faq { border-bottom: 1px solid var(--sand-200); }
.cc-faq:first-of-type { border-top: 1px solid var(--sand-200); }
.cc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; }
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--teal-700); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.cc-faq[open] summary::after { transform: rotate(225deg); }
body.cc .cc-faq summary h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
body.cc .cc-faq summary .fl-acc-title { font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--font-serif); color: var(--sea-900); }
.cc-faq__a { padding: 0 0 26px; color: var(--muted); font-size: 16px; }
.cc-faq__a p:last-child { margin-bottom: 0; }

/* Scroller (carousel replacement) */
.cc-scroller { position: relative; }
.cc-scroller__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px; }
.cc-scroller__track::-webkit-scrollbar { display: none; }
.cc-scroller__track > * { flex: 0 0 86%; scroll-snap-align: start; }
.cc-scroller__btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.cc-scroller__btn { width: 48px; height: 48px; border: 1.5px solid var(--sea-900); border-radius: 50%; background: transparent; color: var(--sea-900); cursor: pointer; transition: background .2s, color .2s; }
.cc-scroller__btn:hover { background: var(--sea-900); color: var(--white); }
.cc-scroller__btn::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border: solid currentColor; border-width: 0 2px 2px 0; }
.cc-scroller__btn[data-dir="next"]::before { transform: translateX(-2px) rotate(-45deg); }
.cc-scroller__btn[data-dir="prev"]::before { transform: translateX(2px) rotate(135deg); }
.yacht-carousel-card { display: block; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 0 var(--sand-200); color: inherit; }
body.cc .yacht-carousel-card:hover { color: inherit; }
.yacht-carousel-image { aspect-ratio: 3 / 2; overflow: hidden; }
.yacht-carousel-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.yacht-carousel-card:hover img { transform: scale(1.05); }
.yacht-carousel-content { padding: 24px; }
body.cc .yacht-carousel-title { font-size: 28px; margin-bottom: 10px; }
.yacht-carousel-description { font-size: 15px; color: var(--muted); }
.yacht-carousel-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal-700); font-size: 15px; }
.yacht-carousel-section .yacht-more { margin-top: 40px; text-align: center; }

/* Testimonials */
.yacht-testimonials { padding: clamp(64px, 9vw, 120px) 0; background: var(--sea-900); color: rgba(255, 255, 255, .85); }
body.cc .yacht-testimonials .yacht-section-title { color: var(--white); }
.yacht-testimonials .yacht-section-subtitle { color: rgba(255, 255, 255, .7); }
.yacht-testimonial-card { height: 100%; padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); }
.yacht-testimonial-text { font: 400 clamp(18px, 1.6vw, 21px)/1.55 var(--font-serif); font-style: italic; }
.yacht-testimonial-author { font-weight: 600; color: var(--white); }
.yacht-testimonial-year { color: var(--teal-500); margin-left: 6px; }
.yacht-testimonials .cc-scroller__btn { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.yacht-testimonials .cc-scroller__btn:hover { background: var(--white); color: var(--sea-900); }

/* Fleet detail pages */
.fl-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.fl-intro p { font-size: clamp(18px, 1.6vw, 21px); }
.fl-video { position: relative; aspect-ratio: 16 / 9; margin-top: 56px; border-radius: var(--radius); overflow: hidden; background: var(--sea-900); }
.fl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fl-split { display: grid; gap: 40px; align-items: start; }
.fl-split__img img { width: 100%; border-radius: var(--radius); }
.fl-year { text-align: center; }
.fl-year .cc-eyebrow { margin-bottom: 10px; }
.fl-specs { display: grid; gap: 0 64px; margin-top: 40px; grid-template-columns: 1fr; }
.fl-spec { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sand-200); }
.fl-spec dt { font: 600 12px/1.6 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fl-spec dd { margin: 0; text-align: right; font: 500 20px/1.3 var(--font-serif); color: var(--sea-900); }
.fl-amenities { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, 1fr); margin: 48px 0 0; padding: 0; list-style: none; text-align: center; }
.fl-amenities img { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; }
body.cc .fl-amenities h3 { font: 600 14px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--sea-900); }
.fl-gallery { margin-top: clamp(48px, 6vw, 72px); }
.fl-gallery .cc-scroller__track > * { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--sand-100); }
.fl-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fl-gallery a:hover img { transform: scale(1.04); }
.fl-equip { display: grid; gap: 40px; align-items: center; }
.fl-equip ul { margin: 28px 0 0; padding: 0; list-style: none; }
.fl-equip li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--sand-200); font: 500 24px/1.2 var(--font-serif); color: var(--sea-900); }
.fl-equip li img { width: 40px; height: 40px; object-fit: contain; }
.fl-equip__img img { width: 100%; max-width: 520px; margin: 0 auto; }
.fl-pricing { display: grid; gap: 40px; margin-top: 48px; }
.fl-price { margin: 10px 0 24px; font: 500 clamp(32px, 4vw, 48px)/1.1 var(--font-serif); color: var(--sea-900); }
.fl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
body.cc .fl-actions .cc-btn { border-color: var(--sea-900); color: var(--sea-900); }
body.cc .fl-actions .cc-btn:hover { background: var(--sea-900); color: var(--white); }
.fl-menu { position: relative; }
.fl-menu summary { list-style: none; }
.fl-menu summary::-webkit-details-marker { display: none; }
.fl-menu ul { position: absolute; z-index: 5; left: 0; top: calc(100% + 8px); min-width: 140px; margin: 0; padding: 8px 0; list-style: none; background: var(--white); border-radius: 12px; box-shadow: 0 18px 40px rgba(11, 42, 51, .2); }
body.cc .fl-menu ul a { display: block; padding: 10px 20px; color: var(--sea-900); }
body.cc .fl-menu ul a:hover { background: var(--sand-50); color: var(--teal-700); }
.fl-inc { padding: 32px; border-radius: var(--radius); background: var(--sand-50); }
body.cc .fl-inc h3 { font-size: 28px; margin-bottom: 12px; }
.fl-inc ul { margin: 0 0 28px; padding: 0; list-style: none; }
.fl-inc ul:last-child { margin-bottom: 0; }
.fl-inc li { position: relative; padding: 8px 0 8px 24px; }
.fl-inc li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }
.fl-inc h3 + ul + h3 { margin-top: 8px; }

@media (min-width: 640px) {
  .cc-scroller__track > * { flex-basis: calc(50% - 10px); }
  .fl-amenities { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 768px) {
  .yacht-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .fl-split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .fl-specs { grid-template-columns: 1fr 1fr; }
  .fl-equip { grid-template-columns: 1fr 1fr; gap: 80px; }
  .fl-pricing { grid-template-columns: 2fr 1fr; gap: 72px; align-items: center; }
  .yacht-carousel .cc-scroller__track > *, .cc-scroller--3 .cc-scroller__track > * { flex-basis: calc(33.333% - 14px); }
  .yacht-testimonials .cc-scroller__track > * { flex-basis: calc(50% - 10px); }
  .fl-gallery .cc-scroller__track > * { flex-basis: calc(40% - 12px); }
}

.yacht-faq-section, .yacht-carousel-section { padding: clamp(64px, 9vw, 120px) 0; }

.fl-spec dd, .yacht-spec-value, .yacht-price, .fl-price { font-variant-numeric: lining-nums; }

.fl-label { display: block; font: 600 12px/1.2 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
