.photo-viewer{border:0;padding:0;background:#071f26;color:white;width:min(92vw,1050px);max-width:none;max-height:88vh;overflow:visible}
.photo-viewer::backdrop{background:#03151ce8}
.photo-viewer>img{display:block;width:100%;height:min(75vh,750px);object-fit:contain}
.photo-viewer button{position:absolute;border:0;cursor:pointer;color:#fff;background:#0a303dbd;font-size:28px;width:44px;height:44px;border-radius:50%}
.photo-close{top:12px;right:12px}
.photo-prev{top:50%;left:12px}
.photo-next{top:50%;right:12px}
.photo-count{font:11px 'DM Sans',sans-serif;text-align:center;margin:9px 0 0;color:#d6e5e2}

/* Typography and layout from the Saint Martin boat detail pages. */
body:has(.boat-detail) {
  --ink: #102e38;
  --coral: #d95d36;
  --detail-serif: 'Playfair Display', Georgia, serif;
  --detail-sans: 'DM Sans', Arial, sans-serif;
  font: 18px/1.75 var(--detail-sans);
}
body:has(.boat-detail) .top nav { font-size: 16px; }
body:has(.boat-detail) .top .brand { font-size: 18px; line-height: 1.2; }
body:has(.boat-detail) .nav-cta { font-size: 16px; font-weight: 600; }
.skip-link { position: absolute; left: -9999px; top: 10px; background: white; padding: 12px; z-index: 20; }
.skip-link:focus { left: 12px; }
.boat-detail { max-width: 1340px; padding: 36px 50px 80px; }
.boat-detail .eyebrow { display: block; font-size: 12px; line-height: 1.75; margin: 0 0 16px; }
.back-link { display: inline-block; font-size: 15px; color: #496265; margin: 0 0 28px; }
.boat-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 30px; }
.boat-title > div { min-width: 0; }
.boat-title h1 { font: 500 clamp(42px, 5vw, 70px)/1.1 var(--detail-serif); letter-spacing: -1.8px; margin: 10px 0 14px; }
.boat-subtitle { font-size: 17px; color: var(--muted); }
.boat-subtitle b { padding: 0 9px; font-weight: 400; }
.boat-tag { flex: 0 0 auto; padding: 10px 16px; margin-top: 45px; border-radius: 999px; background: var(--coral); color: white; font-size: 14px; font-weight: 600; line-height: 1.2; }
.detail-gallery { position: relative; display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: 220px 220px; gap: 8px; overflow: hidden; border-radius: 6px; background: var(--ink); }
.detail-gallery .detail-photo:first-child { grid-row: span 2; }
.detail-photo { padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--ink); min-width: 0; }
.detail-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.detail-photo:hover img { transform: scale(1.025); }
.gallery-all { position: absolute; right: 20px; bottom: 20px; padding: 11px 16px; border: 0; border-radius: 3px; background: white; color: var(--ink); font: inherit; cursor: pointer; }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbnails .detail-photo { border-radius: 3px; }
.gallery-thumbnails img { height: 90px; }
.quick-facts { display: grid; grid-template-columns: .7fr 1fr 1fr 1.4fr; gap: 25px; padding: 27px 0; margin: 0; border-bottom: 1px solid var(--line); }
.quick-facts > div { border-right: 1px solid var(--line); padding-right: 20px; }
.quick-facts > div:last-child { border: 0; }
.quick-facts dt { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.quick-facts dd { margin: 0; font-size: 17px; font-weight: 500; }
.inclusions { padding: 26px; margin: 28px 0 38px; background: #f0f5f2; border: 1px solid #dae6df; border-radius: 8px; }
.inclusions h2 { font: 500 clamp(28px, 3vw, 38px)/1.2 var(--detail-serif); letter-spacing: -.5px; margin: 8px 0 22px; }
.include-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.include-columns > div { padding: 24px; background: white; border: 1px solid #dce6e1; border-radius: 6px; }
.include-columns h3 { font: 600 20px/1.4 var(--detail-sans); margin: 0 0 16px; }
.include-columns ul { list-style: none; margin: 0; padding: 0; }
.include-columns li { position: relative; padding-left: 22px; margin: 10px 0; font-size: 17px; line-height: 1.6; }
.include-columns li::before { content: '✓'; position: absolute; left: 0; color: #278368; }
.include-columns .confirm-list li::before { content: '•'; color: #a44b31; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 70px; margin-top: 48px; align-items: start; }
.boat-story, .detail-packages { padding-bottom: 38px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.boat-story h2, .detail-packages h2 { font: 500 34px/1.2 var(--detail-serif); margin: 8px 0 24px; }
.boat-story p { font-size: 18px; line-height: 1.85; margin: 0 0 20px; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.spec-list dt { color: var(--muted); font-size: 13px; }
.spec-list dd { font-size: 17px; font-weight: 500; margin: 0; }
.detail-packages .package-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
.detail-packages .charter-package { padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; }
.charter-package > span { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: #a44b31; }
.charter-package h3 { font: 500 18px/1.4 var(--detail-sans); grid-column: 1; margin: 0; }
.charter-package strong { grid-area: 1 / 2 / span 2; align-self: center; font-size: 18px; }
.charter-package strong small { font: inherit; }
.charter-package p { grid-area: 3 / 1 / auto / -1; font-size: 16px; line-height: 1.5; min-height: 0; margin: 12px 0 0; color: #42666b; }
.price-disclaimer { font-size: 13px; color: var(--muted); }
.booking-card { position: sticky; top: 102px; background: var(--ink); color: white; padding: 30px; border-radius: 5px; }
.booking-card .eyebrow { color: #c9b899; font-size: 11px; letter-spacing: 1.6px; }
.booking-card h2 { font: 500 36px/1.2 var(--detail-serif); margin: 12px 0; }
.booking-card h2 i { font-style: normal; }
.booking-card p { font-size: 15px; color: #dedbd3; }
.booking-summary { display: grid; border-top: 1px solid #ffffff40; margin-top: 24px; padding-top: 20px; }
.booking-summary span { font-size: 12px; color: #c9b899; }
.booking-summary strong { font-size: 16px; font-weight: 400; margin-bottom: 10px; }
.booking-card .button { display: block; width: 100%; text-align: center; padding: 15px 10px; font: 600 15px/1.75 var(--detail-sans); border-radius: 3px; }
.booking-card small { display: block; font-size: 13px; color: #d3d6d5; margin: 20px 0 0; }

@media (max-width: 1050px) {
  .boat-detail { padding: 28px 30px 60px; }
  .detail-columns { gap: 30px; grid-template-columns: minmax(0, 1fr) 310px; }
  .detail-gallery { grid-template-rows: 180px 180px; }
  .booking-card { padding: 23px; }
  .detail-packages .charter-package { grid-template-columns: 1fr; }
  .charter-package strong, .charter-package p { grid-area: auto / 1; }
}
@media (max-width: 760px) {
  .boat-detail { padding: 22px 20px 45px; }
  .boat-title { flex-wrap: wrap; gap: 8px; }
  .boat-title h1 { font-size: 44px; letter-spacing: -1px; }
  .boat-tag { margin-top: 0; }
  .detail-gallery { grid-template-rows: 220px 100px; grid-template-columns: 1fr 1fr; }
  .detail-gallery .detail-photo:first-child { grid-area: 1 / 1 / 2 / -1; }
  .gallery-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .gallery-thumbnails img { height: 70px; }
  .quick-facts { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0; }
  .quick-facts > div { border: 0; padding: 0; }
  .quick-facts dd { font-size: 16px; }
  .inclusions { padding: 18px; margin: 24px 0; }
  .include-columns { grid-template-columns: 1fr; gap: 14px; }
  .include-columns > div { padding: 20px; }
  .include-columns li { font-size: 16px; }
  .detail-columns { display: flex; flex-direction: column; align-items: stretch; gap: 20px; margin-top: 30px; }
  .booking-card { position: static; }
  .boat-story h2, .detail-packages h2 { font-size: 29px; }
  .boat-story p { font-size: 17px; }
  .photo-viewer { width: 96vw; }
  .photo-viewer > img { height: 70vh; }
}
