/* ═══════════════════════════════════════════
   RLAH Frontend Styles
   Matches runlikeahaggis.com existing design
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Gochi+Hand&display=swap');

:root {
    --color-intro: #0097B2;
    --color-developing: #FF9F00;
    --color-night: #AD0000;
    --color-workshop: #D77103;
    --color-maprun: #27ae60;
    --color-coaching: #5b7c99;
    --color-weekend: #8e44ad;
    --color-bespoke: #34495e;
    --color-nnas_bronze: #cd7f32;
    --color-nnas_silver: #c0c0c0;
    --color-text: #333;
    --color-text-dark: #2c3e50;
    --color-light-text: #777;
    --color-available: #27ae60;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ─── FLOATING BASKET ICON ─── */
.rlah-floating-basket {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #0097B2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rlah-floating-basket:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: #fff;
}

.rlah-floating-basket .rlah-basket-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #AD0000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 5px;
    border: 2px solid #fff;
}

.btn.added, button.added {
    background: var(--color-available) !important;
    border-color: var(--color-available) !important;
    color: var(--color-white) !important;
}

/* ─── UNIFIED RLAH BUTTON STYLES ─── */
.rlah-booking-page .btn,
.rlah-shop-page .btn,
.rlah-course-card .btn,
.rlah-coaching-card .btn,
button.rlah-add-to-basket,
.rlah-pay-btn,
#rlah-apply-discount-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.4;
    box-sizing: border-box;
}

.rlah-booking-page .btn.btn-primary,
.rlah-shop-page .btn.btn-primary,
.rlah-course-card .btn.btn-primary,
.rlah-coaching-card .btn.btn-primary,
button.rlah-add-to-basket:not(.btn-secondary) {
    background: var(--color-intro);
    color: var(--color-white);
    border-color: var(--color-intro);
}

.rlah-booking-page .btn.btn-primary:hover,
.rlah-shop-page .btn.btn-primary:hover,
.rlah-course-card .btn.btn-primary:hover,
.rlah-coaching-card .btn.btn-primary:hover,
button.rlah-add-to-basket:not(.btn-secondary):hover {
    background: #007d96;
    border-color: #007d96;
    box-shadow: 0 2px 12px rgba(0, 151, 178, 0.3);
    transform: translateY(-1px);
}

.rlah-booking-page .btn.btn-secondary,
.rlah-shop-page .btn.btn-secondary,
.rlah-course-card .btn.btn-secondary,
button.rlah-add-to-basket.btn-secondary,
#rlah-apply-discount-btn {
    background: var(--color-white);
    color: var(--color-intro);
    border-color: var(--color-intro);
}

.rlah-booking-page .btn.btn-secondary:hover,
.rlah-shop-page .btn.btn-secondary:hover,
.rlah-course-card .btn.btn-secondary:hover,
#rlah-apply-discount-btn:hover {
    background: rgba(0, 151, 178, 0.06);
    box-shadow: 0 2px 8px rgba(0, 151, 178, 0.15);
}

/* Pay button - larger for emphasis */
.rlah-pay-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1em;
    font-weight: 700;
    background: var(--color-intro);
    color: var(--color-white);
    border-color: var(--color-intro);
}

.rlah-pay-btn:hover:not(:disabled) {
    background: #007d96;
    border-color: #007d96;
    box-shadow: 0 2px 12px rgba(0, 151, 178, 0.3);
    transform: translateY(-1px);
}

.rlah-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── SHOP PAGE ─── */
.rlah-shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.rlah-shop-filter {
    padding: 8px 18px;
    border-radius: 20px;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    font-size: 0.9em;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-text-dark);
}

.rlah-shop-filter.active,
.rlah-shop-filter:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.rlah-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.rlah-shop-item {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.rlah-shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.rlah-shop-item[style*="display:none"] { display: none !important; }

.rlah-shop-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f3f6;
}

.rlah-shop-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rlah-shop-name {
    margin: 0 0 6px;
    font-size: 1.1em;
    color: var(--color-text-dark);
}

.rlah-shop-desc {
    font-size: 0.85em;
    color: #888;
    margin: 0 0 12px;
    flex: 1;
}

.rlah-shop-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rlah-shop-price {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-primary);
}

