/* Cover Section */
/* ------------------------------------------------- */

.yacht-cover {
    position: relative;
    width: 100%;
    height: 100lvh;
    padding: var(--space-9) 0;
    box-sizing: border-box;
    overflow: hidden;
}

.yacht-cover img {
    position: absolute;
    left: 0;
    top: -15%;
    width: 100%;
    height: 130%;
    object-fit: cover;
    will-change: transform;
}

.yacht-cover::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 66.69%, rgba(0, 0, 0, 0.70) 93.27%);
    background-blend-mode: multiply, normal;
    content: '';
    z-index: 1;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.yacht-cover .wrap {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.yacht-cover-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.yacht-cover-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.yacht-cover-content .heading-1 {
    color: var(--neutral-25);
}

.yacht-cover-content .heading-2 {
    color: var(--neutral-25);
}

.yacht-cover-stats {
    display: flex;
    flex-direction: row;
    gap: var(--space-8);
}

.yacht-cover-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
}

.yacht-cover-stat .body-medium {
    color: var(--neutral-25);
}

.yacht-cover-stat .heading-5 {
    color: var(--neutral-25);
    font-weight: 500;
}

/* Introduction Section */
/* ------------------------------------------------- */

.yacht-intro {
    padding: var(--space-11) 0;
}

.yacht-intro .wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.yacht-intro .heading-3 {
    color: var(--neutral-950);
}

/* Gallery Section */
/* ------------------------------------------------- */

.yacht-gallery-slider.splide {
    position: relative;
    aspect-ratio: 1920 / 1080;
    overflow: hidden;
    background: var(--neutral-950);
}

.yacht-gallery-slider .splide__track {
    height: 100%;
}

.yacht-gallery-slider .splide__list {
    height: 100%;
}

.yacht-gallery-slide {
    position: relative;
    height: 100%;
}

.yacht-gallery-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 51.92%, rgba(0, 0, 0, 0.50) 100%);
    background-blend-mode: multiply, normal;
    z-index: 1;
    pointer-events: none;
}

.yacht-gallery-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.yacht-gallery-slide-image img {
    width: 110%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: -5%;
    will-change: transform;
}

.yacht-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--space-9);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.yacht-gallery-bars {
    display: flex;
    gap: var(--space-2);
}

.yacht-gallery-bar {
    display: block;
    width: 130px;
    height: 2px;
    background: var(--blue-300);
    cursor: pointer;
    transition: background 0.3s ease;
}

.yacht-gallery-bar.is-active {
    background: var(--neutral-25);
}

.yacht-gallery-counter {
    color: var(--neutral-25);
}

.yacht-gallery-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.yacht-gallery-next svg {
    display: block;
}

/* Content Section */
/* ------------------------------------------------- */

.yacht-content {
    padding: var(--space-11) 0;
}

.yacht-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
    align-items: center;
}

.yacht-content-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.yacht-content .heading-2 {
    color: var(--neutral-950);
}

.yacht-content .body-medium {
    color: var(--neutral-500);
}

.yacht-content-right {
    position: relative;
}

.yacht-content-slider.splide {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--neutral-950);
}

.yacht-content-slider .splide__track {
    height: 100%;
}

.yacht-content-slider .splide__list {
    height: 100%;
}

.yacht-content-slider-slide {
    position: relative;
    height: 100%;
    padding: var(--space-6);
}

.yacht-content-slider-slide-image {
    position: absolute;
    inset: 0;
}

.yacht-content-slider-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yacht-content-slider-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(5px);
    left: 0;
    bottom: 0;
    height: fit-content;
    margin: var(--space-6);
    margin-top: auto;
    padding: var(--space-7) var(--space-6);
}

.yacht-content-slider-slide-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    color: var(--neutral-25);
}

.yacht-content-slider-slide-content .heading-5,
.yacht-content-slider-slide-content .body-medium {
    color: var(--neutral-25);
}

.yacht-content-slider-slide-pagination {
    position: absolute;
    bottom: var(--space-7);
    right: 0;
    padding: 0 var(--space-7);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.yacht-content-slider-bars {
    display: flex;
    gap: var(--space-2);
}

.yacht-content-slider-bar {
    display: block;
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.yacht-content-slider-bar.is-active {
    background: var(--neutral-25);
}

.yacht-content-slider-counter {
    color: var(--neutral-25);
}

.yacht-content-slider-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.yacht-content-slider-next svg {
    display: block;
}

/* Image Grid Section */
/* ------------------------------------------------- */

.yacht-image-grid {
    padding: var(--space-11) 0;
}

.yacht-image-grid-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.yacht-image-grid-row {
    display: grid;
    gap: var(--space-4);
}

.yacht-image-grid-item {
    overflow: hidden;
}

.yacht-image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Deck Plans Section */
/* ------------------------------------------------- */

.yacht-deck-plans {
    padding: var(--space-11) 0;
}

.yacht-deck-plans .heading-2 {
    color: var(--neutral-950);
    margin-bottom: var(--space-7);
}

.yacht-deck-plans-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-7);
}

