﻿.brand-copy .brand-descriptor { display:block; font-size:10px; font-weight:500; color:var(--secondary); }
html:lang(ru) .site-header .brand-descriptor { letter-spacing:-.02em; }
.island-carousel { margin-block:clamp(30px,6vw,84px); text-align:center; }
html body[data-page=home] #main > .island-carousel {
  max-width:none; margin-block:0; padding:clamp(30px,3vw,48px) 0 20px; border:0;
}
html body[data-page] .island-carousel h1 {
  margin:0 auto 14px; padding-inline:var(--page-gutter); font-size:clamp(40px,6.6vw,100px);
  letter-spacing:-.036em; line-height:1.03; text-wrap:balance;
}
.island-carousel > .island-lede { margin:0 auto 24px; max-width:48ch; padding-inline:16px; color:var(--secondary); font-size:18px; line-height:1.27; }
.hero-chips { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; padding-inline:12px; }
.hero-chip {
  display:inline-flex; align-items:center; gap:.3em; min-height:46px; padding:0 22px;
  font-size:14px; font-weight:600; border-radius:999px; color:var(--ink);
  background:var(--glass); border:1px solid var(--line); box-shadow:var(--pill-shadow);
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
}
.island-stage {
  min-height:clamp(365px,35vw,510px);
  --card-width:min(44vw,520px);
  position:relative; display:grid; grid-auto-flow:column; grid-auto-columns:var(--card-width);
  gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; touch-action:pan-y pinch-zoom;
  max-width:1360px; margin:24px auto 0;
}
.island-stage a {
  display:grid; grid-template-rows:72% 1fr; min-width:0; min-height:290px; aspect-ratio:1.34;
  scroll-snap-align:center; border:1px solid var(--line); border-radius:30px; overflow:hidden;
  color:var(--ink); background:var(--glass); box-shadow:0 38px 70px rgba(40,60,120,.18);
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
}
html body[data-page] .island-stage img { display:block; width:100%; height:100%; object-fit:cover; border-radius:0; user-select:none; -webkit-touch-callout:none; }
.island-stage a > span { display:grid; align-content:start; gap:3px; text-align:left; padding:clamp(12px,1.4vw,19px); }
.island-stage strong { font-size:clamp(16px,1.45vw,21px); font-weight:800; line-height:1.15; }
.island-stage a:is([data-position=left],[data-position=right]) strong { font-size:clamp(16px,1.35vw,19px); }
.island-stage small { color:var(--secondary); font-size:14px; line-height:1.3; }
[data-ready] .island-stage { display:block; height:clamp(365px,35vw,510px); overflow:clip; scroll-snap-type:none; }
[data-ready] .island-stage a {
  position:absolute; left:50%; top:5%; width:var(--card-width); min-height:0;
  transform:translateX(-50%) translateX(var(--offset,0px)) translateY(var(--drop,0px)) perspective(1400px) rotateY(var(--yaw,0deg)) rotateX(var(--pitch,0deg));
}
[data-carousel-motion] .island-stage a { transition:transform 540ms cubic-bezier(.23,1,.32,1), width 540ms cubic-bezier(.23,1,.32,1), opacity 240ms ease; }
.island-stage a[data-position=center] { z-index:2; --pitch:6deg; }
.island-stage a[data-position=left] { --offset:calc(var(--card-width) * -.77); --yaw:22deg; }
.island-stage a[data-position=right] { --offset:calc(var(--card-width) * .77); --yaw:-22deg; }
[data-ready] .island-stage a:is([data-position=left],[data-position=right]) { width:min(26vw,310px); --drop:56px; z-index:1; aspect-ratio:1.12; grid-template-rows:65% 1fr; }
[data-ready] .island-stage a[data-position=away] { opacity:0; visibility:hidden; pointer-events:none; }
.island-stage a:focus-visible { outline-offset:-5px; }
@media (prefers-reduced-motion:no-preference) {
  [data-ready] .island-stage a:not([data-position=away]) { animation:island-float 7s ease-in-out infinite; }
  .island-stage a[data-position=left] { animation-delay:-2s; }
  .island-stage a[data-position=right] { animation-delay:-4s; }
  @keyframes island-float { 50% { translate:0 -11px; } }
  .island-carousel:is(:hover,:focus-within,:active) .island-stage a { animation-play-state:paused; }
}
.island-controls { display:flex; align-items:center; justify-content:center; gap:6px; margin:-26px auto 0; position:relative; z-index:3; }
.island-controls[hidden] { display:flex; visibility:hidden; }
.island-controls [hidden] { display:none; }
.island-dots { display:flex; }
.v7-step,.island-dots button {
  display:grid; place-items:center; min-width:44px; min-height:44px; padding:0;
  color:var(--ink); border:0; border-radius:100px; background:transparent; cursor:pointer;
  touch-action:manipulation; user-select:none;
}
.v7-step { font-size:22px; background:var(--glass); border:1px solid var(--line); }
.v7-step:active,.island-dots button:active { background:var(--tint); }
.island-dots button { min-width:clamp(20px,4.4vw,36px); }
.island-dots button::after { content:""; width:7px; height:7px; border-radius:50%; background:#63767e; }
.island-dots button[aria-current=true]::after { background:var(--ink); box-shadow:0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.fleet-stage { padding-block:0 clamp(32px,6vw,96px); }
.fleet-stage-heading { margin-bottom:clamp(24px,4vw,52px); }
.fleet-stage-heading h1,.fleet-teaser h2 { font-size:clamp(48px,9vw,136px); line-height:1; margin:0; }
.fleet-stage-heading p,.fleet-teaser-copy p { color:var(--secondary); margin-top:10px; }
.fleet-lineup { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.fleet-lineup a {
  position:relative; display:grid; align-items:end; isolation:isolate; overflow:hidden;
  min-height:clamp(285px,31vw,510px); border:1px solid var(--line); border-radius:16px; color:var(--ink);
  background:var(--glass);
}
.fleet-lineup img { position:absolute; inset:0; z-index:-2; }
.fleet-lineup a > div { padding:clamp(12px,2vw,30px); }
.fleet-lineup h2 { margin:0; font-size:clamp(19px,2.7vw,48px); line-height:1.05; overflow-wrap:anywhere; }
.fleet-lineup p { margin:7px 0 0; }
.fleet-lineup strong { font-size:clamp(26px,4vw,64px); line-height:1; }
.fleet-teaser { position:relative; display:grid; grid-template-columns:1.55fr 1fr; align-items:center; gap:clamp(20px,4vw,64px); }
.fleet-teaser img { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:16px; }
.fleet-teaser .button { margin-top:12px; }


.fleet-subnav {
  position:sticky; z-index:5; top:var(--header-height); margin-inline:calc(50% - 50vw);
  background:var(--surface); border-bottom:1px solid var(--line);
}
.fleet-subnav > div { display:flex; gap:clamp(6px,3vw,44px); justify-content:center; flex-wrap:wrap; padding:5px; }
.fleet-subnav a { display:grid; align-items:center; min-height:44px; padding:0 5px; color:var(--ink); }
.fleet-specs,.fleet-gallery,.fleet-trips { scroll-margin-top:calc(var(--header-height) + 105px); margin-block:clamp(48px,8vw,128px); }
.fleet-specs dl { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:22px 0 12px; }
.fleet-specs dl > div { display:flex; flex-direction:column-reverse; align-items:start; }
.fleet-specs dd { font-size:clamp(56px,14vw,188px); font-weight:800; line-height:.95; margin:0; font-variant-numeric:tabular-nums; }
.fleet-specs dt,.fleet-specs dd small { color:var(--secondary); font-size:clamp(14px,2vw,24px); }
.fleet-specs dt { margin-top:12px; }
@media (prefers-reduced-motion:no-preference) {
  .fleet-specs [data-reveal=true] dd { animation:fleet-numerals 360ms cubic-bezier(.23,1,.32,1); }
  @keyframes fleet-numerals { from { clip-path:inset(0 0 100%); } to { clip-path:inset(0); } }
}
.fleet-feature {
  margin-inline:0; display:grid; grid-template-columns:1.65fr 1fr; align-items:center;
  background:var(--glass); margin-block:20px;
}
.fleet-feature-reverse { grid-template-columns:1fr 1.65fr; }
.fleet-feature-reverse > div:first-child { grid-column:2; grid-row:1; }
.fleet-feature-reverse > div:last-child { grid-column:1; grid-row:1; }
.fleet-feature img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:0; }
.fleet-feature > div:last-child { padding:clamp(24px,6vw,88px); }
.fleet-feature h2 { font-size:clamp(30px,4.5vw,68px); line-height:1.07; margin:0 0 12px; }
.fleet-feature p { color:var(--secondary); }
.fleet-gallery .tour-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.fleet-gallery .tour-gallery a,.fleet-trip { display:block; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); }
.fleet-gallery .tour-gallery img { width:100%; aspect-ratio:16/10; height:auto; object-fit:cover; border-radius:0; display:block; }
.fleet-gallery .photo-lightbox img { touch-action:pan-y pinch-zoom; }
.fleet-trip-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.fleet-trip { background:var(--glass); padding-bottom:14px; color:var(--ink); }
.fleet-trip img { height:auto; aspect-ratio:16/9; display:block; }
.fleet-trip :is(span,small) { display:block; margin:10px 14px 0; }
.fleet-trip span { font-size:clamp(23px,3vw,40px); line-height:1.1; }
@media (hover:hover) and (pointer:fine) {
  .v7-step:hover,.island-dots button:hover { background:var(--tint); }
  .fleet-lineup a:hover,.fleet-gallery a:hover,.fleet-trip:hover { border-color:var(--marker); }
}
@media (max-width:950px) { .fleet-lineup { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) {
  .island-stage { --card-width:77vw; }
  .fleet-teaser,.fleet-feature,.fleet-feature-reverse,.fleet-trip-grid { grid-template-columns:1fr; }
  .fleet-feature-reverse > div { grid-area:auto !important; }
  .fleet-lineup a { min-height:230px; }
  .fleet-subnav > div { gap:4px; font-size:clamp(11px,3.3vw,15px); }
}
@media (prefers-reduced-motion:reduce) { [data-carousel-motion] .island-stage a { transition:none; } }
body[data-page=tours] #main > .island-carousel { grid-column:1/-1; width:100%; }
html body[data-page=home] .fleet-teaser h2 { font-size:clamp(46px,7vw,100px); line-height:1; }
@media (max-width:760px) {
  html body[data-page] .island-carousel h1 { max-width:100%; font-size:clamp(33px,10.25vw,54px); }
  html body[data-page] .island-carousel h1 strong { white-space:nowrap; }
  html:lang(ru) body[data-page] .island-carousel h1 { font-size:clamp(30px,8.7vw,48px); }
  .hero-chip { padding-inline:15px; }
  .island-stage { min-height:clamp(365px,111vw,480px); --card-width:86vw; margin-top:22px; }
  [data-ready] .island-stage { height:clamp(365px,111vw,480px); }
  [data-ready] .island-stage a { top:3%; aspect-ratio:.82; }
  [data-ready] .island-stage a:is([data-position=left],[data-position=right]) { visibility:hidden; pointer-events:none; }
  .island-controls { margin-top:-10px; gap:3px; }
}
/* fleet lineup: Maybach-style — boat image clean on top, name + spec below (no text over photo) */
.fleet-lineup a { border-radius:var(--radius); box-shadow:var(--glass-shadow); display:flex; flex-direction:column; align-items:stretch; min-height:0; }
.fleet-lineup a::after { content:none; }
.fleet-lineup img { position:static; z-index:auto; height:auto; aspect-ratio:4/5; }
.fleet-lineup a > div { padding:clamp(14px,1.6vw,24px); }
.fleet-lineup h2 { font-size:clamp(20px,1.9vw,32px); overflow-wrap:normal; text-wrap:balance; }
.fleet-lineup strong { font-size:clamp(34px,3.6vw,60px); }
@media (max-width:760px) {
  .fleet-lineup { grid-template-columns:1fr; gap:16px; }
  .fleet-lineup a { min-height:0; }
  .fleet-lineup img { aspect-ratio:16/10; }
}
:is(:lang(th),:lang(ko),:lang(zh-Hans),:lang(ru)) .fleet-lineup h2 { font-size:clamp(18px,1.55vw,26px); }

.fleet-trip,.fleet-lineup a { -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur); }
.fleet-feature > div:last-child { padding:clamp(14px,3vw,44px); }

html body[data-page] .island-stage a[href*="/tours/phi-phi/"] img { object-position:50% 70% !important; }
html body[data-page] .island-stage a[href*="/tours/similan/"] img { object-position:50% 65% !important; }

/* v8 review fix: inclusion headings must not break mid-word on phones */
html body[data-page] .tour-inclusions h2 { font-size:clamp(17px,1.4vw,22px); line-height:1.2; overflow-wrap:normal; word-break:normal; hyphens:none; }
@media (max-width:560px) { html body[data-page] .tour-inclusions { grid-template-columns:1fr; } }
/* v8 review fix: guide article heroes kept the old dark green panel + shade, making text unreadable */
html body[data-page] .practical-hero.glass-hero { background:rgba(255,255,255,.62); color:var(--ink); min-height:0; }
html body[data-page] .practical-hero.glass-hero::after { content:none; }
html body[data-page] .practical-hero.glass-hero p { color:var(--secondary); }
html:lang(th) body[data-page] :is(h1,h2,h3) { text-wrap:wrap; }
html body[data-page] .glass-hero .hero-content :is(h1,h2) { overflow-wrap:normal; word-break:normal; hyphens:manual; font-size:clamp(32px,4.4vw,64px); }

/* owner: "why doesn't it move like the prototype?" — phones hid the side panels and a blob; iOS sticky :hover paused the float */
@media (prefers-reduced-motion:no-preference) {
  .island-carousel:is(:hover,:focus-within,:active) .island-stage a { animation-play-state:running; }
  @media (hover:hover) and (pointer:fine) { .island-carousel:is(:hover,:focus-within) .island-stage a { animation-play-state:paused; } }
  @keyframes island-float { 50% { translate:0 -14px; } }
}
@media (max-width:760px) {
  .pastel-field i:nth-child(3) { display:block; width:300px; height:320px; }
  .island-stage { --card-width:68vw; }
  [data-ready] .island-stage a:is([data-position=left],[data-position=right]) { visibility:visible; pointer-events:auto; width:44vw; --drop:48px; opacity:.92; }
  .island-stage a[data-position=left] { --offset:calc(var(--card-width) * -.74); --yaw:26deg; }
  .island-stage a[data-position=right] { --offset:calc(var(--card-width) * .74); --yaw:-26deg; }
  .island-stage a:is([data-position=left],[data-position=right]) > span { display:none; }
}
/* studio boat lineup: whole boat visible, 2x2 showroom grid */
html body[data-page] .fleet-lineup { grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(14px,2vw,24px); }
html body[data-page] .fleet-lineup img { aspect-ratio:16/10; object-fit:cover; object-position:50% 50%; }
@media (max-width:760px) { html body[data-page] .fleet-lineup { grid-template-columns:1fr; } }

/* fleet look-around (exterior angles) + interior pano */
.fleet-look h2 { margin-bottom:14px; }
.orbit { position:relative; aspect-ratio:16/10; border-radius:28px; overflow:hidden; background:#eef3f9; cursor:grab; touch-action:pan-y; user-select:none; box-shadow:0 30px 70px rgba(40,60,120,.14); }
.orbit:active { cursor:grabbing; }
.orbit-frame { position:absolute; inset:0; opacity:0; transition:opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1); transform:scale(.985); }
.orbit-frame.on { opacity:1; transform:none; }
.orbit-frame img { width:100%; height:100%; object-fit:cover; pointer-events:none; }
.look-hint { position:absolute; left:50%; bottom:46px; transform:translateX(-50%); margin:0; padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.75); backdrop-filter:blur(12px); font-size:13px; white-space:nowrap; pointer-events:none; }
.orbit-dots { position:absolute; left:0; right:0; bottom:14px; display:flex; justify-content:center; gap:8px; }
.orbit-dots button { width:10px; height:10px; min-height:0; padding:0; border-radius:99px; border:0; background:rgba(18,34,34,.25); cursor:pointer; }
.orbit-dots button[aria-pressed=true] { width:26px; background:#122; }
.look-inside-title { margin-top:clamp(28px,4vw,48px); }
.pano { position:relative; height:clamp(320px,52vw,620px); border-radius:28px; overflow:hidden; cursor:grab; touch-action:pan-y; user-select:none; background:#dfe8f0; box-shadow:0 30px 70px rgba(40,60,120,.14); }
.pano-track { height:100%; }
.pano-track img { position:absolute; top:0; left:0; height:100%; width:auto; max-width:none; opacity:0; transition:opacity .35s; pointer-events:none; }
.pano-track img.on { opacity:1; }
.pano .look-hint { bottom:16px; }
.pano-thumbs { display:flex; gap:10px; margin-top:12px; }
.pano-thumbs button { width:96px; height:64px; min-height:0; padding:0; border-radius:14px; overflow:hidden; border:2px solid transparent; cursor:pointer; background:none; }
.pano-thumbs button[aria-pressed=true] { border-color:#122; }
.pano-thumbs img { width:100%; height:100%; object-fit:cover; }

/* 360° 3D spin viewer + flyover */
.spin { position:relative; aspect-ratio:16/10; border-radius:28px; overflow:hidden; background:linear-gradient(#f7faff,#dfeaf6); cursor:grab; touch-action:pan-y; user-select:none; box-shadow:0 30px 70px rgba(40,60,120,.14); }
.spin:active { cursor:grabbing; }
.spin img { width:100%; height:100%; object-fit:contain; pointer-events:none; }
.spin-badge { position:absolute; top:14px; left:14px; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.8); backdrop-filter:blur(10px); font-size:12px; font-weight:600; }
.spin .look-hint { bottom:16px; }
.flyover { margin:0; }
.flyover video { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:28px; display:block; box-shadow:0 30px 70px rgba(40,60,120,.14); background:#dfe8f0; }
.flyover figcaption { font-size:13px; color:var(--secondary); margin-top:8px; }