.rlah-shop-soldout {
    font-size: 0.85em;
    font-weight: 600;
    color: #c0392b;
    background: #fde8e8;
    padding: 6px 14px;
    border-radius: 6px;
}

.rlah-shop-bottom .btn {
    font-size: 0.85em;
    padding: 8px 16px;
    display: inline-block;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    background: var(--color-intro);
    color: var(--color-white);
}

.rlah-shop-bottom .btn:hover {
    background: #007d96;
    box-shadow: 0 2px 8px rgba(0, 151, 178, 0.3);
    transform: translateY(-1px);
}

.rlah-shop-bottom .btn.added {
    background: var(--color-available) !important;
    color: var(--color-white) !important;
}

/* ─── COACHING CARD ─── */
.rlah-coaching-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 6px solid #5b7c99;
    border-radius: 0 12px 12px 0;
    padding: 24px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rlah-coaching-title {
    color: #5b7c99;
    margin: 0 0 12px;
    font-size: 1.3em;
}

.rlah-coaching-meta p { margin: 4px 0; font-size: 0.95em; }

.rlah-coaching-dates { margin: 16px 0; }

.rlah-coaching-dates-grid,
.date-card-session-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.rlah-coaching-date-chip {
    display: inline-block;
    background: rgba(91, 124, 153, 0.1);
    color: #5b7c99;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    white-space: nowrap;
}

.rlah-coaching-actions { margin-top: 16px; }

.rlah-coaching-actions .btn,
.rlah-coaching-actions button {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.rlah-coaching-actions .btn-primary,
.rlah-coaching-actions .rlah-add-to-basket {
    background: #5b7c99;
    color: var(--color-white);
}

.rlah-coaching-actions .btn-primary:hover,
.rlah-coaching-actions .rlah-add-to-basket:hover {
    background: #4a6a85;
    box-shadow: 0 2px 8px rgba(91, 124, 153, 0.3);
    transform: translateY(-1px);
}

.rlah-coaching-actions .btn-secondary,
.rlah-coaching-actions .rlah-waiting-list-btn {
    background: var(--color-white);
    color: #5b7c99;
    border: 2px solid #5b7c99;
}

.rlah-coaching-actions .btn-secondary:hover,
.rlah-coaching-actions .rlah-waiting-list-btn:hover {
    background: rgba(91, 124, 153, 0.08);
}

/* ─── BESPOKE SESSION CARDS ─── */
.rlah-bespoke-heading {
    color: var(--color-bespoke);
    margin: 1.5rem 0 1rem;
    font-size: 1.3em;
}

.rlah-bespoke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 1rem 0;
}

.rlah-bespoke-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 6px solid var(--color-bespoke);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rlah-bespoke-title {
    color: var(--color-bespoke);
    margin: 0 0 4px;
    font-size: 1.1em;
}

.rlah-bespoke-price {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
}

.rlah-bespoke-desc {
    font-size: 0.85em;
    color: var(--color-text-light);
    margin: 4px 0 0;
    font-style: italic;
}

.rlah-bespoke-action .btn {
    white-space: nowrap;
}

