/* ─────────────────────────────────────────────────────────────────
   Naadam booth-selection page. Self-contained, scoped under
   .naadam-shell so it can't leak into the rest of the site CSS.
   Shares the lesson palette (dark blue + REMAX red).
   ───────────────────────────────────────────────────────────────── */
:root {
  --rmx-red:      #dc1c2e;
  --rmx-red-deep: #b21825;
  --rmx-ink:      #0a1530;
  --rmx-cream:    #f3eee6;
  --rmx-line:     rgba(255,255,255,0.08);
  --rmx-mute:     rgba(243,238,230,0.62);
  --rmx-mute-2:   rgba(243,238,230,0.78);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--rmx-ink);
  color: var(--rmx-cream);
  -webkit-font-smoothing: antialiased;
}
.naadam-shell {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 50% 0%, rgba(220,28,46,0.14) 0%, transparent 60%),
    linear-gradient(180deg, #06102a 0%, #0a1530 45%, #0f1f4f 100%);
  overflow: hidden;
}

/* ── Nav ── */
.naadam-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px); background: rgba(6,16,42,0.55);
  border-bottom: 1px solid var(--rmx-line);
}
.naadam-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.naadam-nav .brand img { height: 30px; }
.naadam-nav .brand .pipe { color: rgba(255,255,255,0.2); font-weight: 300; }
.naadam-nav .brand .tag {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--rmx-cream); opacity: 0.78;
}
.naadam-nav .quick-cta {
  background: var(--rmx-red); color: #fff; text-decoration: none;
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 0.84rem;
}

/* ── Hero (compact) ── */
.naadam-hero { max-width: 1100px; margin: 0 auto; padding: 56px 24px 12px; text-align: center; }
.naadam-eyebrow {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  background: rgba(220,28,46,0.12); border: 1px solid rgba(220,28,46,0.32);
  color: #ff8a96; font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700;
}
.naadam-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.02em; margin: 16px 0 8px; color: #fff; line-height: 1.05;
}
.naadam-sub { color: var(--rmx-mute-2); max-width: 620px; margin: 0 auto; line-height: 1.6; font-size: 1rem; }

