/* ============================================================
   HOME 3 — "Busca-primeiro / Ofertas" (ref.: CVC, Decolar, Behance)
   Hero com caixa de busca/orçamento, ofertas em carrossel, tiles
   de destinos por categoria. Identidade Mundo das Águas.
   Prefixo .h3- para não colidir com as outras homes.
   ============================================================ */

.h3 { overflow-x: hidden; background: var(--bg); }

/* ---------- HERO busca-primeiro ---------- */
.h3-hero {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 820px;
  padding: 120px 0 0;
  overflow: visible;
  background: var(--primary-dark);
}
.h3-hero__bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.h3-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: opacity .35s ease;
}
.h3-hero__bg img.is-fading { opacity: 0; }
.h3-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, .78) 0%,
    rgba(0, 0, 0, .55) 32%,
    rgba(0, 0, 0, .22) 48%,
    transparent 66%);
}
.h3-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.h3-hero__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 28px;
  text-align: center;
}
.h3-hero__title {
  color: #fff; max-width: 760px; font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.1; margin: 0 auto 12px; text-shadow: 0 2px 18px rgba(0,0,0,.28);
  text-align: center;
}
.h3-hero__title b { color: var(--orange); }
.h3-hero__text {
  color: rgba(255,255,255,.9); max-width: 560px; font-size: 1.05rem;
  margin: 0 auto; text-align: center;
}

/* Caixa de busca / orçamento — senta na divisória hero / próxima seção */
.h3-hero__search {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  transform: translateY(50%);
}
.h3-search {
  background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
  overflow: hidden; max-width: 940px; width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.h3-search__tabs { display: flex; flex-wrap: wrap; gap: 2px; background: var(--bg-light); padding: 8px 8px 0; }
.h3-search__tab {
  border: none; background: transparent; font-family: var(--font); cursor: pointer;
  padding: 12px 20px; font-size: .9rem; font-weight: 700; color: var(--text-light);
  border-radius: 12px 12px 0 0; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s;
}
.h3-search__tab svg { width: 18px; height: 18px; }
.h3-search__tab.is-active { background: #fff; color: var(--primary); box-shadow: 0 -3px 0 var(--orange) inset; }
.h3-search__form { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr auto; gap: 14px; padding: 22px; align-items: end; }
.h3-field { display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: 0; }
.h3-field label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.h3-field input {
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px;
  font-family: var(--font); font-size: .95rem; color: var(--text); background: var(--bg-light);
}
.h3-field input:focus { outline: 2px solid var(--primary); border-color: var(--primary); background: #fff; }
.h3-search__submit { height: 48px; padding: 0 26px; white-space: nowrap; }

/* ---------- Faixa de selos ---------- */
.h3-strip { background: #fff; border-bottom: 1px solid var(--border); }
.h3-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.h3-strip__item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 16px; font-weight: 700; color: var(--primary); font-size: .95rem; text-align: center; }
.h3-strip__item + .h3-strip__item { border-left: 1px solid var(--border); }
.h3-strip__item svg { color: var(--orange); flex-shrink: 0; }

/* ---------- Seções genéricas ---------- */
.h3-sec { padding: 84px 0; }
.h3-hero + .h3-sec { padding-top: 180px; }
.h3-sec--tint { background: var(--bg-light); }
.h3-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.h3-sec__head-main { max-width: 640px; text-align: left; }
.h3-sec__head--center {
  justify-content: center;
  text-align: center;
}
.h3-sec__head--center .h3-sec__head-main {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.h3-sec__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.h3-kicker { display: inline-block; color: var(--orange-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; }
.h3-sec__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; color: var(--primary); line-height: 1.15; }
.h3-sec__head p { color: var(--text-light); margin-top: 6px; }

/* ---------- Tiles de destinos por categoria ---------- */
.h3-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h3-tile {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 240px;
  display: flex; align-items: flex-end; color: #fff; text-decoration: none;
  box-shadow: var(--shadow); background: var(--primary);
}
.h3-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.h3-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.28) 55%, transparent); }
.h3-tile:hover img { transform: scale(1.07); }
.h3-tile__body { position: relative; z-index: 2; padding: 20px 22px; text-align: left; width: 100%; }
.h3-tile__body h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 2px; text-align: left; }
.h3-tile__body span { font-size: .85rem; opacity: .9; text-align: left; display: block; }

