/* event.css — gym_event-specific styling: seat map, "when" tiles, the event plan form's seat builder.
   Generic pieces (chips, media card, meter, collapsible…) live in ui_kit.css. */


    /* ---------- seat map ---------- */
    .event-seats { padding: 0 20px 18px; }
    .event-seats__front {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 4px 10px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        color: var(--cc-muted);
    }
    .event-seats__front::before,
    .event-seats__front::after {
        content: "";
        flex: 1;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, var(--cc-line));
    }
    .event-seats__front::after { background: linear-gradient(90deg, var(--cc-line), transparent); }
    .event-seats__floor {
        position: relative;
        display: grid;
        gap: 7px;
        padding: 12px;
        border-radius: 16px;
        background:
            radial-gradient(circle at 50% 0%, rgba(59, 80, 125, 0.10), transparent 60%),
            var(--cc-tint);
        border: 1px solid var(--cc-line);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
    .event-seats__seat {
        aspect-ratio: 1 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        font-family: 'Custom-Font-Semibold', sans-serif;
        font-size: 12px;
        min-width: 0;
        background: #fff;
        color: var(--custom_color_outer_space);
        border: 1px solid rgba(12, 27, 61, 0.08);
        box-shadow: 0 2px 4px rgba(12, 27, 61, 0.06), inset 0 -2px 0 rgba(12, 27, 61, 0.06);
        transition: transform .12s ease, box-shadow .12s ease;
    }
    .event-seats__seat:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(12, 27, 61, 0.12); }
    .event-seats__seat--empty { visibility: hidden; }
    .event-seats__seat--instructor {
        background: linear-gradient(160deg, var(--cc-accent), #2E2020);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 4px 10px rgba(76, 56, 55, 0.35);
        font-size: 11px;
    }
    .event-seats__seat--taken {
        background: linear-gradient(160deg, var(--custom_color_v2_abstract_blue), var(--cc-navy));
        color: #fff;
        border-color: transparent;
        box-shadow: 0 3px 8px rgba(12, 27, 61, 0.30);
    }
    .event-seats__seat--blocked {
        background: repeating-linear-gradient(45deg, #fff, #fff 4px, var(--cc-line) 4px, var(--cc-line) 6px);
        color: var(--custom_color_bombay);
        text-decoration: line-through;
        box-shadow: none;
    }
    .event-seats__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 4px 0; font-size: 11px; color: var(--cc-muted); }
    .event-seats__legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
    .event-seats__legend-dot--taken { background: var(--cc-navy); }
    .event-seats__legend-dot--free { background: #fff; box-shadow: 0 0 0 1px var(--cc-line); }
    .event-seats__legend-dot--blocked { background: repeating-linear-gradient(45deg, #fff, #fff 2px, var(--cc-line) 2px, var(--cc-line) 3px); box-shadow: 0 0 0 1px var(--cc-line); }
    .event-seats__legend-dot--instructor { background: var(--cc-accent); }
    .event-when { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .event-when__day {
        width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
        display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
        background: var(--custom_color_zircon); color: var(--custom_color_v2_dark_navi_blue);
        border: 1px solid var(--custom_color_mercury);
    }
    .event-when__day b { font-size: 15px; font-weight: 800; }
    .event-when__day span { font-size: 9px; letter-spacing: .5px; text-transform: uppercase; font-weight: 700; color: var(--custom_color_rolling_stone); }
    .event-when__day--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--event-accent, #3B507D) 82%, #fff), var(--event-accent, #0C1B3D)); color: #fff; border-color: transparent; }
    .event-when__day--accent span { color: rgba(255,255,255,.75); }
    .event-closes { font-family: 'Custom-Font-Semibold', sans-serif; font-size: 12.5px; color: var(--custom_color_bunker); line-height: 1.25; }

/* ---------- event plan form ---------- */
    .event-plan-form .section-title { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--custom_color_rolling_stone); margin: 0 0 12px; }
    .event-plan-form .hint { font-size: 11.5px; color: var(--custom_color_rolling_stone); }
    .event-plan-form .form-control[readonly].is-derived { background: var(--custom_color_zircon); color: var(--custom_color_rolling_stone); cursor: not-allowed; }

    /* seat builder */
    .seat-builder { border: 1px solid var(--custom_color_mercury); border-radius: 14px; overflow: hidden; background: #fff; }
    .seat-builder__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--custom_color_mercury); background: var(--custom_color_alice_blue); }
    .seat-builder__badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--custom_color_mercury); color: var(--custom_color_rolling_stone); white-space: nowrap; }
    .seat-builder__badge.is-ok { background: #DCFCE7; color: #166534; }
    .seat-builder__badge.is-bad { background: #FEE2E2; color: #991B1B; }
    .seat-builder__controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--custom_color_mercury); }
    .seat-builder__controls label { font-size: 11px; font-weight: 600; color: var(--custom_color_rolling_stone); margin: 0; }
    .seat-builder__controls input { width: 64px; }
    .seat-builder__floorwrap { padding: 12px 14px 14px; background: var(--custom_color_zircon); }
    .seat-builder__front { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--custom_color_rolling_stone); }
    .seat-builder__front::before, .seat-builder__front::after { content: ""; flex: 1; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--custom_color_mercury)); }
    .seat-builder__front::after { background: linear-gradient(90deg, var(--custom_color_mercury), transparent); }
    .seat-builder__floor { display: grid; gap: 7px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--custom_color_mercury); }
    .seat-builder__cell { aspect-ratio: 1 / 1; min-width: 0; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px dashed var(--custom_color_bombay); background: #fff; color: var(--custom_color_bombay); transition: transform .12s, box-shadow .12s; padding: 0; }
    .seat-builder__cell:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(12, 27, 61, .12); }
    .seat-builder__cell.is-member { border: 1px solid transparent; background: linear-gradient(160deg, var(--custom_color_v2_abstract_blue), var(--custom_color_v2_dark_navi_blue)); color: #fff; box-shadow: 0 3px 8px rgba(12, 27, 61, .3); }
    .seat-builder__cell.is-instructor { border: 1px solid transparent; background: linear-gradient(160deg, var(--custom_color_v2_brown), #2E2020); color: #fff; box-shadow: 0 4px 10px rgba(76, 56, 55, .35); }
    .seat-builder__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 4px 0; font-size: 11px; color: var(--custom_color_rolling_stone); }
    .seat-builder__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
    .seat-builder__status { padding: 10px 14px; border-top: 1px solid var(--custom_color_mercury); font-size: 12px; background: var(--custom_color_alice_blue); }
    .seat-builder__status.is-bad { background: #FEF2F2; }
    .seat-builder__status.is-ok { background: #F0FDF4; }


    /* ---------- ticket card (gym_event/components/card/detail_event_ticket.html) ----------
       A media-card that leads with the person holding the ticket, not the class photo:
       navy holder band -> the class it is for -> ticket-stub tear line -> rows. */
    .ticket-card__holder {
        padding: 16px 20px 20px;
        color: #fff;
        background:
            radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
            linear-gradient(135deg, var(--cc-navy) 0%, #24365c 100%);
    }
    .ticket-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .ticket-card__label {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.9px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.75);
    }
    .ticket-card__person { display: flex; align-items: center; gap: 14px; min-width: 0; }
    .ticket-card__photo {
        position: relative;
        flex-shrink: 0;
        width: 72px;
        height: 72px;
        border-radius: 50%;
        overflow: hidden;
        display: grid;
        place-items: center;
        font-family: 'Custom-Font-Bold', sans-serif;
        font-size: 28px;
        color: var(--cc-navy);
        background: #fff;
        border: 3px solid rgba(255, 255, 255, 0.85);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }
    /* the photo covers the initial; a broken image removes itself and the initial shows */
    .ticket-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .ticket-card__who { min-width: 0; }
    .ticket-card__name {
        display: block;
        font-family: 'Custom-Font-Bold', sans-serif;
        font-size: 20px;
        line-height: 1.2;
        color: #fff;
        text-transform: capitalize;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .ticket-card__name:hover { color: #fff; text-decoration: underline; }
    .ticket-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

    .ticket-card__class {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        color: inherit;
        text-decoration: none;
    }
    .ticket-card__class:hover { background: var(--cc-tint); color: inherit; }
    .ticket-card__class-photo { width: 56px; height: 70px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--cc-tint); }
    .ticket-card__class-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
    .ticket-card__class-name { font-family: 'Custom-Font-Bold', sans-serif; font-size: 16px; color: var(--cc-ink); }
    .ticket-card__class-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--cc-muted); }
    .ticket-card__class-meta i { width: 13px; text-align: center; }
    .ticket-card__class-go { color: var(--cc-muted); font-size: 12px; }

    /* ticket-stub tear: a dashed line with a notch cut into each side of the card */
    .ticket-card__tear { position: relative; height: 0; margin: 2px 0; border-top: 2px dashed var(--cc-line); }
    .ticket-card__tear::before,
    .ticket-card__tear::after {
        content: "";
        position: absolute;
        top: -11px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff; /* the page behind the card */
        border: 1px solid var(--cc-line);
    }
    .ticket-card__tear::before { left: -11px; }
    .ticket-card__tear::after { right: -11px; }
