/* Página de ingressos */

.ingressos-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--white);
  padding: 0 0 calc(24px + var(--safe-bottom));
}

.ingressos-page__loading {
  padding: 80px 16px;
  text-align: center;
  color: var(--text-light);
}

.ingressos-page__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.ingressos-page__breadcrumb a:hover {
  color: var(--mm-green-dark);
}

.ingressos-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: start;
  padding: 8px 0 40px;
  width: 100%;
  max-width: 100%;
}

/* Galeria */
.product-gallery {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.product-gallery__main {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 700 / 490;
  border-radius: 16px;
  overflow: hidden;
  background: var(--mm-cream);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--white);
  color: var(--mm-green-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-gallery__nav--prev {
  left: 10px;
}

.product-gallery__nav--next {
  right: 10px;
}

.product-gallery__counter {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.product-gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--mm-cream);
}

.product-gallery__thumb.is-active {
  border-color: var(--mm-green-dark);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card de compra */
.ingressos-page__buy {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ingressos-buy-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(21, 47, 76, 0.08);
  border: 1px solid rgba(28, 59, 48, 0.08);
}

.ingressos-buy-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--mm-green-dark);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.ingressos-buy-card__subtitle {
  margin-top: 6px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.ingressos-buy-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.ingressos-buy-card__badges li {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mm-cream);
  color: var(--mm-green-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.ingressos-buy-card__desc {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.ingressos-options {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(28, 59, 48, 0.1);
}

.ingressos-options h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mm-green-dark);
  margin-bottom: 12px;
}

/* Linha de ingresso */
.ticket-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(28, 59, 48, 0.08);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ticket-option:last-child {
  border-bottom: none;
}

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

.ticket-option__info h3 {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mm-navy);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ticket-option__subtitle {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.ticket-option__details {
  margin-top: 6px;
  font-size: 0.8rem;
}

.ticket-option__details summary {
  cursor: pointer;
  color: var(--mm-blue);
  font-weight: 600;
}

.ticket-option__details p {
  margin-top: 4px;
  color: var(--text-light);
  line-height: 1.4;
}

.ticket-option__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-option__price {
  min-width: 0;
  flex: 1;
}

.ticket-option__promo {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mm-green);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.ticket-option__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.ticket-option__price-label {
  font-size: 0.78rem;
  color: var(--text-light);
}

.ticket-option__price strong {
  color: var(--mm-green-dark);
  font-size: 1.05rem;
}

.ticket-option__original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 0.82rem;
}

.ticket-option__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ticket-option__qty button {
  width: 36px;
  height: 36px;
  border: 2px solid var(--mm-green-dark);
  border-radius: 50%;
  background: var(--white);
  color: var(--mm-green-dark);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ticket-option__qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ticket-option__qty span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--mm-navy);
}

.ingressos-buy-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--mm-green-dark);
}

.ingressos-buy-card__total strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--mm-green-dark);
}

.ingressos-buy-card__cta {
  width: 100%;
  margin-top: 12px;
}

.ingressos-buy-card__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ingressos-buy-card__trust {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ingressos-buy-card__trust li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--mm-cream);
  font-size: 0.85rem;
}

.ingressos-buy-card__trust strong {
  display: block;
  color: var(--mm-green-dark);
  margin-bottom: 2px;
}

.ingressos-buy-card__trust span {
  color: var(--text-light);
}

/* Detalhes */
.ingressos-page__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 48px;
  width: 100%;
  max-width: 100%;
}

.ingressos-detail-block {
  padding: 20px;
  border-radius: 16px;
  background: var(--mm-cream);
}

.ingressos-detail-block--full {
  grid-column: 1 / -1;
}

.ingressos-detail-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--mm-green-dark);
  margin-bottom: 10px;
}

.ingressos-detail-block ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
  font-size: 0.9rem;
}

.ingressos-detail-block p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Barra fixa mobile */
.ingressos-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1003;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: var(--white);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(28, 59, 48, 0.08);
}

.ingressos-mobile-bar > div:first-child {
  min-width: 0;
  flex: 1;
}

.ingressos-mobile-bar span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
}

.ingressos-mobile-bar strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--mm-green-dark);
  line-height: 1.1;
}

