:root {
  --primary-color: #adc931;
  --primary-hover: #a4be2f;
  --text-dark: #1a1a1a;
  --text-light: #757575;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius-md: 12px;
  --radius-lg: 20px;
}

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 40vh;
  min-height: 300px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  width: 90%;
  max-width: 800px;
}

.event-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid white;
  margin-bottom: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.event-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-meta {
  font-size: 0.95rem;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Main Container */
.main-container {
  max-width: 800px;
  margin: -30px auto 40px;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

/* Tabs */
.tabs-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 6px;
  display: flex;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background-color: var(--text-dark);
  color: white;
  box-shadow: var(--shadow-sm);
}

.tab-btn img {
  height: 20px;
  width: auto;
  filter: grayscale(100%);
}

.tab-btn.active img {
  filter: invert(100%);
}

/* Ticket List */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 100px; /* Added to prevent footer overlap */
}

.ticket-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.ticket-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ticket-thumb {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 16px;
  display: block;
}

@media (min-width: 768px) {
  .ticket-thumb {
    width: 80px;
    height: 80px;
    margin-right: 16px;
    margin-bottom: 0;
  }

  .ticket-header {
    flex-direction: row;
  }
}

.ticket-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ticket-info {
  flex: 1;
}

.ticket-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-dark);
}

.ticket-price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.fees {
  font-size: 0.85rem;
  color: var(--text-light);
}

.ticket-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.more-info-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-input {
  width: 40px;
  padding: 8px 0;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #000;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
  user-select: none;
  line-height: 1;
  padding-bottom: 4px;
  /* Visual alignment for + and - */
}

.qty-btn:hover {
  background: #333;
  transform: scale(1.05);
}

.qty-btn:active {
  background: #000;
  transform: scale(0.95);
}

/* Map & Info Section */
.info-section {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

#map {
  height: 300px;
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.info-text {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Sticky Checkout Footer */
.checkout-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 16px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.total-display {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.total-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.checkout-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.checkout-btn:hover {
  background-color: var(--primary-hover);
}

.checkout-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-section {
    height: 50vh;
  }

  .event-title {
    font-size: 3rem;
  }

  .ticket-card {
    flex-direction: row;
    align-items: center;
  }

  .ticket-header {
    margin-bottom: 0;
    flex: 1;
  }

  .ticket-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-left: 20px;
    gap: 20px;
  }
}
