.boat-detail-page {
    background: #fff;
    color: var(--primary-black);
}

.boat-detail-page .villa-detail-navbar {
    background: #ffffff;
    color: var(--primary-black);
    box-shadow: none;
}

.boat-detail-page .villa-detail-navbar .navbar-logo img,
.boat-detail-page .villa-detail-navbar .language-switcher img,
.boat-detail-page .villa-detail-navbar .mobile-language img {
    filter: brightness(0);
}

.boat-detail-page .villa-detail-navbar .hamburger {
    color: var(--primary-black);
}

.boat-detail-hero-mobile {
    display: none;
}

.boat-detail-section {
    padding-top: 11rem;
}

.boat-detail-header {
    margin-bottom: 2.5rem;
}

.boat-detail-header h1 {
    max-width: 58rem;
    margin: 0 0 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.625rem);
    line-height: 1.18;
    font-weight: 600;
}

.boat-detail-header p,
.boat-static-detail li,
.boat-about p {
    color: #5f5f5f;
}

.boat-detail-header p {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.boat-detail-header img,
.boat-specs img {
    width: 1.05rem;
    height: 1.05rem;
    object-fit: contain;
    filter: brightness(0);
}

.boat-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.75rem;
}

.boat-gallery button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.boat-gallery-main,
.boat-gallery-thumb {
    position: relative;
    border-radius: 0.45rem;
}

.boat-gallery-main {
    aspect-ratio: 1.48 / 1;
}

.boat-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.boat-gallery-thumb {
    aspect-ratio: 1 / 1;
}

.boat-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.boat-gallery button:hover img {
    transform: scale(1.06);
}

.boat-gallery-count {
    position: absolute;
    z-index: 2;
    top: 2rem;
    left: 2rem;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 500;
}

.boat-gallery-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    color: #ffffff;
    font-size: 1.35rem;
    transform: translateY(-50%);
    transition: background 0.25s ease, color 0.25s ease;
}

.boat-gallery-arrow:hover {
    background: #ffffff;
    color: var(--primary-black);
}

.boat-gallery-arrow.is-prev {
    left: 2.2rem;
}

.boat-gallery-arrow.is-next {
    right: 2.2rem;
}

.boat-show-all {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.2rem;
    border-radius: 0.35rem;
    background: #fff;
    color: var(--primary-black);
    font-weight: 600;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
}

.boat-show-all img {
    width: 1rem;
    height: 1rem;
    transform: none !important;
}

.boat-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(18rem, 4fr);
    gap: clamp(2rem, 8vw, 9rem);
    align-items: start;
}

.boat-detail-copy {
    min-width: 0;
}

.boat-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.boat-specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 8.5rem;
    min-height: 3.4rem;
    padding: 0 1.45rem;
    border-radius: 0.35rem;
    background: var(--gray-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.boat-about,
.boat-static-detail {
    max-width: 52rem;
    width: 100%;
}

.boat-about h2,
.boat-static-detail h2 {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 700;
}

.boat-about p {
    margin: 0 0 1.5rem;
    line-height: 1.85;
}

.boat-static-detail {
    margin-top: 2.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid #d9d9d9;
}

.boat-static-detail ul {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.boat-static-detail li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.55;
}

.boat-static-detail li span {
    flex: 0 0 1.25rem;
    color: var(--primary-black);
    font-weight: 700;
}

.boat-static-detail strong {
    display: inline;
    color: var(--primary-black);
}

.boat-booking-panel {
    position: sticky;
    top: 7rem;
}

.boat-book-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 5.75rem;
    background: #0874a8;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.25s ease, background 0.25s ease;
}

.boat-book-button:hover {
    background: var(--primary-black);
    transform: translateY(-0.2rem);
}

.boat-price-section {
    padding-top: 5rem;
    padding-bottom: 11rem;
}

.boat-price-section h2 {
    margin: 0 0 2rem;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 400;
    text-transform: uppercase;
}

.boat-price-table {
    max-width: 76rem;
    margin: 0 auto 1.65rem;
    border: 1px solid #d9d9d9;
    text-align: center;
}

.boat-price-heading,
.boat-price-top,
.boat-price-label {
    background: #0874a8;
    color: #fff;
}

.boat-price-heading {
    grid-column: 1 / -1;
    padding: 1.2rem;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.is-day-trip,
.is-diving {
    display: grid;
    grid-template-columns: 12.75rem 1fr;
}

.boat-price-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    padding: 1rem;
    font-weight: 600;
}

.boat-price-value,
.is-package > div:not(.boat-price-label):not(.boat-price-top) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    padding: 1rem;
    background: #fff;
}

.is-package {
    display: grid;
    grid-template-columns: 12.75rem repeat(5, minmax(0, 1fr));
}

.boat-price-top {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    line-height: 1.15;
}

.is-diving small {
    display: block;
    margin-top: 0.2rem;
    color: #5f5f5f;
}

