/* Estilos exclusivos da página de atrações. */

/* =========================================
   PÁGINA DE ATRAÇÕES
========================================== */
body.odypark-atracoes-page {
  --attractions-orange: #fd7e14;
  --attractions-footer-transition-height: clamp(280px, 26.74vw, 385px);
  overflow-x: hidden;
}

.hero-wrap--atracoes {
  --attractions-water: #a9ddf7;
  position: relative;
  z-index: 4;
  isolation: isolate;
  overflow: clip;
  background-color: var(--attractions-water, #a9ddf7);
  background-image: url('../images/atracoes/nova-odytower-2.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;
}

.attractions-page {
  --attractions-orange: #fd7e14;
  --attractions-water: #a9ddf7;
  position: relative;
  z-index: 4;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--attractions-water);
  background-image: url('../images/atracoes/background-water-caustics-v2.png?v=3');
  background-repeat: repeat;
  background-position: top center;
  background-size: 900px 900px;
  color: #111;
  font-family: var(--font-heading);
}

.attractions-page button {
  font: inherit;
}

/* =========================================
   HERO
========================================== */
.attractions-heading {
  position: relative;
  display: grid;
  min-height: clamp(310px, 36vw, 520px);
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.attractions-heading__title-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(55vw, 796px);
  min-width: 310px;
  place-items: center;
}

.attractions-heading__title-blob {
  display: block;
  width: 100%;
  height: auto;
  grid-area: 1 / 1;
}

.attractions-heading h1 {
  --ody-hero-title-color: #ed4b00;
  --ody-hero-title-fill: linear-gradient(180deg, #ffa60c 0%, #ed4b00 100%);
  --ody-hero-title-outline: #fff;
  --ody-hero-title-outline-width: clamp(2px, 0.3vw, 4px);
  z-index: 1;
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  grid-area: 1 / 1;
  text-transform: uppercase;
}

.attractions-heading__wave {
  position: absolute;
  top: calc(100% - max(18px, 2.04vw));
  left: 50%;
  z-index: 0;
  width: max(100%, 900px);
  aspect-ratio: 1440 / 1525.23;
  background-color: var(--attractions-water);
  background-image: url('../images/atracoes/background-water-caustics-v2.png?v=3');
  background-repeat: repeat;
  background-position: top center;
  background-size: 900px 900px;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-mask: url('../images/atracoes/heading-background.svg') center top / 100% 100% no-repeat;
  mask: url('../images/atracoes/heading-background.svg') center top / 100% 100% no-repeat;
}

/* =========================================
   FILTROS
========================================== */
.filter-area {
  position: relative;
  z-index: 5;
  padding: 24px 0 20px;
  background: transparent;
}

.filter-bar {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 56px;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  margin-inline: auto;
  padding: 8px clamp(16px, 1.8vw, 26px);
  background: #fff;
  border-radius: 12px;
}

.filter-bar__label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1rem;
}

.filter-bar__buttons {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: clamp(5px, 1.1vw, 16px);
}

.filter-button {
  flex: 0 0 auto;
  padding: 7px 12px 6px;
  color: #111;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1;
}

.filter-button:hover,
.filter-button:focus-visible {
  color: #df6600;
  outline: none;
}

.filter-button:focus-visible {
  box-shadow: 0 0 0 3px rgb(253 126 20 / 30%);
}

.filter-button.is-active {
  color: #fff;
  background: var(--attractions-orange);
}

/* =========================================
   AVISOS DAS ATRAÇÕES
========================================== */
.attractions-notice {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 2;
  padding: 0;
  line-height: normal;
  pointer-events: auto;
  transform: translateY(-50%);
}

.attractions-notice__panel {
  display: grid;
  width: min(100%, 900px);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-inline: auto;
  padding: 16px 18px;
  border: 3px solid #fff;
  border-radius: 22px;
  background: rgb(0 62 109 / 88%);
  box-shadow: 0 16px 32px rgb(0 63 115 / 20%);
  color: #fff;
  backdrop-filter: blur(5px);
}

.attractions-notice__icon {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  animation: attractions-notice-blink 1.15s ease-in-out infinite;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--attractions-orange);
  box-shadow: 0 0 0 3px rgb(253 126 20 / 35%);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

@keyframes attractions-notice-blink {
  0%,
  100% {
    background-color: var(--attractions-orange);
    box-shadow: 0 0 0 3px rgb(253 126 20 / 35%);
    filter: brightness(1);
  }

  50% {
    background-color: #ff9d2e;
    box-shadow: 0 0 0 6px rgb(253 126 20 / 22%), 0 0 18px rgb(253 126 20 / 75%);
    filter: brightness(1.18);
  }
}

.attractions-notice__content {
  text-align: center;
}

.attractions-notice__content h2 {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.attractions-notice__content p {
  margin: 0;
  color: rgb(255 255 255 / 94%);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.attractions-notice__new-line {
  display: block;
}

.attractions-notice__warning {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid rgb(255 255 255 / 28%);
  color: #fff !important;
  font-size: 16px !important;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* =========================================
   CARDS
========================================== */
.attractions {
  position: relative;
  padding: 54px 0 40px;
  background: transparent;
}

.attractions__container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.attractions-empty {
  width: min(100%, 680px);
  margin: clamp(48px, 8vw, 100px) auto;
  padding: 24px 28px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: rgb(255 255 255 / 88%);
  color: #003e6d;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 800;
  text-align: center;
}

.attraction-column[hidden] {
  display: none !important;
}

.attraction-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 651 / 345;
  background: #d9d9d9;
  border: 5px solid #fff;
  border-radius: clamp(24px, 3.2vw, 48px);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.attraction-card:hover,
.attraction-card:focus-within {
  box-shadow: 0 14px 28px rgb(0 63 115 / 22%);
  transform: translateY(-4px);
}

.attraction-card__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.attraction-card__link:focus-visible {
  outline: 4px solid var(--attractions-orange);
  outline-offset: -7px;
}

.attraction-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.attraction-card__wave {
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: -1px;
  z-index: 1;
  display: block;
  width: calc(100% + 2px);
  height: 31%;
  object-fit: fill;
  pointer-events: none;
}

.attraction-card__wave--top {
  z-index: 2;
  bottom: -5px;
}

.attraction-card__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  height: 27%;
  align-items: center;
  padding: 15px clamp(16px, 2.4vw, 34px) 8px;
}

.attraction-card__caption h3 {
  margin: 0;
  color: var(--attractions-orange);
  font-family: var(--font-heading);
  font-size: clamp(1.08rem, 2.05vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #fff;
  text-transform: uppercase;
}

.attractions-turtle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.attractions-turtle[hidden] {
  display: none !important;
}

.attractions-turtle img {
  display: block;
  width: min(68%, 340px);
  height: auto;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  body.odypark-atracoes-page {
    --attractions-footer-transition-height: clamp(430px, 112vw, 470px);
  }

  .attractions-notice__panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    text-align: center;
  }

  .attractions-notice__icon {
    width: 36px;
    margin-inline: auto;
    font-size: 19px;
  }

  .attractions-notice__content p {
    font-size: 14px;
    line-height: 1.4;
  }

  .attractions-notice__warning {
    font-size: 13px !important;
  }

  .attractions-turtle {
    display: none;
  }
}

/* =========================================
   TRANSIÇÃO PARA O FOOTER
========================================== */
.attractions-footer-transition {
  position: relative;
  z-index: 3;
  height: var(--attractions-footer-transition-height);
  overflow: hidden;
  margin-bottom: calc(-1 * var(--attractions-footer-transition-height));
  background: transparent;
  line-height: 0;
  pointer-events: none;
}

.attractions-footer-transition::before {
  position: absolute;
  inset: 0 0 46%;
  z-index: 0;
  background-image: url('../images/atracoes/background-water-caustics-v2.png?v=3');
  background-repeat: repeat;
  background-position: top center;
  background-size: 900px 900px;
  content: '';
}

.attractions-footer-transition img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

body.odypark-atracoes-page .rodape-background {
  padding-top: var(--attractions-footer-transition-height);
}
