/*
 * assets/css/bsf-venues.css
 * -------------------------------------------------------
 * Styles for:
 *   - Page layout (sidebar + main content)
 *   - Sticky left sidebar
 *   - Floating yellow menu
 *   - Venue accordion
 *   - Accessibility sections
 *   - Back to Top button
 *   - Mobile responsive breakpoints
 *
 * Enqueued via functions.php on pages using the
 * "BSF Venues & Accessibility" template.
 * -------------------------------------------------------
 */

/* =====================================================
   CSS CUSTOM PROPERTIES (edit here to retheme)
   ===================================================== */
:root {
  --bsf-yellow:      #e1c758;
  --bsf-yellow-dark: #d9b000;
  --bsf-dark:        #1a1a2e;
  --bsf-mid:         #2d2d44;
  --bsf-text:        #222222;
  --bsf-muted:       #666666;
  --bsf-border:      #e0e0e0;
  --bsf-bg:          #f9f7f2;
  --bsf-white:       #ffffff;

  --sidebar-width:   260px;
  --floating-menu-width: 180px;
  --radius:          8px;
  --transition:      0.2s ease;

  --font-body:       'gilmer regular', 'Times New Roman', serif;
  --font-ui:         'gilmer regular', BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =====================================================
   PAGE LAYOUT
   ===================================================== */
.bsf-page-wrap {
  display: flex;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
  position: relative;
}

.bsf-main-content {
  flex: 1;
  min-width: 0;
  padding: 0px 0 80px 32px;
}

/* =====================================================
   STICKY LEFT SIDEBAR
   ===================================================== */
.bsf-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  position: sticky;
  top: 80px;            /* adjust to match your fixed header height */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 24px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--bsf-border) transparent;
}

.bsf-sidebar::-webkit-scrollbar { width: 4px; }
.bsf-sidebar::-webkit-scrollbar-thumb { background: var(--bsf-border); border-radius: 2px; }

.bsf-sidebar__inner {
  border-right: 1px solid var(--bsf-border);
  padding-right: 20px;
}

.bsf-sidebar__close {
  display: none; /* shown only on mobile */
}

.page-title-banner-text.container.venue-title{
	padding: 50px 0px;
}

.bsf-sidebar__group {
  margin-bottom: 24px;
}

.bsf-sidebar__group-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bsf-muted);
  margin-bottom: 8px;
  padding-left: 0;
}

.bsf-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsf-sidebar__item {
  margin: 0;
}

.bsf-sidebar__link {
  display: block;
  padding: 6px 12px 6px 12px;
  font-family: var(--font-ui);
  font-size: 20px;
  color: #444;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all var(--transition);
  line-height: 1.4;
}

.bsf-sidebar__link:hover {
  background: #fffde7;
  border-left-color: var(--bsf-yellow);
  color: var(--bsf-text);
}

.bsf-sidebar__link.is-active {
  background: #fffde7;
  border-left-color: var(--bsf-yellow);
  color: var(--bsf-text);
  font-weight: 600;
}

.bsf-sidebar__item--child .bsf-sidebar__link {
  padding-left: 24px;
  font-size: 20px;
  color: #666;
}

/* Mobile sidebar toggle */
.bsf-sidebar__mobile-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: var(--bsf-dark);
  color: white;
  border: none;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* =====================================================
   FLOATING YELLOW MENU (LEFT)
   ===================================================== */
.bsf-floating-menu {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: var(--floating-menu-width);
  background: var(--bsf-yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 2px 4px 20px rgba(0,0,0,0.15);
  padding: 12px 0;
  transition: transform var(--transition);
}

.bsf-floating-menu__label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(0,0,0,0.5);
  padding: 0 16px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 8px;
}

/* WordPress nav_menu output */
.bsf-floating-menu .bsf-floating-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsf-floating-menu .bsf-floating-menu__list li {
  margin: 0;
}