.yacht-deck-plans-tabs {
    display: flex;
    flex-direction: column;
}

.yacht-deck-plans-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-4) 0;
    text-align: left;
    font-family: "Circular Std", sans-serif;
    font-size: var(--space-5);
    font-weight: 450;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--neutral-500);
    border-bottom: 1px solid var(--neutral-200);
    transition: color 0.3s ease, opacity 0.3s ease;
}

.yacht-deck-plans-tab:first-child {
    border-top: 1px solid var(--neutral-200);
}

.yacht-deck-plans-tab.is-active {
    color: var(--blue-700);
}

.yacht-deck-plans-panels {
    display: grid;
}

.yacht-deck-plans-panel {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.yacht-deck-plans-panel.is-active {
    opacity: 1;
    pointer-events: auto;
}

.yacht-deck-plans-panel img {
    width: 100%;
    height: auto;
    display: block;
}

/* Specifications Section */
/* ------------------------------------------------- */

.yacht-specs {
    padding: var(--space-11) 0;
    background: var(--neutral-50);
}

.yacht-specs .heading-2 {
    color: var(--neutral-950);
    margin-bottom: var(--space-7);
}

.yacht-specs-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-7);
}

.yacht-specs-tabs {
    display: flex;
    flex-direction: column;
}

.yacht-specs-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-4) 0;
    text-align: left;
    font-family: "Circular Std", sans-serif;
    font-size: var(--space-5);
    font-weight: 450;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--neutral-500);
    border-bottom: 1px solid var(--neutral-200);
    transition: color 0.3s ease, opacity 0.3s ease;
}

.yacht-specs-tab:first-child {
    border-top: 1px solid var(--neutral-200);
}

.yacht-specs-tab.is-active {
    color: var(--blue-700);
}

.yacht-specs-panels {
    display: grid;
}

.yacht-specs-panel {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.yacht-specs-panel.is-active {
    opacity: 1;
    pointer-events: auto;
}

.yacht-specs-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
}

.yacht-specs-panel-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
}

.yacht-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-5);
}

.yacht-specs-panel:first-child .yacht-specs-table tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.yacht-specs-table tr {
    border-bottom: 1px solid var(--neutral-100);
    display: flex;
    flex-direction: column;
}

.yacht-specs-table th,
.yacht-specs-table td {
    padding: var(--space-3) 0;
    text-align: left;
    font-size: 14px;
    font-weight: 450;
    line-height: 1.5;
}

.yacht-specs-table th {
    color: var(--neutral-500);
    width: 50%;
}

.yacht-specs-table td {
    color: var(--neutral-950);
}

/* Gallery 2 Section */
/* ------------------------------------------------- */

.yacht-gallery-2-slider.splide {
    position: relative;
    aspect-ratio: 1920 / 1080;
    overflow: hidden;
    background: var(--neutral-950);
}

.yacht-gallery-2-slider .splide__track {
    height: 100%;
}

.yacht-gallery-2-slider .splide__list {
    height: 100%;
}

.yacht-gallery-2-slide {
    position: relative;
    height: 100%;
}

.yacht-gallery-2-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 51.92%, rgba(0, 0, 0, 0.50) 100%);
    background-blend-mode: multiply, normal;
    z-index: 1;
    pointer-events: none;
}

.yacht-gallery-2-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.yacht-gallery-2-slide-image img {
    width: 110%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: -5%;
    will-change: transform;
}

/* Responsive */
/* ------------------------------------------------- */

@media (max-width: 1080px) {
    .yacht-cover-row {
        flex-direction: column;
        gap: var(--space-7);
        align-items: flex-start;
    }

    .yacht-cover-stats {
        gap: var(--space-5);
    }

    .yacht-content-grid {
        grid-template-columns: 1fr;
    }

    .yacht-deck-plans-grid,
    .yacht-specs-grid {
        grid-template-columns: 1fr;
    }

    .yacht-specs-panel-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .yacht-cover {
        height: 75lvh;
        max-height: 450px;
    }

    .yacht-gallery-bars {
        display: none;
    }

    .yacht-gallery-overlay {
        padding: var(--space-6) var(--space-9);
    }
}
