/* ============================================
   KBBC WeTravel Trip Cards v2.0.0
   Author: Dan Lee
   Brand System: Montserrat headings, Roboto body
   Primary Accent: #D97D2E
   Backgrounds: #ffffff / #f8f5f1 cream
   ============================================ */

/* Google Fonts — loaded inline for WordPress compatibility */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* === CSS VARIABLES === */
:root {
    --kbbc-orange: #D97D2E;
    --kbbc-orange-hover: #c06a1f;
    --kbbc-orange-light: rgba(217, 125, 46, 0.08);
    --kbbc-dark: #1a1a1a;
    --kbbc-cream: #f8f5f1;
    --kbbc-white: #ffffff;
    --kbbc-text: #333333;
    --kbbc-text-light: #666666;
    --kbbc-text-muted: #999999;
    --kbbc-border: #e8e3dd;
    --kbbc-urgency-red: #c0392b;
    --kbbc-success: #27ae60;
    --kbbc-shadow: 0 2px 16px rgba(0,0,0,0.08);
    --kbbc-shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
    --kbbc-radius: 6px;
}

/* === SECTION === */
.kbbc-stays-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px 80px;
}
.kbbc-section-header { text-align: center; margin-bottom: 40px; }
.kbbc-section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--kbbc-orange);
    margin-bottom: 10px;
}
.kbbc-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 36px;
    color: var(--kbbc-orange);
    margin-bottom: 8px;
    line-height: 1.2;
}
.kbbc-section-price-note {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--kbbc-orange);
    font-style: italic;
}
.kbbc-section-divider {
    width: 50px;
    height: 3px;
    background: var(--kbbc-orange);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* === FILTER BAR === */
.kbbc-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.kbbc-filter-segment {
    display: flex;
    border: 1.5px solid var(--kbbc-border);
    border-radius: 30px;
    overflow: hidden;
}
.kbbc-filter-segment-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    border: none;
    background: var(--kbbc-white);
    color: var(--kbbc-text-light);
    cursor: pointer;
    transition: all 0.25s ease;
}
.kbbc-filter-segment-btn:not(:last-child) { border-right: 1px solid var(--kbbc-border); }
.kbbc-filter-segment-btn:hover { color: var(--kbbc-orange); }
.kbbc-filter-segment-btn.active { background: var(--kbbc-dark); color: #ffffff; }
.kbbc-filter-select-wrap { position: relative; }
.kbbc-filter-select {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 36px 10px 20px;
    border: 1.5px solid var(--kbbc-border);
    border-radius: 30px;
    background: var(--kbbc-white);
    color: var(--kbbc-text-light);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color 0.25s ease;
}
.kbbc-filter-select:hover,
.kbbc-filter-select:focus { border-color: var(--kbbc-orange); color: var(--kbbc-orange); }
.kbbc-filter-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--kbbc-text-muted);
    pointer-events: none;
}

.kbbc-filter-result-count {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--kbbc-text-muted);
    margin-bottom: 24px;
    min-height: 20px;
}