.bsf-floating-menu .bsf-floating-menu__list a {
  display: block;
  padding: 9px 16px;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  transition: background var(--transition);
  border-left: 3px solid transparent;
}

.bsf-floating-menu .bsf-floating-menu__list a:hover {
  background: rgba(0,0,0,0.1);
  border-left-color: rgba(0,0,0,0.3);
}

/* =====================================================
   PAGE HERO
   ===================================================== */
.bsf-hero {
  margin-bottom: 48px;
}

.bsf-hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.bsf-hero__image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.bsf-hero__title {
 // font-size: 36px;
  font-family: var(--font-body);
  margin-bottom: 16px;
  line-height: 1.2;
}

.bsf-hero__intro {
 // font-size: 16px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 20px;
}

.bsf-hero__cta {
  display: inline-block;
  background: var(--bsf-yellow);
  color: #000;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition);
  margin-bottom: 24px;
}

.bsf-hero__cta:hover {
  background: var(--bsf-yellow-dark);
}

.bsf-hero__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--bsf-border);
}

.bsf-hero__map iframe {
  width: 100%;
  height: 300px;
  display: block;
  border: none;
}

/* =====================================================
   SECTION HEADER (shared)
   ===================================================== */
.bsf-section-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--bsf-yellow);
}

.bsf-section-header__title {
  font-family: var(--font-body);
  font-size: 28px;
  margin-bottom: 8px;
}

.bsf-section-header__intro {
  font-size: 20px;
  color: var(--bsf-muted);
  line-height: 1.7;
}

/* =====================================================
   ACCESSIBILITY SECTIONS
   ===================================================== */
.bsf-accessibility {
  margin-bottom: 64px;
}

.bsf-acc-section {
  margin-bottom: 40px;
  scroll-margin-top: 100px; /* offset for sticky header */
}

.bsf-acc-section--sub {
  margin-left: 24px;
  margin-bottom: 28px;
}

.bsf-acc-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 26px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bsf-border);
}

.bsf-acc-section--sub .bsf-acc-section__title {
  font-size: 18px;
}

.bsf-acc-section__icon {
  font-size: 24px;
}

.bsf-acc-section__content {
  font-size: 20px;
  line-height: 1.75;
  color: #333;
}

.bsf-acc-section__content p { margin-bottom: 14px; }
.bsf-acc-section__content ul { padding-left: 20px; margin-bottom: 14px; }
.bsf-acc-section__content li { margin-bottom: 6px; }
.bsf-acc-section__content a { color: var(--bsf-dark); }
.bsf-acc-section__content a:hover { color: #000; text-decoration: underline; }

/* =====================================================
   VENUES ACCORDION
   ===================================================== */
.bsf-venues {
  margin-bottom: 64px;
}

.bsf-venues__controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.bsf-venues__control-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border: 2px solid var(--bsf-border);
  border-radius: 20px;
  background: white;
  color: var(--bsf-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.bsf-venues__control-btn:hover {
  border-color: var(--bsf-yellow);
  color: #000;
  background: #fffde7;
}

.bsf-venues__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Individual venue item */
.bsf-venue-item {
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 100px;
}

/* Header / trigger */
.bsf-venue-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  background: var(--bsf-white);
  border: 1px solid var(--bsf-border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  gap: 12px;
}

.bsf-venue-item__header:hover {
  background: #fffde7;
  border-color: #ccc;
}

.bsf-venue-item.is-open .bsf-venue-item__header {
  background: var(--bsf-dark);
  color: white;
  border-color: var(--bsf-dark);
  border-radius: var(--radius) var(--radius) 0 0;
}

.bsf-venue-item__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bsf-venue-item__tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bsf-yellow);
  color: #000;
  white-space: nowrap;
}

.bsf-venue-item.is-open .bsf-venue-item__tag {
  background: rgba(245, 200, 0, 0.25);
  color: var(--bsf-yellow);
}

.bsf-venue-item__name {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 600;
}

