/* Trip card: the same on the trip overview, theme, destination and ship pages */
.card { display: flex; gap: 14px; padding: 0; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s; flex: none; }
.card[hidden] { display: none; }
.card.is-hover { background: var(--pale); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.card.is-sel { background: var(--sel-bg); border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
/* The photo fills the card from top to bottom edge */
.card__img { flex: none; width: 140px; align-self: stretch; min-height: 130px; background: var(--sky); overflow: hidden; position: relative; border-radius: 13px 0 0 13px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-full { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #fff; background: var(--ink); padding: 3px 6px; border-radius: 6px; }
.card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 10px 0; }
.card__meta { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--link); font-weight: 500; }
/* Ship photo in a big circle, half over the trip photo */
.card__ship { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(13, 44, 64, .3); margin-left: -50px; position: relative; z-index: 1; background: var(--sky); }
.card__meta { gap: 10px; }
.card__title { margin: 0; font: 400 18px/1.2 var(--title); }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__route { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.card__price { margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
.card__price s { color: var(--muted); font-size: 13px; }
.card__price strong { font-size: 16px; }
.card__night { font-size: 13px; color: var(--muted); }
.card__show, .card__details { min-height: 36px; font-size: 14px; padding: 0 12px; }
.card__details { display: none; }

/* Ship name in bold, the next departure (start – end) on its own line */
.card__metatext { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.3; }
.card__metatext b { color: var(--navy); font-weight: 700; }
.card__dates { color: var(--link); }
.card__dates small { color: var(--muted); font-size: 12px; }

/* Cards on theme, destination and ship pages: same card, in a grid, the whole card leads to the trip */
.cards-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.card--link { position: relative; cursor: default; }
.card--link:hover { border-color: var(--navy); }
.card--link .card__title a::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.card--link .card__details { display: inline-flex; position: relative; z-index: 2; }

/* Theme icons in the top right corner of the card */
.card { position: relative; }
.card__themes { position: absolute; top: 8px; right: 10px; z-index: 2; margin: 0; padding: 0; list-style: none; display: flex; gap: 4px; pointer-events: none; }
.card__themes li { margin: 0; }
.card__themes img { display: block; width: 30px; height: 30px; border-radius: 50%; object-fit: contain; background: #fff; }
.card:has(.card__themes) .card__metatext { padding-right: 34px; }
.card:has(.card__themes li:nth-child(2)) .card__metatext { padding-right: 68px; }
.card:has(.card__themes li:nth-child(3)) .card__metatext { padding-right: 102px; }

@media (max-width: 900px) {
    .card__themes { top: 6px; right: 8px; gap: 3px; }
    .card__themes img { width: 24px; height: 24px; }
    .card:has(.card__themes) .card__metatext { padding-right: 28px; }
    .card:has(.card__themes li:nth-child(2)) .card__metatext { padding-right: 55px; }
    .card:has(.card__themes li:nth-child(3)) .card__metatext { padding-right: 82px; }
    .cards-grid { grid-template-columns: 1fr; }
    .card__img { width: 104px; min-height: 120px; }
    .card__ship { width: 56px; height: 56px; margin-left: -40px; }
    .card__foot { flex-wrap: wrap; }
    .card__title { font-size: 17px; }
    .card__route { -webkit-line-clamp: 1; font-size: 13px; }
    .card__meta { font-size: 12px; }
    .card__body { gap: 2px; padding: 8px 10px 8px 0; }
    .card__price strong { font-size: 15px; }
    .card__night { font-size: 12px; }
    .card__show, .card__details { min-height: 34px; font-size: 14px; padding: 0 10px; }
}
