/*
 * Sell Your Yacht — mobile polish only
 * Source: html_maket/neweditsandmobile/jby-sell-your-yacht-v3
 * Desktop stays in sell-your-yacht-page.css; header/footer not touched.
 * Breakpoints: 980 / 900 / 820 / 760 / 640 / 560 / 480 (template).
 */

/* ---------- ≤980 ---------- */
@media (max-width: 980px) {
  html:has(#jb_body.page-sell-your-yacht),
  html:has(#jb_body.page-sell-your-yacht) body {
    overflow-x: hidden;
  }

  #jb_body.page-sell-your-yacht {
    --pad: 24px;
  }

  #jb_body.page-sell-your-yacht .hero-inner {
    padding: 0 24px 64px;
  }

  #jb_body.page-sell-your-yacht .secnav-inner {
    padding: 0 24px;
  }

  #jb_body.page-sell-your-yacht .feat-grid {
    grid-template-columns: 1fr 1fr;
  }

  #jb_body.page-sell-your-yacht .cine-inner {
    padding: 0 24px 72px;
  }

  #jb_body.page-sell-your-yacht .step p {
    min-height: 0;
  }

  #jb_body.page-sell-your-yacht .steps {
    grid-template-columns: 1fr 1fr;
  }

  #jb_body.page-sell-your-yacht .step,
  #jb_body.page-sell-your-yacht .step:nth-child(n) {
    min-height: 0;
  }
}

/* ---------- ≤900 ---------- */
@media (max-width: 900px) {
  #jb_body.page-sell-your-yacht .contact-band {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  #jb_body.page-sell-your-yacht .contact-left h2 {
    white-space: normal;
  }
}

/* ---------- ≤820 ---------- */
@media (max-width: 820px) {
  #jb_body.page-sell-your-yacht .support-head h2 {
    white-space: normal;
    font-size: 26px;
  }
}

/* ---------- ≤760 — gallery → 2-col editorial grid; testimonials; secnav ---------- */
@media (max-width: 760px) {
  #jb_body.page-sell-your-yacht .hero-scroll {
    display: none;
  }

  #jb_body.page-sell-your-yacht .secnav-inner {
    justify-content: flex-start;
    gap: 22px;
    padding: 0 22px;
  }

  #jb_body.page-sell-your-yacht .secnav a {
    font-size: 13px;
    padding: 14px 0;
  }

  /* Exposure gallery: hide stage chrome; thumbs become mosaic */
  #jb_body.page-sell-your-yacht .show-stage {
    height: auto;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }

  #jb_body.page-sell-your-yacht .show-stage > img,
  #jb_body.page-sell-your-yacht .show-stage > video,
  #jb_body.page-sell-your-yacht .show-arrow,
  #jb_body.page-sell-your-yacht .show-count,
  #jb_body.page-sell-your-yacht .show-word,
  #jb_body.page-sell-your-yacht .show-cta {
    display: none !important;
  }

  #jb_body.page-sell-your-yacht .show-stage::after {
    display: none;
  }

  #jb_body.page-sell-your-yacht .show-thumbs {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 22px;
    overflow: visible;
  }

  #jb_body.page-sell-your-yacht .show-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    flex: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    cursor: zoom-in;
    border-radius: 2px;
  }

  #jb_body.page-sell-your-yacht .show-thumb.on {
    box-shadow: none;
  }

  #jb_body.page-sell-your-yacht .show-thumb:nth-child(4n + 3),
  #jb_body.page-sell-your-yacht .show-thumb:nth-child(4n) {
    aspect-ratio: 3 / 2;
  }

  #jb_body.page-sell-your-yacht .show-thumb:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  #jb_body.page-sell-your-yacht .tmon-q {
    flex-basis: 100%;
    padding: 0;
  }

  #jb_body.page-sell-your-yacht .tmon-q:nth-child(even) {
    border-left: 0;
  }
}

