.ticket-selection {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ticket-selection__interactive {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ticket-selection__hero {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.ticket-selection__carousel {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.ticket-selection__carousel-viewport {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #edf2f8 0%, #f8f8f7 100%);
  border: 1px solid rgba(74, 111, 165, 0.16);
  box-shadow: var(--shadow-md);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ticket-selection__carousel-track {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-items: stretch;
  transition: transform 0.35s ease;
}

.ticket-selection__slide {
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.ticket-selection__slide-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ticket-selection__slide-empty-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 220px;
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--blue-light) 100%);
  box-sizing: border-box;
}

.ticket-selection__slide-image {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  object-fit: cover;
}

.ticket-selection__slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.1) 0%, rgba(26, 26, 26, 0) 35%),
    linear-gradient(180deg, rgba(26, 26, 26, 0) 45%, rgba(26, 26, 26, 0.68) 100%);
}

.ticket-selection__slide-top,
.ticket-selection__slide-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.ticket-selection__slide-top {
  top: 18px;
}

.ticket-selection__slide-bottom {
  bottom: 18px;
  align-items: flex-end;
}

.ticket-selection__slide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.ticket-selection__slide-badge {
  background: rgba(255, 255, 255, 0.92);
  color: #bf5f25;
}

.ticket-selection__slide-duration {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
}

.ticket-selection__slide-title,
.ticket-selection__slide-subtitle {
  display: block;
}

.ticket-selection__slide-title {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.ticket-selection__slide-subtitle {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.ticket-selection__slide-skeleton-card {
  background: linear-gradient(180deg, #edf2f8 0%, #f8f8f7 100%);
}

.ticket-selection__skeleton,
.ticket-selection__tab-skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #e6ecf4 0%, #f7fafc 50%, #e6ecf4 100%);
  background-size: 240% 100%;
  animation: ticket-selection-shimmer 1.6s ease-in-out infinite;
}

.ticket-selection__skeleton::after,
.ticket-selection__tab-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: ticket-selection-shimmer-sweep 1.6s ease-in-out infinite;
}

.ticket-selection__skeleton--hero {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.ticket-selection__skeleton--pill {
  width: 92px;
  height: 30px;
}

.ticket-selection__skeleton--pill-wide {
  width: 108px;
}

.ticket-selection__skeleton--title {
  width: min(48%, 220px);
  height: 30px;
  border-radius: 14px;
}

.ticket-selection__skeleton--line {
  width: min(28%, 132px);
  height: 18px;
  border-radius: 10px;
}

.ticket-selection__tab-skeleton {
  width: 148px;
  min-width: 148px;
  height: 44px;
  flex: 0 0 auto;
}

.ticket-selection__tab-skeleton--wide {
  width: 164px;
  min-width: 164px;
}

.ticket-selection__slide-empty-card p {
  margin: 8px 0 0;
  color: var(--gray-500);
  max-width: 260px;
}

.ticket-selection__slide-empty-label {
  display: block;
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
}

.ticket-selection__carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transform: translateY(-50%);
}

.ticket-selection__carousel-control span {
  font-size: 26px;
  line-height: 1;
}

.ticket-selection__carousel-control:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.ticket-selection__carousel-control--prev {
  left: 14px;
}

.ticket-selection__carousel-control--next {
  right: 14px;
}

.ticket-selection__loading,
.ticket-selection__error {
  padding: 10px 12px;
  border-radius: 14px;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.ticket-selection__loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #edf4fb;
  color: #315886;
}

.ticket-selection__error {
  background: #fef2f2;
  color: #991b1b;
}

.ticket-selection__loading-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid rgba(49, 88, 134, 0.2);
  border-top-color: #315886;
  border-radius: 999px;
  animation: ticket-selection-spin 0.8s linear infinite;
}

.ticket-selection__loading-text {
  font-weight: 600;
  line-height: 1.35;
}

.ticket-selection__types {
  min-width: 0;
  max-width: 100%;
}

