/* Public-facing site */

.public-nav {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 30;
}
.public-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.public-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--color-text); }
.public-brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.public-brand .brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.public-brand .brand-mark .icon { width: 17px; height: 17px; }
.public-nav-links { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.public-nav-links a { display: inline-block; padding: 10px 4px; color: var(--color-slate-dark); }
.public-nav-links a:hover { color: var(--color-primary); text-decoration: none; }
.lang-switch { display: flex; gap: 4px; font-size: 13px; }
.lang-switch a {
  display: inline-block; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--color-text-muted); font-weight: 700;
}
.lang-switch a.is-active { background: var(--color-primary-light); color: var(--color-primary); }

/* Nav "ดาวน์โหลด" dropdown — toggled by JS (click, not hover-only, so it works on
   touch), positioned relative to the toggle button so it never depends on where
   the button happens to sit in the flex row. */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 4px; border: none; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--color-slate-dark);
}
.nav-dropdown-toggle:hover { color: var(--color-primary); }
.nav-dropdown-caret { font-size: 10px; transition: transform .15s ease; }
.nav-dropdown.is-open .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0; margin-top: 6px;
  min-width: 200px; max-width: 280px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 40;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--color-slate-dark); white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--color-primary-light); color: var(--color-primary); text-decoration: none; }

@media (max-width: 640px) {
  .public-nav .nav-inner { flex-wrap: wrap; padding: 6px 0; row-gap: 0; }
  .public-brand { flex: 1 1 100%; font-size: 15px; padding: 6px 0; }
  .public-nav-links { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; row-gap: 0; column-gap: 6px; font-size: 13px; }
}

.hero-band {
  position: relative;
  background: var(--gradient-mesh), var(--color-bg);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--color-border-light);
  overflow: hidden;
}
.hero-band::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20, 21, 43, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%);
  pointer-events: none;
}
.hero-band .container { position: relative; z-index: 1; }
.hero-band h1 { font-size: 34px; margin-bottom: 8px; }
.hero-band p { color: var(--color-text-muted); font-size: 16px; margin: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-primary); background: var(--color-primary-light);
  padding: 5px 12px; border-radius: var(--radius-full); margin-bottom: 14px;
}

/* Uploaded temple photo/banner — shown as its own full, uncropped image above the
   .hero-band text (not as a background the text overlays), so a portrait or
   oddly-cropped banner never fights with the heading for legibility. Same
   blurred-backdrop technique as .event-hero-media. */
.hero-banner-media {
  position: relative;
  width: 100%; aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--color-slate-light);
  background-size: cover;
  background-position: center;
}
.hero-banner-media::before {
  content: '';
  position: absolute; inset: -12px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(.85);
}
.hero-banner-media img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .hero-stat-value { font-size: 26px; font-weight: 800; color: var(--color-primary); letter-spacing: -.02em; }
.hero-stat .hero-stat-label { font-size: 12.5px; color: var(--color-text-muted); font-weight: 600; }

.section-title { font-size: 20px; margin: 0 0 18px; }

/* How it works */
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.how-it-works-step {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 26px 20px; box-shadow: var(--shadow-sm); position: relative;
}
.how-it-works-step .step-number {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.how-it-works-step .step-icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-top: 6px;
  border-radius: 16px; background: var(--gradient-brand-soft); color: var(--color-primary);
}
.how-it-works-step .step-icon-badge .icon { width: 24px; height: 24px; }
.how-it-works-step h4 { margin: 4px 0 0; font-size: 15.5px; }
.how-it-works-step p { margin: 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }
.how-it-works-arrow { display: none; }
@media (min-width: 769px) {
  .how-it-works-step:not(:last-child)::after {
    content: '→'; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
    font-size: 20px; color: var(--color-text-faint); font-weight: 700;
  }
}

