/* Larger photographic presentation, with full-width previews below the hero. */
.listing-shell { width: min(calc(100% - 64px), 1800px); }
.listing-hero { grid-template-columns: minmax(0, 2.35fr) minmax(320px, .95fr); gap: 30px 40px; }
.listing-gallery-stage { min-width: 0; width: 100%; }
.listing-page-main .boat-track { aspect-ratio: 3 / 2; max-height: 800px; }
.listing-page-main .boat-track a { cursor: zoom-in; }
.listing-page-main .gallery-arrow { width: 48px; height: 48px; }
.listing-expand { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 13px; min-height: 44px; border: 0; background: #fffefc; color: #1f2a4a; font: 700 14px/1.2 proxima-n-w01-reg, Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 12px #0002; }
.listing-expand:hover { background: #fbb040; }
.listing-expand svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.listing-photo-browser { grid-column: 1 / -1; min-width: 0; width: 100%; }
.listing-photo-browser .listing-gallery-tools { padding: 0 0 14px; gap: 14px; }
.listing-gallery-label { display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 700; }
.listing-gallery-label .listing-photo-count { font-size: 14px; font-weight: 400; }
.listing-photo-browser .listing-view-photos { font-size: 15px; min-height: 44px; }
.listing-photo-browser .listing-thumbnails { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; padding: 0 0 8px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.listing-thumbnails::-webkit-scrollbar { display: none; }
.listing-photo-browser .listing-thumbnails button { position: relative; min-width: 0; width: 100%; display: block; margin: 0; padding: 0; border: 3px solid transparent; background: #f2f4f5; scroll-snap-align: start; cursor: pointer; }
.listing-photo-browser .listing-thumbnails button[aria-current="true"] { border-color: #fbb040; }
.listing-photo-browser .listing-thumbnails img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.listing-thumbnails button > span { position: absolute; bottom: 7px; right: 7px; min-width: 29px; padding: 3px 7px; background: #1f2a4ae6; color: white; font: 13px/1.4 proxima-n-w01-reg, Arial, sans-serif; }
.listing-thumbnail-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; color: #697181; font-size: 13px; }
.listing-thumbnail-controls > div { display: flex; gap: 8px; }
.listing-thumbnail-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #b5bdcb; border-radius: 50%; background: white; color: #1f2a4a; cursor: pointer; }
.listing-thumbnail-controls button:hover:not(:disabled) { background: #fbb040; border-color: #fbb040; }
.listing-thumbnail-controls button:disabled { opacity: .35; cursor: default; }
.listing-thumbnail-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 1100px) and (min-width: 1024px) {
  .listing-shell { width: calc(100% - 40px); }
  .listing-hero { grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: 28px; }
}
@media (max-width: 1023px) {
  .listing-shell { width: 100%; }
  .listing-hero { gap: 0; }
  .listing-gallery-stage { order: 2; }
  .listing-photo-browser { order: 3; padding: 18px 20px 8px; }
  .listing-summary > .listing-facts { order: 4; }
  .listing-actions { order: 5; }
  .listing-page-main .boat-track { aspect-ratio: 4 / 3; max-height: 680px; }
  .listing-page-main .gallery-arrow { width: 44px; height: 44px; }
  .listing-expand { top: 12px; right: 12px; padding: 10px; }
  .listing-expand span { display: none; }
  .listing-photo-browser .listing-thumbnails { grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; padding: 0 0 6px; }
  .listing-gallery-label { font-size: 16px; gap: 10px; }
  .listing-photo-browser .listing-view-photos { font-size: 14px; padding-left: 0; }
}
@media (max-width: 599px) {
  .listing-photo-browser .listing-thumbnails { grid-auto-columns: min(62vw, 280px); }
  .listing-gallery-label { display: block; }
  .listing-gallery-label .listing-photo-count { display: block; margin-top: 2px; font-size: 13px; }
  .listing-thumbnail-controls > span { max-width: 180px; line-height: 1.4; }
}

/* The full-screen image uses the entire viewport width, including on phones. */
body.photo-dialog-open { overflow: hidden; }
.listing-photo-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; background: #111927; font: 16px/1.4 proxima-n-w01-reg, Arial, sans-serif; z-index: 2147483000; }
.listing-photo-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.listing-photo-dialog::backdrop { background: #111927; }
.listing-photo-dialog *, .listing-photo-dialog *::before, .listing-photo-dialog *::after { box-sizing: border-box; }
.listing-photo-dialog button, .listing-photo-dialog a { font: inherit; color: inherit; cursor: pointer; }
.listing-photo-dialog :focus-visible { outline: 2px solid #fbb040; outline-offset: -3px; }
.listing-photo-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 20px; padding: 14px 24px; background: #1f2a4a; }
.listing-photo-toolbar h2 { margin: 0; font: 700 23px/1.2 "open sans condensed", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-photo-tools { display: flex; align-items: center; gap: 18px; }
.listing-photo-tools output { min-width: 62px; font-variant-numeric: tabular-nums; }
.listing-photo-tools button, .listing-photo-tools a { border: 0; background: none; padding: 10px 0; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.listing-photo-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff66; background: transparent; }
.listing-photo-dialog svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.listing-photo-stage { position: relative; width: 100%; height: 100%; min-height: 0; min-width: 0; }
.listing-photo-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.listing-photo-stage > button { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: #fffffff0; color: #1f2a4a; box-shadow: 0 2px 12px #0003; }
.listing-photo-stage > button:hover { background: #fbb040; }
.listing-photo-prev { left: 16px; }
.listing-photo-next { right: 16px; }
.listing-photo-status { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 6px 14px; background: #1f2a4ae6; color: white; font-size: 14px; text-align: center; }
.listing-photo-grid { overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 20px; padding: 24px; }
.listing-photo-grid button { position: relative; display: block; width: 100%; padding: 0; border: 3px solid transparent; background: #202b3e; }
.listing-photo-grid button[aria-current="true"] { border-color: #fbb040; }
.listing-photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.listing-photo-grid span { display: block; text-align: left; font-size: 14px; padding: 8px 12px; }
@media (max-width: 1023px) { .listing-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .listing-photo-toolbar { grid-template-columns: minmax(0, 1fr) 44px; gap: 2px 12px; padding: 10px 12px 4px; }
  .listing-photo-toolbar h2 { font-size: 20px; }
  .listing-photo-close { grid-column: 2; grid-row: 1; }
  .listing-photo-tools { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 12px; }
  .listing-photo-tools button, .listing-photo-tools a { font-size: 13px; }
  .listing-photo-stage > button { width: 42px; height: 42px; }
  .listing-photo-prev { left: 10px; } .listing-photo-next { right: 10px; }
  .listing-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
}