.ticket-selection__tabs,
.ticket-selection__modal-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ticket-selection__tabs::-webkit-scrollbar,
.ticket-selection__modal-tabs::-webkit-scrollbar {
  display: none;
}

.ticket-selection__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--gray-600);
  line-height: 1;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.ticket-selection__tabs {
  width: 100%;
  justify-content: center;
  margin: 0 auto;
}

.ticket-selection__tab.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.ticket-selection__control-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: var(--white);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.ticket-selection__control-label {
  min-width: 0;
  color: var(--black);
  font-weight: 700;
  line-height: 1.25;
}

.ticket-selection__control-value {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.ticket-selection__date input {
  width: 160px;
  max-width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  outline: 0;
  text-align: right;
}

.ticket-selection__date input::placeholder {
  color: var(--gray-500);
}

.ticket-selection__date.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
}

.ticket-selection__date input[aria-invalid="true"]::placeholder {
  color: #dc3545;
}

.ticket-selection__date-error {
  grid-column: 1 / -1;
  color: #dc3545;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: -4px;
}

.ticket-selection__date-error[hidden] {
  display: none;
}

.ticket-selection__info-button {
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.ticket-selection__info-button:hover:not(:disabled),
.ticket-selection__info-button:focus-visible {
  border-color: rgba(74, 111, 165, 0.42);
}

.ticket-selection__info-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.ticket-selection__info-text {
  font-size: 16px;
}

.ticket-selection__info-arrow {
  color: var(--gray-400);
  font-size: 24px;
  line-height: 1;
}

.ticket-selection__categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.ticket-selection__category {
  min-width: 0;
}

.ticket-selection__stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ticket-selection__stepper-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ticket-selection__stepper-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ticket-selection__stepper-btn.is-soft-disabled {
  cursor: pointer;
  opacity: 0.45;
}

.ticket-selection__stepper-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.ticket-selection__footer {
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  min-width: 0;
}

.ticket-selection__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  min-width: 0;
  position: relative;
}

.ticket-selection__total-label,
.ticket-selection__total-value {
  min-width: 0;
}

.ticket-selection__total-value {
  text-align: right;
}

.ticket-selection__total-value.is-loading {
  color: var(--gray-500);
}

.ticket-selection__info-button::after,
.ticket-selection__date::after,
.ticket-selection__category::after,
.ticket-selection__total::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(230, 236, 244, 0.92) 0%, rgba(247, 250, 252, 0.96) 50%, rgba(230, 236, 244, 0.92) 100%);
  background-size: 240% 100%;
  animation: ticket-selection-shimmer 1.6s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.ticket-selection__total::after {
  border-radius: 14px;
}

.ticket-selection--loading-tours .ticket-selection__info-button::after,
.ticket-selection--loading-tours .ticket-selection__date::after,
.ticket-selection--loading-tours .ticket-selection__category::after,
.ticket-selection--loading-tours .ticket-selection__total::after,
.ticket-selection--loading-prices .ticket-selection__category::after,
.ticket-selection--loading-prices .ticket-selection__total::after {
  opacity: 1;
}

.ticket-selection--loading-tours .ticket-selection__info-button > *,
.ticket-selection--loading-tours .ticket-selection__date > *,
.ticket-selection--loading-tours .ticket-selection__category > *,
.ticket-selection--loading-tours .ticket-selection__total > *,
.ticket-selection--loading-prices .ticket-selection__category > *,
.ticket-selection--loading-prices .ticket-selection__total > * {
  opacity: 0.3;
}

.ticket-selection--loading-tours .ticket-selection__info-button,
.ticket-selection--loading-tours .ticket-selection__date,
.ticket-selection--loading-tours .ticket-selection__category,
.ticket-selection--loading-prices .ticket-selection__category {
  pointer-events: none;
}

.ticket-selection--loading-tours .ticket-selection__date input,
.ticket-selection--loading-tours .ticket-selection__info-button,
.ticket-selection--loading-prices .ticket-selection__stepper-btn {
  cursor: not-allowed;
}