/* === CARD GRID === */
.kbbc-card-grid {
    display: grid;
    gap: 28px;
}
.kbbc-card-grid.kbbc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.kbbc-card-grid.kbbc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.kbbc-card-grid.kbbc-cols-1 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
@media (max-width: 900px) { .kbbc-card-grid.kbbc-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) {
    .kbbc-card-grid.kbbc-cols-3,
    .kbbc-card-grid.kbbc-cols-2 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* === TRIP CARD === */
.kbbc-trip-card {
    background: var(--kbbc-white);
    border-radius: var(--kbbc-radius);
    overflow: hidden;
    box-shadow: var(--kbbc-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.kbbc-trip-card:hover { transform: translateY(-4px); box-shadow: var(--kbbc-shadow-hover); }
.kbbc-trip-card.hidden { display: none; }
.kbbc-trip-card.kbbc-fade-in { animation: kbbcCardFadeIn 0.4s ease forwards; }
@keyframes kbbcCardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Image */
.kbbc-card-image {
    position: relative;
    width: 100%;
    padding-top: 72%;
    overflow: hidden;
}
.kbbc-card-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.kbbc-trip-card:hover .kbbc-card-image-bg { transform: scale(1.04); }
.kbbc-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
}
.kbbc-card-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    z-index: 1;
}
.kbbc-card-duration {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
.kbbc-card-year {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--kbbc-orange);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Availability Badge */
.kbbc-avail-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.kbbc-avail-badge.low { background: var(--kbbc-urgency-red); color: #ffffff; }
.kbbc-avail-badge.moderate { background: var(--kbbc-orange); color: #ffffff; }
.kbbc-avail-badge.available { background: rgba(255,255,255,0.92); color: var(--kbbc-success); backdrop-filter: blur(4px); }
.kbbc-avail-badge.sold-out { background: var(--kbbc-dark); color: #ffffff; }

/* Card Body */
.kbbc-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Price Row */
.kbbc-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--kbbc-border);
    gap: 10px;
}
.kbbc-card-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--kbbc-dark);
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.kbbc-card-price span { font-weight: 400; font-size: 12px; color: var(--kbbc-text-muted); letter-spacing: 0; }
.kbbc-card-includes { display: flex; gap: 10px; flex-shrink: 0; }
.kbbc-card-include-tag {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: var(--kbbc-text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.kbbc-card-include-tag svg { width: 13px; height: 13px; fill: var(--kbbc-orange); flex-shrink: 0; }

/* Departure Section */
.kbbc-card-departures { margin-bottom: 14px; }
.kbbc-card-departures-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.kbbc-card-departures-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--kbbc-text-muted);
}
.kbbc-calendar-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--kbbc-orange);
    background: var(--kbbc-orange-light);
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    padding: 4px 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.kbbc-calendar-browse-btn:hover {
    background: var(--kbbc-orange);
    color: #ffffff;
    border-color: var(--kbbc-orange);
}
.kbbc-calendar-browse-btn svg { width: 14px; height: 14px; fill: currentColor; }

.kbbc-departure-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* v2.0.23: overflow chips (beyond the 4-chip preview) stay in the DOM so the "View All"
   modal can list every date, but are hidden from the card preview itself. */
.kbbc-departure-chips .kbbc-chip-overflow { display: none; }

.kbbc-departure-chip {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--kbbc-text);
    padding: 5px 10px;
    background: var(--kbbc-cream);
    border-radius: 4px;
    border: 1px solid var(--kbbc-border);
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.kbbc-departure-chip:hover:not(.sold-out) {
    border-color: var(--kbbc-orange);
    color: var(--kbbc-orange);
}
.kbbc-departure-chip.selected {
    background: var(--kbbc-orange);
    border-color: var(--kbbc-orange);
    color: #ffffff;
    font-weight: 500;
}
.kbbc-departure-chip.sold-out {
    text-decoration: line-through;
    opacity: 0.5;
    cursor: pointer;
}
.kbbc-departure-chip.sold-out:hover { opacity: 0.7; }

/* Sold Out Tooltip */
.kbbc-sold-out-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--kbbc-dark);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
    text-align: center;
}
.kbbc-sold-out-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--kbbc-dark);
}
.kbbc-sold-out-tooltip a {
    color: var(--kbbc-orange);
    text-decoration: underline;
    pointer-events: auto;
    cursor: pointer;
}
.kbbc-departure-chip.sold-out:hover .kbbc-sold-out-tooltip { opacity: 1; }