/* ---------- ≤640 ---------- */
@media (max-width: 640px) {
  #jb_body.page-sell-your-yacht .expo-head h2 {
    white-space: normal;
  }

  #jb_body.page-sell-your-yacht .show-tabs {
    gap: 22px;
  }

  #jb_body.page-sell-your-yacht .show-tab {
    font-size: 14px;
  }

  #jb_body.page-sell-your-yacht .show-arrow {
    width: 44px;
    height: 44px;
  }

  #jb_body.page-sell-your-yacht .show-arrow.prev {
    left: 14px;
  }

  #jb_body.page-sell-your-yacht .show-arrow.next {
    right: 14px;
  }

  #jb_body.page-sell-your-yacht .show-word {
    bottom: 112px;
    font-size: 17px;
  }

  #jb_body.page-sell-your-yacht .show-thumb {
    flex-basis: 104px;
    height: 64px;
  }

  #jb_body.page-sell-your-yacht .show-cta {
    padding: 0 20px;
  }

  #jb_body.page-sell-your-yacht .show-cta-h {
    font-size: 16px;
    line-height: 1.3;
    max-width: 100%;
  }

  /* At ≤760 thumbs are mosaic — keep mosaic sizing over the 640 strip rules */
  #jb_body.page-sell-your-yacht .show-stage .show-thumb {
    flex-basis: auto;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  #jb_body.page-sell-your-yacht .show-stage .show-thumb:nth-child(4n + 3),
  #jb_body.page-sell-your-yacht .show-stage .show-thumb:nth-child(4n) {
    aspect-ratio: 3 / 2;
  }

  #jb_body.page-sell-your-yacht .show-stage .show-thumb:last-child:nth-child(odd) {
    aspect-ratio: 16 / 9;
  }

  #jb_body.page-sell-your-yacht .lb-prev {
    left: 8px;
  }

  #jb_body.page-sell-your-yacht .lb-next {
    right: 8px;
  }

  #jb_body.page-sell-your-yacht .lb-btn {
    width: 44px;
    height: 44px;
  }

  #jb_body.page-sell-your-yacht .lb-count {
    display: block;
    position: fixed;
    top: 34px;
    left: 22px;
    right: auto;
    bottom: auto;
    z-index: 6;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Mesmerize", sans-serif;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  #jb_body.page-sell-your-yacht .reach-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  #jb_body.page-sell-your-yacht .contact {
    padding-top: 56px;
  }
}

/* ---------- ≤560 — phones ---------- */
@media (max-width: 560px) {
  /* svh keeps hero CTA above the mobile browser bar */
  #jb_body.page-sell-your-yacht .hero {
    height: 100svh;
    min-height: 520px;
  }

  #jb_body.page-sell-your-yacht .hero-inner {
    padding: 0 24px 40px;
    gap: 16px;
  }

  #jb_body.page-sell-your-yacht .hero-title {
    font-size: 26px;
    line-height: 38px;
  }

  #jb_body.page-sell-your-yacht .hero-sub {
    font-size: 16px;
    line-height: 24px;
    max-width: 100%;
  }

  #jb_body.page-sell-your-yacht .hero-metrics {
    gap: 20px;
    margin-top: 0;
  }

  #jb_body.page-sell-your-yacht .hero-metrics .hm-v {
    font-size: 28px;
  }

  #jb_body.page-sell-your-yacht .hero-inner .btn {
    width: 100%;
  }

  #jb_body.page-sell-your-yacht .feat-grid {
    grid-template-columns: 1fr;
  }

  #jb_body.page-sell-your-yacht .support-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #jb_body.page-sell-your-yacht .h-sm {
    font-size: 24px;
    line-height: 34px;
  }

  #jb_body.page-sell-your-yacht .support-head h2 {
    font-size: 24px;
  }

  #jb_body.page-sell-your-yacht .cine h2 {
    font-size: 24px;
    line-height: 34px;
  }

  #jb_body.page-sell-your-yacht .cine p {
    text-align: justify;
    text-align-last: center;
    max-width: 720px;
  }

  #jb_body.page-sell-your-yacht .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- ≤480 ---------- */
@media (max-width: 480px) {
  #jb_body.page-sell-your-yacht .form .row2 {
    grid-template-columns: 1fr;
  }
}