.ticket-selection__modal[hidden] {
  display: none;
}

.ticket-selection__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ticket-selection__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.56);
}

.ticket-selection__modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.ticket-selection__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--gray-100);
}

.ticket-selection__modal-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  color: var(--black);
}

.ticket-selection__modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.ticket-selection__modal-tabs {
  min-height: 64px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.ticket-selection__modal-tabs .ticket-selection__tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 16px;
  line-height: 1;
}

.ticket-selection__modal-body {
  overflow-y: auto;
  padding: 20px 24px 28px;
}

.ticket-selection__modal-copy {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
}

.ticket-selection__modal-copy p {
  margin: 0;
}

.ticket-selection__modal-section {
  margin-top: 26px;
}

.ticket-selection__modal-section h4 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--black);
}

.ticket-selection__modal-access-list,
.ticket-selection__modal-notes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticket-selection__modal-access-list {
  display: grid;
  gap: 12px;
}

.ticket-selection__modal-access-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  background: var(--gray-50);
}

.ticket-selection__modal-access-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: #9b6316;
  font-weight: 700;
  margin-top: 2px;
}

.ticket-selection__modal-access-copy {
  display: grid;
  gap: 6px;
}

.ticket-selection__modal-access-label {
  font-weight: 600;
  color: var(--black);
}

.ticket-selection__modal-access-note {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e9f1fb;
  color: #315886;
  font-size: 13px;
  line-height: 1.35;
}

.ticket-selection__modal-notes {
  display: grid;
  gap: 10px;
}

.ticket-selection__modal-note-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-600);
  line-height: 1.6;
}

.ticket-selection__modal-note-bullet {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 8px;
}

.ticket-selection__modal-empty {
  color: var(--gray-500);
}

body.ticket-selection-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .ticket-selection {
    gap: 14px;
  }

  .ticket-selection__slide-title,
  .ticket-selection__modal-title {
    font-size: 22px;
  }

  .ticket-selection__control-row {
    min-height: 60px;
    gap: 10px;
    padding: 12px 14px;
  }

  .ticket-selection__category {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .ticket-selection__category .ticket-selection__control-value {
    justify-content: flex-start;
  }

  .ticket-selection__date input {
    width: 138px;
  }

  .ticket-selection__stepper {
    gap: 8px;
  }

  .ticket-selection__stepper-btn {
    width: 38px;
    height: 38px;
  }

  .ticket-selection__slide-top,
  .ticket-selection__slide-bottom {
    left: 14px;
    right: 14px;
  }

  .ticket-selection__carousel-control {
    width: 40px;
    height: 40px;
  }

  .ticket-selection__modal {
    align-items: flex-end;
    padding: 0;
  }

  .ticket-selection__modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .ticket-selection__modal-header,
  .ticket-selection__modal-tabs,
  .ticket-selection__modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 380px) {
  .ticket-selection__categories {
    gap: 10px;
  }

  .ticket-selection__info-button,
  .ticket-selection__date {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ticket-selection__info-button .ticket-selection__control-value,
  .ticket-selection__date .ticket-selection__control-value {
    justify-content: flex-start;
    width: 100%;
  }

  .ticket-selection__category {
    padding: 10px 12px;
    gap: 10px;
  }

  .ticket-selection__category-label {
    font-size: 14px;
  }

  .ticket-selection__stepper {
    gap: 6px;
  }

  .ticket-selection__stepper-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 20px;
  }

  .ticket-selection__stepper-value {
    min-width: 18px;
    font-size: 15px;
  }

  .ticket-selection__date input {
    width: 100%;
    text-align: left;
  }

  .ticket-selection__tab-skeleton {
    width: 136px;
    min-width: 136px;
  }

  .ticket-selection__tab-skeleton--wide {
    width: 152px;
    min-width: 152px;
  }
}

@keyframes ticket-selection-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ticket-selection-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@keyframes ticket-selection-shimmer-sweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}