.is-diving .boat-price-value {
    flex-direction: column;
    gap: 0.2rem;
}

.boat-cta {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 24rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.boat-cta > img,
.boat-cta-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.boat-cta > img {
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s ease;
}

.boat-cta-overlay {
    background: rgba(0, 0, 0, 0.43);
}

.boat-cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    gap: 4rem;
    align-items: center;
    padding: 0 var(--container-x);
}

.boat-cta h2 {
    margin: 0 0 0.6rem;
    max-width: 20rem;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.18;
    color: #fff;
}

.boat-cta p {
    max-width: 32rem;
    margin: 0;
    line-height: 1.65;
}

.boat-cta-actions {
    display: grid;
    gap: 1rem;
}

.boat-cta-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.boat-cta-actions a:last-child,
.boat-cta-actions a:hover {
    background: #fff;
    color: var(--primary-black);
}

.boat-cta-actions a:hover {
    transform: translateY(-0.15rem);
}

.boat-cta:hover > img {
    transform: scale(1.035);
}

.boat-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.62);
}

.boat-lightbox.is-open {
    display: flex;
}

.is-gallery-open {
    overflow: hidden;
}

.boat-lightbox-inner {
    position: relative;
    width: min(92rem, 100%);
}

.boat-lightbox img {
    width: 100%;
    max-height: 84vh;
    display: block;
    object-fit: contain;
}

.boat-lightbox-close,
.boat-lightbox-arrow {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    cursor: pointer;
}

.boat-lightbox-close {
    top: -2.5rem;
    right: 0;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.5rem;
}