.ingressos-mobile-bar .btn-comprar {
  width: auto;
  min-width: 130px;
  margin-top: 0;
  padding: 12px 22px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* Tablet */
@media (max-width: 960px) {
  .ingressos-page__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .ingressos-page {
    padding-bottom: calc(88px + var(--safe-bottom));
  }

  .ingressos-page__layout {
    gap: 16px;
    padding-bottom: 24px;
  }

  .ingressos-buy-card {
    padding: 16px;
    border-radius: 16px;
    box-shadow: none;
    border: none;
    background: var(--mm-cream);
  }

  .ingressos-buy-card__desc,
  .ingressos-buy-card__trust,
  .ingressos-buy-card__cta,
  .ingressos-buy-card__total {
    display: none;
  }

  .ingressos-buy-card__badges {
    gap: 4px;
  }

  .ingressos-buy-card__badges li {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .ingressos-options {
    margin-top: 16px;
    padding-top: 16px;
    padding-bottom: 8px;
  }

  .ingressos-options h2 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  /* Galeria — fotos reais do parque */
  .product-gallery__main {
    aspect-ratio: auto;
    height: auto;
    background: transparent;
    border-radius: 12px;
  }

  .product-gallery__main img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }

  .product-gallery__nav {
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
  }

  .product-gallery__nav--prev {
    left: 6px;
  }

  .product-gallery__nav--next {
    right: 6px;
  }

  .product-gallery__counter {
    font-size: 0.78rem;
  }

  .product-gallery__thumbs {
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 2px;
  }

  .product-gallery__thumb {
    width: 72px;
    height: 54px;
    border-radius: 8px;
  }

  /* Cards de ingresso */
  .ticket-option {
    background: var(--white);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border-bottom: none;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(21, 47, 76, 0.06);
  }

  .ticket-option__info h3 {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .ticket-option__footer {
    padding-top: 4px;
    border-top: 1px solid rgba(28, 59, 48, 0.06);
  }

  .ingressos-page__details {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 32px;
  }

  .ingressos-detail-block {
    padding: 16px;
  }

  .ingressos-mobile-bar {
    display: flex;
  }

  .ingressos-mobile-bar--empty {
    justify-content: space-between;
    align-items: center;
  }

  .ingressos-mobile-bar--empty span {
    font-size: 0.78rem;
    color: var(--text-light);
    flex: 1;
    padding-right: 12px;
    line-height: 1.3;
  }

  .ingressos-mobile-bar--empty .btn-comprar:disabled {
    opacity: 0.45;
  }

  body:has(.ingressos-mobile-bar) .cookie-banner {
    display: none;
  }

  body:has(.ingressos-mobile-bar) .site-footer {
    padding-bottom: calc(72px + var(--safe-bottom));
  }
}

/* Modal de checkout */
body.checkout-modal-open {
  overflow: hidden;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(21, 47, 76, 0.55);
  backdrop-filter: blur(2px);
}

.checkout-modal__dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.checkout-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--mm-cream);
  color: var(--mm-navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.checkout-modal__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--mm-green-dark);
  letter-spacing: 0.5px;
  padding-right: 32px;
}

.checkout-modal__subtitle {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.45;
}

.checkout-modal__calendar-wrap {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(28, 59, 48, 0.12);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(21, 47, 76, 0.08);
}

.checkout-modal__date-preview {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  text-transform: capitalize;
}

.checkout-modal__date-preview.is-set {
  color: var(--mm-green-dark);
  font-weight: 600;
}

/* Calendário estilo Airbnb */
.visit-calendar__nav {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.visit-calendar__nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(28, 59, 48, 0.12);
  border-radius: 50%;
  background: var(--white);
  color: var(--mm-navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.visit-calendar__nav-btn:hover:not(:disabled) {
  background: #f7f7f7;
  border-color: rgba(28, 59, 48, 0.25);
}

.visit-calendar__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.visit-calendar__months-label {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mm-navy);
  text-align: center;
}

.visit-calendar__panels {
  display: grid;
  gap: 20px;
}

.visit-calendar__panels--2 {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.visit-calendar__panel-title {
  display: none;
}

.visit-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}

.visit-calendar__weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

.visit-calendar__day {
  position: relative;
  aspect-ratio: 1;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.visit-calendar__day span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mm-navy);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.visit-calendar__day:not(.is-disabled):not(.is-selected):hover span {
  background: #f2f2f2;
}

.visit-calendar__day.is-today:not(.is-selected) span {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--mm-navy);
}

.visit-calendar__day.is-selected span {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  transform: scale(1.02);
}

.visit-calendar__day.is-disabled {
  cursor: not-allowed;
}

.visit-calendar__day.is-disabled span {
  color: #c4c4c4;
  text-decoration: line-through;
}

.visit-calendar__day--empty {
  pointer-events: none;
}

.checkout-modal__summary {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: var(--mm-cream);
}

.checkout-modal__summary h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--mm-green-dark);
  margin-bottom: 12px;
}

.checkout-modal__summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checkout-modal__summary li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.checkout-modal__summary li span {
  flex: 1;
  color: var(--mm-navy);
}

.checkout-modal__summary li strong {
  flex-shrink: 0;
  color: var(--mm-green-dark);
}

.checkout-modal__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid rgba(28, 59, 48, 0.12);
  font-size: 0.9rem;
}

.checkout-modal__total strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--mm-green-dark);
}

.checkout-modal__submit {
  width: 100%;
  margin-top: 20px;
}

.checkout-modal__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.checkout-modal__success {
  text-align: center;
  padding: 12px 0 4px;
}

.checkout-modal__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(107, 8, 10, 0.12);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  line-height: 64px;
}

.checkout-modal__success h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--mm-green-dark);
}

.checkout-modal__success p {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.checkout-modal__success-total {
  margin-top: 16px;
  font-size: 0.95rem;
}

.checkout-modal__success-total strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--mm-green-dark);
}

@media (max-width: 767px) {
  .checkout-modal {
    align-items: flex-end;
    padding: 0;
  }

  .checkout-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    padding: 24px 16px calc(20px + var(--safe-bottom));
  }

  .checkout-modal__calendar-wrap {
    padding: 12px;
  }

  .visit-calendar__months-label {
    font-size: 0.9rem;
  }

  .visit-calendar__day span {
    font-size: 0.82rem;
  }

  body.checkout-modal-open .ingressos-mobile-bar {
    display: none;
  }
}
