/* Responsive listing layout. All rules are scoped to yacht detail pages. */
body.listing-page { min-width: 320px; }
.listing-page #SITE_HEADER a:is([aria-current], :hover, :focus-visible) .wGxoBM { color: #fbb040; }
.listing-page #PAGES_CONTAINER { width: 100%; min-width: 0; }
.listing-page-main { background: #fff; color: #1f2a4a; font: 17px/1.55 proxima-n-w01-reg, Arial, sans-serif; }
.listing-page-main *, .listing-page-main *::before, .listing-page-main *::after { box-sizing: border-box; }
.listing-shell { width: min(100% - 80px, 1600px); margin: 0 auto; padding: 22px 0 64px; }
.listing-back { display: inline-block; margin-bottom: 24px; font-size: 14px; color: #5a6376; text-decoration: none; }
.listing-back:hover { color: #1f2a4a; text-decoration: underline; }
.listing-hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.listing-gallery, .listing-summary, .listing-copy, .listing-technical { min-width: 0; }
.listing-page-main .boat-gallery { width: 100%; background: #f2f4f5; }
.listing-page-main .boat-track { height: auto; aspect-ratio: 4 / 3; gap: 0; overscroll-behavior-x: contain; }
.listing-page-main .boat-track a { flex: 0 0 100%; width: 100%; height: 100%; aspect-ratio: auto; }
.listing-page-main .boat-track img { object-fit: contain; }
.listing-page-main .gallery-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: #ffffffed; color: #1f2a4a; text-shadow: none; box-shadow: 0 2px 12px #0002;
}
.listing-page-main .gallery-arrow[data-step="-1"] { left: 14px; }
.listing-page-main .gallery-arrow[data-step="1"] { right: 14px; }
.listing-page-main .gallery-arrow:hover { background: #fbb040; }
.listing-page-main .gallery-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.listing-gallery-tools { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 14px; }
.listing-photo-count { color: #616b7b; font-variant-numeric: tabular-nums; }
.listing-view-photos { font: inherit; background: transparent; border: 0; padding: 6px 0 6px 12px; cursor: pointer; color: #1f2a4a; text-decoration: underline; text-underline-offset: 4px; }
.listing-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 9px; scrollbar-width: thin; scrollbar-color: #b8bfca transparent; }
.listing-thumbnails button { flex: 0 0 96px; border: 2px solid transparent; background: #f2f4f5; padding: 0; cursor: pointer; }
.listing-thumbnails button[aria-current="true"] { border-color: #fbb040; }
.listing-thumbnails img { display: block; width: 100%; height: 68px; object-fit: cover; }
.listing-page-main h1 { margin: 0; font: 700 clamp(30px, 2.6vw, 42px)/1.13 "open sans condensed", sans-serif; overflow-wrap: anywhere; }
.listing-yacht-name { margin: 0 0 8px; color: #667085; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.listing-location { margin: 12px 0 4px; color: #646d7b; font-size: 16px; }
.listing-price { margin: 4px 0 22px; font-size: 30px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; }
.listing-facts { margin: 0; }
.listing-facts > div { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); gap: 18px; padding: 11px 0; border-bottom: 1px solid #e2e5e9; }
.listing-facts dt { color: #697181; font-size: 14px; font-weight: 400; }
.listing-facts dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.listing-facts > div:last-child { border-bottom: 0; }
.listing-actions { display: grid; gap: 10px; margin-top: 24px; }
.listing-button { display: flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 20px; border: 1px solid #fbb040; background: #fbb040; color: #1f2a4a; font: 700 16px/1.4 proxima-n-w01-reg, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.listing-button:hover { background: #f7bd61; border-color: #f7bd61; }
.listing-button:disabled { cursor: wait; opacity: .65; }
.listing-call { display: flex; justify-content: center; align-items: center; min-height: 46px; color: #1f2a4a; border: 1px solid #c6ccd5; font-size: 15px; text-decoration: none; }
.listing-call:hover { border-color: #1f2a4a; background: #f4f6f8; }
.listing-section-nav { display: flex; gap: 32px; margin-top: 44px; border-top: 1px solid #e1e5ea; border-bottom: 1px solid #e1e5ea; overflow-x: auto; }
.listing-section-nav a { flex-shrink: 0; padding: 17px 0; font-size: 15px; color: #1f2a4a; text-decoration: none; border-bottom: 2px solid transparent; }
.listing-section-nav a:hover { border-color: #fbb040; }
.listing-content { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr); gap: clamp(28px, 4vw, 64px); padding-top: 38px; align-items: start; }
.listing-panel { margin-bottom: 38px; scroll-margin-top: 28px; }
.listing-page-main h2 { font: 700 29px/1.2 "open sans condensed", sans-serif; margin: 0 0 22px; }
.listing-page-main h3 { font: 700 21px/1.3 proxima-n-w01-reg, Arial, sans-serif; margin: 26px 0 12px; }
.listing-rich-text { color: #414b5c; overflow-wrap: anywhere; }
.listing-rich-text p { margin: 0 0 17px; }
.listing-rich-text > br:first-child, .listing-rich-text > br:last-child { display: none; }
.listing-rich-text ul, .listing-rich-text ol { padding-left: 22px; margin: 14px 0 22px; }
.listing-rich-text ul { list-style: disc; }
.listing-rich-text ol { list-style: decimal; }
.listing-rich-text li { margin-bottom: 7px; }
.listing-rich-text li p { margin: 0; }
.listing-rich-text strong, .listing-rich-text b { font-weight: 700; color: #26334a; }
.listing-rich-text a { color: #1f2a4a; text-decoration: underline; }
.listing-rich-text table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.listing-rich-text td, .listing-rich-text th { padding: 8px; border-bottom: 1px solid #e1e5ea; overflow-wrap: anywhere; }
.listing-details { padding-top: 24px; border-top: 1px solid #e1e5ea; }
.listing-details summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.listing-details summary::-webkit-details-marker { display: none; }
.listing-details summary h2 { margin-bottom: 0; }
.listing-details summary::after { content: "+"; font: 24px/1 Arial,sans-serif; }
.listing-details[open] summary::after { content: "−"; }
.listing-details[open] summary { margin-bottom: 24px; }
.listing-technical .listing-panel { background: #f5f6f8; padding: 26px; }
.listing-engine + .listing-engine { border-top: 1px solid #ccd3dc; margin-top: 26px; padding-top: 6px; }
.listing-engine h3 { margin-top: 0; }
.listing-engine + .listing-engine h3 { margin-top: 18px; }
.listing-enquiry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 60px; background: #1f2a4a; color: white; padding: 40px; scroll-margin-top: 24px; }
.listing-enquiry h2 { color: #fbb040; margin-bottom: 16px; }
.listing-enquiry p { margin: 0 0 16px; color: #e1e5ee; }
.listing-enquiry-boat { font-weight: 700; }
.listing-contact { display: block; color: white; text-decoration: none; overflow-wrap: anywhere; margin: 6px 0; }
.listing-contact:hover { text-decoration: underline; }
.listing-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; min-width: 0; }
.listing-form > div { min-width: 0; }
.listing-field-wide { grid-column: 1 / -1; }
.listing-form label { display: block; font-size: 14px; margin-bottom: 7px; }
.listing-form label span { color: #fbb040; }
.listing-form input, .listing-form textarea { display: block; width: 100%; border: 1px solid #d3d9e2; border-radius: 0; background: white; padding: 12px; font: 16px/1.5 proxima-n-w01-reg,Arial,sans-serif; color: #1f2a4a; min-height: 46px; }
.listing-form textarea { resize: vertical; }
.listing-form .inquiry-note { grid-column: 1 / -1; color: white; padding: 0; font-size: 15px; }
.listing-page-main :focus-visible { outline: 2px solid #c8871c; outline-offset: 3px; }
.listing-page-main .listing-form :focus-visible { outline-color: #fbb040; }
@media (max-width: 1100px) {
  .listing-shell { width: calc(100% - 40px); }
  .listing-hero, .listing-content { grid-template-columns: minmax(0, 1.4fr) minmax(310px, 1fr); gap: 28px; }
  .listing-enquiry { gap: 32px; padding: 30px; }
}
@media (max-width: 1023px) {
  body.listing-page.device-mobile-optimized #site-root,
  body.listing-page.device-mobile-optimized #masterPage,
  body.listing-page.device-mobile-optimized #SITE_CONTAINER { width: 100%; min-width: 0; max-width: none; margin-left: 0; margin-right: 0; }
  .listing-page #SITE_HEADER, .listing-page #SITE_FOOTER { width: 100%; min-width: 0; }
  .listing-shell { width: 100%; padding: 12px 0 0; }
  .listing-back { margin: 0 20px 14px; font-size: 13px; }
  .listing-hero, .listing-content { display: flex; flex-direction: column; gap: 0; }
  .listing-gallery { width: 100%; order: 2; }
  .listing-page-main .boat-track { aspect-ratio: 4 / 3; }
  .listing-page-main .gallery-arrow { width: 40px; height: 40px; }
  .listing-page-main .gallery-arrow[data-step="-1"] { left: 10px; }
  .listing-page-main .gallery-arrow[data-step="1"] { right: 10px; }
  .listing-gallery-tools { padding: 8px 20px; font-size: 13px; }
  .listing-thumbnails { padding: 2px 20px 8px; gap: 6px; }
  .listing-thumbnails button { flex-basis: 72px; }
  .listing-thumbnails img { height: 50px; }
  .listing-summary { display: contents; }
  .listing-intro { order: 1; width: 100%; padding: 4px 20px 16px; }
  .listing-summary > .listing-facts { order: 3; width: 100%; padding: 10px 20px 0; }
  .listing-page-main h1 { font-size: 31px; line-height: 1.15; }
  .listing-yacht-name { margin-bottom: 6px; font-size: 12px; }
  .listing-location { margin-top: 10px; font-size: 15px; }
  .listing-price { font-size: 27px; margin: 6px 0 0; }
  .listing-facts > div { padding: 10px 0; grid-template-columns: minmax(95px, .85fr) minmax(0, 1.15fr); gap: 16px; }
  .listing-facts dt { font-size: 14px; }
  .listing-facts dd { font-size: 15px; }
  .listing-actions { order: 4; width: calc(100% - 40px); margin: 20px 20px 0; }
  .listing-section-nav { margin-top: 28px; gap: 24px; padding: 0 20px; }
  .listing-section-nav a { padding: 14px 0; font-size: 14px; }
  .listing-content { padding: 28px 20px 0; }
  .listing-copy, .listing-technical { width: 100%; }
  .listing-page-main h2 { font-size: 26px; margin-bottom: 18px; }
  .listing-page-main h3 { font-size: 18px; margin-top: 24px; }
  .listing-rich-text { font-size: 16px; line-height: 1.65; }
  .listing-panel { margin-bottom: 28px; }
  .listing-technical .listing-panel { padding: 22px 18px; }
  .listing-enquiry { display: block; padding: 28px 20px 36px; }
  .listing-form { grid-template-columns: 1fr; margin-top: 26px; gap: 16px; }
  .listing-contact { font-size: 16px; }
}

/* Keep yacht headings and locations as plain text on phones, including detected links. */
body.device-mobile-optimized .listing-intro :is(#listing-title, .listing-location),
body.device-mobile-optimized .listing-intro :is(#listing-title, .listing-location) * {
  pointer-events: none;
  -webkit-touch-callout: none;
}

/* Suppress decorations if an iOS browser has already annotated these labels. */
body.device-mobile-optimized .listing-intro :is(#listing-title, .listing-location) :is(chrome_annotation, a, [role="link"]) {
  color: inherit !important;
  font: inherit !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
  background: transparent !important;
  pointer-events: none !important;
  cursor: text !important;
}
