/**
 * Single Yacht Sales page styles
 * Refactored: no CSS variables, semantic class names, only used selectors.
 */

.yacht-sales-page {
  overflow-x: hidden;
}
.yacht-sales-page .breadcrumbs{
  top: 80px;
}
.yacht-sales-page__sr-only-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.yacht-sales-page .offer-details .offer-detail-item {
  margin-bottom: 80px;
}

.yacht-sales-page .yacht_single_booking {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1230px;
}

.yacht-sales-page .yacht_single_booking__primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.yacht-sales-page .yacht_single_booking__primary .white_button,
.yacht-sales-page .yacht_single_booking__primary .gold_button {
  margin: 0;
}

.yacht-sales-page__hero-tagline {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

.yacht-sales-page__hero-status {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
}

.yacht-sales-page__hero-price {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.yacht-sales-page__hero-badge {
  background: #ae8d53;
  padding: 5px 10px;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  text-transform: uppercase;
}

.yacht-sales-page__hero-btn-outline.white_button,
.yacht-sales-page__hero-btn-primary.gold_button {
  width: 100%;
  max-width: 300px;
}

.yacht-sales-page__hero-btn-outline.white_button {
  color: #fff;
}

.yacht-sales-overview {
  background: #0a162e;
  padding: 0;
}

.yacht-sales-overview__layout {
  display: grid;
  grid-template-columns: minmax(320px, 40%) minmax(0, 60%);
  min-height: 660px;
  padding-top: 100px;
}

.yacht-sales-overview__specs {
  background: #0a162e;
  color: #fff;
  padding: 100px 100px 100px 0;
  display: flex;
  align-items: center;
}

.yacht-sales-overview__specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 70px);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.yacht-sales-spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 20px;
  border-left: 1px solid rgba(174, 141, 83, 0.5);
}

.yacht-sales-spec__label,
.yacht-sales-spec__value {
  font-size: 20px;
  line-height: 1.25;
  color: #fff;
}

.yacht-sales-spec__label {
  font-weight: 600;
}

.yacht-sales-overview__content {
  background: #fff;
  padding: 100px 0 100px 110px;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.yacht-sales-overview__content::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 100vw;
  background: #fff;
}

.yacht-sales-overview__title {
  margin: 0 0 30px;
  text-align: left;
}

.yacht-sales-overview__text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.75;
  color: rgba(10, 22, 46, 0.88);
}

.yacht-sales-overview__text p {
  margin: 0 0 1.5em;
}

.yacht-sales-overview__text p:last-child {
  margin-bottom: 0;
}

.yacht-sales-overview__actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}
.yacht-sales-overview__actions  .white_button,
.choosing-yacht__cta .white_button{
  font-weight: 600;
}

.yacht-sales-overview__btn-enquire,
.yacht-sales-overview__btn-whatsapp {
  width: 100%;
  margin: 0;
}

/* .yacht-sales-overview__btn-enquire {
  max-width: 200px;
}

.yacht-sales-overview__btn-whatsapp {
  max-width: 368px;
} */

.yacht-sales-gallery {
  margin: 0;
  padding: 120px 0;
}

.yacht-sales-gallery__tabs-wrap {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1.5rem;
}

.yacht-sales-gallery__tabs {
  display: flex;
  align-items: baseline;
}

.yacht-sales-gallery__tab {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: #0a162e;
  transition: color 0.2s ease;
}

.yacht-sales-gallery__tab.is-active {
  color: #ae8d53;
}

.yacht-sales-gallery__tab:focus-visible {
  outline: 2px solid #ae8d53;
  outline-offset: 4px;
}

.yacht-sales-gallery__line {
  width: 100%;
  height: 1px;
  margin-top: 0.65rem;
  background: #ae8d53;
}

