/* Localiza Morro 2.12.2 — visual e movimento da Tábua de Maré. */

.tide-hero {
  box-sizing: border-box !important;
  min-height: clamp(430px, 54vw, 560px) !important;
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 209, 139, .3), transparent 24%),
    linear-gradient(145deg, #052e3a 0%, #006a75 48%, #1bb6aa 100%) !important;
}

.tide-hero-copy {
  max-width: 780px;
}

.tide-hero-waves {
  position: absolute !important;
  z-index: 0 !important;
  bottom: -1px !important;
  height: clamp(126px, 15vw, 188px);
  overflow: hidden;
  opacity: .78;
  inset-inline: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.tide-hero-wave {
  position: absolute;
  inset: 0 auto 0 -6%;
  width: 112%;
  height: 100%;
  overflow: visible;
}

.tide-wave-layer {
  transform: translate3d(0, 0, 0);
  transform-box: fill-box;
  transform-origin: center bottom;
  will-change: transform;
}

.tide-wave-layer-1 {
  fill: rgba(30, 170, 165, .62);
  animation: mpTideHeroWave1 8s ease-in-out infinite alternate;
}

.tide-wave-layer-2 {
  fill: rgba(127, 211, 207, .72);
  animation: mpTideHeroWave2 7s 1.1s ease-in-out infinite alternate;
}

.tide-wave-layer-3 {
  fill: rgba(225, 244, 241, .9);
  animation: mpTideHeroWave3 6.4s .55s ease-in-out infinite alternate;
}

.tide-hero-bubbles span {
  border: 1px solid rgba(255, 255, 255, .28) !important;
  background: rgba(255, 255, 255, .09) !important;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .08);
  backdrop-filter: blur(4px);
  animation: mpTideBubble 5.5s ease-in-out infinite !important;
}

.tide-hero-bubbles span:nth-child(2) {
  animation-delay: -1.8s !important;
}

.tide-hero-bubbles span:nth-child(3) {
  animation-delay: -3.2s !important;
}

.tide-hero-bubbles span:nth-child(1) { width: 34px !important; height: 34px !important; }
.tide-hero-bubbles span:nth-child(2) { width: 18px !important; height: 18px !important; }
.tide-hero-bubbles span:nth-child(3) { width: 10px !important; height: 10px !important; }

.tide-seo-intro {
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr) !important;
  gap: clamp(28px, 5vw, 62px) !important;
  align-items: center;
}

.tide-seo-intro > div:first-child {
  padding: clamp(10px, 3vw, 32px);
}

.tide-today-card {
  min-height: 330px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-content: center;
  gap: 22px !important;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px) !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 202, 121, .2), transparent 28%),
    linear-gradient(145deg, #062e38, #006d73) !important;
  box-shadow: 0 28px 72px rgba(4, 45, 52, .2) !important;
  color: #fff;
}

.tide-today-card::before,
.tide-today-card::after {
  opacity: .5;
}

.tide-tip-body {
  min-width: 0;
}

.tide-tip-body strong,
.tide-today-card p,
.tide-tip-body em {
  color: #fff !important;
}

.tide-tip-body strong {
  font-size: clamp(26px, 3.5vw, 40px) !important;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.tide-today-card p,
.tide-tip-body em {
  color: rgba(255, 255, 255, .72) !important;
}

.tide-tip-kicker {
  color: #ffd18b !important;
  letter-spacing: .12em;
}

.tide-date-badge {
  width: 98px !important;
  min-width: 98px;
  height: 116px !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .2) !important;
  backdrop-filter: blur(10px);
}

.tide-today-card .primary-button {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
}

.tide-widget-section {
  isolation: isolate;
}

.tide-widget-section::before {
  content: "";
  position: absolute;
  inset: 42px -4vw 30px;
  z-index: -1;
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(214, 245, 241, .7), rgba(255, 248, 237, .65));
}

.tide-motion-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(7, 83, 88, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 12px 32px rgba(4, 52, 58, .07);
  backdrop-filter: blur(12px);
}