/* Selected Date Info Bar */
.kbbc-selected-date-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--kbbc-orange-light);
    border-radius: 4px;
    border: 1px solid rgba(217, 125, 46, 0.2);
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: var(--kbbc-text);
    display: none;
    animation: kbbcInfoSlideIn 0.25s ease;
}
.kbbc-selected-date-info.visible { display: flex; align-items: center; gap: 6px; }
.kbbc-selected-date-info .spots-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.kbbc-selected-date-info .spots-dot.green { background: var(--kbbc-success); }
.kbbc-selected-date-info .spots-dot.orange { background: var(--kbbc-orange); }
.kbbc-selected-date-info .spots-dot.red { background: var(--kbbc-urgency-red); }
@keyframes kbbcInfoSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Description */
.kbbc-card-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 13.5px;
    color: var(--kbbc-text-light);
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Book Now Button */
.kbbc-card-book-btn {
    display: block;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 14px 20px;
    background: var(--kbbc-orange);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
    text-decoration: none;
}
.kbbc-card-book-btn:hover { background: var(--kbbc-orange-hover); transform: translateY(-1px); color: #ffffff; text-decoration: none; }
.kbbc-card-book-btn:active { transform: translateY(0); }

/* ============================================
   CALENDAR MODAL
   ============================================ */
.kbbc-cal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    animation: kbbcOverlayIn 0.2s ease;
}
.kbbc-cal-overlay.open { display: flex; }
@keyframes kbbcOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kbbc-cal-modal {
    background: var(--kbbc-white);
    border-radius: 10px;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: kbbcModalSlideIn 0.3s ease;
}
@keyframes kbbcModalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.kbbc-cal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--kbbc-border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.kbbc-cal-header-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--kbbc-dark);
    margin-bottom: 2px;
}
.kbbc-cal-header-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--kbbc-text-muted);
}
.kbbc-cal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--kbbc-text-muted);
    transition: color 0.2s ease;
    font-size: 20px;
    line-height: 1;
}
.kbbc-cal-close-btn:hover { color: var(--kbbc-dark); }

.kbbc-cal-legend {
    padding: 14px 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--kbbc-border);
}
.kbbc-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: var(--kbbc-text-muted);
}
.kbbc-cal-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.kbbc-cal-legend-dot.green { background: var(--kbbc-success); }
.kbbc-cal-legend-dot.orange { background: var(--kbbc-orange); }
.kbbc-cal-legend-dot.red { background: var(--kbbc-urgency-red); }
.kbbc-cal-legend-dot.grey { background: #ccc; }

.kbbc-cal-dates-list { padding: 8px 0; }

.kbbc-cal-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    transition: background 0.15s ease;
    cursor: pointer;
}
.kbbc-cal-date-row:hover { background: var(--kbbc-cream); }
.kbbc-cal-date-row.sold-out { opacity: 0.55; }
.kbbc-cal-date-row.sold-out:hover { background: #fdf2f2; }

.kbbc-cal-date-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.kbbc-cal-date-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.kbbc-cal-date-dot.green { background: var(--kbbc-success); }
.kbbc-cal-date-dot.orange { background: var(--kbbc-orange); }
.kbbc-cal-date-dot.red { background: var(--kbbc-urgency-red); }
.kbbc-cal-date-dot.grey { background: #ccc; }

.kbbc-cal-date-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--kbbc-text);
}
.kbbc-cal-date-row.sold-out .kbbc-cal-date-text {
    text-decoration: line-through;
    color: var(--kbbc-text-muted);
}

.kbbc-cal-date-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kbbc-cal-spots-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-align: right;
}
.kbbc-cal-spots-text.available { color: var(--kbbc-success); }
.kbbc-cal-spots-text.low { color: var(--kbbc-urgency-red); }
.kbbc-cal-spots-text.moderate { color: var(--kbbc-orange); }
.kbbc-cal-spots-text.soldout { color: var(--kbbc-text-muted); }

.kbbc-cal-waitlist-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1.5px solid var(--kbbc-orange);
    border-radius: 20px;
    background: none;
    color: var(--kbbc-orange);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.kbbc-cal-waitlist-btn:hover { background: var(--kbbc-orange); color: #ffffff; }

.kbbc-cal-select-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1.5px solid var(--kbbc-orange);
    border-radius: 20px;
    background: var(--kbbc-orange);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.kbbc-cal-select-btn:hover { background: var(--kbbc-orange-hover); border-color: var(--kbbc-orange-hover); }

.kbbc-cal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--kbbc-border);
    text-align: center;
}
.kbbc-cal-footer-note {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: var(--kbbc-text-muted);
    font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .kbbc-section-title { font-size: 28px; }
    .kbbc-card-grid { gap: 20px; }
    .kbbc-filter-bar { gap: 10px; }
    .kbbc-filter-segment-btn { padding: 9px 14px; font-size: 11px; }
    .kbbc-filter-select { font-size: 11px; padding: 9px 32px 9px 14px; }
    .kbbc-cal-modal { width: 95%; }
}

