/* ═══════════════════════════════════════════════════════════════════
   HOST B — MODERNIZATION STYLESHEET (B variant only)
   Loaded from directory_home_b.php AFTER the inline Nolensville CSS,
   so these rules win at equal specificity on the B page.

   A is untouched: this file is never linked by A views.

   Steps (Jason approved sequence, 8/23):
     1. Design tokens  (radius scale, type ramp, color purge, elevation, motion)
     2. Sheet + map treatment (modal -> bottom sheet mobile / rounded card
        desktop, grabber, sticky action bar, rounded + locked map)
     3. Mobile-first pass (frosted sticky header, centered grid, empty state)
     4. Font roll-out (Limerick display, Inter utility, preload)
     5. De-AI-stink sweep (no glow shadows, no stock Bootstrap colors)
     6. Speed pass (font preload, lazy iframe/images, deferred Leaflet)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Step 1 + Step 4: Limerick Serial (brand display font) ─────────── */
@font-face {
  font-family: 'Limerick Serial';
  src: url('/assets/fonts/limerick-serial-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Limerick Serial';
  src: url('/assets/fonts/limerick-serial-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Step 1: Design tokens ────────────────────────────────────────────
   Re-defines the Nolensville :root variables so the whole B page picks
   up the brand system. Radius scale: 8 / 16 / 20 / 24 / 999.           */
:root {
  /* brand palette (Cardigan system from DESIGN_ENFORCEMENT.md) */
  --primary-color: #1d4ed8;                       /* was #667eea, then #3b82f6 */
  --primary-gradient: linear-gradient(135deg, #1e3a5f 0%, #274a78 100%); /* was purple */
  --secondary-color: #1e3a5f;                     /* was #ff6b6b  */
  --success-color: #10b981;                       /* was #28a745  */
  --warning-color: #f59e0b;                       /* was #ffc107  */
  --danger-color: #ef4444;                        /* was #dc3545  */
  --light-color: #f9fafb;                         /* was #f8f9fa  */
  --dark-color: #111827;                          /* was #212529  */
  --hungry-color: #ff6b35;
  --hungry-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);

  /* radius scale: 8 inputs/chips, 16 medium, 20 cards/panels, 24 sheets, 999 pills */
  --border-radius: 16px;                          /* medium surfaces  */
  --border-radius-lg: 20px;                       /* cards, panels    */
  --border-radius-sm: 8px;                        /* inputs, chips    */
  --b-radius-sheet: 24px;                         /* modals, map frame */
  --b-radius-pill: 999px;

  /* elevation: layered neutrals, no colored glows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.10);
  --b-shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.06);
  --b-shadow-raised: 0 8px 24px rgba(0, 0, 0, 0.10);
  --b-shadow-sheet: 0 -4px 24px rgba(0, 0, 0, 0.12);

  /* motion: 200-300ms, one curve */
  --transition: all 0.25s ease;

  /* type */
  --b-font-display: 'Limerick Serial', Georgia, serif;
  --b-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--b-font-ui);
  color: var(--dark-color);
  background: var(--light-color);
}

/* ── Step 2: Modal shell = sheet on mobile, rounded card on desktop ──
   One scrolling surface: no pinned hero, no inner scroll area. The whole
   modal scrolls as a unit (Bootstrap .modal on desktop, sheet on mobile). */
#store-info-dialog .modal-dialog {
  max-width: 800px;
  margin: 1rem auto;
}
#store-info-dialog .modal-content {
  border: 0;
  border-radius: var(--b-radius-sheet);
  overflow: hidden;
  box-shadow: var(--b-shadow-sheet);
  background: #faf3e8;
  color: #4a5568;
}
#store-info-dialog .modal-body {
  padding-bottom: 2rem;
}
/* scale + fade entrance (fast: whip in and out, Jason 8/23) */
#store-info-dialog.modal.fade .modal-dialog {
  transform: translateY(0) scale(0.97);
  transition: transform 0.16s ease, opacity 0.16s ease;
}
#store-info-dialog.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}
@media (max-width: 767.98px) {
  /* bottom sheet: pinned to bottom, rounded top corners, sheet scrolls as one */
  #store-info-dialog .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100%;
    height: 92vh;
    display: flex;
    align-items: flex-end;
  }
  #store-info-dialog .modal-content {
    border-radius: var(--b-radius-sheet) var(--b-radius-sheet) 0 0;
    height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #store-info-dialog.modal.fade .modal-dialog { transform: translateY(100%); transition: transform 0.16s ease; }
  #store-info-dialog.modal.show .modal-dialog { transform: translateY(0); transition: transform 0.16s ease; }
}