.rlah-bespoke-card .btn-primary,
.rlah-bespoke-card .rlah-add-to-basket {
    background: var(--color-bespoke);
    color: var(--color-white);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.rlah-bespoke-card .btn-primary:hover,
.rlah-bespoke-card .rlah-add-to-basket:hover {
    background: #2c3e50;
    box-shadow: 0 2px 8px rgba(52, 73, 94, 0.3);
    transform: translateY(-1px);
}

.date-card-title {
    font-weight: 700;
    font-size: 1em;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.date-card-sessions {
    margin: 8px 0;
    font-size: 0.85em;
}

/* ─── COURSE CARDS (both styles use existing CSS classes) ─── */
/* The rlh-option1-container classes match the existing site CSS */
/* We only add minimal additions here; the site's own CSS handles the rest */

/* Compact card additions */
.course-item-compact {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-left-width: 8px;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.course-item-compact:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.course-item-compact.course-intro { border-left-color: var(--color-intro); }
.course-item-compact.course-developing { border-left-color: var(--color-developing); }
.course-item-compact.course-night { border-left-color: var(--color-night); }
.course-item-compact.course-coaching { border-left-color: var(--color-coaching); }
.course-item-compact.course-weekend { border-left-color: var(--color-weekend); }
.course-item-compact.course-workshop { border-left-color: var(--color-workshop); }
.course-item-compact.course-maprun { border-left-color: var(--color-maprun); }
.course-item-compact.course-nnas_bronze { border-left-color: var(--color-nnas_bronze); }
.course-item-compact.course-nnas_silver { border-left-color: var(--color-nnas_silver); }

.course-item-compact .course-date {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.6rem 0;
}

.course-item-compact .course-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

/* Course card colour accents — applies to both theme-styled and standalone cards */
.course-card.course-intro { border-left: 4px solid var(--color-intro); }
.course-card.course-developing { border-left: 4px solid var(--color-developing); }
.course-card.course-night { border-left: 4px solid var(--color-night); }
.course-card.course-coaching { border-left: 4px solid var(--color-coaching); }
.course-card.course-weekend { border-left: 4px solid var(--color-weekend); }
.course-card.course-workshop { border-left: 4px solid var(--color-workshop); }
.course-card.course-maprun { border-left: 4px solid var(--color-maprun); }
.course-card.course-bespoke { border-left: 4px solid var(--color-bespoke, #34495e); }
.course-card.course-nnas_bronze { border-left: 4px solid var(--color-nnas_bronze); }
.course-card.course-nnas_silver { border-left: 4px solid var(--color-nnas_silver); }
.course-card.course-fastpack_tea,
.course-card.course-fastpack_pennine { border-left: 4px solid var(--color-weekend); }
.course-item-compact.course-fastpack_tea,
.course-item-compact.course-fastpack_pennine { border-left-color: var(--color-weekend); }

/* Fastpacking cards: same weekend purple, told apart by a hatched top-right
   corner and a line of route figures under the title (route_* columns). */
.course-card.is-fastpack {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.course-card.is-fastpack::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 120px;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(142, 68, 173, 0.13) 9px 11px);
    -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 90%), linear-gradient(to bottom, #000 35%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to left, #000 10%, transparent 90%), linear-gradient(to bottom, #000 35%, transparent 100%);
    mask-composite: intersect;
    transition: transform 0.5s ease;
}
.course-card.is-fastpack:hover::before { transform: translateX(-10px); }
@media (prefers-reduced-motion: reduce) {
    .course-card.is-fastpack::before { transition: none; }
    .course-card.is-fastpack:hover::before { transform: none; }
}

.course-route-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 6px 0 0;
    font-size: 0.95em;
    color: var(--color-light-text);
    font-variant-numeric: tabular-nums;
}
.course-route-stats span { white-space: nowrap; }
/* The site theme gives .course-title flex-grow:1 to push the buttons down.
   With stats present, hand that job to the stats line so it sits directly
   under the title instead of sinking towards the buttons. */
.course-card.has-route-stats .course-title { flex-grow: 0; margin-bottom: 0.25rem; }
.course-card.has-route-stats .course-route-stats { flex-grow: 1; align-content: flex-start; margin: 0 0 1rem; }
.course-route-stats b { color: var(--color-text); font-weight: 600; }

/* Status full tag (inline in actions) */
.status-full-tag {
    font-weight: 500;
    font-size: 0.9em;
    color: var(--color-light-text);
    background-color: #f1f1f1;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    display: inline-block;
}

/* Add to basket button styling — inherits from existing btn classes */
button.rlah-add-to-basket {
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

button.rlah-add-to-basket.added {
    background-color: var(--color-available) !important;
}

/* ─── CALENDAR ─── */
.rlah-calendar-wrapper {
    max-width: 580px;
    margin: 2rem auto;
    box-sizing: border-box;
}

.rlah-calendar-container {
    box-sizing: border-box;
    max-width: 100%;
    background: var(--color-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.rlah-cal-body {
    min-height: 280px;
}

.rlah-cal-skeleton {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    color: var(--color-light-text);
    font-style: italic;
    font-size: 0.95em;
}

.rlah-cal-body.rlah-cal-loading .rlah-cal-skeleton {
    display: flex;
}

.rlah-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rlah-cal-month-title {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
}

.rlah-cal-nav {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-coaching);
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    line-height: 1;
    font-weight: bold;
}

.rlah-cal-nav:hover {
    background: #f0f0f0;
}

.rlah-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    text-align: center;
}

.rlah-cal-day-header {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--color-light-text);
    padding: 8px 0;
}

.rlah-cal-body {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.rlah-cal-day {
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--color-light-text);
    position: relative;
    transition: transform 0.15s;
}

.rlah-cal-day.has-event {
    color: var(--color-white);
    cursor: pointer;
    text-decoration: none;
}

.rlah-cal-day.has-event:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.rlah-cal-day.today {
    outline: 2px solid var(--color-intro);
    outline-offset: 2px;
}

.rlah-cal-day.other-month {
    opacity: 0.3;
}

.rlah-cal-day.event-full {
    opacity: 0.5;
}

/* Tooltip on hover */
.rlah-cal-day .rlah-cal-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text-dark);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.rlah-cal-day .rlah-cal-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-text-dark);
}