/* ---------- Frota destaque ---------- */
.h3-frota {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 42% 55% at 10% 18%, rgba(20, 163, 204, .16), transparent 68%),
    radial-gradient(ellipse 40% 50% at 90% 16%, rgba(245, 130, 32, .12), transparent 66%),
    radial-gradient(ellipse 36% 44% at 80% 92%, rgba(249, 178, 51, .08), transparent 70%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.h3-frota .container { position: relative; z-index: 1; }
.h3-frota__light {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(64px);
  opacity: .35;
}
.h3-frota__light--a {
  width: 260px;
  height: 260px;
  top: -70px;
  left: -60px;
  background: rgba(20, 163, 204, .4);
  animation: h3FrotaLightA 18s ease-in-out infinite alternate;
}
.h3-frota__light--b {
  width: 280px;
  height: 280px;
  top: -20px;
  right: -90px;
  background: rgba(245, 130, 32, .32);
  animation: h3FrotaLightB 20s ease-in-out infinite alternate;
}
.h3-frota__light--c {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: 44%;
  background: rgba(249, 178, 51, .24);
  animation: h3FrotaLightC 16s ease-in-out infinite alternate;
}
@keyframes h3FrotaLightA {
  from { transform: translate(0, 0); }
  to { transform: translate(18px, 22px); }
}
@keyframes h3FrotaLightB {
  from { transform: translate(0, 0); }
  to { transform: translate(-20px, 14px); }
}
@keyframes h3FrotaLightC {
  from { transform: translate(0, 0); }
  to { transform: translate(14px, -16px); }
}
.h3-frota__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; }
.h3-frota__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); }
.h3-frota__content {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.h3-frota__content .h3-kicker { align-self: flex-start; }
.h3-frota h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 16px; text-align: left; }
.h3-frota p { color: rgba(255,255,255,.9); margin-bottom: 18px; text-align: left; }
.h3-frota__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; width: 100%; }
.h3-frota__list li { display: flex; align-items: center; justify-content: flex-start; gap: 9px; font-size: .95rem; text-align: left; }
.h3-frota__list svg { color: var(--yellow); flex-shrink: 0; }

/* ---------- Localizador de destinos (estilo store locator) ---------- */
.h3-locator {
  margin-top: 56px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--orange);
  text-align: left;
}
.h3-locator__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.05rem;
}
.h3-locator__head svg { flex-shrink: 0; }
.h3-locator__body {
  display: grid;
  grid-template-columns: 20% 80%;
  min-height: 480px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .06);
}
.h3-locator__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  background: #fff;
  min-width: 0;
}
.h3-locator__panel h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  text-align: left;
}
.h3-locator__panel > p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--text-light);
  text-align: left;
}
.h3-locator__search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  background: var(--bg-light);
}
.h3-locator__search input:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
  background: #fff;
}
.h3-locator__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  overflow-y: auto;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.h3-locator__item {
  width: 100%;
  appearance: none;
  border: 1px solid transparent;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background .2s, border-color .2s;
}
.h3-locator__item:hover,
.h3-locator__item.is-active {
  background: var(--orange-light);
  border-color: rgba(245, 130, 32, .35);
}
.h3-locator__item-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary);
}
.h3-locator__item-city {
  font-size: .78rem;
  color: var(--text-muted);
}
.h3-locator__empty {
  font-size: .86rem;
  color: var(--text-muted);
  padding: 8px 4px;
}
.h3-locator__map {
  width: 100%;
  min-height: 480px;
  background: #e8eef2;
}
.h3-locator__map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 480px;
  font: inherit;
}
.h3-locator__pin {
  background: transparent;
  border: 0;
}
.h3-locator__pin-dot {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(8, 61, 84, .35);
}
.h3-locator__map .leaflet-popup-content {
  margin: 12px 14px;
  min-width: 160px;
}
.h3-locator__map .leaflet-popup-content strong {
  display: block;
  color: var(--primary);
  font-size: .95rem;
  margin-bottom: 2px;
}
.h3-locator__map .leaflet-popup-content span {
  display: block;
  color: var(--text-muted);
  font-size: .8rem;
  margin-bottom: 8px;
}
.h3-locator__map .leaflet-popup-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.h3-locator__map .leaflet-popup-content li {
  font-size: .8rem;
  color: var(--text-light);
  padding-left: 12px;
  position: relative;
}
.h3-locator__map .leaflet-popup-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Notícias ---------- */
.h3-news-slider { margin-top: 0; overflow: visible; }
.h3-news-slider .destinos-slider__viewport {
  overflow: hidden;
  padding: 16px 28px 28px;
  margin: -8px -28px -12px;
}
.h3-news-slider .destinos-slider__track { align-items: stretch; }
.h3-news-slider .destinos-slider__track > .h3-news-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
  min-height: 100%;
  width: var(--destino-card-w, 100%);
  flex: 0 0 var(--destino-card-w, 100%);
}
.h3-news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: inherit;
}
.h3-news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.h3-news-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--primary), var(--accent)); overflow: hidden; }
.h3-news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.h3-news-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.h3-news-card__meta { font-size: .76rem; color: var(--text-muted); margin-bottom: 8px; }
.h3-news-card__meta b { color: var(--orange-dark); text-transform: uppercase; letter-spacing: .04em; }
.h3-news-card__body h3 { font-size: 1.02rem; color: var(--text); line-height: 1.35; margin-bottom: 10px; }
.h3-news-card__body p { font-size: .9rem; color: var(--text-light); flex: 1; margin-bottom: 14px; }
.h3-news-card__link { font-weight: 700; font-size: .88rem; color: var(--primary); }