.boat-lightbox-arrow {
    top: 50%;
    width: 3.25rem;
    height: 3.25rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.boat-lightbox-arrow.is-prev {
    left: 1.5rem;
}

.boat-lightbox-arrow.is-next {
    right: 1.5rem;
}

.boat-lightbox-count {
    position: absolute;
    top: 1.8rem;
    left: 1.8rem;
    z-index: 2;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .boat-detail-page .villa-detail-navbar {
        background: transparent;
        box-shadow: none;
        color: #ffffff;
    }

    .boat-detail-page .villa-detail-navbar .navbar-logo img {
        filter: brightness(0) invert(1);
    }

    .boat-detail-page .villa-detail-navbar .hamburger {
        color: #ffffff;
    }

    .boat-detail-page .villa-detail-navbar.is-scrolled .hamburger {
        color: var(--primary-black);
    }

    .boat-detail-page .villa-detail-navbar.is-open {
        position: fixed;
        background: #ffffff;
        color: var(--primary-black);
    }

    .boat-detail-page .villa-detail-navbar.is-open .navbar-logo img {
        filter: brightness(0);
    }

    .boat-detail-section {
        padding-top: 0;
        padding-bottom: 0;
        margin-top: -4.6rem;
        position: relative;
        z-index: 4;
    }

    .boat-detail-hero-mobile {
        display: block;
        position: relative;
        height: 36rem;
        background: var(--primary-black);
    }

    .boat-mobile-slide,
    .boat-mobile-slide img {
        width: 100%;
        height: 100%;
    }

    .boat-mobile-slide {
        position: relative;
        overflow: hidden;
    }

    .boat-mobile-slide img {
        display: block;
        object-fit: cover;
    }

    .boat-detail-header {
        padding: 1.3rem 1rem 1.6rem;
        margin-bottom: 2rem;
        border-radius: 0.45rem 0.45rem 0 0;
        background: #ffffff;
        text-align: center;
        box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    }

    .boat-detail-header h1 {
        max-width: 23rem;
        margin: 0 auto 0.75rem;
        font-family: 'Montserrat', sans-serif;
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .boat-detail-header p {
        justify-content: center;
        max-width: 18rem;
        margin: 0 auto;
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .boat-detail-header p img {
        display: block;
        flex: 0 0 auto;
        width: 0.85rem;
        height: 0.85rem;
    }

    .boat-gallery {
        display: none;
    }

    .boat-gallery-count {
        top: 6rem;
        left: 1.6rem;
        font-size: 1.1rem;
    }

.boat-mobile-slide .boat-gallery-arrow {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.boat-mobile-slide .boat-gallery-arrow.is-prev {
    left: 1.5rem;
}

.boat-mobile-slide .boat-gallery-arrow.is-next {
    right: 1.5rem;
}

.boat-mobile-slide .boat-gallery-arrow:hover,
.boat-mobile-slide .boat-gallery-arrow:focus-visible {
    color: #ffffff;
}

    .boat-detail-layout {
        display: flex;
        flex-direction: column;
        gap: 2.25rem;
    }

    .boat-specs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        margin-bottom: 2.1rem;
    }

    .boat-specs span {
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 0.55rem;
        min-height: 4.6rem;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .boat-specs img {
        width: 1.15rem;
        height: 1.15rem;
    }

    .boat-booking-panel {
        position: static;
        width: 100%;
        order: -1;
    }

    .boat-book-button {
        min-height: 3.75rem;
        border-radius: 0.45rem;
    }

    .boat-price-section {
        padding-top: 3rem;
        padding-bottom: 5rem;
    }

    .boat-price-table {
        text-align: center;
    }

    .is-day-trip,
    .is-diving {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .is-package {
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
        overflow: visible;
        border: 0;
        gap: 0;
    }

    .boat-price-label,
    .boat-price-value,
    .is-package > div:not(.boat-price-label):not(.boat-price-top),
    .boat-price-top {
        min-height: 4rem;
        font-size: 0.9rem;
    }

    .is-package > div {
        min-height: 0;
    }

    .is-package > div:nth-child(1),
    .is-package > div:nth-child(7),
    .is-package > div:nth-child(13),
    .is-package > div:nth-child(19) {
        display: none;
    }

    .is-package .boat-price-top {
        min-height: 4.25rem;
        border: 1px solid #0874a8;
        border-bottom: 0;
    }

    .is-package > div:nth-child(3),
    .is-package > div:nth-child(4),
    .is-package > div:nth-child(5),
    .is-package > div:nth-child(6) {
        margin-top: 1rem;
    }

    .is-package > div:not(.boat-price-top):not(.boat-price-label) {
        justify-content: space-between;
        gap: 1rem;
        min-height: 3.65rem;
        border-right: 1px solid #d9d9d9;
        border-left: 1px solid #d9d9d9;
        border-bottom: 1px solid #d9d9d9;
        text-align: right;
    }

    .is-package > div:not(.boat-price-top):not(.boat-price-label)::before {
        flex: 0 0 auto;
        color: var(--primary-black);
        font-weight: 700;
        text-align: left;
    }

    .is-package > div:nth-child(8)::before,
    .is-package > div:nth-child(9)::before,
    .is-package > div:nth-child(10)::before,
    .is-package > div:nth-child(11)::before,
    .is-package > div:nth-child(12)::before {
        content: "1 - 3 Pax";
    }

    .is-package > div:nth-child(14)::before,
    .is-package > div:nth-child(15)::before,
    .is-package > div:nth-child(16)::before,
    .is-package > div:nth-child(17)::before,
    .is-package > div:nth-child(18)::before {
        content: "4 - 6 Pax";
    }

    .is-package > div:nth-child(20)::before,
    .is-package > div:nth-child(21)::before,
    .is-package > div:nth-child(22)::before,
    .is-package > div:nth-child(23)::before,
    .is-package > div:nth-child(24)::before {
        content: "Extra Pax";
    }

    .is-package > div:nth-child(2) { order: 1; }
    .is-package > div:nth-child(8) { order: 2; }
    .is-package > div:nth-child(14) { order: 3; }
    .is-package > div:nth-child(20) { order: 4; }

    .is-package > div:nth-child(3) { order: 5; }
    .is-package > div:nth-child(9) { order: 6; }
    .is-package > div:nth-child(15) { order: 7; }
    .is-package > div:nth-child(21) { order: 8; }

    .is-package > div:nth-child(4) { order: 9; }
    .is-package > div:nth-child(10) { order: 10; }
    .is-package > div:nth-child(16) { order: 11; }
    .is-package > div:nth-child(22) { order: 12; }

    .is-package > div:nth-child(5) { order: 13; }
    .is-package > div:nth-child(11) { order: 14; }
    .is-package > div:nth-child(17) { order: 15; }
    .is-package > div:nth-child(23) { order: 16; }

    .is-package > div:nth-child(6) { order: 17; }
    .is-package > div:nth-child(12) { order: 18; }
    .is-package > div:nth-child(18) { order: 19; }
    .is-package > div:nth-child(24) { order: 20; }

    .boat-cta {
        min-height: 32rem;
    }

    .boat-cta-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        align-content: end;
        gap: 1.8rem;
        padding: 4rem var(--container-x);
        text-align: center;
    }

    .boat-cta-actions {
        width: min(100%, 19rem);
    }

    .boat-cta h2 {
        max-width: 19rem;
        font-size: 1.5rem;
    }

    .boat-cta p {
        max-width: 21rem;
    }

    .boat-cta-actions a {
        min-height: 3rem;
    }

    .boat-lightbox {
        padding: 1rem;
    }

    .boat-lightbox-arrow.is-prev {
        left: 0.8rem;
    }

    .boat-lightbox-arrow.is-next {
        right: 0.8rem;
    }
}

@media (max-width: 520px) {
    .boat-detail-section {
        padding-top: 0;
    }

    .boat-detail-header {
        margin-bottom: 1.5rem;
    }

    .boat-detail-header h1 {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .boat-about p {
        line-height: 1.7;
    }

    .boat-static-detail li {
        font-size: 0.95rem;
    }

    .boat-price-section h2 {
        font-size: 1.75rem;
    }
}