.rlah-cal-day:hover .rlah-cal-tooltip {
    display: block;
}

/* Legend */
.rlah-cal-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.rlah-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: var(--color-text);
}

.rlah-cal-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

/* ─── REVIEWS (uses existing testimonial CSS) ─── */
/* The shortcode outputs classes that match the existing site CSS */

/* theme-weekend: the site theme's style.css defines theme-intro/developing/night
   but NOT theme-weekend, so weekend reviews used to be mapped to the orange
   theme-developing. Own it here in deep purple, matching the theme's tint +
   left-border pattern. Paired with the 'weekend'=>'theme-weekend' map in
   public/class-rlah-shortcodes.php shortcode_reviews(). */
.rlh-testimonial-container.theme-weekend .testimonial-card {
    background-color: #f5eef8 !important;
    border-left-color: var(--color-weekend) !important;
}

/* ─── UNIFIED BOOKING PAGE ─── */
.rlah-booking-page {
    max-width: 750px;
    margin: 2rem auto;
    font-family: var(--font-primary);
}

/* Basket section */
.rlah-basket-items {
    margin-bottom: 1rem;
}

.rlah-basket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left-width: 5px;
    border-radius: 8px;
    margin-bottom: 8px;
    gap: 12px;
}

.rlah-basket-item-info {
    flex: 1;
}

.rlah-basket-item-name {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 0.95em;
}

.rlah-basket-item-meta {
    font-size: 0.85em;
    color: var(--color-light-text);
    margin-top: 2px;
}

.rlah-basket-item-price {
    font-weight: 700;
    color: var(--color-text-dark);
    white-space: nowrap;
}

.rlah-basket-item-remove {
    background: none;
    border: none;
    color: var(--color-light-text);
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 4px;
    line-height: 1;
}

.rlah-basket-item-remove:hover {
    color: var(--color-night);
}

.rlah-basket-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rlah-basket-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--color-text-dark);
    line-height: 1;
}

.rlah-basket-qty-btn:hover {
    background: var(--color-intro);
    color: var(--color-white);
    border-color: var(--color-intro);
}

.rlah-basket-qty-val {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    font-size: 0.95em;
}

.rlah-basket-totals {
    text-align: right;
    padding: 12px 0;
    border-top: 2px solid var(--color-border);
    font-size: 1.1em;
}

.rlah-basket-total-amount {
    font-weight: 700;
    color: var(--color-text-dark);
}

.rlah-basket-actions {
    display: flex;
    gap: 12px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* Styled action buttons */
.rlah-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
}

.rlah-action-secondary {
    background: var(--color-white);
    color: var(--color-intro);
    border-color: var(--color-intro);
}

.rlah-action-secondary:hover {
    background: rgba(0, 151, 178, 0.06);
    box-shadow: 0 2px 8px rgba(0, 151, 178, 0.15);
}

.rlah-action-primary {
    background: var(--color-intro);
    color: var(--color-white);
    border-color: var(--color-intro);
}

.rlah-action-primary:hover {
    background: #007d96;
    box-shadow: 0 2px 12px rgba(0, 151, 178, 0.3);
    transform: translateY(-1px);
}

.rlah-action-btn svg {
    flex-shrink: 0;
}

/* Merch section */
.rlah-merch-section {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}