/* ---------- CTA final ---------- */
.h3-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 160px 0;
  min-height: 580px;
  text-align: center;
  background: #111;
}
.h3-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.h3-cta__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.h3-cta__bg img.is-active { opacity: 1; }
.h3-cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .62);
}
.h3-cta .container { position: relative; z-index: 1; width: 100%; }
.h3-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.15); }
.h3-cta p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }
.h3-cta .btn--white { color: var(--primary); }

/* ---------- Banner fretamento (organizadores) ---------- */
.h3-banner-fret {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 36px;
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-lg);
}
.h3-banner-fret__media {
  min-height: 320px;
  background: var(--primary-dark);
}
.h3-banner-fret__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h3-banner-fret__panel {
  background: var(--orange);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 48px 44px;
  gap: 0;
}
.h3-banner-fret__panel h2 {
  margin: 0 0 14px;
  max-width: none;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-align: left;
}
.h3-banner-fret__panel > p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
  text-align: left;
}
.h3-banner-fret__list {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  width: 100%;
}
.h3-banner-fret__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .96rem;
  color: rgba(255, 255, 255, .95);
  text-align: left;
}
.h3-banner-fret__list svg {
  color: var(--yellow);
  flex-shrink: 0;
}
.h3-banner-fret__panel .btn--white {
  color: var(--primary);
}

/* ---------- Seções "quem viaja" (imagem + texto) ---------- */
.h3-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.h3-split--reverse .h3-split__media { order: -1; }
.h3-split__content { text-align: left; }
.h3-split__content h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--primary); line-height: 1.15; margin-bottom: 14px; }
.h3-split__content > p { color: var(--text-light); font-size: 1rem; line-height: 1.7; margin-bottom: 18px; }
.h3-split__list { display: grid; gap: 10px; margin-bottom: 26px; }
.h3-split__list li { display: flex; align-items: center; gap: 10px; font-size: .96rem; color: var(--text); }
.h3-split__list svg { color: var(--orange); flex-shrink: 0; }
.h3-split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); }

.h3-encomendas__rota {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: .95rem;
}
.h3-encomendas__rota svg { color: var(--orange); flex-shrink: 0; }
.h3-encomendas__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .h3-split { grid-template-columns: 1fr; gap: 30px; }
  .h3-split--reverse .h3-split__media { order: 0; }
  .h3-banner-fret { grid-template-columns: 1fr; min-height: 0; }
  .h3-banner-fret__media { min-height: 260px; }
  .h3-banner-fret__panel { padding: 36px 24px; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .h3-hero + .h3-sec { padding-top: 340px; }
  .h3-search__form { grid-template-columns: 1fr 1fr; }
  .h3-search__submit { grid-column: 1 / -1; width: 100%; }
  .h3-strip__grid { grid-template-columns: 1fr 1fr; }
  .h3-strip__item:nth-child(3) { border-left: none; }
  .h3-tiles { grid-template-columns: 1fr 1fr; }
  .h3-frota__grid { grid-template-columns: 1fr; gap: 30px; }
  .h3-locator__body { grid-template-columns: 28% 72%; }
  .h3-locator__map,
  .h3-locator__map .leaflet-container { min-height: 420px; }
}
@media (max-width: 560px) {
  .h3-hero + .h3-sec { padding-top: 400px; }
  .h3-search__form { grid-template-columns: 1fr; }
  .h3-strip__grid { grid-template-columns: 1fr; }
  .h3-strip__item + .h3-strip__item { border-left: none; border-top: 1px solid var(--border); }
  .h3-tiles { grid-template-columns: 1fr; }
  .h3-frota__list { grid-template-columns: 1fr; }
  .h3-locator__body {
    grid-template-columns: 1fr;
  }
  .h3-locator__panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .h3-locator__list { max-height: 200px; }
  .h3-locator__map,
  .h3-locator__map .leaflet-container { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .h3-frota__light { animation: none; }
  .h3-cta__bg img { transition: none; }
}

/* ============================================================
   TIPOGRAFIA (escopo home3) — Corporate Trust
   Lexend (títulos) + Source Sans 3 (corpo). Só afeta .h3.
   ============================================================ */
.h3 {
  --font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Lexend", var(--font);
  font-family: var(--font);
}
.h3 h1, .h3 h2, .h3 h3, .h3 h4,
.h3 .h3-hero__title,
.h3 .h3-sec__head h2,
.h3 .h3-split__content h2,
.h3 .h3-banner-fret__panel h2,
.h3 .h3-frota h2,
.h3 .h3-locator__panel h3,
.h3 .h3-cta h2,
.h3 .section-title {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}
