/*
 * Stall Booking — UKAIS theme (17 Oct 2026; the module is ported from MAKKAH_PRO, the look is this site's: green / gold /
 * cream tokens, the page hero, .form-panel / .field / .input forms). Used by front/partials/stalls/* (the stall page and
 * its "Stall page · …" sections) and front/stalls/{checkout,pay,booking,error}.
 */

/* ---- banner additions (the hero itself is the site's .page-hero) ---- */
.stl-hero--tall { min-height: clamp(22rem, 52vh, 34rem); display: flex; align-items: flex-end; }
.stl-hero--tall .container { padding-bottom: 2.5rem; }
.stl-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .92); font-weight: 600; }
.stl-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.stl-facts .icon { width: 1.1rem; height: 1.1rem; color: var(--gold-300); flex: none; }
.stl-chip { display: inline-block; margin-top: 1rem; padding: 0.35rem 0.9rem; border-radius: var(--radius-full); background: var(--gold-500); color: #fff; font-weight: 700; font-size: 0.875rem; }
.stl-hero__cta { margin-top: 1.75rem; }
.stl-hero__cta .icon { margin-left: 0.5em; }

/* ---- layout: main column + sticky basket ---- */
.stl-page { padding-top: 3rem; }
.stl-part { padding-block: 1.5rem; }
.stl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2rem 2.5rem; align-items: start; }
.stl-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.stl-side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 6.5rem; display: grid; gap: 1rem; }
.stl-main { grid-column: 1; min-width: 0; }
.stl-block + .stl-block { margin-top: 2.5rem; }
.stl-block .eyebrow { margin-bottom: 0.35rem; }
.stl-h { margin: 0 0 0.75rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--green-700); }
.stl-lead { margin: 0; color: var(--color-text-muted); max-width: 44rem; }
.stl-rich { color: var(--color-text); }

/* ---- what every stall includes ---- */
.stl-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.stl-feat { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--cream-300); border-radius: var(--radius-lg); background: #fff; }
.stl-feat__ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green-50); color: var(--green-600); }
.stl-feat__ic .icon, .stl-feat__ic .cms-fa { width: 1.15rem; height: 1.15rem; font-size: 1.05rem; }
.stl-feat b { display: block; color: var(--green-700); }
.stl-feat p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--color-text-muted); }

/* ---- the hall plan ---- */
.stl-plan { scroll-margin-top: 7rem; }
.stl-stage { margin: 0.5rem 0 1.25rem; padding: 0.6rem; border-radius: var(--radius-md); background: var(--green-700); color: var(--gold-200);
    text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stl-key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--color-text-muted); }
.stl-key li { display: inline-flex; align-items: center; gap: 0.45rem; }
.stl-chipk { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: var(--radius-sm); }
.stl-chipk .icon { width: 0.85rem; height: 0.85rem; }
.stl-chipk--free, .stl-stall.is-available { background: var(--green-500); color: #fff; }
.stl-chipk--sel, .stl-stall.is-selected { background: var(--gold-300); color: var(--green-900); box-shadow: inset 0 0 0 2px var(--gold-500); } /* light gold: unmistakable next to green */
.stl-chipk--book, .stl-stall.is-booked { background: #b42318; color: #fff; }
.stl-chipk--block, .stl-stall.is-blocked { background: repeating-linear-gradient(135deg, var(--cream-100), var(--cream-100) 6px, var(--cream-200) 6px, var(--cream-200) 12px);
    color: var(--color-text-muted); border: 1px dashed var(--cream-300); }

.stl-zone { padding: 1.25rem; border: 1px solid var(--cream-300); border-radius: var(--radius-lg); background: #fff; }
.stl-zone + .stl-zone { margin-top: 1.25rem; }
.stl-zone__h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; align-items: flex-start; }
.stl-zone__t { margin: 0; font-size: 1.1rem; color: var(--green-700); }
.stl-zone__n { margin: 0.2rem 0 0; font-size: 0.875rem; color: var(--color-text-muted); }
.stl-zone__p { text-align: right; line-height: 1.2; }
.stl-zone__p b { display: block; font-size: 1.4rem; color: var(--gold-600); }
.stl-zone__p span { font-size: 0.8rem; color: var(--color-text-muted); }
.stl-zone__c { margin: 0.6rem 0 0.9rem; font-size: 0.8rem; color: var(--color-text-muted); }
.stl-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 0.7rem; }
.stl-stall { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; min-height: 4.75rem; padding: 0.6rem 0.3rem;
    border: 0; border-radius: var(--radius-md); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.stl-stall .icon { width: 1.1rem; height: 1.1rem; }
.stl-stall.is-available:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--green-600); }
.stl-stall.is-selected:hover { background: var(--gold-200); }
.stl-stall:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.stl-stall[disabled] { cursor: not-allowed; opacity: 1; } /* booked / not for hire keep their key colours */
.stl-stall.is-available[disabled] { opacity: .55; }        /* the plan can't take bookings (closed) */

