/* ===============================
   Base Styles
   =============================== */
body {
  background-color: #f8f9fa;
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-style: normal;
}
.events-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.event-info {
  display: flex;
  align-items: center;
  gap: 0 !important;
}

.back-btn {
  display: none;
  color: #212529;
  text-decoration: none;
}

.back-btn:hover {
  color: #198754;
}

.event-info img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.event-info h4 {
  font-weight: 600;
  margin-bottom: 4px;
}
.event-info h4 {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 1rem; /* reduce title font size */
  color: #3f6600;
}

.event-info p {
  margin-bottom: 3px;
  color: #555;
}

.search-box {
  position: relative;
}

.search-box input {
  border-radius: 30px;
  padding-right: 40px;
}

.search-box i {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #888;
}

.nav-link:hover {
  color: #198754 !important;
}

/* ===============================
   🎟️ Filter Section (All Screens)
   =============================== */
.filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  padding-bottom: 5px;
  margin-top: 0.5rem;
}

.filters::-webkit-scrollbar {
  height: 6px;
}

.filters::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.filters select {
  min-width: 130px;
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ===============================
   📱 Mobile View Adjustments
   =============================== */
@media (max-width: 768px) {
  /* Header info */
  .event-info {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  /* Show back button */
  .back-btn {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
  }

  /* Hide image */
  .event-info img {
    display: none;
  }

  /* Hide right section */
  .search-box,
  .nav,
  a[href*="login"] {
    display: none !important;
  }

  /* Filters: single-line scrollable, non-overlapping */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .filters select {
    width: auto;
    flex: 0 0 auto;
  }
}
.search-box .form-control {
  border-radius: 12px;
  font-size: 0.92rem; /* slightly larger text */
  height: 50px;
}


.search-box {
  width: 100%;
  max-width: 360px; /* adjust as needed */
  
}
body {
  margin: 0;
  overflow: hidden; /* prevent body scroll */
}

.events-header {
  z-index: 2000;
}


.ticket-map {
  top: 100px; /* adjust to height of your header */
  height: calc(100vh - 100px);
}


/* ===============================
   📱 Mobile Layout Adjustments
   =============================== */
@media (max-width: 768px) {

  body {
    overflow: auto !important; /* allow normal scrolling */
  }

  main.container-fluid {
    display: block !important;
    padding: 0 !important;
    margin-top: var(--header-height);
  }

  .d-flex.h-100 {
    flex-direction: column !important;
    height: auto !important;
  }
  

  /* Ticket map becomes full width and visible before listings */
  .ticket-map {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: 0 !important;
    background-color: #f2f2f2;
    margin-bottom: 0.5rem;
  }

  /* Filter button sits under map */
  .events-header .btn[data-bs-toggle="offcanvas"] {
    position: static;
    width: 100%;
    border-radius: 0;
  }

  /* Right panel (listings) takes full width stacked view */
  .ticket-listings {
    position: relative !important;
    width: 100% !important;
    border-top: 1px solid #dee2e6;
    border-radius: 0 !important;
    padding: 0.75rem 1rem;
  }

  /* Divider spacing between sections */
  .listing-header {
    border-bottom: 1px solid #dee2e6;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .listing-item {
    border-color: #eee;
  }
}
/* ===============================
   📱 Mobile Filter Button Styling
   =============================== */
@media (max-width: 768px) {
  .mobile-filter-btn {
    background: #fff;
    position: relative;
    z-index: 5;
  }

  .mobile-filter-btn button {
    border-color: #dee2e6;
    padding: 0.75rem 1rem;
    font-weight: 500;
  }
}
/* ===============================
   ✅ FINAL FIX: Mobile - Only listings scroll
   =============================== */
@media (max-width: 768px) {
    html, body {
    height: 100%;
    overflow: hidden; /* keep header fixed, avoid body scroll */
  }

  main.container-fluid {
    display: flex;
    padding: 0 !important;
    flex-direction: column;
    height: 100vh; /* full viewport height */
    overflow: hidden; /* contain scrolling inside */
    margin-top: var(--header-height);
  }

 .ticket-map {
    width: 100% !important;
    height: 45vh !important;
    max-height: 45vh !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ticket-map-img {
    max-width: 100% !important;
    width: auto !important;

    max-height: 30vh !important;  /* FORCE the image to shrink */
    height: auto !important;

    object-fit: contain !important;
    display: block;
    margin: 0 auto;
  }
  .mobile-filter-btn {
    flex-shrink: 0;
    margin-bottom: 0.25rem;
    padding: 0.75rem 1rem;
  }

  .ticket-listings {
    flex: 1 1 auto;         /* fill remaining space */
    overflow-y: auto;       /* make scrollable */
    -webkit-overflow-scrolling: touch; /* smooth scroll for iOS */
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .d-flex.h-100{
    gap: 0 !important;
  }
}
/* ✅ Make header fixed on all screens */
.events-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
/* Desktop spacing fix */
main#mainContent {
    margin-top: var(--header-height); /* same as fixed header height */
}

/* Ensure header height variable is set dynamically */
:root {
    --header-height: 100px; /* fallback; actual value updated by JS */
}
/* ===============================
   📱 Mobile: Listings full width
   =============================== */
@media (max-width: 768px) {

  /* Remove padding from the container so listings can touch screen edges */
  .ticket-listings {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Make each listing item full width */
  .ticket-listings .listing-item {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem !important; /* adjust inner padding if needed */
    box-sizing: border-box; /* ensures padding is included in width */
  }

  /* Remove inner div padding so content spans fully */
  .ticket-listings .listing-item > div {
    padding: 0 !important;
  }

  /* Optional: make text div stretch full width inside listing item */
  .ticket-listings .listing-item > div > .d-flex {
    width: 100%;
  }
}
/* Back button styling */
.back-btn {
    display: inline-flex; /* flex to align icon vertically */
    align-items: center;
    font-size: 1.25rem;
    color: #212529;
    text-decoration: none;
}

.back-btn:hover {
    color: #198754; /* green hover */
}

/* Only show on mobile */
@media (min-width: 768px) {
    .back-btn {
        display: none !important;
    }
}
/* Reduce spacing between event info lines */
.event-info div h4 {
    margin-bottom: 2px;
    line-height: 1.2;
}

.event-info div p {
    margin-bottom: 2px;
    line-height: 1.2;
}

/* Mobile-specific font size adjustments */
@media (max-width: 768px) {
    .event-info div h4 {
        font-size: 0.9rem; /* smaller title on mobile */
    }

    .event-info div p {
        font-size: 0.75rem; /* smaller text for date/venue */
    }
}

@media (min-width: 769px) {
  .listing-sidebar {
    position: fixed;               /* fixed relative to viewport */
    top: var(--header-height);     /* same as header */
    right: 0;                      /* stick to right */
    width: 42%;                     /* same width as old ticket-listings */
    height: calc(100vh - var(--header-height)); /* full height minus header */
    background: #fff;
    padding: 1.5rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
    transition: right 0.35s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 10;    
  }

  .listing-sidebar.active {
    transform: translateX(0);     /* slide in when active */
  }

  /* Slide in sidebar inside right panel */
  .listing-sidebar.active {
    right: 0;
  }
}

/* Mobile full-screen overlay */
@media (max-width: 768px) {
    .listing-sidebar {
    position: fixed !important;
    top: var(--header-height);
    left: 0;
    width: 100vw !important;
    height: calc(100vh - var(--header-height)) !important;
    z-index: 3000;
    padding: 1.5rem;
    background: #fff;
    overflow-y: auto;           /* allow vertical scroll */
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .listing-sidebar.active {
    transform: translateX(0);
  }
    /* Hide map & listings automatically when sidebar is active */
    .listing-sidebar.active ~ .ticket-map,
    .listing-sidebar.active ~ .ticket-listings #listing-list {
        display: none;
    }
}
@media (min-width: 769px) {
  .ticket-listings {
    position: relative; /* container for sidebar */
    width: 42%;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 2px;
  }

  .listing-sidebar {
    position: absolute;       /* relative to ticket-listings */
    top: 0;
    left: 100%;              /* hidden by default (off-screen right of ticket-listings) */
    width: 100%;             /* full width of ticket-listings */
    height: 100%;
    background: #fff;
    padding: 1.5rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
    transition: left 0.35s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 10;
  }

  .listing-sidebar.active {
    left: 0; /* slide in over ticket-listings */
  }
}

/* Back button styling (existing) */
.back-to-list {
  color: black;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
}
.back-to-list:hover {
  text-decoration: none;
  color: black;
}

/* Smaller back button */
.back-to-list.small-btn {
    font-size: 0.95rem;   /* smaller text */
    padding: 0.25rem 0.5rem;  /* smaller padding */
    line-height: 1;       /* tighter line spacing */
}

/* Optional: adjust hover color slightly */
.back-to-list.small-btn:hover {
    color: black;
    text-decoration: none;
}
.sidebar-image-container {
  display: flex;
  justify-content: center;
  width: 100%;  
}

.sidebar-image {
    width: 100%;       /* full width of sidebar */
    max-width: 270px;  /* optional max width */
    height: auto;
    border-radius: 8px;
}
#checkoutBtn {
    background-color: #4e7c05; /* new background color */
    color: #fff;               /* text color */
    border: none;
    border-radius: 25px;       /* rounded corners */
    height: 46px;              /* button height */
    width: 100%;               /* full width */
    font-size: 0.9rem;         /* adjust text size */
    font-weight: 200;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: sticky;   /* stick to bottom */
    bottom: 0;          /* distance from bottom of container */
    margin-top: 1rem;   /* optional spacing above */
    z-index: 10; 
}

/* Hover effect */
#checkoutBtn:hover {
    background-color: #70a12f; /* hover color */    
}

/* Focus/active state */
#checkoutBtn:focus,
#checkoutBtn:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.3);
}
/* Desktop: side by side */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.info-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.info-icon {
    width: 32px;
    height: 10px;
}

.info-img {
    width: 170px;
    height: 40px;
}

/* Mobile view */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column !important; /* stack vertically */
        align-items: flex-start !important; /* left-align everything */
    }

    .info-text {
        display: flex;
        gap: 4px;
        align-items: center; /* keep icon next to text */
        margin-top: 0.25rem;
    }
}
/* Desktop only */
@media (min-width: 992px) {
    #mainHeader {
        padding-bottom: 2px; /* adjust to what you want */
    }
}

/* Change the switch when checked */
#seatsTogetherSwitch:checked {
    background-color: #4e7c05; /* your custom color */
    border-color: #4e7c05;
}

/* Optional: change the toggle handle color */
#seatsTogetherSwitch:checked::before {
    background-color: #fff; /* keep the knob white */
}

/* ===== Base link style ===== */
.page-link {
  color: black; /* green text */
  border: none !important;
  background: none !important;
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  line-height: 1;
  font-size: 0.9rem;  
  padding: 0 !important;
}

/* ===== Hover — for numbers only ===== */
.page-item:not(:first-child):not(:last-child) .page-link:hover {
  background-color: #c8eb99 !important; /* green hover */
  color: #456b08 !important;  
}

/* ===== Hover — for arrows only ===== */
.page-item:first-child .page-link:hover,
.page-item:last-child .page-link:hover {
  background-color: #eff1f2 !important; /* blue hover for arrows */
  color: black !important;
  
}

/* ===== Active page ===== */
.page-item.active .page-link {
  background-color: #4e7c05 !important;
  color: #fff !important;
}

/* ===== Disabled arrows ===== */
.page-item.disabled .page-link {
  color: #adb5bd !important;
  background: none !important;
  pointer-events: none;
}









