/* ================= GLOBAL ================= */
.event-detail-page {
  background-color: var(--bg-white);
  padding: 40px 0;
}

.breadcrumb {
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ================= TWO-COLUMN LAYOUT ================= */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media(min-width: 900px) {
  .event-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
  }
}

/* ================= LEFT COLUMN ================= */
.event-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media(min-width: 900px) {
  .event-left {
    /* Sticky behavior on desktop so the image/button stay in view */
    position: sticky;
    top: 100px;
  }
}

.event-image-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1a2942;
  /* Use a fixed max-height or smaller aspect-ratio on mobile */
  aspect-ratio: 16 / 9;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media(min-width: 900px) {
  .event-image-container {
      aspect-ratio: 1 / 1;
      max-height: none;
  }
}

.event-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Adding some padding if it's meant to look like a poster inside a frame */
}

.btn-get-ticket {
  width: 100%;
  background-color: var(--primary);
  color: white;
  padding: 16px;
  border-radius: 0; /* flat for mobile bottom */
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 -4px 12px rgba(250, 100, 50, 0.2);
  
  /* Fixed to bottom on mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

@media(min-width: 900px) {
  .btn-get-ticket {
    position: static;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(250, 100, 50, 0.3);
  }
}

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

@media(min-width: 900px) {
  .btn-get-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(250, 100, 50, 0.4);
  }
}

/* ================= RIGHT COLUMN (INFO) ================= */
.event-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.event-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--text-dark);
}

.event-meta-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.event-meta-icon {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-top: 2px;
}

.event-meta-text {
  font-size: 1.05rem;
  color: var(--text-dark);
}

/* ================= SECTIONS ================= */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.about-content {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 16px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.directions-map {
  width: 100%;
  height: 350px;
  background-color: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  /* Use object-fit if it's an image, or width/height 100% if iframe */
}

/* ================= SHARE LINK ================= */
.share-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background-color: white;
}

.share-box h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.share-input-group {
  display: flex;
  gap: 8px;
}

.share-input-group input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background-color: #f9fafb;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.share-input-group button {
  padding: 10px 20px;
  border: 1px solid var(--primary);
  background-color: white;
  color: var(--primary);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.share-input-group button:hover {
  background-color: var(--primary);
  color: white;
}

.share-input-group button.copied {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}


/* ================= RAW MODAL (Replacing Tailwind) ================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* We still use the 'hidden' / 'flex' manual toggle classes from existing JS script
   instead of purely relying on .active, to avoid touching JS logic. */
.modal-overlay.hidden {
  display: none !important;
}

.modal-overlay.flex {
  display: flex !important;
}

.modal-content {
  background-color: white;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  line-height: 1;
  color: var(--text-light);
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-right: 30px; /* space for close button */
}

.ticket-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
}

.ticket-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.ticket-qty-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.ticket-qty-controls button {
  width: 32px;
  height: 32px;
  background-color: #f3f4f6;
  border-radius: 6px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.ticket-qty-controls button:hover:not(:disabled) {
  background-color: #e5e7eb;
}

.ticket-qty-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ticket-qty-controls span.qty {
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.ticket-details {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.ticket-details summary {
  cursor: pointer;
  font-weight: 500;
}

.ticket-details p {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

.modal-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-total {
  font-size: 1.5rem;
  font-weight: 700;
}

.btn-checkout {
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
}

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

/* Warning modal specific */
.warning-modal-content {
  text-align: center;
  max-width: 350px;
  padding: 32px 24px;
}