/* === BEAR PHOTO PLACEHOLDERS (used when no API image) === */
.kbbc-bear-photo-1 { background: linear-gradient(145deg, #5a4a3a 0%, #7a6a52 30%, #4a3a2a 60%, #6a5a42 100%); }
.kbbc-bear-photo-2 { background: linear-gradient(145deg, #3a5a3a 0%, #5a7a52 30%, #2a4a2a 60%, #4a6a42 100%); }
.kbbc-bear-photo-3 { background: linear-gradient(145deg, #4a5a6a 0%, #6a7a8a 30%, #3a4a5a 60%, #5a6a7a 100%); }
.kbbc-bear-photo-4 { background: linear-gradient(145deg, #6a5a3a 0%, #8a7a52 30%, #5a4a2a 60%, #7a6a42 100%); }
.kbbc-bear-photo-5 { background: linear-gradient(145deg, #3a4a3a 0%, #5a6a4a 30%, #2a3a2a 60%, #4a5a3a 100%); }
.kbbc-bear-photo-6 { background: linear-gradient(145deg, #5a5a4a 0%, #7a7a5a 30%, #4a4a3a 60%, #6a6a4a 100%); }

.kbbc-photo-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
    pointer-events: none;
}

/* === ERROR STATE === */
.kbbc-trips-error {
    text-align: center;
    padding: 60px 24px;
    font-family: 'Roboto', sans-serif;
    color: var(--kbbc-text-muted);
    font-size: 16px;
}

/* ============================================
   CAROUSEL — [kbbc_carousel] shortcode
   v2.0.12 — Homepage trip carousel
   ============================================ */

.kbbc-carousel-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.kbbc-carousel {
    overflow: hidden;
    border-radius: var(--kbbc-radius);
}

.kbbc-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 16px;
}

/* --- Carousel Card --- */
.kbbc-carousel-card {
    flex: 0 0 calc((100% - 32px) / 3);
    position: relative;
    border-radius: var(--kbbc-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    -webkit-tap-highlight-color: transparent;
}

.kbbc-carousel-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #3a5a3a;
    transition: transform 0.5s ease;
}

.kbbc-carousel-card:hover .kbbc-carousel-card-image {
    transform: scale(1.05);
}

.kbbc-carousel-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.0) 100%
    );
    z-index: 1;
}

.kbbc-carousel-card-title {
    position: absolute;
    bottom: 16px;
    left: 18px;
    right: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 17px;
    color: #ffffff;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
}

/* --- Hover/Tap Overlay --- */
.kbbc-carousel-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
}

.kbbc-carousel-card:hover .kbbc-carousel-card-overlay,
.kbbc-carousel-card.is-tapped .kbbc-carousel-card-overlay {
    opacity: 1;
}

.kbbc-carousel-card:hover .kbbc-carousel-card-title,
.kbbc-carousel-card.is-tapped .kbbc-carousel-card-title {
    opacity: 0;
}

.kbbc-carousel-card-overlay-inner {
    width: 100%;
}

.kbbc-carousel-card-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 14px 0;
}

.kbbc-carousel-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 16px;
}

.kbbc-carousel-feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

.kbbc-carousel-feature svg {
    color: var(--kbbc-orange);
    flex-shrink: 0;
}

.kbbc-carousel-cta {
    display: block;
    width: 100%;
    padding: 11px 0;
    background: var(--kbbc-orange);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.kbbc-carousel-cta:hover {
    background: var(--kbbc-orange-hover);
    color: #ffffff;
    text-decoration: none;
}

/* --- Arrows: white circle, orange solid triangle --- */
.kbbc-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.kbbc-carousel-arrow:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.06);
}

.kbbc-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.kbbc-carousel-arrow:disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.kbbc-carousel-prev {
    left: 0;
}

.kbbc-carousel-next {
    right: 0;
}

/* Orange solid triangle inside arrows */
.kbbc-carousel-arrow .arrow-triangle {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
}

.kbbc-carousel-prev .arrow-triangle {
    border-width: 10px 14px 10px 0;
    border-color: transparent var(--kbbc-orange) transparent transparent;
    margin-right: 3px;
}

.kbbc-carousel-next .arrow-triangle {
    border-width: 10px 0 10px 14px;
    border-color: transparent transparent transparent var(--kbbc-orange);
    margin-left: 3px;
}

/* --- Placeholder card (no image) --- */
.kbbc-carousel-placeholder .kbbc-carousel-card-image {
    background: linear-gradient(145deg, #3a5a3a 0%, #2a4a2a 100%);
}

/* --- Deep-link highlight on All Stays page --- */
.kbbc-trip-card.kbbc-highlight {
    animation: kbbcHighlightPulse 1.5s ease-out;
}

@keyframes kbbcHighlightPulse {
    0%   { box-shadow: 0 0 0 0 rgba(217, 125, 46, 0.6); }
    40%  { box-shadow: 0 0 0 12px rgba(217, 125, 46, 0.25); }
    100% { box-shadow: var(--kbbc-shadow); }
}

/* --- Responsive --- */

/* Tablet: 2 cards visible */
@media (max-width: 900px) {
    .kbbc-carousel-card {
        flex: 0 0 calc((100% - 16px) / 2);
        aspect-ratio: 3 / 4;
    }

    .kbbc-carousel-wrap {
        padding: 0 44px;
    }
}

/* Mobile: 1 card visible */
@media (max-width: 600px) {
    .kbbc-carousel-card {
        flex: 0 0 100%;
        aspect-ratio: 3 / 4;
    }

    .kbbc-carousel-track {
        gap: 12px;
    }

    .kbbc-carousel-wrap {
        padding: 0 44px;
    }

    .kbbc-carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .kbbc-carousel-prev .arrow-triangle {
        border-width: 8px 11px 8px 0;
    }

    .kbbc-carousel-next .arrow-triangle {
        border-width: 8px 0 8px 11px;
    }

    .kbbc-carousel-card-title {
        font-size: 16px;
        bottom: 16px;
        left: 16px;
    }

    .kbbc-carousel-card-desc {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .kbbc-carousel-card-overlay {
        padding: 20px;
    }

    .kbbc-carousel-card-features {
        gap: 6px 14px;
    }

    .kbbc-carousel-cta {
        font-size: 13px;
        padding: 12px 0;
    }
}

/* =========================================================================
   WAITLIST MODAL
   ========================================================================= */

.kbbc-waitlist-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.kbbc-waitlist-overlay.open {
    opacity: 1;
    visibility: visible;
}

.kbbc-waitlist-modal {
    background: #ffffff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    padding: 36px 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.kbbc-waitlist-overlay.open .kbbc-waitlist-modal {
    transform: translateY(0);
}

.kbbc-waitlist-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}
.kbbc-waitlist-close:hover { color: #333; }

.kbbc-waitlist-header {
    text-align: center;
    margin-bottom: 24px;
}
.kbbc-waitlist-icon {
    margin-bottom: 10px;
}
.kbbc-waitlist-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}
.kbbc-waitlist-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--kbbc-orange);
    margin: 0;
}

.kbbc-waitlist-field {
    margin-bottom: 16px;
}
.kbbc-waitlist-field label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 6px;
}
.kbbc-waitlist-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--kbbc-border);
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.kbbc-waitlist-field input:focus {
    border-color: var(--kbbc-orange);
}
.kbbc-waitlist-field input::placeholder {
    color: #ccc;
}

.kbbc-waitlist-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--kbbc-orange);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}
.kbbc-waitlist-submit:hover { background: #c06a1f; }
.kbbc-waitlist-submit:disabled { background: #ccc; cursor: not-allowed; }

.kbbc-waitlist-privacy {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: #bbb;
    text-align: center;
    margin: 12px 0 0 0;
}

.kbbc-waitlist-success {
    text-align: center;
    padding: 10px 0;
}
.kbbc-waitlist-success-icon {
    margin-bottom: 12px;
}
.kbbc-waitlist-success h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}
.kbbc-waitlist-success p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.kbbc-waitlist-error {
    background: #fef5f5;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 12px;
}
.kbbc-waitlist-error p {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #c0392b;
    margin: 0;
}

@media (max-width: 480px) {
    .kbbc-waitlist-modal {
        padding: 28px 20px;
    }
}
