/* =============================================================
   Cruise Cards — Frontend Styles v2.3
   Sizing & proportions match original v1 exactly.
   Button / badge colors injected as inline CSS from admin settings.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&display=swap');

/* ── Wrapper ── */
.cc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Section title ── */
.cc-section-title {
    font-family: 'Barlow Condensed', 'Trebuchet MS', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    color: #1a1a2e;
}

/* ── Grid ── */
.cc-grid {
    display: grid;
    gap: 28px;
    align-items: stretch;
    grid-template-columns: repeat(2, 1fr);
}
.cc-grid.cc-cols-1 { grid-template-columns: 1fr; max-width: 620px; }
.cc-grid.cc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cc-grid.cc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cc-grid.cc-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .cc-grid.cc-cols-3,
    .cc-grid.cc-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cc-grid,
    .cc-grid.cc-cols-1,
    .cc-grid.cc-cols-2,
    .cc-grid.cc-cols-3,
    .cc-grid.cc-cols-4 { grid-template-columns: 1fr; }
}

/* ── Card ── */
.cc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;          /* fills grid cell so all cards in a row match height */
    transition: transform .25s ease, box-shadow .25s ease;
}
.cc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

/* Horizontal variant */
.cc-card--horizontal { flex-direction: row; }
.cc-card--horizontal .cc-card-image { width: 40%; flex-shrink: 0; }
.cc-card--horizontal .cc-card-body  { flex: 1; }

/* ── Card image — 16:9 aspect ratio like original ── */
.cc-card-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    width: 100%;
}
.cc-card-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.cc-card:hover .cc-card-image img {
    transform: scale(1.04);
}
.cc-card--horizontal .cc-card-image {
    aspect-ratio: unset;
    min-height: 200px;
    height: auto;
}
.cc-card--horizontal .cc-card-image img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}
.cc-card-image-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ef 0%, #c9d6df 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: .9rem;
}

/* ── Badge top-right — solid accent pill, high contrast ── */
.cc-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--cc-badge-accent, #ffd35f);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

/* ── Image overlay — meta pills + price badge ── */
.cc-card-image-bar {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Dark blurred pills */
.cc-image-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.cc-image-chip svg { flex-shrink: 0; }

/* Price badge — white box, dark text, colors overridden by settings */
.cc-price-badge {
    margin-left: auto;
    background: #fff;
    color: #1a1a2e;
    padding: 6px 14px;
    border-radius: 10px;
    line-height: 1.15;
    white-space: nowrap;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cc-price-badge small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #6b7280;
    opacity: 1;
}
/* The large price number */
.cc-price-badge .cc-price-number {
    display: block;
    font-family: 'Barlow Condensed', 'Trebuchet MS', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.1;
}

/* ── Card body ── */
.cc-card-body {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cc-card-title {
    font-family: 'Barlow Condensed', 'Trebuchet MS', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 14px;
    color: #1a1a2e;
    line-height: 1.15;
}

.cc-card-divider {
    height: 2px;
    background: #e5e7eb;
    border: none;
    margin: 0 0 18px;
    padding: 0;
    flex-shrink: 0;
}

/* ── Detail rows ── */
.cc-card-details {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cc-card-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: #1a1a2e;
    line-height: 1.4;
}
.cc-card-details li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #6b7280;
    opacity: 1;
}
.cc-card-details strong { font-weight: 600; }



/* Operator / by-line */
.cc-card-operator {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 10px;
}

/* Description */
.cc-card-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Spacer — equal-height cards, buttons always at bottom.
   No min-height — only expands when there is extra space (multi-card rows). */
.cc-card-spacer {
    flex: 1;
    min-height: 0;
}

/* ── Buttons ── */
.cc-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cc-btn {
    flex: 1;
    min-width: 120px;
    padding: 13px 18px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-width: 2px;
    border-style: solid;
    white-space: nowrap;
}
.cc-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}
/* .cc-btn-primary and .cc-btn-outline colors injected inline from settings */

/* ── Tabs ── */
.cc-tabs { width: 100%; }
.cc-tab-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.cc-tab-btn {
    padding: 8px 22px;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: #6b7280;
    transition: all .2s;
}
/* Active tab colors injected inline */
.cc-tab-panel { display: none; }
.cc-tab-panel.is-active { display: block; }

.cc-no-results {
    font-size: .9rem;
    color: #6b7280;
    font-style: italic;
    padding: 40px;
    text-align: center;
}

@media (max-width: 600px) {
    .cc-card {
        height: auto;          /* let cards size naturally on mobile */
    }
    .cc-card-spacer {
        display: none;         /* no artificial gap on mobile single column */
    }
    .cc-card-body { padding: 18px 16px; }
    .cc-card-title { font-size: 18px; }
    .cc-card-actions { gap: 8px; }
    .cc-btn { padding: 11px 14px; font-size: 12px; }
    .cc-price-badge .cc-price-number { font-size: 18px; }
}
