  /* Mobile compact sticky checkout */
  @media (max-width: 767.98px) {
    /* breathing room so sticky bar doesn't cover last card */
    #eventsList { margin-bottom: 110px; }

    #checkoutPanel {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1050;
      background: var(--bs-body-bg);
      border-top: 1px solid rgba(0,0,0,.10);
      box-shadow: 0 -10px 24px rgba(0,0,0,.12);
      padding: 6px 10px;
    }

    /* Keep totals always visible (compact) */
    .checkout-details {
      max-height: none;
      overflow: visible;
      padding-top: 6px;
    }

    #grandTotals {
      padding: .5rem !important; /* overrides Bootstrap p-3 */
      gap: .5rem !important;
      margin-bottom: .5rem !important;
    }

    #grandTotals .small { font-size: .75rem; line-height: 1.1; }
    #grandTotals .fw-semibold { font-size: .9rem; line-height: 1.1; }

    /* Hide discount section unless expanded */
    #discountBlock { display: none; margin-bottom: .5rem !important; }
    body.checkout-expanded #discountBlock { display: block; }
  }

  /* Desktop: sticky footer (match mobile behaviour) */
@media (min-width: 768px) {
  /* breathing room so sticky bar doesn't cover last card */
  #eventsList { margin-bottom: 100px; }

  #checkoutPanel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;

    width: 100%;

    background: var(--bs-body-bg);
    border-top: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 -10px 24px rgba(0,0,0,.12);
    padding: 4px 0;
  }
    
      #checkoutPanel .checkout-inner{
    max-width: 860px;     /* match your card width */
    margin: 0 auto;
    padding: 0 1rem;      /* gutter */
  }


    
  /* Keep details visible/compact like mobile */
  .checkout-details {
    max-height: none;
    overflow: visible;
    padding-top: 4px;
    padding-bottom: 4px;
  }
    
    
      .checkout-details .row {
    row-gap: 4px;
  }

  .checkout-details .small {
    font-size: 0.8rem;
  }
    
    #grandTotals {
      padding: .5rem !important; /* overrides Bootstrap p-3 */
      gap: .5rem !important;
      margin-bottom: .5rem !important;
    }

    #grandTotals .small { font-size: .75rem; line-height: 1.1; }
    #grandTotals .fw-semibold { font-size: .9rem; line-height: 1.1; }
    
}



  /* Existing styles */
  /* Selected styling (Bootstrap-friendly) */
  .event-card.selected {
    border-width: 2px;
  }
  .event-card.selected .card-body {
    font-weight: 500;
  }
  .event-card { cursor: pointer; }

  .ticket-row {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .5rem;
    padding: .75rem;
  }

  /* Subtle border highlight until completed */
  .ticket-row.is-incomplete {
    border-color: rgba(220, 53, 69, .35);
    box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .08);
  }

  .ticket-row.is-complete {
    border-color: rgba(25, 135, 84, .25);
    box-shadow: 0 0 0 .15rem rgba(25, 135, 84, .06);
  }

  /* Hide per-event totals now we have a grand total */
  .event-ticket-count,
  .event-racepass-total {
    display: none;
  }

  /* iOS: prevent zoom on focus by ensuring >= 16px */
  .ticket-row .form-control,
  .ticket-row .form-select,
  .ticket-row input[type="date"] {
    font-size: 16px;
  }

/* Mobile/touch: prevent Bootstrap outline button hover from sticking after tap */

  /* Keep active/selected buttons looking selected */
  .filter-btn.btn-secondary:hover,
  .filter-btn.btn-secondary:active,
  .filter-btn.btn-secondary:focus {
    background-color: var(--bs-secondary);
    color: #fff;
  }



/* Filter buttons: soften hover state so deselected buttons don't look active */
.filter-btn.btn-outline-secondary:hover {
  background-color: rgba(108, 117, 125, 0.01); /* very light grey */
  color: var(--bs-secondary);
}

/* Keep selected buttons clearly selected on hover */
.filter-btn.btn-secondary:hover {
  background-color: var(--bs-secondary);
  color: #fff;
}
/* Prevent iOS double-tap zoom on filter buttons */
.filter-btn {
  touch-action: manipulation;
}


/* Compact "Clear filters" + results count onto one line */
#clearFilters {
  padding-right: .5rem;
}

#resultsCount {
  white-space: nowrap;
}

/* Wrap the clear/results row tightly */
#clearFilters,
#resultsCount {
  display: inline-block;
  font-size: .875rem;
}


/* Make top of page more compact */

/* Reduce card header padding */
.card-header {
  padding-top: .5rem;
  padding-bottom: .5rem;
}

/* Pull filters closer to header */
.card-body > .border.rounded-3:first-of-type {
  margin-top: 0;
}

/* Hide checkout footer until at least one ticket exists */
#checkoutPanel {
  display: none;
}


/* Force lighter placeholders for Bootstrap form controls */
.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.25) !important;
  opacity: 1 !important; /* Firefox/iOS quirks */
}

/* WebKit */
.form-control::-webkit-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.25) !important;
}

/* Edge/legacy */
.form-control::-ms-input-placeholder,
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.25) !important;
}

#contactPanel {
  transition: opacity 0.2s ease;
}

body {
   /* background-image: url("bg.jpg?v=2");
    background-size: cover;
    background-attachment: fixed;*/
    background-color: #00adee;
    
}


.btn-primary {
  --bs-btn-bg: #0b3d91;
  --bs-btn-border-color: #0b3d91;

  --bs-btn-hover-bg: #0a347a;
  --bs-btn-hover-border-color: #0a347a;

  --bs-btn-active-bg: #082c66;
  --bs-btn-active-border-color: #082c66;

  --bs-btn-disabled-bg: #0b3d91;
  --bs-btn-disabled-border-color: #0b3d91;
}


/* Keep price + button aligned right on mobile */
.event-card .event-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Prevent wrapping onto new line */
@media (max-width: 767px) {
  .event-card .event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .event-card .event-header-right {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .event-card .select-event-btn {
    padding: 4px 8px;
    font-size: 13px;
  }
}

.event-card .event-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 👈 THIS fixes the price alignment */
  gap: 6px;
}

.select-event-btn {
  white-space: nowrap;
}


/* Tighter than card-body but still padded */
.event-content {
  padding: 12px 14px;
}



/* Button styling */
.select-event-btn {
  white-space: nowrap;
  padding: 10px;
  border-radius: 8px;
    margin-top: 10px;
}


@media (min-width: 768px) {
  .select-event-btn {
    width: auto !important;
    min-width: 180px;
      float: right;
  }
}