.tide-motion-toolbar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mp-muted);
  font-size: 13px;
  font-weight: 800;
}

.tide-key-high,
.tide-key-low {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tide-key-high {
  background: #ff765f;
  box-shadow: 0 0 0 5px rgba(255, 118, 95, .12);
}

.tide-key-low {
  margin-left: 9px;
  background: #10a77f;
  box-shadow: 0 0 0 5px rgba(16, 167, 127, .12);
}

.tide-motion-toggle {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0, 109, 115, .16);
  border-radius: 999px;
  background: rgba(0, 109, 115, .07);
  color: var(--mp-ocean);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.tide-motion-toggle:hover {
  background: var(--mp-ocean);
  color: #fff;
  transform: translateY(-1px);
}

.tide-widget-shell {
  border: 1px solid rgba(7, 83, 88, .12) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 28px 72px rgba(5, 48, 54, .11) !important;
  backdrop-filter: blur(12px);
}

.tide-manual-summary {
  position: relative;
}

.tide-tab-actions {
  padding: 5px !important;
  border: 1px solid rgba(7, 83, 88, .12);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .84) !important;
  box-shadow: 0 12px 32px rgba(5, 48, 54, .08);
}

.tide-tab-actions button {
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--mp-muted) !important;
}

.tide-tab-actions button.active {
  background: var(--mp-ink) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(7, 31, 38, .15);
}