/* ── Step 2: map = rounded frame + soft shadow (desktop) ────────────── */
#store-info-dialog .location-map-container {
  position: relative;
}
#store-info-dialog .location-map-container iframe {
  border: 0 !important;
  border-radius: 20px;
  box-shadow: var(--b-shadow-raised);
  pointer-events: none;      /* locked until user taps the unlock button */
  touch-action: none;
}
#store-info-dialog .location-map-container.map-unlocked iframe {
  pointer-events: auto;
  touch-action: auto;
}
#store-info-dialog .location-map-container.map-unlocked .map-lock { display: none; }
#store-info-dialog .map-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
#store-info-dialog .map-unlock-btn {
  background: var(--dark-color);
  color: #fff;
  border: 0;
  border-radius: var(--b-radius-pill);
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  box-shadow: var(--b-shadow-raised);
  font-family: var(--b-font-ui);
}
#store-info-dialog .map-unlock-btn:hover { background: #1e3a5f; }
#store-info-dialog .map-lock.map-unlocked { display: none; }

/* ── Step 2: Bootstrap utility re-tunes inside the modal (AI-stink) ── */
#store-info-dialog .badge.bg-primary { background-color: #1e3a5f !important; }
#store-info-dialog .badge.bg-success { background-color: #10b981 !important; }
#store-info-dialog .btn-success {
  background-color: #1e3a5f !important;
  border-color: #1e3a5f !important;
}
#store-info-dialog .text-primary { color: #1e3a5f !important; }

/* ── Step 3: frosted sticky header ──────────────────────────────────── */
.sticky-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

