/* Refinamento público da busca abaixo do hero da home Perlatur.
   Mantém a lógica React original e melhora visual, foco, leitura e usabilidade. */

[data-perlatur-hero-refined="true"] a:focus-visible,
[data-perlatur-hero-refined="true"] button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72) !important;
  outline-offset: 4px !important;
}

[data-perlatur-hero-search="true"] {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 120, 31, 0.14) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 120, 31, 0.12), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fffaf5 48%, #ffffff 100%) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16) !important;
}

[data-perlatur-hero-search="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(244, 120, 31, 0.2), rgba(222, 188, 63, 0.14), transparent 62%);
  opacity: 0.55;
}

[data-perlatur-hero-search="true"] > * {
  position: relative;
  z-index: 1;
}

.perlatur-hero-search-intro {
  margin-bottom: 1rem;
  display: grid;
  gap: 0.35rem;
}

.perlatur-hero-search-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: rgba(244, 120, 31, 0.1);
  color: #b34f0f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}

.perlatur-hero-search-title {
  color: #111827;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.perlatur-hero-search-copy {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 58rem;
}

.perlatur-hero-search-links,
.perlatur-packages-seo-links,
.perlatur-section-seo-links {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.perlatur-hero-search-links a,
.perlatur-packages-seo-links a,
.perlatur-section-seo-links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 120, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #7c2d12;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.perlatur-hero-search-links a:hover,
.perlatur-packages-seo-links a:hover,
.perlatur-section-seo-links a:hover {
  background: #fff7ed;
  border-color: rgba(244, 120, 31, 0.45);
  box-shadow: 0 10px 24px rgba(244, 120, 31, 0.16);
  transform: translateY(-1px);
}

.perlatur-hero-search-links a:focus-visible,
.perlatur-packages-seo-links a:focus-visible,
.perlatur-section-seo-links a:focus-visible,
[data-perlatur-hero-search="true"] input:focus-visible,
[data-perlatur-hero-search="true"] button:focus-visible,
[data-perlatur-packages-refined="true"] input:focus-visible,
[data-perlatur-packages-refined="true"] button:focus-visible,
[data-perlatur-packages-refined="true"] a:focus-visible,
[data-perlatur-destinations-refined="true"] a:focus-visible,
[data-perlatur-benefits-refined="true"] [data-perlatur-benefit-card="true"]:focus-within,
[data-perlatur-newsletter-refined="true"] input:focus-visible,
[data-perlatur-newsletter-refined="true"] button:focus-visible,
[data-perlatur-faq-refined="true"] button:focus-visible {
  outline: 3px solid rgba(244, 120, 31, 0.34) !important;
  outline-offset: 3px !important;
}

[data-perlatur-hero-search="true"] input,
[data-perlatur-hero-search="true"] button[role="combobox"] {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(209, 213, 219, 0.9) !important;
}

[data-perlatur-hero-search="true"] input::placeholder,
[data-perlatur-newsletter-refined="true"] input::placeholder {
  color: #6b7280;
}

[data-perlatur-hero-search="true"] button:not([role="combobox"]) {
  min-height: 3.5rem;
}

.perlatur-packages-seo-note,
.perlatur-section-seo-note {
  margin: 1.1rem auto 0;
  max-width: 54rem;
  border: 1px solid rgba(244, 120, 31, 0.12);
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 0 0, rgba(244, 120, 31, 0.12), transparent 30%);
  padding: 1rem;
  text-align: left;
}

.perlatur-packages-seo-note p,
.perlatur-section-seo-note p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.perlatur-packages-seo-links,
.perlatur-section-seo-links {
  justify-content: center;
  margin-top: 0.8rem;
}

[data-perlatur-package-card="true"] {
  position: relative;
  isolation: isolate;
}

[data-perlatur-package-card="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(244, 120, 31, 0.08), rgba(222, 188, 63, 0.06));
  opacity: 0;
  transition: opacity 180ms ease;
}

[data-perlatur-package-card="true"]:hover::after,
[data-perlatur-package-card="true"]:focus-within::after {
  opacity: 1;
}

[data-perlatur-package-card="true"] a {
  text-decoration: none;
}

[data-perlatur-package-card="true"] button[title="Solicitar reserva pelo WhatsApp"] {
  min-width: 7.8rem;
}

[data-perlatur-destinations-refined="true"] {
  scroll-margin-top: 6.5rem;
}

[data-perlatur-destinations-refined="true"] a {
  text-decoration: none;
}

[data-perlatur-destinations-refined="true"] img {
  transition: transform 220ms ease, filter 220ms ease;
}

[data-perlatur-destinations-refined="true"] a:hover img,
[data-perlatur-destinations-refined="true"] a:focus-visible img {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.015);
}

.perlatur-benefits-copy,
.perlatur-faq-copy {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0.5rem auto 0;
  max-width: 48rem;
}

[data-perlatur-benefit-card="true"] {
  border: 1px solid rgba(244, 120, 31, 0.08) !important;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
}

[data-perlatur-benefit-card="true"]:hover,
[data-perlatur-benefit-card="true"]:focus-within {
  border-color: rgba(244, 120, 31, 0.22) !important;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1) !important;
  transform: translateY(-2px);
}

[data-perlatur-newsletter-refined="true"] form {
  align-items: stretch;
}

[data-perlatur-newsletter-refined="true"] input {
  background: #fff !important;
}

#custom-package a:focus-visible,
#custom-package button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7) !important;
  outline-offset: 4px !important;
}

@media (max-width: 767px) {
  [data-perlatur-hero-search="true"] {
    border-radius: 1.35rem !important;
    padding: 1.15rem !important;
  }

  .perlatur-hero-search-links,
  .perlatur-packages-seo-links,
  .perlatur-section-seo-links {
    gap: 0.45rem;
  }

  .perlatur-hero-search-links a,
  .perlatur-packages-seo-links a,
  .perlatur-section-seo-links a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .perlatur-packages-seo-note,
  .perlatur-section-seo-note {
    padding: 0.95rem;
  }
}
