/* ===== tickets.css ===== */

/* Page wrapper */
.tickets-page {
  min-height: 100vh;
  background-color: #F2F3F4;
  display: flex;
  flex-direction: column;
}

/* ===== Progress Bar ===== */
.tickets-progress-bar {
  background-color: #132B2B;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .tickets-progress-bar {
    justify-content: flex-start;
    padding: 1.25rem 3rem;
    gap: 1.5rem;
  }
}

.tickets-progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: lowercase;
  transition: color 0.2s ease;
}
.tickets-progress-step.is-active {
  color: #FFB81D;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
@media (min-width: 900px) {
  .tickets-progress-step {
    font-size: 0.875rem;
    gap: 0.75rem;
  }
}

.tickets-step-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tickets-step-icon svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.6);
  transition: fill 0.2s ease;
}
.tickets-step-icon.is-active svg {
  fill: #FFB81D;
}
@media (min-width: 900px) {
  .tickets-step-icon {
    width: 18px;
    height: 18px;
  }
}

.tickets-step-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  margin: 0 0.25rem;
}

.tickets-step-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: lowercase;
  text-decoration: none;
  transition: color 0.2s ease;
}
.tickets-step-link:hover {
  color: #FFB81D;
}
.tickets-step-link:hover svg {
  fill: #FFB81D;
}
.tickets-step-link svg {
  fill: rgba(255, 255, 255, 0.6);
  transition: fill 0.2s ease;
}
@media (min-width: 900px) {
  .tickets-step-link {
    font-size: 0.875rem;
    gap: 0.75rem;
  }
}

/* ===== Main wrap ===== */
.tickets-main-wrap {
  flex: 1;
  width: 100%;
  background-color: #F2F3F4;
}

.tickets-main {
  padding: 2rem 1.5rem 3rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ===== Title row ===== */
.tickets-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tickets-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.tickets-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.tickets-info-icon svg {
  width: 100%;
  height: 100%;
  fill: #384348;
}

/* ===== Section intro ===== */
.tickets-section-intro {
  font-size: 0.9375rem;
  color: #384348;
  line-height: 1.6;
  margin: 0 0 1rem;
}

/* ===== Details header (collapsible) ===== */
.tickets-details-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #014339;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.tickets-details-header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tickets-details-chevron {
  width: 12px;
  height: 7px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  filter: brightness(0) saturate(100%) invert(18%) sepia(98%) saturate(500%) hue-rotate(115deg) brightness(0.95) contrast(90%);
}
.tickets-details-chevron.is-open {
  transform: rotate(180deg);
}

/* ===== Subsection title ===== */
.tickets-subsection-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

/* ===== Ticket items ===== */
.tickets-ticket-item {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #fff;
}
.tickets-ticket-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tickets-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tickets-ticket-label {
  font-size: 0.9375rem;
  color: #1a1a1a;
}

.tickets-ticket-price-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tickets-ticket-price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
}

.tickets-qty-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.tickets-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background-color: #FFB81D;
  color: #062726;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.tickets-qty-btn:hover {
  background-color: #e5a619;
}

.tickets-qty-value {
  min-width: 36px;
  height: 32px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  border: none;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .tickets-qty-value {
    min-width: 40px;
  }
}

.tickets-ticket-note {
  font-size: 0.8125rem;
  color: #465055;
  margin: 0 0 0.75rem;
  padding-left: 0;
}

/* ===== Date/Time section ===== */
.tickets-datetime-section {
  margin-top: 1.5rem;
}

.tickets-datetime-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.tickets-datetime-row h2 {
  margin: 0;
}

.tickets-datetime-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tickets-datetime-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 2px solid #014339;
  border-radius: 9999px;
  background: transparent;
  font-size: 0.8125rem;
  color: #014339;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.tickets-datetime-btn:hover {
  background: #014339;
  color: #fff;
}
.tickets-datetime-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.tickets-datetime-note {
  font-size: 0.8125rem;
  color: #465055;
  margin: 0;
  text-align: right;
}

.tickets-clear-event-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid #062726;
  border-radius: 9999px;
  background: #062726;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.tickets-clear-event-btn:hover {
  background: #014339;
  border-color: #014339;
}

.tickets-visit-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid #062726;
  border-radius: 9999px;
  background: transparent;
  color: #062726;
  font-size: 0.8125rem;
  font-weight: 600;
}
.tickets-visit-label svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.tickets-selection-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tickets-add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: 9999px;
  background-color: #062726;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.tickets-add-to-cart-btn:hover {
  background-color: #014339;
  color: #fff;
}
.tickets-add-to-cart-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ===== Date/Time modal ===== */
.tickets-date-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  box-sizing: border-box;
}
.tickets-date-modal-overlay.is-open {
  display: flex;
}

.tickets-date-modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
@media (min-width: 640px) {
  .tickets-date-modal-box {
    max-width: 720px;
    flex-direction: column;
  }
}

.tickets-date-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: auto;
}
@media (min-width: 640px) {
  .tickets-date-modal-body {
    flex-direction: row;
  }
}

.tickets-date-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #FFB81D;
  color: #062726;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s;
  font-family: inherit;
}
.tickets-date-modal-close:hover {
  background: #e5a619;
}

.tickets-date-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 1.25rem 1.5rem 0;
  padding-right: 3rem;
}

/* ===== Calendar ===== */
.tickets-calendar-col {
  padding: 1rem 1.5rem 1.5rem;
  flex: 0 0 auto;
}
@media (min-width: 640px) {
  .tickets-calendar-col {
    padding: 1.5rem;
    border-right: 1px solid #e8e8e8;
    min-width: 340px;
  }
}

.tickets-calendar-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #145045;
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}

.tickets-calendar-month-text {
  font-size: 0.9375rem;
  font-weight: 600;
}

.tickets-calendar-nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0;
  border-radius: 4px;
  transition: background 0.2s;
  font-family: inherit;
}
.tickets-calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.tickets-calendar-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tickets-calendar-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  background: #145045;
  padding: 6px 0;
  border-radius: 0 0 6px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.tickets-calendar-day-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
}

.tickets-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.tickets-calendar-date-cell {
  aspect-ratio: 1;
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #f5f5f5;
  color: #555;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.tickets-calendar-date-cell:hover:not(:disabled) {
  background: #e8e8e8;
  color: #1a1a1a;
}
.tickets-calendar-date-cell:disabled {
  color: #bbb;
  cursor: not-allowed;
  background: #fafafa;
}
.tickets-calendar-date-cell.is-selected {
  border-color: #1a1a1a;
  background: #fff;
  color: #1a1a1a;
}

/* ===== Time col ===== */
.tickets-time-col {
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  min-height: 200px;
}
@media (min-width: 640px) {
  .tickets-time-col {
    padding: 1.5rem;
  }
}

.tickets-time-selected-date {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1rem;
}
.tickets-time-selected-date.is-placeholder {
  color: #888;
  font-weight: 400;
}

.tickets-time-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.tickets-time-slot-btn {
  padding: 0.6rem 0.75rem;
  border: 2px solid #062726;
  border-radius: 6px;
  background: #fff;
  color: #062726;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.tickets-time-slot-btn:hover {
  background: #062726;
  color: #fff;
}
.tickets-time-slot-btn.is-selected {
  background: #062726;
  color: #fff;
}