.rlah-merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.rlah-merch-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;        /* ADD THIS */
    padding: 0;              /* CHANGE FROM 16px to 0 */
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.rlah-merch-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.rlah-merch-card.in-basket {
    border-color: var(--color-available);
    background: rgba(39, 174, 96, 0.04);
}

.rlah-merch-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.rlah-merch-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f3f6;
}

.rlah-merch-name {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--color-text-dark);
}

.rlah-merch-price {
    font-size: 0.85em;
    color: var(--color-light-text);
    margin: 4px 0 8px;
}

.rlah-merch-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rlah-merch-name,
.rlah-merch-price,
.rlah-merch-qty {
    padding: 0 16px;
}

.rlah-merch-name {
    margin-top: 12px;
}

.rlah-merch-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.rlah-merch-qty button:hover {
    background: var(--color-intro);
    color: var(--color-white);
    border-color: var(--color-intro);
}

.rlah-merch-qty-val {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Shipping options */
.rlah-shipping-section {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.rlah-shipping-section h4 {
    margin: 0 0 12px;
    font-size: 0.95em;
    color: var(--color-text-dark);
}

.rlah-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rlah-shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.rlah-shipping-option:has(input:checked) {
    border-color: var(--color-intro);
    background: rgba(0, 151, 178, 0.04);
}

.rlah-shipping-option input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.rlah-shipping-option-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rlah-shipping-option-label strong {
    font-size: 0.9em;
}

.rlah-shipping-option-label span {
    font-size: 0.8em;
    color: var(--color-light-text);
}

/* Checkout form */
.rlah-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .rlah-checkout-grid { grid-template-columns: 1fr; }
}

.rlah-checkout-section .rlah-form-group {
    margin-bottom: 8px;
}

.rlah-checkout-section .rlah-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.rlah-checkout-section .rlah-form-group input[type="text"],
.rlah-checkout-section .rlah-form-group input[type="email"],
.rlah-checkout-section .rlah-form-group input[type="tel"],
.rlah-checkout-section .rlah-form-group textarea,
.rlah-shipping-address .rlah-form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1em;
    font-family: var(--font-primary);
    box-sizing: border-box;
}

.rlah-checkout-section .rlah-form-group input:focus,
.rlah-checkout-section .rlah-form-group textarea:focus,
.rlah-shipping-address .rlah-form-group input:focus {
    border-color: var(--color-intro);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 151, 178, 0.15);
}

.rlah-shipping-address .rlah-form-group {
    margin-bottom: 8px;
}

.rlah-shipping-address .rlah-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.rlah-shipping-address .rlah-form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1em;
    font-family: var(--font-primary);
    box-sizing: border-box;
    background: var(--color-white);
}

.rlah-shipping-address .rlah-form-group input[type="text"]:focus {
    border-color: var(--color-intro);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 151, 178, 0.15);
}

.rlah-shipping-address .rlah-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

@media (max-width: 600px) {
    .rlah-shipping-address .rlah-checkout-grid { grid-template-columns: 1fr; }
    .rlah-shipping-address .rlah-form-group[style*="grid-column"] { grid-column: auto !important; }
}

.required { color: var(--color-night); }

/* Attendee sections */
.rlah-attendee-block {
    background: #f8f9fa;
    border-left: 4px solid var(--color-intro);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.rlah-attendee-block h4 {
    margin: 0 0 12px;
    font-size: 0.95em;
    color: var(--color-text-dark);
}

.rlah-attendee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

@media (max-width: 600px) {
    .rlah-attendee-grid { grid-template-columns: 1fr; }
}

.rlah-attendee-full { grid-column: 1 / -1; }

/* Opt-in and terms */
.rlah-optin, .rlah-terms {
    margin: 1rem 0;
}

.rlah-checkbox-label-front {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1.4;
}

.rlah-checkbox-label-front input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Stripe card element */
.rlah-card-element {
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-white);
    margin-bottom: 8px;
}

.rlah-or-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--color-light-text);
    font-size: 0.85em;
}

.rlah-or-divider::before,
.rlah-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.rlah-or-divider span {
    padding: 0 12px;
}

.rlah-card-errors {
    color: var(--color-night);
    font-size: 0.85em;
    min-height: 20px;
    margin-bottom: 12px;
}

/* Pay button styles now in unified section above */

.rlah-checkout-processing {
    text-align: center;
    padding: 2rem;
    color: var(--color-light-text);
}

