/* =====================================================================
 * Λίστα κρουαζιέρων (cruises.php)
 * Κάρτες: κλάσεις του main.css (.featured-card, .card-image-box, .card-buttons …) όπως οι προσφορές της αρχικής
 * ===================================================================== */
.cruises-page {
    background: #f5f7fa;
    padding-bottom: 3rem;
}

/* ---------- 1. Banner με bottom fade ---------- */
.cl-banner {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: transparent;                     /* η φωτογραφία «σβήνει» στο χρώμα της σελίδας */
}
.cl-banner.no-photo {
    background: linear-gradient(135deg, #3861b6, #001b64);
}
.cl-banner picture,
.cl-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ίδιο bottom fade με τη φωτογραφία της κρουαζιέρας (σελίδα λεπτομερειών) */
.cl-banner picture,
.cl-banner-shade {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.cl-banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 19, 72, .45) 0%, rgba(0, 19, 72, .15) 45%, transparent 75%);
}
.cl-banner-content {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.cl-banner-content h1 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 800;
}
.cl-banner-content p {
    margin: 6px 0 0;
    font-size: 1.05rem;
    opacity: .95;
}

/* ---------- 2. Φόρμα αναζήτησης: μισή μέσα στο banner ---------- */
.page-cruises .search-bar-wrapper {
    margin-top: -70px;                           /* λίγο πιο χαμηλά: ένα μέρος μέσα στο banner */
}

/* ---------- 3. Αποτελέσματα ---------- */
.cl-results {
    padding-top: 30px;
}
.cl-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.cl-results-count {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}
.cl-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #eef3fc;
    color: #3861b6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.cl-clear:hover {
    background: #3861b6;
    color: #fff;
}

/* ---------- 5. 4 κάρτες ανά γραμμή ---------- */
.cl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 60px 22px;                              /* κάθετο κενό για την εικόνα που «βγαίνει» πάνω από την κάρτα */
    padding-top: 50px;
}
.cl-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #e3e8ef;
}
.cl-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.cl-card .card-title {
    font-size: 16px;
    line-height: 1.35;
}
.cl-card .card-title a {
    color: inherit;
    text-decoration: none;
}
.cl-card .card-title a:hover {
    color: #3861b6;
}
.cl-card .cl-summary {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgb(0, 88, 130);
}

/* ---------- 6. 3 γραμμές από την περιγραφή ---------- */
.cl-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;
}
.cl-card .card-buttons {
    margin-top: auto;                            /* κουμπιά πάντα στο κάτω μέρος */
    padding-top: 14px;
}

/* ---------- κενά αποτελέσματα ---------- */
.cl-empty {
    margin-top: 30px;
    padding: 50px 20px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e3e8ef;
}
.cl-empty i {
    font-size: 2.6rem;
    color: #c5ced9;
}
.cl-empty h2 {
    margin: 12px 0 6px;
    color: rgb(0, 88, 130);
}
.cl-empty p {
    color: #64748b;
    margin-bottom: 18px;
}

/* ---------- 4. Σελιδοποίηση ---------- */
.cl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 40px;
}
.cl-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e3e8ef;
    color: #001b64;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cl-page:hover {
    border-color: #3861b6;
    color: #3861b6;
}
.cl-page.is-current {
    background: #3861b6;
    border-color: #3861b6;
    color: #fff;
}
.cl-dots {
    padding: 0 4px;
    color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl-banner { height: 320px; }
    .page-cruises .search-bar-wrapper { margin-top: -60px; }
}
@media (max-width: 600px) {
    .cl-grid { grid-template-columns: minmax(0, 1fr); gap: 56px 0; }
    .cl-banner { height: 260px; }
    .cl-banner-content { padding-top: 36px; }
    .cl-banner-content h1 { font-size: 1.8rem; }
    .page-cruises .search-bar-wrapper { margin-top: -45px; }
    .cl-card .card-buttons { flex-wrap: wrap; }
    .cl-card .card-btn { flex: 1 1 140px; }
}

/* ---------- επιλεγμένα φίλτρα (chips με × για αφαίρεση) ---------- */
.cl-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
}
.cl-chips-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}
.cl-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px 6px 12px;
    border: 1px solid #c9d6ee;
    border-radius: 20px;
    background: #fff;
    color: #001b64;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.cl-chip > .fa-solid:first-child {
    color: #3861b6;
    font-size: 12px;
}
.cl-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef3fc;
    color: #3861b6;
    font-size: 11px;
    transition: background-color .2s ease, color .2s ease;
}
.cl-chip:hover,
.cl-chip:focus-visible {
    border-color: #dc2626;
    color: #dc2626;
}
.cl-chip:hover .cl-chip-x,
.cl-chip:focus-visible .cl-chip-x {
    background: #dc2626;
    color: #fff;
}
.cl-chips .cl-clear {
    padding: 6px 10px;
    background: none;
    color: #64748b;
    text-decoration: underline;
    font-weight: 600;
}
.cl-chips .cl-clear:hover {
    background: none;
    color: #dc2626;
}
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}