.yacht-sales-gallery__panel[hidden] {
  display: none !important;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  align-items: start;
  justify-content: center;
  padding-top: 32px;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item {
  position: relative;
  display: block;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item.hidden {
  display: none !important;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item.fade-in {
  animation: ysGalleryFadeIn 0.5s ease forwards;
}

@keyframes ysGalleryFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-1 {
  width: 545px;
  height: 315px;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-2 {
  width: 315px;
  height: 430px;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-3 {
  width: 430px;
  height: 315px;
}


.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-1,
.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-3 {
  align-self: end;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-1{
  margin-bottom: 60px;
}
.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-4 {
  margin-top: -60px;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-4 {
  width: 430px;
  height: 315px;
  justify-self: end;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-5 {
  width: 315px;
  height: 375px;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-6 {
  width: 315px;
  height: 315px;
}

.single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item .all_images {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 991px) {
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 0;
    justify-content: stretch;
  }

  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-1,
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-3 {
    align-self: auto;
  }

  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-4 {
    justify-self: auto;
  }

  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 0 !important;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-1{
    margin-bottom: 0;
  }

  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item.yacht-sales-gallery__mosaic-item--pos-1,
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item.yacht-sales-gallery__mosaic-item--pos-2,
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item.yacht-sales-gallery__mosaic-item--pos-3,
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item.yacht-sales-gallery__mosaic-item--pos-4,
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item.yacht-sales-gallery__mosaic-item--pos-5,
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic .gallery-item.yacht-sales-gallery__mosaic-item--pos-6 {
    aspect-ratio: 430 / 315;
  }
}
@media screen and (max-width: 768px) {
  .yacht-sales-overview__actions{
    flex-direction: column;
  }
  .yacht-sales-overview__btn-enquire,
  .yacht-sales-overview__btn-whatsapp{
    max-width: 100%;
  }
  .single-yacht-sales-gallery .gallery_section{
    padding: 80px 0;
  }
  .yacht-sales-modal{
    min-height: fit-content;
  }
  .yacht-sales-modal .modal-body{
    margin: 0 20px 20px;
  }
  .yacht-sales-modal .gold_button{
    margin-top: 0;
  }
}

.yacht-sales-details.guide-to-yacht-charter-inner.fleet-section {
  display: block !important;
  background: linear-gradient(to top, #f7f8fa 90px, transparent 0%);
}

.yacht-sales-details.guide-to-yacht-charter-inner.fleet-section.fleet-revers .fleet-content-side {
  width: auto;
  margin: 0 43% 90px 0;
}

.yacht-sales-details.guide-to-yacht-charter-inner.fleet-section.fleet-revers .fleet-item:nth-child(odd) .fleet-content-side {
  padding-right: 0;
}

.yacht-sales-details.guide-to-yacht-charter-inner.fleet-section .fleet-content {
  width: 790px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 30px 90px 90px 0;
  background: #fff;
}

.yacht-sales-details.guide-to-yacht-charter-inner.fleet-section .quest4,
.yacht-sales-details.guide-to-yacht-charter-inner.fleet-section .accordion {
  width: 100%;
  max-width: 100%;
}

.yacht-sales-details.guide-to-yacht-charter-inner.fleet-section .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(10, 22, 46, 0.12);
}

.yacht-sales-details.guide-to-yacht-charter-inner.fleet-section .choosing-yacht__cta {
  margin-top: 1.5rem;
}

body.modal-open {
  overflow: hidden;
}

.yacht-sales-modal-overlay[hidden] {
  display: none !important;
}

.yacht-sales-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  visibility: visible;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  background: rgba(10, 22, 46, 0.62);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.yacht-sales-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(640px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  max-height: min(90dvh, calc(100svh - 2rem));
  overflow: hidden;
  background: #f7f8fa;
}

.yacht-sales-modal.yacht-sales-modal--thank-you {
  max-height: calc(100vh - 2rem);
  max-height: min(85dvh, calc(100svh - 2rem));
}

.yacht-sales-modal .modal-header {
  position: relative;
  display: block;
  padding: 28px 48px 0px;
  text-align: center;
}

.yacht-sales-modal .modal-title {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}

.yacht-sales-modal .modal-header .yacht-sales-modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 1.5rem;
}

.yacht-sales-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 10px;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.yacht-sales-modal--thank-you .modal-body {
  padding-bottom: 28px;
}

.yacht-sales-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yacht-sales-modal-form__intro {
  margin: 0 0 8px;
  text-align: center;
}

.yacht-sales-modal-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.yacht-sales-modal-form__field-full {
  width: 100%;
}

.yacht-sales-modal-form .form-group {
  margin: 0;
}
.yacht-sales-modal-form textarea.form-input {
  height: 100px;
  min-height: 100px;
  resize: vertical;
}

.yacht-sales-modal-form .form-input {
  width: 100%;
  border: 1px solid #edeef0;
  background: #fff;
  font-size: 16px;
  font-family: 'FuturaPT';
}

.yacht-sales-modal-form .iti {
  width: 100%;
  display: block;
}

.yacht-sales-modal-form .iti input.form-input {
  width: 100%;
}

.yacht-sales-modal .gold_button,
.yacht-sales-modal-form .gold_button {
  width: 100%;
}

@media screen and (max-width: 520px) {
  .yacht-sales-modal-form__row:not(.yacht-sales-modal-form__row--names) {
    grid-template-columns: 1fr;
  }

  .yacht-sales-modal-form__row--names {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 1200px) {
  .yacht-sales-page .offer-details .offer-detail-item {
    margin-bottom: 20px;
  }

  .yacht-sales-page__hero-btn-outline.white_button,
  .yacht-sales-page__hero-btn-primary.gold_button {
    padding: 10px;
  }

  .yacht-sales-overview__content {
    padding: 0 0 40px 40px;
  }

  .yacht-sales-overview__specs {
    padding: 40px 40px 40px 0;
  }

  .yacht-sales-details.guide-to-yacht-charter-inner.fleet-section .fleet-content-side,
  .yacht-sales-details.guide-to-yacht-charter-inner.fleet-section.fleet-revers .fleet-content-side {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
  }

  .yacht-sales-details.guide-to-yacht-charter-inner.fleet-section .fleet-content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0;
    padding: 40px 20px 48px !important;
    box-sizing: border-box;
  }

  .yacht-sales-details.fleet-section .fleet-image-side {
    position: relative !important;
    width: 100% !important;
    height: 300px;
    min-height: 280px;
  }

  .yacht-sales-details.guide-to-yacht-charter-inner.fleet-section .fleet-content h2 {
    text-align: center;
  }
}
@media screen and (max-width: 1400px) {
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic {
    gap: 10px;
  }
}

@media screen and (max-width: 1340px) {
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-1{
    width: 495px;
    height: 295px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-2 {
    width: 295px;
    height: 395px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-3 {
    width: 395px;
    height: 295px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-4 {
    width: 395px;
    height: 295px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-5 {
    width: 295px;
    height: 355px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-6 {
    width: 295px;
    height: 295px;
  }
}

@media screen and (max-width: 1200px) {
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-1{
    width: 445px;
    height: 245px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-2 {
    width: 245px;
    height: 345px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-3 {
    width: 345px;
    height: 245px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-4 {
    width: 345px;
    height: 245px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-5 {
      width: 245px;
    height: 305px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-6 {
    width: 245px;
    height: 245px;
  }
}
@media screen and (max-width: 1060px) {
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-1{
    width: 395px;
    height: 215px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-2 {
    width: 215px;
    height: 345px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-3 {
    width: 295px;
    height: 245px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-4 {
    width: 295px;
    height: 245px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-5 {
      width: 215px;
    height: 305px;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic-item--pos-6 {
    width: 215px;
    height: 245px;
  }
}

@media screen and (max-width: 1024px) {
  .yacht-sales-spec {
    padding-left: 18px;
  }
}

@media screen and (max-width: 991px) {
  .yacht-sales-overview {
    background: #f4f5f7;
  }

  .yacht-sales-overview__layout {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 80px;
  }

  .yacht-sales-overview__specs,
  .yacht-sales-overview__content {
    padding: 40px;
  }

  .yacht-sales-overview__content {
    min-height: 470px;
  }

  .yacht-sales-overview__content::after {
    display: none;
  }

  .yacht-sales-overview__specs-grid {
    max-width: 100%;
  }
}

@media screen and (max-width: 575px) {
  .yacht-sales-modal .modal-body {
    margin: 10px 0;
  }
  .choosing-yacht__cta .white_button{
    padding: 10px 0;
  }
  .single-yacht-sales-gallery .yacht-sales-gallery__mosaic {
    grid-template-columns: 1fr;
  }
  .yacht-sales-overview__content {
    padding: 40px 12px;
  }

  .yacht-sales-page__hero-tagline {
    text-align: center;
    font-size: clamp(16px, 5.2vw, 24px);
    overflow-wrap: anywhere;
  }

  .yacht-sales-overview__title {
    overflow-wrap: anywhere;
  }

  .yacht-sales-page__hero-price {
    font-size: 16px;
  }

  .yacht-sales-overview__layout {
    padding-top: 40px;
  }

  .yacht-sales-spec__label,
  .yacht-sales-spec__value {
    font-size: 14px;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .yacht-sales-overview__actions {
    flex-direction: column;
  }

  .yacht-sales-overview__btn-enquire {
    max-width: 100%;
  }
}

/* specs-title stacking — 2026-08-09 */
.yacht-sales-overview__specs {
  flex-direction: column;
  justify-content: center;
}

.yacht-sales-overview__specs-title {
  width: 100%;
  max-width: 560px;
  margin: 0 auto clamp(24px, 3vw, 36px);
}
/* Buy Now, Pay Later note on yacht-sales singles (interlinking 2026-08-23) */
.yacht-sales-overview__plan {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.6;
  opacity: .8;
}
.yacht-sales-overview__plan a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