/* ── Step 3 + Step 5: hero, search, controls (colors + radius) ──────── */
.hero-overlay {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.45) 0%, rgba(10, 21, 37, 0.55) 100%);
}
.search-panel {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}
.search-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--b-shadow-raised);
}
.search-tabs {
  border-radius: var(--b-radius-pill);
}
.tab-btn {
  border-radius: var(--b-radius-pill);
}
.tab-btn.active {
  background: #fff;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.search-input-group {
  border-radius: var(--b-radius-pill);
}
.search-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.crosshairs-btn {
  background: var(--primary-color);
}
.crosshairs-btn:hover { background: var(--secondary-color); }
.search-btn {
  background: var(--primary-gradient);
}
.location-status {
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.12);
}
.location-status.success {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
}
.location-status.warning {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
}
.location-status.error {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

/* sticky search */
.sticky-input-group {
  border-radius: var(--b-radius-pill);
}
.sticky-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.sticky-crosshairs { background: var(--primary-color); }
.sticky-crosshairs:hover { background: var(--secondary-color); }
.sticky-search-btn { background: var(--primary-color); }
.sticky-search-btn:hover { background: var(--secondary-color); }

/* ── Step 3 + Step 5: results / filter bar ──────────────────────────── */
.filter-toggle-container {
  border-radius: var(--border-radius);
  border-color: #e5e7eb;
  box-shadow: var(--shadow-sm);
}
input:checked + .slider { background-color: #3b82f6; }
.hungry-btn {
  background: var(--hungry-gradient);
  border-radius: var(--b-radius-pill);
  box-shadow: var(--shadow-sm);
}
.hungry-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--b-shadow-raised);
}
.hungry-btn.active { background: #ef4444; }
.hungry-btn.active:hover { background: #dc2626; }

/* short result sets: center the last row instead of stretching */
.business-results .row { justify-content: center; }

/* friendly empty state (no illustration, calm) */
#no_results {
  border: 1px dashed #d1d5db;
  border-radius: var(--border-radius-lg);
  background: #fff;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ── Step 5: construction (sneak preview) modal ─────────────────────── */
.construction-header { background: var(--primary-gradient); }
.construction-modal { border-radius: var(--border-radius-lg); box-shadow: var(--shadow-xl); }
.construction-title { color: var(--secondary-color); }
.construction-btn { background: var(--primary-gradient); border-radius: var(--b-radius-pill); }
.construction-btn:hover { transform: translateY(-2px); box-shadow: var(--b-shadow-raised); }

/* ── Step 5: remaining AI-stink stragglers ──────────────────────────── */
.tab-btn:not(.active):not(.disabled):hover {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.10);
}
.input-clear-btn,
.clear-search-btn {
  background: #ef4444;
}
.input-clear-btn:hover,
.clear-search-btn:hover {
  background: #dc2626;
}
.clear-search-btn { border-radius: var(--b-radius-pill); }

/* ── Step 6: speed pass ─────────────────────────────────────────────── */
/* lazy iframe (OSM map) is set in the modal partial itself;
   font preload links live in directory_home_b.php;
   Leaflet is deferred there too. */

/* ── What's happening: upcoming events strip (B, 8/23) ─────────────── */
.b-events-strip {
  background: #faf3e8;
  padding: 1.5rem 0 0.5rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}
.b-events-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.b-events-strip-head h3 {
  font-family: 'Limerick Serial', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0;
}
.b-events-all-btn {
  background: transparent;
  border: 1px solid rgba(30, 58, 95, 0.25);
  border-radius: 999px;
  color: #1e3a5f;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  min-height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.16s ease;
}
.b-events-all-btn:hover { background: #1e3a5f; color: #fff; }
.b-events-strip-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}
.b-events-strip-scroll::-webkit-scrollbar { display: none; }
.b-event-chip {
  flex: 0 0 auto;
  width: 250px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.16s ease;
}
.b-event-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  border-color: rgba(212, 175, 55, 0.5);
}
.b-event-date {
  flex: 0 0 auto;
  min-width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #1e3a5f;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.b-event-date strong { font-size: 1.15rem; font-weight: 800; }
.b-event-body { min-width: 0; }
.b-event-name {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: #1e3a5f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.b-event-meta {
  display: block;
  font-size: 0.74rem;
  color: rgba(30, 58, 95, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}
@media (max-width: 768px) {
  .b-event-chip { width: 230px; }
}

/* ── Events calendar (B, 8/23) ─────────────────────────────────────── */
#b-events-calendar .modal-content {
  background: #faf3e8;
  color: #4a5568;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}
.b-calendar-head {
  position: relative;
  background: #1e3a5f;
  color: #fff;
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.b-calendar-head .sheet-grabber { position: static; transform: none; margin: 0 auto 0.7rem; background: rgba(255,255,255,0.55); display: none; }
.b-calendar-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); opacity: 1; filter: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e"); background-size: 12px 12px; background-repeat: no-repeat; background-position: center; }
.b-calendar-title {
  font-family: 'Limerick Serial', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 0.7rem;
}
.b-calendar-views {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.b-cal-view-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  min-height: 36px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.b-cal-view-btn:hover { background: rgba(255, 255, 255, 0.2); }
.b-cal-view-btn.active { background: #D4AF37; border-color: #D4AF37; color: #1e3a5f; }
.b-calendar-body {
  padding: 1.1rem 1.25rem 1.4rem;
  max-height: 68vh;
  overflow-y: auto;
}
.b-cal-empty {
  margin: 1.2rem auto 0.4rem;
  max-width: 46ch;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4a5568;
  border-top: 1px dashed rgba(30, 58, 95, 0.15);
  padding-top: 1.1rem;
}
:root[data-theme="dark"] .b-cal-empty { color: #c2ccd9; border-top-color: rgba(255, 255, 255, 0.14); }
.b-cal-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.b-cal-view-title {
  font-family: 'Limerick Serial', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a5f;
}
.b-cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(30, 58, 95, 0.25);
  background: #fff;
  color: #1e3a5f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}
.b-cal-nav:hover { background: #1e3a5f; color: #fff; }
.b-cal-grid-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
  grid-column: 1 / -1;   /* span all columns so DOW labels align with the day cells below */
}
.b-cal-dow {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(30, 58, 95, 0.5);
  padding: 0.25rem 0;
}
.b-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.b-cal-day {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: #1e3a5f;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
  padding: 0;
}
.b-cal-day:hover { border-color: rgba(212, 175, 55, 0.55); background: #fff; }
.b-cal-day--empty { background: transparent; cursor: default; }
.b-cal-day--empty:hover { border-color: transparent; background: transparent; }
.b-cal-day--has { background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.35); font-weight: 800; }
.b-cal-day--sel { background: #1e3a5f; color: #fff; }
.b-cal-day-num { font-size: 0.85rem; }
.b-cal-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #D4AF37;
  color: #1e3a5f;
  font-size: 0.58rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.b-cal-day--sel .b-cal-dot { background: #fff; color: #1e3a5f; }
/* week view */
.b-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.b-cal-weekday {
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #1e3a5f;
  font-family: inherit;
  padding: 0.6rem 0.3rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.16s ease;
}
.b-cal-weekday:hover { border-color: rgba(212, 175, 55, 0.55); }
.b-cal-weekday--has { background: rgba(212, 175, 55, 0.10); border-color: rgba(212, 175, 55, 0.4); }
.b-cal-weekday--today { box-shadow: inset 0 -3px 0 #D4AF37; }
.b-cal-weekday--sel { background: #1e3a5f; color: #fff; }
.b-cal-weekday-name { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.b-cal-weekday-num { font-size: 1.2rem; font-weight: 800; }
.b-cal-weekday-count { font-size: 0.62rem; font-weight: 700; color: #1e3a5f; }
.b-cal-weekday--sel .b-cal-weekday-count { color: #fff; }
.b-cal-weekday-none { opacity: 0.35; }
/* year view */
.b-cal-year {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.b-cal-grid--mini .b-cal-day { aspect-ratio: auto; height: 30px; border-radius: 7px; }
.b-cal-grid--mini .b-cal-day-num { font-size: 0.7rem; }
.b-cal-grid--mini .b-cal-dot { min-width: 11px; height: 11px; font-size: 0.5rem; top: 2px; right: 2px; }
.b-cal-mini-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a5f;
  margin-bottom: 3px;
}
/* day panel + event rows */
.b-cal-daypanel {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(30, 58, 95, 0.12);
  padding-top: 0.9rem;
}
.b-cal-daypanel-head {
  font-family: 'Limerick Serial', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 0.7rem;
}
.b-cal-none { color: rgba(30, 58, 95, 0.55); font-size: 0.88rem; margin: 0.25rem 0; }
.b-cal-event {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}
.b-cal-event:hover { border-color: rgba(212, 175, 55, 0.5); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }
.b-cal-event-time {
  flex: 0 0 auto;
  min-width: 58px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e3a5f;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  text-align: center;
}
.b-cal-event-main { min-width: 0; }
.b-cal-event-name { display: block; font-size: 0.92rem; font-weight: 800; color: #1e3a5f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-cal-event-biz { display: block; font-size: 0.74rem; color: rgba(30, 58, 95, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) {
  .b-calendar-head .sheet-grabber { display: block; }
  .b-calendar-body { padding: 0.9rem 0.9rem 1.2rem; }
  .b-cal-year { grid-template-columns: repeat(2, 1fr); }
  .b-cal-weekday-num { font-size: 1rem; }
}

/* ── Events calendar PAGE (8/23) ───────────────────────────────────── */
.b-events-page-head {
  background: #1e3a5f;
  color: #fff;
  padding: 1.4rem 1.25rem 1.1rem;
  border-bottom: 3px solid #D4AF37;
}
.b-events-page-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.b-events-page-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.b-events-page-logo img { height: auto; max-height: 52px; max-width: 220px; width: auto; display: block; }
.b-events-page-views { margin-left: auto; }
.b-events-page-views .b-cal-view-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  min-height: 38px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.b-events-page-views .b-cal-view-btn:hover { background: rgba(255, 255, 255, 0.2); }
.b-events-page-views .b-cal-view-btn.active { background: #D4AF37; border-color: #D4AF37; color: #1e3a5f; }
.b-events-page-back {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
}
.b-events-page-back:hover { color: #f5c95b; }
.b-events-page-body {
  background: #faf3e8;
  min-height: 60vh;
  padding: 1.75rem 1.25rem 3rem;
}
.b-events-page-container { max-width: 1000px; margin: 0 auto; }
.b-calendar-body--page {
  max-height: none;
  overflow: visible;
  padding: 0;
}
.b-calendar-body--page .b-cal-view-bar { margin-bottom: 1.1rem; }
.b-calendar-body--page .b-cal-day { aspect-ratio: auto; height: 46px; border-radius: 10px; }
.b-calendar-body--page .b-cal-day-num { font-size: 0.9rem; }
@media (max-width: 768px) {
  .b-events-page-inner { gap: 0.75rem; }
  .b-events-page-views { margin-left: 0; width: 100%; }
  .b-events-page-logo img { max-height: 40px; max-width: 170px; }
}

/* ── Events page extras (8/23): map, type filter, live now, tags ──── */
.b-events-map-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  min-height: 38px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.b-events-map-toggle:hover { background: rgba(255, 255, 255, 0.2); }
.b-events-map-toggle.active { background: #D4AF37; border-color: #D4AF37; color: #1e3a5f; }
.b-events-map-panel {
  background: #faf3e8;
  padding: 0.9rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}
.b-events-map-panel #b-events-map {
  height: 340px;
  border-radius: 16px;
  border: 1px solid rgba(30, 58, 95, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #eef2f7;
  z-index: 0;
}
.b-map-marker span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.b-map-view {
  margin-top: 6px;
  background: #1e3a5f;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.b-events-typebar {
  background: #faf3e8;
  padding: 0.9rem 1.25rem 0.35rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}
.b-cal-typebar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}
.b-cal-typebar-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 58, 95, 0.55);
  margin-right: 0.25rem;
}
.b-cal-typepill {
  background: #fff;
  border: 1px solid rgba(30, 58, 95, 0.18);
  color: #1e3a5f;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.16s ease;
}
.b-cal-typepill:hover { border-color: rgba(212, 175, 55, 0.6); }
.b-cal-typepill.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.b-cal-typepill-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.b-events-livenow {
  background: #faf3e8;
  padding: 0.5rem 1.25rem 0;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}
.b-livenow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.b-livenow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  animation: b-pulse 1.6s ease-in-out infinite;
}
@keyframes b-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 50% { box-shadow: 0 0 0 7px rgba(239,68,68,0); } }
.b-livenow-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #991b1b;
}
.b-livenow-event { border-color: rgba(239, 68, 68, 0.35); }
.b-cal-status {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.b-cal-status--cancelled { background: #6b7280; color: #fff; text-decoration: line-through; }
.b-cal-status--tentative { background: #f59e0b; color: #1e3a5f; }
.b-cal-event-excerpt {
  display: block;
  font-size: 0.76rem;
  color: rgba(30, 58, 95, 0.6);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}
@media (max-width: 768px) {
  .b-events-map-toggle { margin-left: 0; }
  .b-events-map-panel #b-events-map { height: 260px; }
}