/* Confirmation */
.rlah-confirmation-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.rlah-confirmation-icon {
    width: 60px;
    height: 60px;
    background: var(--color-available);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.rlah-confirmation-card h2 {
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

/* ─── BOOKING WIZARD ─── */
.rlah-booking-wizard {
    max-width: 700px;
    margin: 2rem auto;
    font-family: var(--font-primary);
}

.rlah-wizard-step {
    display: none;
}

.rlah-wizard-step.active {
    display: block;
}

.rlah-wizard-heading {
    font-size: 1.3em;
    color: var(--color-text-dark);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-size: 0.95em;
}

.rlah-wizard-back {
    background: none;
    border: none;
    color: var(--color-intro);
    cursor: pointer;
    font-size: 0.9em;
    padding: 0;
    margin-bottom: 1rem;
    display: block;
    font-weight: 500;
}

.rlah-wizard-back:hover {
    text-decoration: underline;
}

/* Step 1: Type buttons */
.rlah-booking-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.rlah-booking-type-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-primary);
    text-align: left;
}

.rlah-booking-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.rlah-booking-type-btn[style*="#0097B2"]:hover { background-color: rgba(0, 151, 178, 0.1); }
.rlah-booking-type-btn[style*="#FF9F00"]:hover { background-color: rgba(255, 159, 0, 0.1); }
.rlah-booking-type-btn[style*="#AD0000"]:hover { background-color: rgba(173, 0, 0, 0.08); }
.rlah-booking-type-btn[style*="#5b7c99"]:hover { background-color: rgba(91, 124, 153, 0.1); }
.rlah-booking-type-btn[style*="#8e44ad"]:hover { background-color: rgba(142, 68, 173, 0.1); }
.rlah-booking-type-btn[style*="#cd7f32"]:hover { background-color: rgba(205, 127, 50, 0.1); }
.rlah-booking-type-btn[style*="#c0c0c0"]:hover { background-color: rgba(192, 192, 192, 0.2); }

.rlah-booking-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    flex-shrink: 0;
}

.rlah-booking-type-label {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 0.95em;
}

/* Step 2: Date cards */
.rlah-booking-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.rlah-booking-date-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left-width: 6px;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.rlah-booking-date-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* A full date is faded, but the Join Waiting List button on it stays at full strength so it looks clickable. */
.rlah-booking-date-card.is-full {
    cursor: default;
}
.rlah-booking-date-card.is-full > :not(.rlah-waiting-list-btn) {
    opacity: 0.5;
}
.rlah-booking-date-card.is-full .rlah-waiting-list-btn {
    cursor: pointer;
}

