/* Galeria pública do barco */
.boat-showcase {
    overflow: hidden;
    border: 1px solid rgba(184, 211, 222, .82);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f3fafb);
    box-shadow: 0 18px 42px rgba(3, 52, 79, .12);
}

.detail-photo-stage {
    position: relative;
    overflow: hidden;
    background: #062d4b;
}

.detail-photo-stage .detail-main {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    object-fit: cover;
    transition: opacity .18s ease, transform .5s ease;
}

.detail-photo-stage:hover .detail-main {
    transform: scale(1.012);
}

.gallery-nav,
.lightbox-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    background: rgba(1, 35, 62, .66);
    box-shadow: 0 8px 20px rgba(0, 21, 40, .25);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
}

.gallery-nav:hover,
.lightbox-nav:hover {
    background: #08aaa6;
    transform: translateY(-50%) scale(1.06);
}

.gallery-previous { left: 16px; }
.gallery-next { right: 16px; }

.gallery-count,
.gallery-expand {
    position: absolute;
    z-index: 3;
    bottom: 16px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    background: rgba(1, 34, 59, .7);
    box-shadow: 0 6px 18px rgba(0, 20, 38, .2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.gallery-count {
    left: 16px;
    padding: 8px 13px;
}

.gallery-expand {
    right: 16px;
    padding: 8px 13px;
    cursor: pointer;
}

.gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 20px 12px;
}

.gallery-heading span {
    color: #079b97;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.gallery-heading h2 {
    margin: 3px 0 0;
    color: #062a49;
    font: 700 21px Georgia, serif;
}

.gallery-heading small {
    color: #6c8191;
    font-size: 11px;
}

.boat-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    gap: 10px;
    overflow-x: auto;
    margin: 0;
    padding: 0 20px 20px;
    scrollbar-color: #11b9b5 #e4eff2;
    scrollbar-width: thin;
}

.boat-gallery button {
    position: relative;
    min-width: 112px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(3, 53, 80, .1);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.boat-gallery button:hover {
    transform: translateY(-3px);
}

.boat-gallery button.active {
    border-color: #10bdb7;
    box-shadow: 0 0 0 3px rgba(16, 189, 183, .13), 0 8px 18px rgba(3, 75, 94, .16);
}

.boat-gallery img {
    width: 100%;
    height: 88px;
    object-fit: cover;
}

.boat-gallery button > span {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 4px 7px;
    border-radius: 12px;
    background: rgba(1, 35, 60, .76);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.gallery-lightbox {
    width: min(1120px, 94vw);
    max-width: none;
    height: min(820px, 90vh);
    max-height: none;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    background: #001b30;
    box-shadow: 0 30px 90px rgba(0, 14, 27, .62);
}

.gallery-lightbox::backdrop {
    background: rgba(0, 18, 33, .88);
    backdrop-filter: blur(8px);
}

.gallery-lightbox > img {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: contain;
}

.gallery-lightbox form {
    position: absolute;
    z-index: 4;
    top: 28px;
    right: 28px;
}

.lightbox-close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(0, 25, 45, .76);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.lightbox-nav.previous { left: 30px; }
.lightbox-nav.next { right: 30px; }
.lightbox-count { position: absolute; z-index: 4; bottom: 28px; left: 50%; padding: 8px 13px; border-radius: 18px; background: rgba(0, 25, 45, .78); color: #fff; font-size: 12px; transform: translateX(-50%); }

@media (max-width: 620px) {
    .boat-showcase { border-radius: 14px; }
    .gallery-nav { width: 36px; height: 36px; font-size: 25px; }
    .gallery-previous { left: 9px; }
    .gallery-next { right: 9px; }
    .gallery-count { bottom: 10px; left: 10px; }
    .gallery-expand { right: 10px; bottom: 10px; font-size: 10px; }
    .gallery-heading { align-items: flex-start; flex-direction: column; gap: 5px; padding: 16px 14px 10px; }
    .boat-gallery { grid-template-columns: repeat(5, 100px); padding: 0 14px 15px; }
    .boat-gallery button { min-width: 100px; }
    .boat-gallery img { height: 72px; }
    .gallery-lightbox { width: 96vw; height: 82vh; padding: 8px; }
    .gallery-lightbox form { top: 15px; right: 15px; }
    .lightbox-nav { width: 36px; height: 36px; }
    .lightbox-nav.previous { left: 14px; }
    .lightbox-nav.next { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .detail-photo-stage .detail-main,
    .gallery-nav,
    .boat-gallery button { transition: none; }
}