/* ── Arena ── */
.naadam-arena-wrap { max-width: 1100px; margin: 22px auto 0; padding: 0 16px 48px; }
.naadam-legend {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  margin-bottom: 14px; font-size: 0.82rem; color: var(--rmx-mute-2); flex-wrap: wrap;
}
.naadam-legend .chip { display: inline-flex; align-items: center; gap: 7px; }
.naadam-legend .swatch { width: 14px; height: 14px; border-radius: 4px; }
.naadam-legend .swatch.open { background: rgba(34,197,94,0.55); border: 1px solid #4ade80; }
.naadam-legend .swatch.sold { background: rgba(220,28,46,0.5);  border: 1px solid #ff8a96; }

/* The arena image + hotspot overlay. The image is a block element so the
   container takes its natural height; the overlay fills it and hotspots
   are positioned in percentages so they scale with the rendered width. */
.naadam-arena {
  position: relative; display: block; width: 100%;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--rmx-line);
  box-shadow: 0 26px 70px -30px rgba(0,0,0,0.8);
  background: #0a1530;
}
.naadam-arena .arena-img { display: block; width: 100%; height: auto; }
.naadam-hotspots { position: absolute; inset: 0; }
.naadam-hotspot {
  position: absolute;
  border: 0; margin: 0; padding: 0; cursor: pointer;
  background: transparent; border-radius: 6px;
  transition: box-shadow .15s, background .15s, transform .12s;
  outline: none;
}
.naadam-hotspot:hover {
  background: rgba(34,197,94,0.22);
  box-shadow: 0 0 0 2px #4ade80, 0 0 18px rgba(34,197,94,0.6);
  transform: scale(1.04);
}
.naadam-hotspot:focus-visible { box-shadow: 0 0 0 3px #fff; }
.naadam-hotspot.sold {
  background: rgba(220,28,46,0.34);
  box-shadow: inset 0 0 0 2px rgba(255,138,150,0.7);
  cursor: pointer; /* clickable → reveals who booked it */
}
.naadam-hotspot.sold:hover {
  background: rgba(220,28,46,0.50);
  box-shadow: 0 0 0 2px #ff8a96, 0 0 16px rgba(220,28,46,0.45);
  transform: scale(1.04);
}
.naadam-hotspot.sold::after {
  /* friendly "booked" check instead of a forbidding X */
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.78rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}

/* ── Asar popup (booth detail) ── */
.naadam-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.naadam-modal.open { display: flex; align-items: center; justify-content: center; padding: 16px; }
.naadam-modal .backdrop { position: absolute; inset: 0; background: rgba(5,10,30,0.8); backdrop-filter: blur(6px); }
.naadam-modal .card {
  position: relative; background: #fff; color: #1b1b1b;
  border-radius: 18px; padding: 28px 30px; width: 100%; max-width: 460px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5); max-height: 92vh; overflow-y: auto;
  text-align: center;
}
.naadam-modal .close {
  position: absolute; top: 12px; right: 14px; background: transparent; border: 0;
  font-size: 1.6rem; cursor: pointer; color: #94a3b8;
}
.asar-popup .asar-img {
  width: 100%; max-width: 320px; height: auto; margin: 0 auto 14px; display: block;
  border-radius: 12px; background: #f3eee6;
}
.asar-popup .asar-no {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--rmx-red); color: #fff; font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.asar-popup h2 { font-size: 1.3rem; color: #0f172a; margin: 4px 0 6px; }
.asar-popup .asar-desc { color: #475569; font-size: 0.92rem; line-height: 1.6; margin: 0 0 14px; }
.asar-popup .asar-price { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 8px 0 18px; }
.asar-popup .asar-price small { font-size: 0.8rem; font-weight: 500; color: #94a3b8; margin-left: 4px; }
.asar-popup .asar-sold-note { color: var(--rmx-red); font-weight: 700; margin: 8px 0 16px; }
.asar-popup .pick-btn {
  width: 100%; padding: 14px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--rmx-red), var(--rmx-red-deep));
  color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; font-family: inherit;
}
.asar-popup .pick-btn:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
/* Booked-booth occupant card(s) */
.asar-popup .asar-occupants { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-top: 4px; }
.asar-popup .occ-item { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 14px; background: #f8fafc; }
.asar-popup .occ-name { font-weight: 800; color: #0f172a; font-size: 0.95rem; }
.asar-popup .occ-offices { color: var(--rmx-red); font-weight: 600; font-size: 0.86rem; margin-top: 2px; }

/* ── Registration modal (multi-office) ── */
.reg-modal { position: fixed; inset: 0; z-index: 110; display: none; }
.reg-modal.open { display: flex; align-items: center; justify-content: center; padding: 16px; }
.reg-modal .backdrop { position: absolute; inset: 0; background: rgba(5,10,30,0.8); backdrop-filter: blur(6px); }
.reg-modal .card {
  position: relative; background: #fff; color: #1b1b1b; border-radius: 18px;
  padding: 30px 34px; width: 100%; max-width: 540px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5); max-height: 92vh; overflow-y: auto;
}
.reg-modal .close { position: absolute; top: 14px; right: 14px; background: transparent; border: 0; font-size: 1.6rem; cursor: pointer; color: #94a3b8; }
.reg-modal h2 { margin: 0 0 4px; font-size: 1.4rem; color: #0f172a; text-align: center; }
.reg-modal .reg-context { text-align: center; font-size: 0.86rem; color: #64748b; margin-bottom: 20px; }
.reg-modal label { display: block; margin-bottom: 12px; }
.reg-modal label > span { display: block; font-size: 0.78rem; font-weight: 600; color: #475569; margin-bottom: 4px; }
.reg-modal input, .reg-modal select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #e2e8f0;
  border-radius: 9px; font-size: 0.94rem; font-family: inherit;
}
.reg-modal input:focus, .reg-modal select:focus { outline: none; border-color: var(--rmx-red); box-shadow: 0 0 0 3px rgba(220,28,46,0.12); }
.reg-modal .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Multi-office checkbox list */
.office-picker {
  max-height: 168px; overflow-y: auto;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.office-picker label {
  display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 0.86rem; color: #334155;
}
.office-picker label:hover { background: #f8fafc; }
.office-picker label > span { display: inline; font-size: 0.86rem; font-weight: 500; color: #334155; margin: 0; }
.office-picker input { width: auto; }
.office-hint { font-size: 0.74rem; color: #94a3b8; margin: 4px 0 12px; }
.reg-modal .submit {
  width: 100%; padding: 14px; background: linear-gradient(135deg, var(--rmx-red), var(--rmx-red-deep));
  color: #fff; border: 0; border-radius: 12px; font-weight: 800; font-size: 1rem; cursor: pointer; margin-top: 8px; font-family: inherit;
}
.reg-modal .submit:disabled { opacity: 0.6; cursor: wait; }
.reg-modal .err { background: #fef2f2; color: #b91c1c; padding: 10px 12px; border-radius: 8px; font-size: 0.86rem; margin-bottom: 12px; display: none; }
.reg-modal .err.show { display: block; }

/* ── Footer ── */
.naadam-foot {
  border-top: 1px solid var(--rmx-line); padding: 30px 28px; text-align: center;
  color: var(--rmx-mute); font-size: 0.82rem; background: rgba(0,0,0,0.18);
}
.naadam-foot strong { color: var(--rmx-cream); }

@media (max-width: 600px) {
  .naadam-nav { padding: 14px 18px; }
  .reg-modal .grid2 { grid-template-columns: 1fr; }
  .office-picker { grid-template-columns: 1fr; }
}