.rlah-booking-date-card .date-card-date {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.rlah-booking-date-card .date-card-info {
    font-size: 0.85em;
    color: var(--color-light-text);
}

.rlah-booking-date-card .date-card-price {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 8px;
}

.rlah-booking-date-card .date-card-full {
    color: var(--color-light-text);
    font-style: italic;
    margin-top: 8px;
}

.rlah-booking-date-card .date-card-places {
    color: var(--color-available);
    font-size: 0.85em;
    margin-top: 4px;
}

/* Step 3: Confirm */
.rlah-confirm-details {
    background: #f8f9fa;
    border-left: 4px solid var(--color-intro);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.rlah-confirm-item {
    padding: 6px 0;
    font-size: 0.95em;
}

.rlah-confirm-item strong {
    color: var(--color-text-dark);
    display: inline-block;
    min-width: 130px;
}

.rlah-confirm-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rlah-confirm-qty label {
    font-weight: 600;
    color: var(--color-text-dark);
}

.rlah-confirm-qty input {
    width: 70px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1em;
    text-align: center;
}

.rlah-confirm-add-btn {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.rlah-loading {
    color: var(--color-light-text);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.rlah-no-dates {
    color: var(--color-light-text);
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .rlah-calendar-container {
        padding: 12px;
    }
    
    .rlah-cal-month-title {
        font-size: 1.4rem;
    }

    .rlah-cal-grid,
    .rlah-cal-body {
        gap: 4px;
    }

    .rlah-cal-day {
        font-size: 0.8em;
    }

    .rlah-booking-types {
        grid-template-columns: 1fr;
    }

    .rlah-booking-dates {
        grid-template-columns: 1fr;
    }

    .course-list {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 601px) and (max-width: 960px) {
    .course-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 961px) {
    .course-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Weekend / fastpacking lists with only 1-3 cards use that many columns */
@media (min-width: 601px) and (max-width: 960px) {
    .course-list.course-list-n1 { grid-template-columns: 1fr !important; }
}
@media (min-width: 961px) {
    .course-list.course-list-n1 { grid-template-columns: 1fr !important; }
    .course-list.course-list-n2 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ─── REVIEW SLIDE ANIMATIONS ─── */
.rlah-reviews-carousel {
    position: relative;
    overflow: hidden;
}

.rlah-review-item {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.rlah-review-item.rlah-review-visible {
    opacity: 1;
    transform: translateX(0);
}

.rlah-review-item.rlah-review-sliding-out {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.rlah-review-item.rlah-review-hidden {
    display: none !important;
}

/* ─── WAITING LIST MODAL ─── */
.rlah-wl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rlah-wl-modal {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: rlah-wl-fadein 0.2s ease;
}

@keyframes rlah-wl-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rlah-wl-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0.25rem;
}
.rlah-wl-close:hover {
    color: #333;
}

.rlah-wl-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.rlah-wl-course-name {
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    color: #0097B2;
    font-weight: 600;
}

.rlah-wl-field {
    margin-bottom: 1rem;
}

.rlah-wl-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3rem;
}

.rlah-wl-field input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.rlah-wl-field input:focus {
    outline: none;
    border-color: #0097B2;
    box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.1);
}

.rlah-wl-error {
    color: #c0392b;
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.rlah-wl-submit {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-weight: 600;
}

/* Success state */
.rlah-wl-success {
    text-align: center;
    padding: 1rem 0;
}

.rlah-wl-tick {
    width: 60px;
    height: 60px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 60px;
    margin: 0 auto 1rem;
}

.rlah-wl-success p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.rlah-wl-success-sub {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: #777 !important;
}

/* Button on card when already on waiting list */
.rlah-waiting-list-btn.added {
    opacity: 0.7;
    cursor: default;
}

/* Waiting list button styles for full/compact cards */
.course-actions .rlah-waiting-list-btn,
.course-actions-row .rlah-waiting-list-btn {
    background: transparent;
    color: #0097B2;
    border: 2px solid #0097B2;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.course-actions .rlah-waiting-list-btn:hover,
.course-actions-row .rlah-waiting-list-btn:hover {
    background: rgba(0, 151, 178, 0.08);
}

/* Booking wizard date card waiting list button */
.rlah-booking-date-card .rlah-waiting-list-btn {
    margin-top: 0.5rem;
    cursor: pointer;
}


/* --- Waiting List Checkbox Fields --- */
.rlah-wl-checkbox-field {
    margin-top: 1rem;
}

.rlah-wl-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    font-weight: normal;
}

.rlah-wl-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0097B2;
}


/* ─── NNAS Custom Course Cards ─── */
.nnas-v1 {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 6px solid var(--color-nnas_bronze);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nnas-v1.silver {
    border-left-color: var(--color-nnas_silver);
}

.nnas-v1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.nnas-v1 .v1-compass {
    position: absolute;
    right: 10px;
    bottom: 55px;
    width: 120px;
    height: 120px;
    opacity: .20;
    pointer-events: none;
    z-index: 0;
}

.nnas-v1 .v1-compass svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nnas-v1 .v1-logo {
    position: absolute;
    top: 14px;
    right: 14px;
    height: 31.6px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: .85;
    z-index: 2;
}

.nnas-v1 .v1-tier {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #a86523, #cd7f32 55%, #e0a060);
    width: max-content;
}

.nnas-v1.silver .v1-tier {
    background: linear-gradient(135deg, #9b9b9b, #c0c0c0 55%, #e8e8e8);
    color: #2a2a2a;
}

.nnas-v1 .v1-date {
    position: relative;
    z-index: 1;
    font-size: 0.92rem;
    color: var(--color-light-text);
    margin: 0;
}

.nnas-v1 .v1-title {
    position: relative;
    z-index: 1;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.25;
    padding-right: 64px;
}

.nnas-v1 .v1-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}
