/* Componentes do refinamento: catalogo, galeria e ampliacao de fotos. */
.fleet-section { background: var(--surface); }
.fleet-section .section-heading { max-width: 820px; }
.fleet-section .eyebrow { color: var(--accent-ink); }
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 22px;
}
.boat-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgb(5 48 63 / 8%);
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
}
.boat-card:nth-last-child(2) { grid-column: 2 / span 2; }
.boat-card:last-child { grid-column: 4 / span 2; }
.boat-photo {
  aspect-ratio: 16 / 10;
  background: var(--surface-tint);
  display: block;
  overflow: hidden;
  position: relative;
}
.boat-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.boat-media .boat-photo { aspect-ratio: auto; height: 100%; inset: 0; position: absolute; touch-action: pan-y; width: 100%; }
.boat-media .boat-next-image { opacity: 0; pointer-events: none; transition: opacity 480ms ease; z-index: 1; }
.boat-media .boat-next-image:not([src]) { visibility: hidden; }
.boat-media .boat-next-image.is-visible { opacity: 1; }
.boat-media .boat-photo-action { bottom: auto; right: 12px; top: 12px; z-index: 2; }
.boat-media-count {
  background: rgb(255 255 255 / 96%);
  border-radius: 5px;
  bottom: 12px;
  color: var(--text);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  left: 12px;
  padding: 8px 10px;
  position: absolute;
  z-index: 3;
}
.boat-photo img {
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform 500ms var(--ease);
}
.boat-card-golden .boat-photo img { object-position: center 68%; }
.boat-photo-action {
  background: rgb(255 255 255 / 96%);
  border-radius: 6px;
  bottom: 14px;
  color: #082c3a;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 9px 12px;
  position: absolute;
  right: 14px;
}
.photo-link { cursor: zoom-in; }
.photo-link:focus-visible { outline-offset: -5px; }
@media (hover: hover) {
  .boat-photo:hover img { transform: scale(1.035); }
}
.boat-copy { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.boat-title { display: flex; gap: 14px; align-items: baseline; justify-content: space-between; }
.boat-title h3 { font-size: clamp(1.35rem, 1.8vw, 1.65rem); line-height: 1.2; margin: 0; }
.boat-title > span { color: var(--accent-ink); font-size: .82rem; white-space: nowrap; }
.boat-description { color: var(--muted); font-size: .9rem; line-height: 1.45; margin: 8px 0 18px; min-height: 2.6em; }
.boat-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.boat-specs dt { color: var(--muted); font-size: .74rem; margin-bottom: 3px; }
.boat-specs dd { font-size: .9rem; font-weight: 700; line-height: 1.3; margin: 0; }
.boat-amenities { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 18px; padding: 0; }
.boat-amenities li { background: var(--surface-tint); border-radius: 4px; color: var(--text); font-size: .72rem; padding: 5px 8px; }
.boat-actions { align-items: start; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: auto; }
.boat-details { min-width: 0; }
.boat-details summary {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
  color: var(--accent-ink);
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: .84rem;
  text-align: center;
  white-space: nowrap;
}
.boat-details summary::-webkit-details-marker { display: none; }
.boat-details summary > span { font-size: 1.1rem; font-weight: 400; line-height: 1; transition: transform 180ms ease; }
.boat-details[open] summary > span { transform: rotate(45deg); }
.boat-details[open], .boat-details[open] + .boat-booking { grid-column: 1 / -1; }
.boat-details-body { background: var(--surface-tint); border-radius: 6px; color: var(--muted); font-size: .84rem; line-height: 1.45; margin-top: 8px; padding: 12px; }
.boat-details-body p { margin: 0 0 10px; }
.boat-details-body p:last-child { margin-bottom: 0; }
.boat-booking { font-size: .84rem; gap: 8px; justify-content: center; min-height: 46px; padding: 8px 10px; white-space: nowrap; width: 100%; }
.boat-booking > span { font-size: 1rem; }
.fleet-note { color: var(--muted); font-size: .9rem; margin: 32px 0 0; }

.reviews-section {
  background: var(--surface-raised);
  color: var(--text);
}
.reviews-heading { max-width: 100%; margin-bottom: clamp(36px, 5vw, 64px); }
.reviews-heading .eyebrow { color: var(--accent-ink); }
.reviews-heading h2 { max-width: 1050px; }
.stories-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(44px, 7vw, 100px); align-items: center; }
.stories-visual { min-width: 0; scroll-margin-top: 98px; }
.stories-frame { aspect-ratio: 1.13; background: var(--surface-tint); border-radius: var(--radius); isolation: isolate; overflow: hidden; position: relative; touch-action: pan-y; }
.story-slide { display: block; height: 100%; inset: 0; position: absolute; width: 100%; }
.story-slide:not(:first-child) { display: none; }
.story-slide img { height: 100%; object-fit: cover; width: 100%; }
.stories-frame.has-carousel .story-slide { display: block; opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(8px) scale(1.01); transition: opacity 540ms ease, transform 650ms var(--ease), visibility 0s linear 650ms; }
.stories-frame.has-carousel .story-slide.is-current { opacity: 1; pointer-events: auto; visibility: visible; transform: none; transition: opacity 540ms ease, transform 650ms var(--ease); z-index: 1; }
.stories-frame.has-carousel .story-slide.is-incoming { z-index: 2; }
.stories-meta { display: flex; justify-content: flex-end; padding-top: 10px; }
.stories-meta span { color: var(--muted); flex: none; font-size: .78rem; font-variant-numeric: tabular-nums; }
.stories-controls { align-items: center; display: flex; margin-top: 8px; }
.stories-view { background: transparent; border: 0; border-bottom: 1px solid var(--accent-strong); color: var(--accent-ink); cursor: pointer; font-size: .83rem; font-weight: 650; min-height: 44px; padding: 8px 0; }
.quote-pagination { align-items: center; display: flex; flex: none; }
.quote-pagination button { align-items: center; background: transparent; border: 0; cursor: pointer; display: inline-flex; height: 44px; justify-content: center; padding: 0; width: 44px; }
.quote-pagination button::after { background: var(--muted); border-radius: 20px; content: ""; height: 7px; opacity: .5; transition: width 220ms ease, background-color 220ms ease, opacity 220ms ease; width: 7px; }
.quote-pagination button[aria-pressed="true"]::after { background: var(--accent-strong); opacity: 1; width: 20px; }
.reviews-testimonials {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.review-heading .eyebrow { font-size: .7rem; color: var(--accent-ink); }
.review-heading h3 { font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.12; margin-bottom: 16px; }
.review-intro { color: var(--muted); font-size: .96rem; line-height: 1.55; margin: 0 0 34px; max-width: 39ch; }
.review-copy { border-top: 1px solid var(--line); padding-top: 30px; }
.quote-stage { min-height: 190px; touch-action: pan-y; }
.quote-stage blockquote { margin: 0 0 20px; font-size: clamp(1.25rem, 1.8vw, 1.65rem); line-height: 1.42; letter-spacing: -.025em; }
.quote-stage > p { color: var(--accent-ink); font-size: .88rem; font-weight: 650; margin-bottom: 12px; }
.quote-note { color: var(--muted); display: block; font-size: .76rem; margin-top: -8px; }
.quote-controls { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.quote-controls > span { font-size: .8rem; color: var(--muted); min-width: 45px; text-align: right; }
.round-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: var(--text);
  cursor: pointer;
  transition: background-color 180ms ease;
}
.round-control:hover { background: var(--accent-strong); color: #fff; }

body.photo-open { overflow: hidden; }
.photo-dialog {
  background: #072d3c;
  color: #f3fafb;
  --text: #f3fafb;
  --line: rgb(229 246 250 / .3);
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.photo-dialog::backdrop { background: rgb(1 16 25 / .9); }
.photo-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.photo-dialog-toolbar h2 { font-size: 1.05rem; letter-spacing: 0; line-height: 1.4; margin: 0; }
.dialog-close { background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 9px 15px; min-height: 44px; cursor: pointer; }
.dialog-close span { padding-left: 12px; }
.photo-dialog-stage { display: grid; place-items: center; background: #05212e; min-height: 180px; touch-action: pan-y; }
.photo-dialog-stage img { width: 100%; height: min(65dvh, 740px); object-fit: contain; }
.photo-error { padding: 25px; text-align: center; margin: 0; }
.photo-dialog-footer { display: flex; justify-content: flex-end; padding-top: 16px; }
.photo-navigation { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.photo-navigation > span { font-size: .8rem; min-width: 48px; text-align: center; }
.dialog-nav-button { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: inherit; cursor: pointer; font-size: .82rem; min-height: 44px; padding: 8px 12px; }
.dialog-nav-button:hover { background: rgb(255 255 255 / 12%); }

@media (max-width: 1100px) {
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boat-card, .boat-card:nth-last-child(2) { grid-column: auto; }
  .boat-card:last-child { grid-column: 1 / -1; justify-self: center; width: min(100%, 450px); }
  .boat-copy { padding: 22px; }
  .boat-amenities { gap: 6px; }
  .stories-layout { gap: 44px; }
}
@media (max-width: 767px) {
  .fleet-grid { gap: 18px; grid-template-columns: minmax(0, 1fr); }
  .boat-card, .boat-card:nth-last-child(2), .boat-card:last-child { grid-column: auto; width: 100%; }
  .boat-title h3 { font-size: 1.55rem; }
  .boat-copy { padding: 22px; }
  .boat-specs dd { font-size: .92rem; }
  .boat-details summary, .boat-booking { font-size: .84rem; min-height: 48px; }
  .stories-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .stories-frame { aspect-ratio: 1.06; }
  .review-heading h3 { max-width: 13ch; }
  .review-intro { margin-bottom: 26px; }
  .quote-stage { min-height: 175px; }
  .photo-dialog { padding: 16px; }
  .photo-dialog-toolbar h2 { font-size: .92rem; }
  .photo-dialog-footer { justify-content: center; }
  .photo-dialog-stage img { height: 52dvh; }
}
@media (max-width: 370px) {
  .boat-copy { padding: 18px; }
  .boat-title h3 { font-size: 1.4rem; }
  .boat-specs { gap: 12px; }
  .boat-specs dd { font-size: .86rem; }
  .boat-actions { gap: 8px; }
  .boat-details summary, .boat-booking { font-size: .82rem; padding-inline: 6px; }
  .boat-booking > span { display: none; }
  .boat-media-count { bottom: 8px; font-size: .7rem; left: 8px; padding-inline: 7px; }
}
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .boat-photo img, .boat-media .boat-next-image, .boat-details summary > span, .round-control, .stories-frame.has-carousel .story-slide, .quote-pagination button::after { transition: none; }
}