.tide-manual-summary .tide-calendar {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.tide-day-card {
  position: relative;
  min-height: 290px !important;
  overflow: hidden;
  padding: 0 16px 18px !important;
  border: 1px solid rgba(7, 83, 88, .12) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 16px 42px rgba(5, 48, 54, .09) !important;
}

.tide-day-card.is-good {
  border-color: rgba(16, 167, 127, .35) !important;
  background: linear-gradient(165deg, #fff, #ecfaf5) !important;
}

.tide-day-card header {
  margin: 0 -16px 12px !important;
  padding: 17px 16px !important;
  border: 0 !important;
  border-radius: 23px 23px 0 0 !important;
  background: linear-gradient(135deg, #063f49, #007b7c) !important;
  color: #fff !important;
}

.tide-day-card header strong,
.tide-day-card header span {
  color: #fff !important;
}

.tide-good-label {
  top: 13px !important;
  right: 12px !important;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, .2);
  background: #ff8b32 !important;
  color: #fff !important;
}

.tide-event,
.tide-widget-shell .mymento-tide-widget-root .mm-high,
.tide-widget-shell .mymento-tide-widget-root .mm-low {
  --mp-wave-fill: rgba(0, 109, 115, .18);
  --mp-wave-fill-alt: rgba(32, 183, 167, .2);
  position: relative !important;
  min-height: 100px !important;
  overflow: hidden !important;
  padding: 48px 12px 12px !important;
  border: 1px solid rgba(7, 83, 88, .08) !important;
  border-radius: 16px !important;
  isolation: isolate;
}

.tide-event.is-high,
.tide-widget-shell .mymento-tide-widget-root .mm-high {
  --mp-wave-fill: rgba(255, 118, 95, .22);
  --mp-wave-fill-alt: rgba(255, 160, 105, .19);
  color: #d94e3d !important;
  background: linear-gradient(165deg, #fff8f5, #fff0ec) !important;
}

.tide-event.is-low,
.tide-widget-shell .mymento-tide-widget-root .mm-low {
  --mp-wave-fill: rgba(16, 167, 127, .23);
  --mp-wave-fill-alt: rgba(32, 183, 167, .18);
  color: #087a60 !important;
  background: linear-gradient(165deg, #f7fffc, #e8f8f2) !important;
}

.tide-event::before,
.tide-event::after,
.tide-widget-shell .mymento-tide-widget-root .mm-high::before,
.tide-widget-shell .mymento-tide-widget-root .mm-low::before {
  content: none !important;
  display: none !important;
  animation: none !important;
}

.tide-wave-visual {
  position: absolute;
  top: 8px;
  left: 9px;
  right: 9px;
  z-index: -1;
  height: 38px;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(255, 255, 255, .42);
  pointer-events: none;
}

.tide-wave-visual i {
  position: absolute;
  left: -100%;
  top: 17px;
  width: 300%;
  height: 30px;
  border-radius: 0;
  background: var(--mp-wave-fill);
  clip-path: polygon(0 45%, 4% 18%, 8% 45%, 12% 72%, 16% 45%, 20% 18%, 24% 45%, 28% 72%, 32% 45%, 36% 18%, 40% 45%, 44% 72%, 48% 45%, 52% 18%, 56% 45%, 60% 72%, 64% 45%, 68% 18%, 72% 45%, 76% 72%, 80% 45%, 84% 18%, 88% 45%, 92% 72%, 96% 45%, 100% 18%, 100% 100%, 0 100%);
  transform: translate3d(0, 0, 0);
  animation: mpTideWater 6s ease-in-out infinite alternate;
}

.tide-wave-visual i + i {
  top: 21px;
  background: var(--mp-wave-fill-alt);
  animation-duration: 7s;
  animation-direction: alternate-reverse;
}

.tide-motion-paused .tide-wave-visual i,
.tide-motion-paused .tide-wave-layer,
.tide-motion-paused .tide-hero-bubbles span {
  animation-play-state: paused !important;
}

.tide-guide-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.tide-guide-grid article {
  grid-column: span 4;
  min-height: 270px;
  padding: 28px !important;
  border: 1px solid rgba(7, 83, 88, .12) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 16px 42px rgba(5, 48, 54, .08) !important;
}

.tide-guide-grid article:nth-child(4),
.tide-guide-grid article:nth-child(5) {
  grid-column: span 6;
}

.tide-guide-grid h2 {
  font-size: clamp(23px, 2.5vw, 31px) !important;
  line-height: 1.08;
}

.tide-faq {
  max-width: 940px;
}

@keyframes mpTideWater {
  from { transform: translate3d(-4%, 0, 0); }
  to { transform: translate3d(4%, -2px, 0); }
}

@keyframes mpTideHeroWave1 {
  from { transform: translate3d(-2.6%, 3px, 0); }
  to { transform: translate3d(2.2%, -4px, 0); }
}

@keyframes mpTideHeroWave2 {
  from { transform: translate3d(2.4%, 2px, 0); }
  to { transform: translate3d(-2%, -3px, 0); }
}

@keyframes mpTideHeroWave3 {
  from { transform: translate3d(-1.8%, 1px, 0); }
  to { transform: translate3d(1.7%, -2px, 0); }
}

@keyframes mpTideBubble {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -14px, 0) scale(1.04); }
}

@media (max-width: 900px) {
  .tide-seo-intro {
    grid-template-columns: 1fr !important;
  }

  .tide-guide-grid article,
  .tide-guide-grid article:nth-child(4),
  .tide-guide-grid article:nth-child(5) {
    grid-column: span 6;
  }

  .tide-manual-summary .tide-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .tide-today-card {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 24px !important;
    border-radius: 26px !important;
  }

  .tide-date-badge {
    width: 82px !important;
    min-width: 82px;
    height: 92px !important;
  }

  .tide-motion-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tide-motion-toggle {
    width: 100%;
  }

  .tide-manual-summary .tide-calendar {
    grid-template-columns: 1fr !important;
  }

  .tide-day-card {
    min-height: 0 !important;
  }

  .tide-guide-grid {
    grid-template-columns: 1fr !important;
  }

  .tide-guide-grid article,
  .tide-guide-grid article:nth-child(4),
  .tide-guide-grid article:nth-child(5) {
    grid-column: 1;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tide-wave-visual i,
  .tide-wave-layer,
  .tide-hero-bubbles span {
    animation: none !important;
  }
}