/* Featured (closing-soon) event */
.featured-event {
  display: flex; gap: 0; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  margin-bottom: 40px; text-decoration: none; color: inherit;
}
.featured-event:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.featured-event-media { position: relative; flex: 0 0 42%; min-height: 220px; background: var(--color-slate-light); background-size: cover; background-position: center; overflow: hidden; }
.featured-event-media.has-image::before { content: ''; position: absolute; inset: -12px; background: inherit; background-size: cover; background-position: center; filter: blur(18px) brightness(.92); }
.featured-event-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.featured-event-body { flex: 1; padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.featured-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-danger-light); color: var(--color-danger-dark);
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-full);
  animation: pulseBadge 1.8s ease-in-out infinite;
}
@keyframes pulseBadge { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.featured-event-body h3 { margin: 0; font-size: 22px; }
.featured-event-body .featured-meta { font-size: 13.5px; color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: 14px; }
.featured-event-body .featured-closing { font-weight: 700; color: var(--color-danger-dark); font-size: 14px; }
@media (max-width: 768px) { .featured-event { flex-direction: column; } .featured-event-media { flex-basis: auto; aspect-ratio: 16/9; } }

/* Follow-us banner */
.follow-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--color-slate-light); border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 40px;
}
.follow-banner h3 { margin: 0 0 4px; font-size: 16.5px; }
.follow-banner p { margin: 0; font-size: 13.5px; color: var(--color-text-muted); }
.follow-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Event photo gallery */
.event-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.event-gallery-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-slate-light); box-shadow: var(--shadow-sm);
}
.event-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.event-gallery-item:hover img { transform: scale(1.08); }
.event-gallery-item .gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 18px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
  color: #fff; font-size: 12.5px; font-weight: 700;
}
@media (max-width: 768px) { .event-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Home page "our event atmosphere" carousel — one slide at a time, dot navigation,
   auto-advances, click a slide to open the lightbox. Same blurred-backdrop +
   object-fit:contain trick as the hero banner so portrait/landscape photos both
   show in full without an awkward crop. */
.gallery-carousel { margin-bottom: 40px; }
.gallery-carousel-viewport {
  overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
}
.gallery-carousel-track { display: flex; transition: transform .5s ease; }
.gallery-carousel-slide { position: relative; flex: 0 0 100%; }
.gallery-carousel-media {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  background: var(--color-slate-light); background-size: cover; background-position: center;
  overflow: hidden;
}
.gallery-carousel-media::before {
  content: ''; position: absolute; inset: -12px;
  background: inherit; background-size: cover; background-position: center;
  filter: blur(24px) brightness(.85);
}
.gallery-carousel-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.gallery-carousel-slide .gallery-caption {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 18px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
  color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.gallery-carousel-slide .gallery-caption:hover { text-decoration: underline; }
.gallery-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.gallery-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  border: none; background: var(--color-border); cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.gallery-carousel-dot.is-active { background: var(--color-primary); transform: scale(1.25); }
@media (max-width: 640px) { .gallery-carousel-media { aspect-ratio: 4/3; } }

/* Featured shops / advertisements — same blurred-backdrop + object-fit:contain trick as
   the event hero banner, so portrait and landscape ad images both display in full. */
.ads-section-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.ads-list-shop-link { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ads-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.ad-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ad-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ad-card-media {
  position: relative; display: block; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.ad-card-media::before {
  content: ''; position: absolute; inset: -12px;
  background: inherit; background-size: cover; background-position: center;
  filter: blur(18px) brightness(.85);
}
.ad-card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.ad-card-name { display: block; padding: 10px 12px 2px; font-size: 13px; font-weight: 700; }
.ad-card-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; padding: 2px 12px 10px; font-size: 11.5px; color: var(--color-text-muted); line-height: 1.4;
}
@media (max-width: 768px) { .ads-grid { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq-section { margin-bottom: 40px; }
.faq-item {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 4px 18px; margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14.5px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--color-primary); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 0 16px; font-size: 13.5px; color: var(--color-text-muted); line-height: 1.6; }
.faq-item .faq-answer ul { margin: 8px 0 0; padding-left: 20px; }

/* Contact CTA banner */
.contact-cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--gradient-brand); border-radius: var(--radius-lg); padding: 28px 32px;
  margin-top: 44px; box-shadow: var(--shadow-glow-primary);
}
.contact-cta-banner h3 { margin: 0 0 4px; color: #fff; font-size: 19px; }
.contact-cta-banner p { margin: 0; color: rgba(255,255,255,.88); font-size: 14px; }
.contact-cta-banner .btn { background: #fff; color: var(--color-primary); border: none; flex-shrink: 0; }
.contact-cta-banner .btn:hover { background: rgba(255,255,255,.92); }

.public-main { padding: 36px 0 60px; }

/* Event cards */
.event-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); background: var(--glass-bg-strong); border-color: var(--color-primary-light); }
.event-card-media {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-slate-light);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.event-card-media.has-image::before {
  content: '';
  position: absolute; inset: -12px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(.92);
}
.event-card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.event-card:hover .event-card-media img { transform: scale(1.06); }
.event-card-media .status-overlay { position: absolute; top: 12px; right: 12px; z-index: 2; }
.event-card-media .lots-left-overlay { position: absolute; bottom: 12px; left: 12px; z-index: 2; }
.lots-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.lots-badge.is-available { background: rgba(22, 163, 74, .92); color: #fff; }
.lots-badge.is-low { background: rgba(224, 139, 29, .92); color: #fff; }
.lots-badge.is-full { background: rgba(20, 21, 43, .78); color: #fff; }
.event-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card-body h3 { margin: 0; font-size: 17px; }
.event-card-meta { font-size: 13px; color: var(--color-text-muted); display: flex; flex-direction: column; gap: 3px; }
.event-card-meta span, .featured-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card-meta .icon, .featured-meta .icon { width: 14px; height: 14px; color: var(--color-primary); }
.event-card-footer { margin-top: auto; padding-top: 12px; }

.media-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--color-text-faint);
  font-size: 13px;
  background: repeating-linear-gradient(135deg, #F1F5F9, #F1F5F9 10px, #F8FAFC 10px, #F8FAFC 20px);
}
.media-placeholder .icon { width: 18px; height: 18px; }

/* Event detail */
.event-hero-media {
  position: relative;
  width: 100%; aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  background: var(--color-slate-light);
  background-size: cover;
  background-position: center;
}
.event-hero-media::before {
  content: '';
  position: absolute; inset: -12px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(.85);
}
.event-hero-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }

/* display:block matters here, not just cosmetic — this <a> wraps a block-level
   <img>, and an inline element containing a block child breaks the predictable
   single-fragment containing-block geometry that .zoom-hint's absolute
   positioning relies on (it was rendering off-screen to the left without this). */
.floorplan-thumb { position: relative; display: block; cursor: zoom-in; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.floorplan-thumb img { width: 100%; display: block; }
.floorplan-thumb .zoom-hint {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(15,23,42,.72); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: var(--radius-full);
}


/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .82);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 20px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* Lot grid */
.lot-zone-group { margin-bottom: 20px; }
.lot-zone-group h4 { font-size: 14px; color: var(--color-text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; }
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }

.lot-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: #fff;
  font-size: 13px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color .15s ease, background .15s ease;
}
.lot-chip-photo {
  position: relative;
  display: block;
  width: 100%; aspect-ratio: 4/3;
  border-radius: 7px;
  margin-bottom: 2px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.lot-chip-photo::before {
  content: '';
  position: absolute; inset: -6px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(.92);
}
.lot-chip-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.lot-chip .lot-code { font-weight: 800; font-size: 14px; }
.lot-chip .lot-price { font-size: 12px; color: var(--color-text-muted); }
.lot-chip .lot-booker { font-size: 11px; color: var(--color-text-faint); margin-top: 1px; }
.lot-chip.is-available { border-color: #BBF7D0; }
.lot-chip.is-available:hover { border-color: var(--color-success); background: var(--color-success-light); text-decoration: none; }
.lot-chip.is-pending { border-color: #EAB308; background: #FEF9C3; color: #854D0E; cursor: not-allowed; }
.lot-chip.is-booked { border-color: #2563EB; background: #DBEAFE; color: #1E3A8A; cursor: not-allowed; }
.lot-chip.is-disabled { border-color: #DC2626; background: #FEE2E2; color: #991B1B; cursor: not-allowed; opacity: .75; }

/* Interactive booth map ("book like cinema seats") */
.lot-legend-note {
  background: var(--color-slate-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.legend-note-title { font-size: 12px; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.legend-note-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
@media (max-width: 480px) {
  .legend-note-items { grid-template-columns: 1fr; }
}
.legend-chip {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 11px;
  line-height: 1.35;
}
.legend-chip strong { font-weight: 800; font-size: 12px; }
.legend-chip.chip-available { background: #DCFCE7; color: #166534; border-color: #86EFAC; }
.legend-chip.chip-pending { background: #FEF9C3; color: #854D0E; border-color: #FDE047; }
.legend-chip.chip-booked { background: #DBEAFE; color: #1E3A8A; border-color: #93C5FD; }
.legend-chip.chip-disabled { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }

.map-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.map-toolbar #mapZoomLabel { font-size: 13px; font-weight: 700; color: var(--color-text-muted); min-width: 42px; text-align: center; }

.booth-map-viewport {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-slate-light);
  padding: 20px;
  max-height: 420px;
  margin-bottom: 20px;
}
.booth-map-canvas {
  display: inline-grid;
  grid-template-columns: repeat(var(--map-cols), 46px);
  grid-template-rows: repeat(var(--map-rows), 46px);
  gap: 7px;
  transform-origin: top left;
  transition: transform .15s ease;
}
.booth-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1.5px solid transparent;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 1px 2px rgba(20,21,43,.06);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.booth-cell.has-photo::after {
  content: '📷';
  position: absolute; top: -5px; right: -5px;
  font-size: 9px; line-height: 1;
  background: #fff; border-radius: 50%; width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(20,21,43,.25);
}
.booth-photo-preview {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #fff;
  z-index: 25;
  pointer-events: none;
}
.booth-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.booth-cell:hover .booth-photo-preview { display: block; }
.booth-cell.status-available { background: #DCFCE7; border-color: #16A34A; color: #166534; cursor: pointer; }
.booth-cell.status-available:hover { background: #BBF7D0; text-decoration: none; transform: scale(1.08); box-shadow: 0 6px 14px rgba(22,163,74,.28); z-index: 1; }
.booth-cell.status-pending_payment { background: #FEF9C3; border-color: #EAB308; color: #854D0E; cursor: not-allowed; pointer-events: none; }
.booth-cell.status-booked, .booth-cell.status-reserved { background: #DBEAFE; border-color: #2563EB; color: #1E3A8A; cursor: not-allowed; pointer-events: none; }
.booth-cell.status-disabled { background: #FEE2E2; border-color: #DC2626; color: #991B1B; cursor: not-allowed; pointer-events: none; opacity: .75; }

/* Photo-coordinate lot map: lot numbers pinned by % position over the floorplan photo. */
.photo-map-viewport {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-slate-light);
  padding: 20px;
  max-height: 560px;
  margin-bottom: 20px;
}
.photo-map-canvas {
  position: relative;
  display: inline-block;
  transform-origin: top left;
  transition: transform .15s ease, width .15s ease;
}
.photo-map-image { display: block; max-width: 100%; height: auto; }
.photo-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 34px; height: 34px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 17px;
  border: 1.5px solid transparent;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 2px 6px rgba(20,21,43,.28);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.photo-pin.status-available { background: #DCFCE7; border-color: #16A34A; color: #166534; cursor: pointer; }
.photo-pin.status-available:hover { background: #BBF7D0; text-decoration: none; transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 6px 14px rgba(22,163,74,.28); z-index: 1; }
.photo-pin.status-pending_payment { background: #FEF9C3; border-color: #EAB308; color: #854D0E; cursor: not-allowed; pointer-events: none; }
.photo-pin.status-booked, .photo-pin.status-reserved { background: #DBEAFE; border-color: #2563EB; color: #1E3A8A; cursor: not-allowed; pointer-events: none; }
.photo-pin.status-disabled { background: #FEE2E2; border-color: #DC2626; color: #991B1B; cursor: not-allowed; pointer-events: none; opacity: .75; }
.photo-pin.size-small { min-width: 24px; height: 24px; font-size: 9px; border-radius: 12px; }
.photo-pin.size-large { min-width: 46px; height: 46px; font-size: 13px; border-radius: 23px; }

/* Box shape — a tilted rectangle for lots whose real footprint sits at an angle
   (e.g. angled parking bays) that a round pin can't represent. */
.photo-pin.shape-box { width: 34px; min-width: 0; border-radius: 5px; }
.photo-pin.shape-box.size-small { width: 24px; height: 15px; }
.photo-pin.shape-box.size-medium { width: 34px; height: 21px; }
.photo-pin.shape-box.size-large { width: 46px; height: 29px; }

.legend-dot.dot-available { color: #16A34A; }
.legend-dot.dot-pending { color: #EAB308; }
.legend-dot.dot-booked { color: #2563EB; }
.legend-dot.dot-disabled { color: #DC2626; }

/* Booking flow */
.booking-lot-summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; background: var(--gradient-brand-soft); border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg); margin-bottom: 22px;
}
.booking-lot-summary .lot-summary-code { font-size: 20px; font-weight: 800; color: var(--color-primary); }
.booking-lot-summary .lot-summary-price { font-size: 18px; font-weight: 700; }

/* Event contact people (public event detail sidebar) */
.event-contact-row { padding: 12px 0; border-bottom: 1px solid var(--color-border-light); }
.event-contact-row:last-child { border-bottom: none; }
.event-contact-name { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.event-contact-phone { display: inline-block; padding: 7px 0; font-weight: 600; font-size: 13.5px; color: var(--color-primary); }
.event-contact-phone:hover { text-decoration: underline; }
.event-contact-channel { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }

/* Contact page */
.contact-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.contact-channel {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 22px 16px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.contact-channel:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.contact-channel-icon { font-size: 26px; margin-bottom: 4px; }
.contact-channel-label { font-weight: 700; font-size: 13px; color: var(--color-text-muted); }
.contact-channel-value { font-weight: 700; font-size: 14.5px; color: var(--color-text); word-break: break-word; }

.payment-options { display: grid; gap: 12px; }
.payment-option {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: 14px 16px; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.payment-option:hover { border-color: var(--color-primary); }
.payment-option.is-selected { border-color: var(--color-primary); background: var(--color-primary-light); box-shadow: 0 0 0 4px var(--color-primary-light); }
.payment-option input[type="radio"] { margin-top: 3px; }
.payment-option .option-title { font-weight: 700; font-size: 14px; }
.payment-option .option-desc { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }

/* Confirmation page */
.confirmation-code-box {
  position: relative;
  text-align: center; padding: 32px 20px; background: var(--gradient-brand);
  border-radius: var(--radius-lg); margin: 20px 0;
  box-shadow: var(--shadow-glow-primary);
  overflow: hidden;
}
.confirmation-code-box .code-label { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 700; margin-bottom: 8px; letter-spacing: .03em; }
.confirmation-code-box .code-value { font-size: 34px; font-weight: 800; letter-spacing: .08em; color: #fff; font-family: 'SFMono-Regular', Consolas, monospace; }

.bank-details { background: var(--color-slate-light); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 12px; }
.bank-details .info-row { border-bottom-color: var(--color-border); }

/* Printable booking receipt */
.receipt-toolbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-bottom: 1px solid var(--color-border);
  padding: 14px 20px; box-shadow: var(--shadow-xs);
}
.receipt-toolbar .back-link { font-weight: 600; color: var(--color-text-muted); font-size: 14px; }
.receipt-sheet { max-width: 640px; margin: 28px auto 60px; padding: 0 20px; }
.receipt-paper {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 36px 32px;
}
.receipt-org { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.receipt-org img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.receipt-org .receipt-org-mark {
  width: 52px; height: 52px; border-radius: 12px; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.receipt-org-name { font-weight: 800; font-size: 17px; }
.receipt-org-meta { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.receipt-title { text-align: center; font-size: 20px; font-weight: 800; margin: 4px 0 18px; }
.receipt-section-label {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--color-text-faint); margin: 22px 0 6px;
}
.receipt-section-label:first-of-type { margin-top: 0; }
.receipt-footer-note { text-align: center; font-size: 12px; color: var(--color-text-faint); margin-top: 26px; }

@media print {
  .receipt-toolbar { display: none !important; }
  body { background: #fff !important; }
  .receipt-sheet { margin: 0; padding: 0; max-width: none; }
  .receipt-paper { box-shadow: none; border: none; padding: 0; }
  @page { size: A4; margin: 16mm; }
}

footer.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--color-slate-dark); font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--color-primary); }