.stl-soldout { margin-bottom: 1.5rem; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--cream-100); border: 1px solid var(--cream-300); }
.stl-soldout__t { margin: 0 0 0.35rem; font-weight: 700; color: var(--green-700); font-size: 1.1rem; }
.stl-soldout p { margin: 0 0 0.75rem; color: var(--color-text-muted); }

/* ---- cards: basket, questions, checkout summary ---- */
.stl-card { padding: 1.25rem; border: 1px solid var(--cream-300); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.stl-basket { border-top: 4px solid var(--gold-400); }
.stl-card__kicker { margin: 0 0 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.stl-basket__empty { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.stl-picked { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.stl-pick { display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.6rem; align-items: center; padding: 0.5rem 0.6rem; border-radius: var(--radius-md); background: var(--cream-50); border: 1px solid var(--cream-200); font-size: 0.9rem; }
.stl-pick__id { font-weight: 700; color: var(--green-700); }
.stl-pick__z { color: var(--color-text-muted); font-size: 0.8rem; }
.stl-pick__p { font-weight: 700; color: var(--gold-600); }
.stl-pick__x { display: inline-flex; padding: 0.3rem; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); cursor: pointer; }
.stl-pick__x:hover { background: #fde8e8; color: #b42318; }
.stl-pick__x .icon { width: 0.8rem; height: 0.8rem; }
.stl-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0.9rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--cream-200); }
.stl-total span { color: var(--color-text-muted); font-size: 0.9rem; }
.stl-total b { font-size: 1.6rem; color: var(--green-700); }
.stl-total[hidden], .stl-basket__empty[hidden], .stl-status[hidden] { display: none; } /* display rules above must not beat [hidden] */
.stl-btn-block { width: 100%; justify-content: center; margin-top: 1rem; }
.stl-card__meta { margin: 0.75rem 0 0; text-align: center; font-size: 0.8rem; color: var(--color-text-muted); }
.stl-card__note { display: flex; gap: 0.5rem; margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--color-text-muted); }
.stl-card__note .icon { flex: none; width: 0.95rem; height: 0.95rem; margin-top: 0.1rem; color: var(--gold-500); }
.stl-ask h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--green-700); }
.stl-ask p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }
.stl-ask a, .stl-done__foot a { color: var(--green-600); font-weight: 600; }
.stl-what { margin: 0 0 0.75rem; }
.stl-what b { display: block; color: var(--green-700); }
.stl-what span { font-size: 0.85rem; color: var(--color-text-muted); }
.stl-row { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.35rem 0; font-size: 0.9rem; border-bottom: 1px dashed var(--cream-200); }

/* ---- terms ---- */
.stl-terms { display: grid; gap: 0.5rem; }
.stl-term { border: 1px solid var(--cream-300); border-radius: var(--radius-md); background: #fff; }
.stl-term summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--green-700); }
.stl-term summary::-webkit-details-marker { display: none; }
.stl-term__ic { flex: none; display: inline-flex; color: var(--gold-500); }
.stl-term__ic .icon, .stl-term__ic .cms-fa { width: 1rem; height: 1rem; font-size: 0.95rem; }
.stl-term__q { flex: 1; }
.stl-term__chev { width: 1rem; height: 1rem; transition: transform .2s; }
.stl-term[open] .stl-term__chev { transform: rotate(180deg); }
.stl-term p { margin: 0; padding: 0 1rem 1rem 2.75rem; color: var(--color-text-muted); }
.stl-terms__note { margin: 1rem 0 0; padding: 0.85rem 1rem; border-left: 3px solid var(--gold-400); background: var(--gold-50); color: var(--color-text); font-size: 0.9rem; }

