/* =====================================================================
 * Σελίδα κρουαζιερόπλοιου (ship.php) — βασίζεται στο css/cruise.css
 * ===================================================================== */

/* ---------- γραμμή πλοίου πάνω από την περιγραφή ---------- */
.ship-page .cruise-top-left-ship .ship-stars {
    margin-left: 6px;
    white-space: nowrap;
}
.ship-page .cruise-top-left-ship .ship-stars i {
    font-size: 13px;
    color: #c1a23e;
}

/* ---------- φωτογραφίες πλοίου (δεξιά στήλη) ---------- */
.ship-page .ship-gallery {
    padding: 14px;
    border-radius: 12px;
    background: #eef1f6;
}
.ship-page .ship-gallery-head {
    margin-bottom: 10px;
    font-weight: 700;
    color: rgb(0, 88, 130);
}
.ship-page .ship-gallery-head span {
    font-weight: 500;
    color: #64748b;
}
.ship-page .ship-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.ship-page .ship-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #dfe5ee;
}
.ship-page .ship-gallery-item.is-hidden {
    display: none;                               /* ανοίγουν μόνο μέσα από το lightbox */
}
.ship-page .ship-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.ship-page .ship-gallery-item:hover img {
    transform: scale(1.06);
}
.ship-page .ship-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 27, 100, .55);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
}

/* ---------- carousels (καμπίνες, κρουαζιέρες, λιμάνια): 4 ανά γραμμή, carousel όταν είναι περισσότερες ---------- */
.ship-page .ship-carousel .related-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}
.ship-page .ship-carousel.is-carousel .related-item {
    flex: 0 0 calc(25% - 15px);
}
@media (max-width: 1200px) {
    .ship-page .ship-carousel .related-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ship-page .ship-carousel.is-carousel .related-item { flex: 0 0 calc(33.333% - 14px); }
}
@media (max-width: 900px) {
    .ship-page .ship-carousel .related-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ship-page .ship-carousel.is-carousel .related-item { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
    .ship-page .ship-carousel .related-track { grid-template-columns: minmax(0, 1fr); }
    .ship-page .ship-carousel.is-carousel .related-item { flex: 0 0 100%; }
}
/* οι κάρτες καμπινών δεν έχουν εικόνα που «βγαίνει» πάνω από την κάρτα */
.ship-page .cabins-carousel .related-track {
    padding-top: 0;
}
.ship-page .cabins-carousel .rc-nav {
    top: calc(50% - 50px);                       /* στη μέση του ύψους των καρτών */
    transform: translateY(-50%);
}

/* ---------- κάρτα καμπίνας ---------- */
.ship-page .cabin-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 27, 100, .06);
}
.ship-page .cabin-photo {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8eef5;
}
.ship-page .cabin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.ship-page .cabin-photo:hover img {
    transform: scale(1.05);
}
.ship-page .cabin-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 14px 16px 16px;
}
.ship-page .cabin-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.3;
    color: #001b64;
}
/* όλο το κείμενο της καμπίνας, με scroll αν είναι μεγάλο */
.ship-page .cabin-text {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}
.ship-page .cabin-text p {
    margin: 0 0 .6rem;
}
.ship-page .cabin-text ul {
    margin: 0 0 .6rem;
    padding-left: 1.1rem;
}
/* κάτοψη */
.ship-page .cabin-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef1f5;
    color: #3861b6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.ship-page .cabin-plan img {
    width: 64px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e3e8ef;
    background: #fff;
}
.ship-page .cabin-plan:hover span {
    text-decoration: underline;
}

/* ---------- lightbox ---------- */
.nv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 60px;
    background: rgba(5, 12, 30, .92);
    opacity: 0;
    transition: opacity .2s ease;
}
.nv-lightbox[hidden] {
    display: none;
}
.nv-lightbox.open {
    opacity: 1;
}
.nv-lb-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}
.nv-lb-img {
    max-width: 100%;
    max-height: calc(100vh - 110px);
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    transition: opacity .2s ease;
}
.nv-lightbox.is-loading .nv-lb-img {
    opacity: .4;
}
.nv-lb-caption {
    margin-top: 10px;
    color: #e2e8f0;
    font-size: 14px;
    text-align: center;
}
.nv-lb-close,
.nv-lb-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}
.nv-lb-close:hover,
.nv-lb-nav:hover {
    background: rgba(255, 255, 255, .3);
}
.nv-lb-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 20px;
}
.nv-lb-nav {
    top: 50%;
    width: 46px;
    height: 46px;
    font-size: 18px;
    transform: translateY(-50%);
}
.nv-lb-nav[hidden] {
    display: none;
}
.nv-lb-prev { left: 10px; }
.nv-lb-next { right: 10px; }
@media (max-width: 600px) {
    .nv-lightbox { padding: 60px 10px; }
    .nv-lb-nav { top: auto; bottom: 14px; transform: none; }
    .nv-lb-prev { left: calc(50% - 56px); }
    .nv-lb-next { right: calc(50% - 56px); }
}

/* =====================================================================
 * Desktop: περισσότερο ύψος για την περιγραφή — και οι φωτογραφίες «γεμίζουν» το ίδιο ύψος
 * ===================================================================== */
@media (min-width: 769px) {
    .ship-page .cruise-description-col {
        min-height: 600px;                       /* από 420px */
    }
    .ship-page .cruise-sidebar-col {
        display: flex;
        flex-direction: column;
    }
    .ship-page .ship-gallery {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }
    /* οι φωτογραφίες μένουν landscape (4:3)· το πλέγμα ξεκινά από επάνω χωρίς να «τεντώνει» τις γραμμές */
    .ship-page .ship-gallery-grid {
        align-content: start;
    }
    .ship-page .ship-gallery-item {
        aspect-ratio: 4 / 3;
    }
}

/* ---------- κάρτες κρουαζιέρων & λιμανιών στα carousels ---------- */
.ship-page .ship-carousel .featured-card .card-btn {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 5px;
}
.ship-page .ship-carousel .featured-card .card-btn i {
    font-size: 11px;
}
.ship-page .ship-port-card .card-buttons .card-btn {
    flex: 1 1 100%;
    width: 100%;
}
.ship-page .ship-port-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}
.ship-page .ship-port-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.ship-page .ship-port-card .card-buttons {
    margin-top: auto;
    padding-top: 12px;
}

/* ---------- βίντεο στην κορυφή (αντί για φωτογραφία) ---------- */
.ship-page .banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #001b64;
}
/* με βίντεο: ψηλότερη ζώνη σε αναλογία βίντεο (16:9), ώστε να μην «κόβεται» το επάνω μέρος κάτω από το header */
.ship-page .banner-wrapper.has-video {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - var(--header-h, 110px));   /* να χωράει όλο στην οθόνη κάτω από το header */
    min-height: 220px;
}
@media (min-width: 768px) {
    .ship-page .banner-wrapper.has-video {
        min-height: 400px;
    }
}
/* χρήστες με «λιγότερη κίνηση»: το js/ship.js σταματά την αναπαραγωγή — φαίνεται η φωτογραφία (poster) */