/* Grand Eid Bazaar 2027 – booking page styles */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }

/* Layout: white sticky header with the official logo; light brand pages (hero, events, why exhibit, options, how it works);
   the stall planner is a 3-panel workspace (filters | floor plan | stall details) with a sticky selection bar; booking runs in a 6-step dialog.
   Single light theme by choice: the brand palette and the logo artwork are built for a light ground. */
:root {
  color-scheme: light;
  --purple: #1E0969;
  --purple-dark: #14064D;
  --cyan: #00AFCD;
  --magenta: #C218A8;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --ink: #17152A;
  --muted: #667085;
  --line: #E4E7EC;
  --tint: #F1EEFB;            /* faint purple wash */

  --st-avail: #DDF5FA;        /* available: light cyan */
  --st-avail-line: #7CCFE0;
  --st-avail-ink: #0B3B47;
  --st-sel: #1E0969;          /* selected: deep purple */
  --st-sel-ink: #FFFFFF;
  --st-sold: #ECEEF2;         /* sold: light grey */
  --st-sold-ink: #98A2B3;
  --focus: #C218A8;
  --ok: #067647;
  --err: #B42318;
  --warn-bg: #FFF6E5;
  --warn-ink: #8A5300;

  /* price-tier markers, matching the colours in the floor-plan sheet */
  --t-red: #C4262E; --t-green: #1F8A4C; --t-blue: #2E6DB3; --t-darkblue: #1D4A8F;
  --t-lightblue: #6FB4E6; --t-food: #E9A20B; --t-henna: #8F4219;

  --grad: linear-gradient(120deg, #1E0969 0%, #5A1496 55%, #C218A8 100%);
  --grad-cool: linear-gradient(120deg, #1E0969 0%, #1D5FA8 60%, #00AFCD 100%);

  --f-display: "Urbanist", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --r: 14px;
  --shadow: 0 1px 2px rgb(20 6 77 / .05), 0 6px 20px rgb(20 6 77 / .06);
  --header-h: 72px;
  --bar-h: 72px;
  --cell: 40px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15.5px; line-height: 1.55; padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--purple); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); color: var(--purple-dark); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.wrap { padding-inline: 16px; }
.inner { max-width: 1280px; margin: 0 auto; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); }
.lead { color: var(--muted); max-width: 62ch; font-size: 16.5px; }
.section { padding-block: 64px; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.placeholder { background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 1px 6px; font-size: .92em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgb(194 24 168 / .25); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--card); color: var(--purple); border: 1.5px solid var(--purple); }
.btn-secondary:hover { background: var(--tint); }
.btn-quiet { background: transparent; color: var(--purple); padding: 10px 14px; }
.btn-quiet:hover { background: var(--tint); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; height: 100%; padding-block: 6px; flex: none; }
.brand img { height: 60px; width: auto; display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 8px 11px; border-radius: 8px; }
.nav a:hover { background: var(--tint); color: var(--purple); }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--card); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header .btn-primary { padding: 10px 16px; }
}
@media (max-width: 480px) { .site-header .btn-primary { display: none; } .brand img { height: 54px; } }
.mobile-nav { border-top: 1px solid var(--line); background: var(--card); padding: 8px 16px 14px; display: grid; }
.mobile-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 90% -10%, rgb(0 175 205 / .10), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgb(194 24 168 / .08), transparent 60%), var(--bg); }
.hero .inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-block: 56px 64px; }
@media (max-width: 900px) { .hero .inner { grid-template-columns: minmax(0, 1fr); padding-block: 36px 44px; gap: 24px; } }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.hero h1 .yr { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tag { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.2vw, 22px); color: var(--purple); margin-top: 12px; }
.hero .lead { margin-top: 14px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 30px; }
.fact { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fact .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--purple); }
.fact b { display: block; font-size: 14.5px; color: var(--purple-dark); }
.fact span { font-size: 13px; color: var(--muted); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-logo { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 18px; width: min(100%, 440px); position: relative; z-index: 1; }
.hero-logo img { width: 100%; height: auto; display: block; }
.lozenges { position: absolute; inset: -40px -60px auto auto; width: 360px; height: 360px; opacity: .55; pointer-events: none; }
@media (max-width: 900px) { .hero-art { display: none; } }

/* ---------- event cards ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ev-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.ev-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-cool); }
.venue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.venue-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden; }
.venue-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-cool); }
.venue-card:nth-child(2)::before { background: var(--grad); }
.venue-card h3 { font-size: 22px; }
.venue-addr { display: flex; gap: 8px; align-items: start; color: var(--muted); font-size: 14px; }
.venue-addr svg { color: var(--purple); margin-top: 2px; }
.dates { display: grid; gap: 12px; }
.date-block { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; background: #FCFCFF; }
.date-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.date-top b { font-family: var(--f-display); font-size: 19px; font-weight: 800; color: var(--purple-dark); }
.date-hours { display: flex; gap: 8px; align-items: start; font-size: 13.5px; color: var(--muted); }
.date-hours svg { color: var(--purple); margin-top: 2px; }
.date-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tierbar { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 11px; font-size: 13.5px; cursor: pointer; }
.tchip:hover { border-color: var(--purple); }
.tchip[aria-pressed="true"] { border-color: var(--purple); background: var(--tint); }
.tchip i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tchip b { font-weight: 700; color: var(--purple-dark); }
.tchip .p { font-family: var(--f-mono); font-weight: 700; color: var(--purple); }
.tchip .z { color: var(--muted); }
.ev-kicker { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--tint); color: var(--purple); }
.pill.cyan { background: #E0F6FA; color: #075E6E; }
.ev-card h3 { font-size: 20px; }
.ev-meta { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.ev-meta div { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.ev-meta svg { margin-top: 2px; color: var(--purple); }
.avail { display: grid; gap: 6px; }
.avail-row { display: flex; justify-content: space-between; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.avail-row b { color: var(--purple-dark); }
.meter { height: 8px; border-radius: 99px; background: var(--st-sold); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; background: var(--cyan); }

/* ---------- why / options / steps ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.why { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.why .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.why p { color: var(--muted); font-size: 14.5px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #FBFBFE; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--f-mono); font-size: 13.5px; }
.tier { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tier i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.muted-cell { color: var(--st-sold-ink); }
.note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: #fff; background: var(--grad-cool); }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- planner ---------- */
.planner-section { background: linear-gradient(180deg, var(--tint), var(--bg) 320px); }
.planner-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ev-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.ev-tab { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 14px; cursor: pointer; text-align: left; display: grid; gap: 1px; }
.ev-tab b { font-size: 14px; color: var(--purple-dark); }
.ev-tab span { font-size: 12.5px; color: var(--muted); }
.ev-tab[aria-selected="true"] { border-color: var(--purple); background: var(--purple); }
.ev-tab[aria-selected="true"] b, .ev-tab[aria-selected="true"] span { color: #fff; }
.ev-info { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.ev-info span { display: inline-flex; align-items: center; gap: 6px; }
.ev-info svg { color: var(--purple); }

.planner { display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .planner { grid-template-columns: 230px minmax(0, 1fr); } .details-col { grid-column: 1 / -1; } }
@media (max-width: 820px) { .planner { grid-template-columns: minmax(0, 1fr); } .panel.filters-col { display: none; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; min-width: 0; }
.filters-col, .details-col { position: sticky; top: calc(var(--header-h) + 14px); }
@media (max-width: 1180px) { .details-col { position: static; } }
.fgroup { display: grid; gap: 8px; }
.fgroup > label:not(.check), .flabel { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search { position: relative; }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px 9px 36px; background: var(--bg); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.checks { display: grid; gap: 4px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 5px 2px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--purple); margin: 0; }
.check .tier i { width: 10px; height: 10px; }
.check small { margin-left: auto; color: var(--muted); font-family: var(--f-mono); font-size: 12px; }
select.input, .input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--bg); }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.count-box { background: var(--tint); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.count-box b { font-family: var(--f-display); font-size: 26px; color: var(--purple); line-height: 1; font-variant-numeric: tabular-nums; }
.count-box span { font-size: 13px; color: var(--muted); }
.sumlist { display: grid; gap: 6px; font-size: 13.5px; }
.sumlist div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }

.map-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.map-col > * { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.zoom { display: inline-flex; gap: 4px; align-items: center; }
.zbtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--purple); }
.zbtn:hover { background: var(--tint); }
.zlabel { font-family: var(--f-mono); font-size: 12px; color: var(--muted); min-width: 44px; text-align: center; }
.filter-open { display: none; }
@media (max-width: 820px) { .filter-open { display: inline-flex; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 18px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid transparent; }
.sw.avail { background: var(--st-avail); border-color: var(--st-avail-line); }
.sw.sel { background: var(--st-sel); }
.sw.sold { background: repeating-linear-gradient(135deg, var(--st-sold) 0 3px, #D6DAE1 3px 6px); border-color: #D6DAE1; }
.sw.tierm { width: 18px; height: 14px; background: linear-gradient(90deg, var(--t-red) 0 33%, var(--t-green) 33% 66%, var(--t-blue) 66%); clip-path: inset(0 0 9px 0 round 3px); }

.map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; position: relative; }
.map-scroll { overflow: auto; max-height: 72vh; cursor: grab; border-radius: 8px; overscroll-behavior: contain; }
.map-scroll.dragging { cursor: grabbing; user-select: none; }
.map { display: grid; gap: 4px; width: max-content; padding: 6px; }
.m-marker { display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.m-wall { background: #C9CED8; border-radius: 3px; }
.m-floor { background: #F2F4F7; border-radius: 3px; }
.m-zone, .m-lobby, .m-entrance { display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 2px 6px; line-height: 1.15; }
.m-zone { background: #F7F5FD; border: 1px dashed #CFC7EE; color: #5B4B9A; }
.m-lobby { background: #F2F4F7; }
.m-entrance { background: var(--purple-dark); color: #fff; }
.grp { display: flex; gap: 3px; min-width: 0; }
.st {
  flex: 1 1 0; min-width: 0; min-height: calc(var(--cell) * 1.02); border-radius: 7px; cursor: pointer; position: relative; overflow: hidden;
  font-family: var(--f-mono); font-weight: 700; font-size: max(10px, calc(var(--cell) * .28)); font-variant-numeric: tabular-nums;
  background: var(--st-avail); color: var(--st-avail-ink); border: 1.5px solid var(--st-avail-line);
  display: flex; align-items: center; justify-content: center; padding: 4px 0 0;
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}
.st::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tier, transparent); }
.st:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgb(20 6 77 / .16); }
.st.active { outline: 3px solid var(--magenta); outline-offset: 1px; z-index: 2; }
.st[aria-pressed="true"] { background: var(--st-sel); color: var(--st-sel-ink); border-color: var(--st-sel); }
.st.sold { background: repeating-linear-gradient(135deg, var(--st-sold) 0 5px, #E2E5EA 5px 10px); color: var(--st-sold-ink); border-color: #D6DAE1; cursor: not-allowed; }
.st.sold::before { background: transparent; }
.st.sold:hover { transform: none; box-shadow: none; }
.st.out { opacity: .22; cursor: default; }
.st.out:hover { transform: none; box-shadow: none; }
.grp.many .st { font-size: max(9px, calc(var(--cell) * .24)); }
.map-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; }

.list-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: auto; max-height: 72vh; }
.list-wrap table th { position: sticky; top: 0; z-index: 1; }
.list-wrap td, .list-wrap th { padding: 9px 12px; }
.code { font-family: var(--f-mono); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 2px 9px; }
.status.a { background: #E0F6FA; color: #075E6E; }
.status.s { background: var(--st-sold); color: #667085; }
.status.y { background: var(--tint); color: var(--purple); }
.empty-row td { text-align: center; color: var(--muted); padding: 28px; white-space: normal; }

.details-empty { color: var(--muted); font-size: 14px; display: grid; gap: 10px; justify-items: start; }
.d-code { font-family: var(--f-display); font-weight: 800; font-size: 30px; color: var(--purple-dark); line-height: 1; }
.d-sub { font-size: 13.5px; color: var(--muted); }
.d-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.d-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.d-rows dt { color: var(--muted); }
.d-rows dd { margin: 0; font-weight: 600; text-align: right; }
.d-price { font-family: var(--f-display); font-weight: 800; font-size: 28px; color: var(--purple); font-variant-numeric: tabular-nums; }
.d-price small { font-size: 14px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.d-incl { font-size: 13.5px; color: var(--muted); display: grid; gap: 4px; }

/* mobile bottom sheet for details */
@media (max-width: 820px) {
  .details-col.sheet { position: fixed; left: 0; right: 0; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); z-index: 45; border-radius: 18px 18px 0 0; max-height: 62vh; overflow: auto; box-shadow: 0 -10px 30px rgb(20 6 77 / .2); padding-inline: 16px; }
  .details-col:not(.sheet) { display: none; }
}
.x.sheet-close { display: none; }
@media (max-width: 820px) { .x.sheet-close { display: grid; } .details-col.sheet { gap: 10px; } .details-col.sheet .d-incl { display: none; } }
.d-action { position: sticky; bottom: -16px; background: var(--card); padding-block: 8px 2px; display: grid; }

/* ---------- sticky selection bar ---------- */
.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: var(--purple-dark); color: #fff; padding: 0 16px env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 24px rgb(20 6 77 / .25); }
.selbar .inner { min-height: var(--bar-h); display: flex; align-items: center; gap: 16px; }
.selbar .chips { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 auto; min-width: 0; padding-block: 4px; scrollbar-width: thin; }
.selchip { flex: none; display: inline-flex; align-items: center; gap: 6px; background: rgb(255 255 255 / .12); border-radius: 8px; padding: 4px 4px 4px 9px; font-family: var(--f-mono); font-size: 12.5px; }
.selchip small { font-family: var(--f-body); opacity: .75; font-size: 11.5px; }
.selchip button { border: 0; background: transparent; color: #fff; width: 22px; height: 22px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.selchip button:hover { background: rgb(255 255 255 / .18); }
.selbar .none { opacity: .75; font-size: 14px; flex: 1; }
.seltotal { text-align: right; flex: none; }
.seltotal span { display: block; font-size: 12px; opacity: .75; }
.seltotal b { font-family: var(--f-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.selbar .btn-primary { flex: none; background: linear-gradient(120deg, #00AFCD, #C218A8); }
@media (max-width: 560px) { .selbar .chips { display: none; } .selbar .none { display: none; } .seltotal { text-align: left; flex: 1; } }

/* ---------- FAQ / contact / footer ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
details.q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
details.q summary { cursor: pointer; font-weight: 700; color: var(--purple-dark); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font-family: var(--f-display); font-size: 22px; line-height: 1; color: var(--magenta); }
details.q[open] summary::after { content: "–"; }
details.q p { color: var(--muted); padding-bottom: 16px; max-width: 70ch; }
.contact { background: var(--grad); border-radius: 22px; color: #fff; padding: 36px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 800px) { .contact { grid-template-columns: minmax(0, 1fr); padding: 26px; } }
.contact h2 { color: #fff; }
.contact p { opacity: .9; }
.contact .cbox { background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22); border-radius: 14px; padding: 18px; display: grid; gap: 10px; }
.contact .cbox div { display: grid; gap: 2px; }
.contact .cbox span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.contact .cbox b { font-size: 16px; user-select: all; }
.contact .placeholder { background: rgb(255 255 255 / .9); }
.contact .btn-secondary { background: #fff; border-color: #fff; }
footer { border-top: 1px solid var(--line); background: var(--card); }
footer .inner { padding-block: 26px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
footer img { height: 54px; width: auto; }
.flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgb(20 6 77 / .35); width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); }
dialog::backdrop { background: rgb(20 6 77 / .45); backdrop-filter: blur(2px); }
.dlg { display: grid; grid-template-rows: auto auto 1fr auto; max-height: calc(100vh - 24px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 10px; }
.x { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.x:hover { background: var(--tint); color: var(--purple); }
.progress { display: flex; gap: 4px; padding: 0 22px 14px; overflow-x: auto; }
.pstep { flex: 1 0 auto; display: grid; gap: 6px; min-width: 70px; }
.pstep i { height: 5px; border-radius: 99px; background: var(--line); }
.pstep.done i { background: var(--cyan); }
.pstep.cur i { background: var(--grad); }
.pstep span { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pstep.cur span { color: var(--purple); }
.dlg-body { overflow: auto; padding: 6px 22px 18px; display: grid; gap: 14px; align-content: start; }
.dlg-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--purple-dark); }
.field label small { font-weight: 500; color: var(--muted); }
.field .input { background: var(--card); }
.field textarea.input { min-height: 84px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .ferr { font-size: 12.5px; color: var(--err); font-weight: 600; }
.input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgb(180 35 24 / .12); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.radios input { accent-color: var(--purple); margin: 0; }
.rev-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rev-group h4 { margin: 0; padding: 10px 14px; background: #FBFBFE; font-size: 14px; color: var(--purple-dark); border-bottom: 1px solid var(--line); }
.rev-line { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rev-line:last-child { border-bottom: 0; }
.rev-line .price { font-family: var(--f-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.totals { display: grid; gap: 6px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totals .grand { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--purple-dark); border-top: 1px solid var(--line); padding-top: 8px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 6px; } }
.consent { display: grid; gap: 10px; background: #FBFBFE; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.consent label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--purple); }
.callout { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.ref { font-family: var(--f-mono); font-weight: 700; font-size: 22px; color: var(--purple); letter-spacing: .04em; }
.summary { white-space: pre-wrap; font-family: var(--f-mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 260px; overflow: auto; margin: 0; }
.drawer { width: min(380px, calc(100% - 24px)); margin-left: auto; margin-right: 0; height: 100%; max-height: 100%; border-radius: 20px 0 0 20px; }
.drawer .dlg { height: 100%; max-height: 100%; grid-template-rows: auto 1fr auto; }

/* WordPress admin bar (logged-in users only) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.callout.ok { background: #E7F6EE; color: #05603A; }

/* ---- reserved stalls and checkout (theme v2) ---- */
:root { --st-res: #FEF0C7; --st-res-line: #F5B53F; --st-res-ink: #7A4A00; }
.st.sold.res { background: repeating-linear-gradient(135deg, var(--st-res) 0 5px, #FDE6A8 5px 10px); color: var(--st-res-ink); border-color: var(--st-res-line); }
.sw.res { background: var(--st-res); border-color: var(--st-res-line); }
.status.r { background: var(--st-res); color: var(--st-res-ink); }
.totals .due { font-weight: 700; color: var(--magenta); }
fieldset.pay { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
fieldset.pay legend { font-family: var(--f-display); font-weight: 800; color: var(--purple-dark); padding: 0 6px; font-size: 16px; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--purple); background: var(--tint); }
.pay-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--purple); }
.pay-opt b { display: block; color: var(--purple-dark); }
.pay-opt small { display: block; color: var(--muted); font-size: 13px; }
.pay-amt { font-size: 15px; }
.pay-amt b { font-family: var(--f-display); font-size: 20px; color: var(--purple); }
.pp-buttons { min-height: 50px; max-width: 420px; }
.pp-buttons[aria-busy="true"] { opacity: .5; pointer-events: none; }
.et-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14.5px; }
.et-note { font-size: 13.5px; color: var(--muted); }
.sel-all { user-select: all; }
#pay-err:empty { display: none; }
.dlg-body { grid-auto-rows: max-content; }
/* ---- v2.1: organiser, contacts, social, gallery ---- */
.org { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.org img { height: 30px; width: auto; }
.contact .cbox b { user-select: text; }
.contact .cbox a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact .cbox .cline { display: block; font-size: 16px; text-transform: none; letter-spacing: 0; opacity: 1; }
.soc { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.contact-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.contact-ctas .social { display: inline-flex; gap: 14px; }
.contact-ctas .social a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.f-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.f-org { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
footer .f-org img { height: 26px; width: auto; }
.f-social { display: inline-flex; gap: 6px 18px; flex-wrap: wrap; }
.f-social a { color: var(--purple); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.g-item { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
dialog.lightbox { width: min(1100px, calc(100% - 24px)); max-height: calc(100% - 24px); background: #0d0a1c; color: #fff; padding: 0; border-radius: 16px; overflow: hidden; }
dialog.lightbox::backdrop { background: rgb(10 6 30 / .85); }
.lightbox figure { margin: 0; display: grid; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; display: block; }
.lightbox figcaption { padding: 12px 56px 14px; font-size: 14px; text-align: center; opacity: .9; }
.lb-btn { position: absolute; border: 0; background: rgb(255 255 255 / .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgb(255 255 255 / .26); }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 10px; top: 10px; }
