/* ============================================================================
 * PTST Accommodation Cards
 *
 * Hotel/provider card styling, used in two contexts:
 *
 *   - Course pages: rendered inside an accordion item by
 *     ptst_build_course_accommodation_html() in course.php
 *   - Class pages: rendered by [class_accommodation] in accommodation.php
 *
 * Both contexts call ptst_render_accommodation_cards() which outputs the
 * card markup. The outer wrapper classes (.ptst-course-accommodation /
 * .ptst-class-accommodation) and the .ptst-section-heading are added by
 * the caller; everything below the wrapper is shared.
 *
 * Loaded only on singular course or class pages — see accommodation.php
 * enqueue gate.
 *
 * Updated May 2026 to use the Samson Tiara design-system tokens
 * (--brand-blue, --line, --bg-soft, --success, --warning, --radius-*, etc.)
 * so the cards visually align with the rest of the site. Falls back to
 * literal hex when a token isn't loaded, so the file is still safe in
 * isolation.
 * ============================================================================ */


/* ── Wrapper-level (class context only) ─────────────────────────────────── */

/* "Accommodation options" heading — matches the other in-card titles on
   the class page (no decorative gold bar; just a clean 22px h-style). */
.ptst-section-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink, #0B1B33);
    letter-spacing: -0.012em;
    line-height: 1.25;
    text-transform: none;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}


/* ── Venue group heading (shown only when course/class has > 1 venue) ───── */

.ptst-venue-heading {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-blue, #0E4A9C);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 16px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line, #E2E8F2);
}


/* ── Card — one per hotel/provider ──────────────────────────────────────── */

.ptst-accom-card {
    background: #ffffff;
    border: 1px solid var(--line, #E2E8F2);
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    margin-bottom: 14px;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.ptst-accom-card:hover {
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(11, 27, 51, 0.08));
    border-color: var(--brand-blue-100, #D6E7F4);
}

.ptst-accom-card__header {
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--line-soft, #EEF1F7);
}

.ptst-accom-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink, #0B1B33);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.ptst-accom-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ptst-accom-card__distance {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-blue, #0E4A9C);
    background: var(--brand-blue-50, #EEF4FB);
    border: 1px solid var(--brand-blue-100, #D6E7F4);
    border-radius: 999px;
    padding: 3px 10px;
}

.ptst-accom-card__body {
    padding: 12px 18px 14px;
}


/* ── Room rows within a card ────────────────────────────────────────────── */

.ptst-accom-card__room-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft, #EEF1F7);
}

.ptst-accom-card__room-row--last {
    border-bottom: none;
}

.ptst-accom-card__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink, #0B1B33);
    text-align: right;
    line-height: 1.2;
}

.ptst-accom-card__price-sub {
    font-size: 11px;
    color: var(--ink-3, #5A6B86);
    text-align: right;
    margin-top: 2px;
}


/* ── Room type badge (multi vs single occupancy colour scheme) ──────────── */

.ptst-accom-room-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Twin / shared rooms — green (uses semantic success token). */
.ptst-accom-room-badge--multi {
    background: var(--success-50, #E6F4EC);
    color: var(--success, #1F8A5B);
    border: 1px solid var(--success, #1F8A5B);
}

/* Single rooms — brand blue. */
.ptst-accom-room-badge--single {
    background: var(--brand-blue-50, #EEF4FB);
    color: var(--brand-blue, #0E4A9C);
    border: 1px solid var(--brand-blue, #0E4A9C);
}


/* ── Inclusions pills (breakfast / dinner / laundry) ────────────────────── */

.ptst-accom-inclusions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft, #EEF1F7);
}

.ptst-accom-inclusions__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--success, #1F8A5B);
    background: var(--success-50, #E6F4EC);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 3px 10px;
}
.ptst-accom-inclusions__pill svg,
.ptst-accom-inclusions__pill img {
    width: 11px;
    height: 11px;
    display: inline-block;
}


/* ── Weekend notes / special notes block ────────────────────────────────── */

.ptst-accom-notes {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--warning-50, #FEF4DF);
    border-left: 3px solid var(--warning, #D88E11);
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-2, #2B3A52);
}


/* ── Star rating (SVG icons stay inline; container just for alignment) ──── */

.ptst-accom-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