.bsf-venue-item__access-preview {
  display: flex;
  gap: 4px;
  font-size: 18px;
}

.bsf-venue-item__chevron {
  font-size: 24px;
  font-weight: 300;
  color: #888;
  transition: transform var(--transition);
  font-family: var(--font-ui);
  line-height: 1;
  flex-shrink: 0;
}

.bsf-venue-item.is-open .bsf-venue-item__chevron {
  transform: rotate(45deg);
  color: rgba(255,255,255,0.6);
}

/* Accordion body */
.bsf-venue-item__body {
  /* 'hidden' attribute used for display control — JS removes it */
  background: var(--bsf-white);
  border: 1px solid var(--bsf-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.bsf-venue-item__body:not([hidden]) {
  display: block;
  animation: bsfSlideDown 0.22s ease;
}

@keyframes bsfSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bsf-venue-item__body-inner {
  padding: 24px;
}

/* Venue image */
.bsf-venue-item__image {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.bsf-venue-item__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Meta grid */
.bsf-venue-item__meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.bsf-venue-item__meta-item {
  background: #ffefef;
  border-radius: 6px;
  padding: 16px;
}

.bsf-venue-item__meta-item dt {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 4px;
}

.bsf-venue-item__meta-item dd {
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--bsf-text);
  margin: 0;
}

/* Description */
.bsf-venue-item__description {
  font-size: 20px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 20px;
  font-family: var(--font-ui);
}

.bsf-venue-item__description p { margin-bottom: 10px; }
.bsf-venue-item__description a { color: var(--bsf-dark); }

/* Accessibility pills */
.bsf-venue-item__access {
  margin-bottom: 20px;
}

.bsf-venue-item__access-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 10px;
}

.bsf-venue-item__access-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsf-venue-item__access-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: #e8f5e9;
  color: #2e7d32;
}

/* Maps link */
.bsf-venue-item__maps-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  color: var(--bsf-text);
  text-decoration: none;
  border-bottom: 2px solid var(--bsf-yellow);
  padding-bottom: 1px;
  transition: border-color var(--transition);
}

.bsf-venue-item__maps-link:hover {
  border-color: var(--bsf-yellow-dark);
}

.bsf-venues__empty {
  font-family: var(--font-ui);
  color: var(--bsf-muted);
  padding: 20px 0;
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */
.bsf-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 52px;
  height: 52px;
  background: var(--bsf-dark);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.bsf-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.bsf-back-to-top:hover {
  background: #000;
  transform: translateY(-2px);
}

.bsf-back-to-top__label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: -4px;
}

/* =====================================================
   RESPONSIVE — TABLET (max 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  .bsf-floating-menu {
    display: none; /* hide on tablet/mobile — too cramped */
  }

  .bsf-sidebar {
    width: 220px;
    min-width: 220px;
  }

  .bsf-main-content {
    padding-left: 24px;
  }
}

/* =====================================================
   RESPONSIVE — MOBILE (max 768px)
   ===================================================== */
@media (max-width: 768px) {
  .bsf-page-wrap {
    flex-direction: column;
    padding: 0 16px;
  }

  /* Sidebar becomes a slide-down drawer on mobile */
  .bsf-sidebar {
    width: 100%;
    min-width: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    max-height: 100vh;
    z-index: 500;
    background: white;
    border-right: none;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
  }

  .bsf-sidebar.is-open {
    transform: translateX(0);
  }

  .bsf-sidebar__inner {
    border-right: none;
    padding-right: 0;
  }

  .bsf-sidebar__close {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--bsf-text);
    padding: 4px 8px;
  }

  .bsf-sidebar__mobile-toggle {
    display: flex;
  }

  .bsf-main-content {
    padding: 0 0 60px;
    width: 100%;
  }

  .bsf-hero__title { font-size: 26px; }

  .bsf-venue-item__meta {
    grid-template-columns: 1fr;
  }

  .bsf-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
  }
}