/* ---- figures + gallery (style 2) ---- */
.stl-stats { background: var(--green-700); color: #fff; }
.stl-stats__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 1.5rem 0; list-style: none; text-align: center; }
.stl-stats__row li + li { border-left: 1px solid rgba(255, 255, 255, .15); }
.stl-stats__row b { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold-200); }
.stl-stats__row span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.stl-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.stl-gal__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); }
.stl-gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.stl-gal__item:hover img { transform: scale(1.04); }
.stl-gal__note { margin: 1rem 0 0; color: var(--color-text-muted); }

/* ---- checkout / pay ---- */
.stl-form .form-panel__title { margin-bottom: 1rem; }
.stl-form__pay { margin-top: 1.5rem; }
.stl-cardbox { min-height: 2.9rem; display: flex; align-items: center; }
.stl-cardbox > div { width: 100%; }
.stl-cardbox__wait { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-text-muted); font-size: 0.9rem; }
.stl-cardbox__wait .icon { width: 0.9rem; height: 0.9rem; }
.stl-card-error[hidden] { display: none; }
.stl-paynote { display: flex; gap: 0.5rem; margin: 0; padding: 0.75rem 0.9rem; border-radius: var(--radius-md); background: var(--cream-50); border: 1px solid var(--cream-200); font-size: 0.875rem; color: var(--color-text-muted); }
.stl-paynote .icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.1rem; color: var(--green-500); }
.stl-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.stl-status { margin: 0.75rem 0 0; font-weight: 600; color: var(--green-700); }
.stl-small { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--color-text-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- booking / error result ---- */
.stl-done { max-width: 40rem; margin: 1rem auto 2rem; padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; border: 1px solid var(--cream-300); border-top: 4px solid var(--green-500); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.stl-done--bad { border-top-color: #b42318; }
.stl-done--off { border-top-color: var(--gold-400); }
.stl-done--off .stl-done__ic { background: var(--gold-50); color: var(--gold-500); }
.stl-done__ic { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--green-50); color: var(--green-600); }
.stl-done--bad .stl-done__ic { background: #fde8e8; color: #b42318; }
.stl-done__ic .icon { width: 1.8rem; height: 1.8rem; }
.stl-done__h { margin: 1rem 0 0.4rem; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--green-700); }
.stl-done__s { margin: 0 auto; max-width: 32rem; color: var(--color-text-muted); }
.stl-done__rows { display: grid; gap: 0; margin: 1.5rem 0 0; text-align: left; border-top: 1px solid var(--cream-200); }
.stl-done__rows div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--cream-200); }
.stl-done__rows dt { color: var(--color-text-muted); font-size: 0.875rem; }
.stl-done__rows dd { margin: 0; font-weight: 600; color: var(--color-text); }
.stl-done__next { margin: 1rem 0 0; color: var(--color-text); font-size: 0.95rem; }
.stl-done__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.stl-done__foot { display: flex; gap: 0.5rem; justify-content: center; margin: 1.25rem 0 0; font-size: 0.875rem; color: var(--color-text-muted); }
.stl-done__foot .icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--gold-500); }

/* ---- responsive ---- */
@media (max-width: 1023.98px) {
    .stl-layout { grid-template-columns: minmax(0, 1fr); }
    .stl-side { grid-column: 1; grid-row: auto; position: static; }
}
@media (max-width: 767.98px) {
    .stl-feats { grid-template-columns: minmax(0, 1fr); }
    .stl-stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
    .stl-stats__row li:nth-child(3) { border-left: 0; }
    .stl-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stl-zone { padding: 1rem; }
    .stl-zone__p { text-align: left; }
    .stl-zone__p b { display: inline; margin-right: 0.4rem; }
    .stl-grid { grid-template-columns: repeat(min(var(--cols, 5), 5), minmax(0, 1fr)); gap: 0.5rem; }
    .stl-done__rows div { grid-template-columns: 1fr; gap: 0.1rem; }
}
@media (max-width: 419.98px) {
    .stl-grid { grid-template-columns: repeat(min(var(--cols, 5), 4), minmax(0, 1fr)); }
    .stl-stall { min-height: 4rem; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .stl-stall, .stl-gal__item img, .stl-term__chev { transition: none; }
    .stl-stall.is-available:hover { transform: none; }
}
