@import url('fonts.css?v=20260930-1');
@import url('category-menu.css?v=20260927-11');

:root {
  --ink: #2b2023;
  --red: #ff3131;
  --banner-blue: #265f9e;
  --lime: #d9f77a;
  --cream: #faf9f6;
  --page-bg: #dfe5e9;
  --line: #e9e1e2;
  --fluid-gutter: clamp(12px, 2vw, 24px);
  --content-inset: clamp(10px, 1.5vw, 20px);
  --content-width: min(1132px, calc(100% - (var(--fluid-gutter) * 2) - (var(--content-inset) * 2)));
}

[data-section-id].has-no-highlights { display: none !important; }

body.has-side-ads {
  --rail-width: clamp(48px, 10.42vw, 160px);
  --rail-gap: clamp(4px, 1vw, 16px);
  --rail-vertical-space: 16px;
  --side-ad-ratio: 4 / 15;
  --content-width: min(1132px, calc(100% - (var(--rail-width) * 2) - (var(--rail-gap) * 4)));
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* Não cria uma área de rolagem intermediária que impediria o cabeçalho sticky. */
  overflow-x: clip;
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
}

body.home-page {
  --page-bg: #fff;
}

a { color: inherit; text-decoration: none; }

img { display: block; }

.home-discovery-clip-defs { position: absolute; overflow: hidden; }

[hidden] { display: none !important; }

main {
  display: block;
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(12px, 2vw, 24px) 0 clamp(16px, 2vw, 32px);
  background: var(--page-bg);
}

.home-content-surface {
  --surface-inset: clamp(16px, 3vw, 34px);
  display: flex;
  width: var(--content-width);
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
  margin: 0 auto;
  padding: 0 0 clamp(26px, 4vw, 48px);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 16px 38px rgba(30, 43, 52, .13);
}

.home-page .home-content-surface {
  border-radius: 0;
  background: var(--page-bg);
  box-shadow: none;
}

.home-content-surface > section {
  width: 100%;
  margin-inline: 0;
}

/* Colunas de publicidade que acompanham a rolagem da página. */
.side-ad-rail {
  position: absolute;
  top: clamp(16px, 2vw, 32px);
  z-index: 5;
  display: none;
  flex-direction: column;
  gap: var(--rail-vertical-space);
  width: var(--rail-width);
  transform: translateY(var(--rail-vertical-space));
}

body.has-side-ads .side-ad-rail { display: flex; }

.side-ad-label {
  display: block;
  margin: 0;
  color: #586773;
  font-size: clamp(6px, .58vw, 9px);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.side-ad {
  display: grid;
  gap: 4px;
}

.side-ad-carousel-enter {
  animation: side-ad-carousel-enter .68s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes side-ad-carousel-enter {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0); }
}

.side-ad-image {
  aspect-ratio: var(--side-ad-ratio);
  overflow: hidden;
  border-radius: 5px;
  background: #eef1f3;
  box-shadow: 0 8px 22px rgba(32, 46, 57, .18);
}

.side-ad img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .side-ad-carousel-enter { animation: none; }
}

/* As faixas e o conteúdo reduzem juntos, preservando as três colunas em toda tela. */
.side-ad-rail--left { left: max(var(--rail-gap), calc(50% - 566px - var(--rail-gap) - var(--rail-width))); }
.side-ad-rail--right { right: max(var(--rail-gap), calc(50% - 566px - var(--rail-gap) - var(--rail-width))); }

/* Cabeçalho acompanha a rolagem sem sair do fluxo nem cobrir o início do conteúdo. */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 100%;
  padding: 8px 16px;
  overflow: hidden;
  background: #ff3131;
}

.site-topbar-logo {
  position: relative;
  display: block;
  width: min(300px, 75%);
  aspect-ratio: 1024 / 336;
  overflow: hidden;
}

.site-topbar-logo img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  /* Exibe y=368..704 da arte original, preservando a logo e sua sombra. */
  transform: translateY(-35.9375%);
}

/* Navegação secundária fixa das páginas internas. */
.site-sticky-navigation {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  view-transition-name: site-sticky-navigation;
}

@view-transition { navigation: auto; }

::view-transition-old(site-sticky-navigation),
::view-transition-new(site-sticky-navigation) {
  animation-duration: .16s;
  animation-timing-function: ease-out;
}

.site-sticky-navigation .site-topbar {
  position: relative;
  top: auto;
  z-index: auto;
}

.page-backbar {
  width: 100%;
  border-bottom: 1px solid rgba(23, 35, 31, .1);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 16px rgba(24, 36, 45, .1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.page-backbar-inner {
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.page-backbar-link,
.page-backbar-link.category-results-back,
.page-backbar-link.profile-back,
.page-backbar-link.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 4px;
  color: var(--ink);
  font: 800 18px/1 'Manrope', Arial, sans-serif;
  letter-spacing: -.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .16s ease, background-color .16s ease;
}

.page-backbar-link.profile-back::before { content: none; }
.page-backbar-link:hover { color: var(--red); }
.page-backbar-link:focus-visible { outline: 3px solid rgba(255, 49, 49, .35); outline-offset: 2px; border-radius: 7px; }

/* Cada sessão tem seu próprio fundo e é separada pelo fundo geral do site. */

/* Listas de turismo e outras listas de cards. */
#cards,
.custom-cards-section {
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 36px);
  background: transparent;
  border-radius: 0;
}

.categories-section {
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 16px;
  background: var(--cream);
}
.categories-section.home-discovery-section {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.home-discovery-hero {
  --hero-inline: clamp(26px, 5.2vw, 64px);
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: none;
}
.home-discovery-visual {
  position: relative;
  min-height: clamp(260px, 28vw, 330px);
  padding: clamp(42px, 6vw, 72px) var(--hero-inline) clamp(28px, 4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(250, 249, 246, .99) 0%, rgba(250, 249, 246, .96) 37%, rgba(250, 249, 246, .58) 57%, rgba(250, 249, 246, .08) 78%),
    linear-gradient(0deg, rgba(250, 249, 246, .96) 0%, rgba(250, 249, 246, 0) 34%),
    url('brejo-city-aerial.webp') right center / 64% auto no-repeat,
    var(--cream);
  isolation: isolate;
}
.home-discovery-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(223, 229, 233, .22));
  pointer-events: none;
}
.home-discovery-intro {
  position: relative;
  z-index: 1;
  width: min(610px, 60%);
  padding: 0;
  text-align: left;
}
.home-discovery-location {
  margin: 0 0 12px;
  color: var(--red);
  font: 800 12px/1.2 Manrope, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-discovery-intro h1 {
  margin: 0;
  color: var(--ink);
  font: 800 clamp(36px, 4.5vw, 58px)/1.03 Manrope, sans-serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.home-discovery-intro h1 span { display: block; color: var(--red); }
.home-discovery-description {
  max-width: 540px;
  margin: 20px 0 0;
  color: #43545f;
  font-size: clamp(16px, 1.75vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}
.home-discovery-category-entry {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100% - (var(--hero-inline) * 2)));
  margin: clamp(42px, 5vw, 58px) auto 0;
  padding-bottom: clamp(104px, 11vw, 126px);
}
.home-discovery-category-prompt {
  margin: 0 0 10px;
  color: var(--red);
  font: 800 14px/1.3 Manrope, sans-serif;
  letter-spacing: .01em;
  text-align: center;
  transform: translateY(-34px);
}
.home-discovery-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  padding: 0;
}
.home-category-trigger {
  display: grid;
  min-width: 0;
  min-height: 82px;
  align-content: center;
  justify-content: center;
  justify-items: center;
  gap: 12px;
  padding: 2px 10px;
  border: 0;
  background: transparent;
  color: #31434f;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.home-category-trigger + .home-category-trigger { border-left: 0; }
.home-category-trigger strong { font: 800 14px/1.2 Manrope, sans-serif; }
.home-category-trigger:focus-visible { outline: 3px solid rgba(255, 49, 49, .35); outline-offset: 4px; border-radius: 14px; }
.home-category-trigger.is-active { color: var(--red); }
.home-category-trigger.is-active .home-discovery-benefit-icon { box-shadow: 0 0 0 4px rgba(255, 49, 49, .17), 0 9px 20px rgba(255, 49, 49, .26); transform: translateY(-2px) scale(1.04); }
@media (hover: hover) and (pointer: fine) {
  .home-category-trigger:hover { color: var(--red); transform: translateY(-1px); }
}
.home-discovery-benefit-icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 7px 16px rgba(255, 49, 49, .2);
  transition: box-shadow .2s ease, transform .2s ease;
}
.home-discovery-benefit-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.15; }
.home-discovery-benefit-icon .category-custom-icon { display:block; width:38px; height:38px; object-fit:contain; }
.home-category-card {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: clamp(-76px, -7vw, -58px) auto 0;
  padding: 0 var(--surface-inset);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.category-menu .home-category-card .categories-subcategory-panel { margin-top: -8px; }
.home-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 840px);
  margin: 0 auto 18px;
}
.home-category-heading p { margin: 0 0 4px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-category-heading h2 { margin: 0; color: var(--ink); font: 800 clamp(25px, 3vw, 34px)/1 Manrope, sans-serif; letter-spacing: -.04em; }
.home-category-heading > span { max-width: 290px; color: #5a6872; font-size: 14px; line-height: 1.4; text-align: right; }
.home-map-section {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 27vw, 340px);
  align-items: stretch;
  gap: clamp(10px, 1.6vw, 18px);
  margin: 0;
  padding: clamp(12px, 1.8vw, 20px) var(--surface-inset);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-map-section.is-map-pending {
  visibility: hidden;
  pointer-events: none;
}
.home-map-section[hidden] { display: none !important; }
.home-map-title {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(13px, 1.35vw, 16px);
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}
.home-map-title strong { font-weight: 900; }
.home-map-preview-link {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #dce3e6;
  box-shadow: 0 6px 18px rgba(24, 36, 45, .2);
  isolation: isolate;
}
.home-map-preview { position: absolute; inset: 0; pointer-events: none; }
.home-map-preview-link:hover { box-shadow: 0 9px 24px rgba(24, 36, 45, .27); transform: translateY(-1px); }
.home-map-preview-link:focus-visible { outline: 4px solid rgba(38, 95, 158, .35); outline-offset: 3px; }
.home-map-profile-link {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #23313b;
  box-shadow: 0 6px 18px rgba(24, 36, 45, .2);
  isolation: isolate;
  transition: box-shadow .2s ease, transform .2s ease;
}
.home-map-profile-link:hover { box-shadow: 0 9px 24px rgba(24, 36, 45, .3); transform: translateY(-1px); }
.home-map-profile-link:focus-visible { outline: 4px solid rgba(38, 95, 158, .35); outline-offset: 3px; }
.home-map-profile-media,
.home-map-profile-media img,
.home-map-profile-avatar { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.home-map-profile-media {
  overflow: hidden;
  background: #23313b;
}
.home-map-profile-media img {
  z-index: 1;
  object-fit: cover;
}
.home-map-profile-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 clamp(54px, 7vw, 88px)/1 Manrope, sans-serif;
}
.home-map-profile-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding: clamp(12px, 1.8vw, 18px);
  background: linear-gradient(transparent, rgba(16, 24, 30, .9));
  color: #fff;
}
.home-map-profile-caption strong { overflow: hidden; font: 800 clamp(14px, 1.65vw, 19px)/1.2 Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.home-map-hover-action {
  position: absolute;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  background: rgba(13, 24, 32, .5);
  color: #fff;
  font: 800 clamp(14px, 1.5vw, 18px)/1 Manrope, sans-serif;
  letter-spacing: .01em;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
  transform: scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(2px);
}
.home-map-section:focus-within .home-map-hover-action { opacity: 1; transform: scale(1); }
@media (hover: hover) {
  .home-map-section:hover .home-map-hover-action { opacity: 1; transform: scale(1); }
}
.home-map-rotation-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 4px;
  background: #f8c428;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, .16);
  transform: scaleX(0);
  transform-origin: left center;
}
.home-map-profile-link.is-progressing .home-map-rotation-progress { animation: home-map-progress 5s linear forwards; }
.home-map-section.is-rotation-paused .home-map-rotation-progress { animation-play-state: paused; }
.home-map-section.has-single-map-profile .home-map-rotation-progress { display: none; }
.home-map-profile-link.is-updating .home-map-profile-media { animation: home-map-profile-enter .42s cubic-bezier(.22, 1, .36, 1); }
@keyframes home-map-profile-enter {
  from { opacity: .35; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes home-map-progress { to { transform: scaleX(1); } }
.home-map-preview .leaflet-control-attribution {
  max-width: 78%;
  overflow: hidden;
  padding: 1px 3px;
  font-size: 7px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-map-preview .leaflet-control-attribution a { color: #2d5f7a; }
.home-map-pin {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 7px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .32);
  font: 800 9px/1 Manrope, sans-serif;
  transform: rotate(-45deg);
  transition: width .25s ease, height .25s ease, box-shadow .25s ease;
}
.home-map-pin span { transform: rotate(45deg); }
.home-map-pin.is-active {
  width: 38px;
  height: 38px;
  border-width: 3px;
  box-shadow: 0 0 0 0 rgba(255, 49, 49, .5), 0 5px 14px rgba(0, 0, 0, .38);
  font-size: 12px;
  animation: home-map-pin-pulse 1.5s ease-out infinite;
}
@keyframes home-map-pin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 49, 49, .55), 0 5px 14px rgba(0, 0, 0, .38); }
  70%, 100% { box-shadow: 0 0 0 11px rgba(255, 49, 49, 0), 0 5px 14px rgba(0, 0, 0, .38); }
}
.home-map-section.has-no-map-profiles .home-map-preview-link { grid-column: 1 / -1; min-height: clamp(240px, 27vw, 340px); }
.home-map-section.has-no-map-profiles .home-map-profile-link { display: none; }
@media (max-width: 620px) {
  .home-map-section {
    grid-template-columns: minmax(0, 1fr) clamp(124px, 35vw, 138px);
    gap: 8px;
    padding: 8px;
    border-radius: 13px;
  }
  .home-map-title { font-size: 12px; }
  .home-map-preview-link,
  .home-map-profile-link { min-height: 0; border-radius: 10px; }
  .home-map-section.has-no-map-profiles .home-map-preview-link { min-height: 124px; }
  .home-map-profile-caption { padding: 9px; }
  .home-map-profile-caption strong { font-size: 12px; }
  .home-map-hover-action { font-size: 13px; }
  .home-map-pin { width: 18px; height: 18px; border-width: 2px; font-size: 7px; }
  .home-map-pin.is-active { width: 30px; height: 30px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-map-profile-link.is-updating .home-map-profile-media,
  .home-map-pin.is-active { animation: none; }
  .home-map-rotation-progress { display: none; }
}

/* Mantém as bolinhas no centro exato do intervalo entre o banner e Categorias. */
.home-content-surface > .custom-banner-section:has(.banner-carousel-controls) + .categories-section {
  margin-top: calc(-1 * clamp(16px, 2vw, 32px));
}

.home-content-surface > .custom-banner-section:has(.banner-carousel-controls) .banner-carousel-controls {
  height: 18px;
  min-height: 18px;
  /* Centraliza também a linha flexível de 24px dentro do intervalo de 18px. */
  align-content: center;
  padding: 0;
  overflow: visible;
}

.categories-section.has-section-title .base-section-title {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.category-results { width: var(--content-width); margin: 0 auto; padding: clamp(24px,4vw,48px); border-radius:16px; background:var(--cream); }
.category-results-back { display:inline-flex; margin-bottom:clamp(18px,2.5vw,24px); color:var(--ink); font-size:clamp(20px,2.2vw,26px); font-weight:800; letter-spacing:-.045em; line-height:1; text-transform:uppercase; }
.category-results h1 { margin:0; font-family:Manrope,sans-serif; font-size:clamp(24px,3vw,38px); letter-spacing:-.055em; }
.category-results h1::first-letter { color:var(--red); }
.category-results p { margin:8px 0 26px; color:#61707b; }
.category-results-empty { padding:32px 0; text-align:center; }


.section-head {
  position: relative;
  display: flex;
  min-height: clamp(48px, 5vw, 64px);
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 clamp(16px, 2vw, 22px);
}

.section-head h2,
.custom-cards-title,
.custom-banner-title,
.base-section-title {
  margin: 0;
  color: var(--ink);
  font: 800 clamp(20px, 2.6vw, 28px) / 1.1 'Manrope', Arial, sans-serif;
  letter-spacing: -1.8px;
  text-align: center;
}

.section-head p { display: none; }

.more {
  position: absolute;
  right: 0;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: clamp(11px, 1.35vw, 15px);
  font-weight: 700;
}

.deal-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 16px);
}

/* Destaques de Turismo: trilho horizontal com quatro cartões por tela. */
.deal-grid.tourism-highlights {
  display: flex;
  gap: clamp(10px, 1.5vw, 16px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.deal-grid.tourism-highlights.is-scrollable { cursor: grab; }
.deal-grid.tourism-highlights.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.tourism-scroll-shell { position: relative; }
.tourism-scroll-arrow {
  position: absolute;
  top: 2px;
  bottom: 10px;
  z-index: 3;
  display: none;
  width: clamp(30px, 3.4vw, 42px);
  height: auto;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 9px;
  background: rgba(255, 49, 49, .82);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  color: #fff;
  font: 500 clamp(25px, 3vw, 34px) / 1 Arial, sans-serif;
  cursor: pointer;
  transform: none;
  transition: opacity .16s ease, background .16s ease, transform .16s ease;
}
.tourism-scroll-shell.is-scrollable .tourism-scroll-arrow { display: grid; place-items: center; }
.tourism-scroll-arrow--previous { left: 2px; border-radius: 9px 0 0 9px; }
.tourism-scroll-arrow--next { right: 2px; border-radius: 0 9px 9px 0; }
.tourism-scroll-arrow:hover:not(:disabled) { background: rgba(255, 49, 49, .96); transform: scaleX(1.06); }
.tourism-scroll-arrow:focus-visible { outline: 3px solid rgba(255, 49, 49, .4); outline-offset: 2px; }
.tourism-scroll-arrow:disabled { opacity: .24; cursor: default; }

.deal-grid.tourism-highlights::-webkit-scrollbar { display: none; }

.deal-grid.tourism-highlights .deal {
  flex: 0 0 calc((100% - (3 * clamp(10px, 1.5vw, 16px))) / 4);
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
}

.deal-grid.tourism-highlights .deal-img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.deal-grid.tourism-highlights .catalog-message { flex: 0 0 100%; }

.deal {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition: box-shadow .18s ease, transform .18s ease;
}

.deal:hover {
  box-shadow: 0 5px 14px rgba(23, 76, 134, .16);
  transform: translateY(-2px);
}

.deal:focus-visible {
  outline: 3px solid rgba(38, 95, 158, .42);
  outline-offset: 3px;
}

.deal-img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.deal-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: clamp(9px, 1.2vw, 14px);
  background: rgba(23, 35, 31, .44);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 800 clamp(11px, 1.35vw, 16px) / 1.1 'Manrope', Arial, sans-serif;
  letter-spacing: -.35px;
  white-space: nowrap;
  text-align: left;
  text-overflow: ellipsis;
}

.deal-foot { display: none; }

/* Destaques de Locais: três cartões quadrados por vez, com deslize horizontal. */
.deal-grid.places-highlights {
  display: flex;
  gap: clamp(8px, 1.3vw, 16px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px clamp(29px, 3vw, 36px) 10px;
  scroll-padding-inline: clamp(29px, 3vw, 36px);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.deal-grid.places-highlights::-webkit-scrollbar { display: none; }
.deal-grid.places-highlights.is-scrollable { cursor: grab; }
.deal-grid.places-highlights.is-scrollable .place-highlight-card,
.deal-grid.places-highlights.is-scrollable .place-highlight-card * {
  cursor: grab;
  -webkit-user-drag: none;
}
.deal-grid.places-highlights.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
.deal-grid.places-highlights.is-dragging .place-highlight-card,
.deal-grid.places-highlights.is-dragging .place-highlight-card * { cursor: grabbing; }
.deal-grid.places-highlights .catalog-message { flex: 0 0 100%; }
.custom-cards-section.places-highlight-section {
  --places-section-padding: clamp(7px, 1vw, 11px);
  padding: var(--places-section-padding);
}
.places-highlight-section .places-scroll-shell { margin-inline: calc(-1 * var(--places-section-padding)); }
.place-highlight-display {
  position: relative;
  min-width: 0;
  flex: 0 0 calc((100% - (2 * clamp(8px, 1.3vw, 16px))) / 3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.place-highlight-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e3e0dc;
  border-radius: 16px;
  background: #34383b;
  box-shadow: 0 9px 24px rgba(34, 38, 42, .1);
  color: #fff;
  text-decoration: none;
  transition: box-shadow .18s ease;
}
.place-highlight-card:hover { box-shadow: 0 15px 30px rgba(34, 38, 42, .17); }
.place-highlight-card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.place-highlight-identity {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: clamp(7px, 1vw, 12px);
  padding: clamp(28px, 4vw, 52px) clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px);
  background: linear-gradient(transparent 24%, rgba(9, 13, 17, .74) 56%, rgba(9, 13, 17, .94));
}
.place-highlight-media {
  display: grid;
  width: clamp(44px, 5vw, 68px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 11px;
  background: #f3f4f4;
  color: #fff;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .28);
  font: 800 clamp(24px, 3.5vw, 44px) / 1 'Manrope', Arial, sans-serif;
}
.place-highlight-media img { width: 100%; height: 100%; object-fit: contain; }
.place-highlight-content { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 5px; padding-bottom: 2px; }
.place-highlight-name {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font: 800 clamp(14px, 1.5vw, 20px) / 1.2 'Manrope', Arial, sans-serif;
  letter-spacing: -.04em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.place-highlight-tags { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 3px; }
.place-highlight-tag,
.place-highlight-extra {
  display: inline-flex;
  max-width: 100%;
  min-height: 23px;
  align-items: center;
  overflow: hidden;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-highlight-tag.is-dot {
  width: 7px;
  min-width: 7px;
  height: 7px;
  min-height: 7px;
  padding: 0;
  border-radius: 50%;
  color: transparent !important;
  font-size: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55);
  cursor: pointer;
}
.place-highlight-tag.is-revealed { cursor:pointer; }
.place-highlight-tag.is-tag-revealable:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.place-highlight-extra { background: #eceeef; color: var(--ink); }
.place-highlight-gallery {
  position: absolute;
  inset: 0;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background: #34383b;
  isolation: isolate;
}
.place-highlight-gallery-backdrop,
.place-highlight-gallery-image { position: absolute; width: 100%; height: 100%; }
.place-highlight-gallery-backdrop { inset: 0; object-fit: cover; filter: blur(18px) brightness(.65); transform: scale(1.08); }
.place-highlight-gallery-image { z-index: 1; inset: 0; object-fit: cover; }
.place-highlight-gallery-empty { display: none; padding: 16px; color: #fff; font-weight: 700; text-align: center; }
.place-highlight-gallery.is-empty img { display: none; }
.place-highlight-gallery.is-empty .place-highlight-gallery-empty { display: block; }
.places-scroll-shell .tourism-scroll-arrow {
  top: calc(-1 * var(--places-section-padding));
  bottom: calc(-1 * var(--places-section-padding));
  width: clamp(19px, 2.2vw, 26px);
  height: auto;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 49, 49, .62);
  transform: none;
}
.places-scroll-shell .tourism-scroll-arrow:hover:not(:disabled) {
  background: rgba(255, 49, 49, .88);
  transform: scaleX(1.04);
}
.places-scroll-shell .tourism-scroll-arrow:disabled {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.places-scroll-shell .tourism-scroll-arrow--previous { left: 0; border-radius: 16px 0 0 16px; }
.places-scroll-shell .tourism-scroll-arrow--next { right: 0; border-radius: 0 16px 16px 0; }
@media (max-width: 760px) {
  .deal-grid.places-highlights { gap: 11px; padding-inline: 25px; scroll-padding-inline: 25px; }
  .place-highlight-display { flex-basis: calc((100% - 11px) / 2); scroll-snap-align: center; }
  .place-highlight-identity { gap: 6px; padding: 24px 7px 7px; }
  .place-highlight-media { width: clamp(28px, 8vw, 32px); border-width: 1px; }
  .place-highlight-content { gap: 3px; }
  .place-highlight-name { font-size: clamp(10px, 2.5vw, 18px); }
  .place-highlight-tag, .place-highlight-extra { min-height: 16px; padding: 2px 4px; font-size: clamp(8px, 1.7vw, 11px); }
  .places-scroll-shell .tourism-scroll-arrow { width: 18px; font-size: 23px; }
}
@media (max-width: 400px) {
  .place-highlight-identity { gap: 5px; padding: 22px 5px 5px; }
  .place-highlight-media { border-radius: 5px; font-size: 20px; }
  .place-highlight-tags .place-highlight-extra { display: none; }
}

.catalog-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.45;
}

/* Banners comuns e banner de ajuda. */
.promo,
.custom-banner-section {
  position: relative;
  width: calc(100% - (var(--surface-inset, 0px) * 2));
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--banner-radius, 16px);
}

.promo.banner-square,
.custom-banner-section.banner-square { --banner-radius: 0px; }

.promo {
  background: var(--banner-blue);
  color: #fff;
}

.help-banner-image,
.custom-banner-image {
  display: block;
  width: 100%;
  /* Sobrescreve o atributo height="500" para acompanhar a largura disponível. */
  height: auto;
  aspect-ratio: 3.91 / 1;
  object-fit: cover;
  border-radius: var(--banner-radius, 16px);
}

.promo-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: clamp(6px, 2vw, 25px);
  align-items: center;
  max-width: 1220px;
  margin: auto;
  padding: clamp(14px, 4.3vw, 53px) var(--fluid-gutter) clamp(62px, 6vw, 90px);
}

.banner-carousel { position: relative; width: 100%; border-radius: var(--banner-radius, 16px); }
.banner-carousel-viewport { overflow: hidden; width: 100%; aspect-ratio: 3.91 / 1; border-radius: inherit; touch-action: pan-y pinch-zoom; cursor: grab; }
.banner-carousel-viewport:active { cursor: grabbing; }
.banner-carousel-track { display: flex; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.banner-carousel-track img { display: block; flex: 0 0 100%; min-width: 0; width: 100%; height: 100%; aspect-ratio: 3.91 / 1; object-fit: cover; user-select: none; pointer-events: none; }
.banner-carousel-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; padding: 4px 0; }
.banner-carousel-dot { display: grid; flex: 0 0 24px; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.banner-carousel-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #94999d; transition: background-color .3s ease, transform .3s ease; }
.banner-carousel-dot[aria-current="true"]::before { background: var(--red); transform: scale(1.2); }
.banner-carousel-status,
.banner-carousel-pause:not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.banner-carousel-pause:focus-visible { position: absolute; z-index: 1; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 8px 12px; border: 0; border-radius: 8px; background: var(--cream); color: var(--ink); font: 700 12px/1.4 'DM Sans', Arial, sans-serif; cursor: pointer; }
.banner-carousel :focus-visible { outline: 2px solid var(--banner-blue); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  .banner-carousel-track, .banner-carousel-dot::before { transition: none; }
}

.promo-inner > div { min-width: 0; }

.eyebrow {
  font-size: clamp(7px, 1vw, 10px);
  font-weight: 700;
  letter-spacing: .12em;
}

.promo h2 {
  margin: clamp(4px, 1vw, 10px) 0;
  font: 800 clamp(16px, 4vw, 48px) / .98 'Manrope', Arial, sans-serif;
  letter-spacing: clamp(-2.7px, -.22vw, -.4px);
}

.promo p {
  max-width: 440px;
  margin: 0;
  color: #ffeef0;
  font-size: clamp(8px, 1.2vw, 14px);
  line-height: 1.4;
}

.promo-inner > div[style] {
  font-size: clamp(24px, 11vw, 130px) !important;
}

.promo.has-custom-banner .promo-inner { display: none; }

/* Um fundo claro é aplicado aos banners somente quando o título é exibido. */
.base-section-title,
.custom-banner-title,
.custom-cards-title {
  display: flex;
  min-height: clamp(48px, 5vw, 64px);
  align-items: center;
  justify-content: center;
  margin: 0 0 clamp(16px, 2vw, 22px);
}

.promo.has-section-title .base-section-title,
.custom-banner-section .custom-banner-title,
.custom-cards-section .custom-cards-title {
  padding-top: 0;
  text-align: center;
}

.promo.has-section-title,
.custom-banner-section.has-section-title {
  padding: clamp(22px, 3vw, 36px);
  background: transparent;
}

.promo.has-section-title .base-section-title { width: auto; }

.promo.has-section-title .help-banner-image { border-radius: var(--banner-radius, 16px); }

.promo.has-section-title .promo-inner {
  max-width: none;
  padding: clamp(26px, 4vw, 53px);
  border-radius: var(--banner-radius, 16px);
  background: var(--banner-blue);
}

.custom-banner-section:not(.has-section-title) {
  padding: 0;
  background: transparent;
}

.promo.is-clickable,
.custom-banner-section.is-clickable { cursor: pointer; }

@media (max-width: 760px) {
  .banner-carousel-dot::before { width: 5px; height: 5px; }

  /* Banners sem título ficam de ponta a ponta quando não há anúncios ao lado. */
  body:not(.has-side-ads) .home-content-surface > :is(.custom-banner-section, .promo.has-custom-banner):not(.has-section-title),
  body.home-page.has-side-ads .home-content-surface > :is(.custom-banner-section, .promo.has-custom-banner).home-leading-section:not(.has-section-title) {
    width: 100%;
  }

  /* Na inicial, as sessões anteriores ao início dos anúncios usam a largura livre. */
  body.home-page.has-side-ads .home-content-surface > .home-leading-section {
    --content-width: calc(100% - (var(--fluid-gutter) * 2));
  }

  body.home-page .side-ad-rail { transform: none; }

  .site-topbar { padding-block: 4px; }

  .site-topbar-logo { width: min(170px, 45%); }

  .page-backbar-inner { height: 48px; }
  .page-backbar-link,
  .page-backbar-link.category-results-back,
  .page-backbar-link.profile-back,
  .page-backbar-link.back { min-height: 38px; gap: 0; font-size: 15px; }

  .deal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .deal-title { font-size: 13px; }

  .deal-grid.tourism-highlights {
    gap: 10px;
  }

  .deal-grid.tourism-highlights .deal {
    flex-basis: calc((100% - 10px) / 2);
    scroll-snap-align: start;
  }

}

@media (max-width: 480px) {
  main { padding-bottom: 18px; }

  .home-content-surface {
    --surface-inset: 12px;
    gap: 18px;
    padding-bottom: 22px;
    border-radius: 18px;
  }

  .home-content-surface > .custom-banner-section:has(.banner-carousel-controls) + .categories-section {
    margin-top: -18px;
  }

  .promo,
  .custom-banner-section,
  .help-banner-image,
  .banner-carousel,
  .custom-banner-image { border-radius: var(--banner-radius, 12px); }

  #cards,
  .custom-cards-section {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .categories-section { padding: 20px 16px; border-radius: 12px; }
  .categories-section.home-discovery-section { padding: 0; border-radius: 0; }
  .home-discovery-hero {
    --hero-inline: 20px;
    border-radius: 18px 18px 0 0;
  }
  .home-discovery-visual {
    min-height: 0;
    padding: 30px var(--hero-inline) 24px;
    border-radius: 18px;
    background:
      linear-gradient(90deg, rgba(250, 249, 246, .99) 0%, rgba(250, 249, 246, .94) 50%, rgba(250, 249, 246, .35) 75%, rgba(250, 249, 246, .18) 100%),
      linear-gradient(0deg, rgba(250, 249, 246, .98) 0%, rgba(250, 249, 246, .16) 47%),
      url('brejo-city-aerial.webp') right center / auto 100% no-repeat,
      var(--cream);
  }
  .home-discovery-intro { width: 92%; padding: 0; }
  .home-discovery-location { margin-bottom: 9px; font-size: 9px; letter-spacing: .13em; }
  .home-discovery-intro h1 { max-width: 320px; font-size: clamp(28px, 7.7vw, 32px); line-height: 1.04; }
  .home-discovery-description { margin-top: 14px; padding-inline: 0; font-size: 15px; line-height: 1.45; }
  .home-discovery-category-entry { width: calc(100% - (var(--hero-inline) * 2)); margin-top: 22px; padding-bottom: 72px; }
  .home-discovery-category-prompt { margin-bottom: 20px; font-size: 13px; transform:translateY(-12px); }
  .home-discovery-benefits { width: 100%; margin-top: 0; }
  .home-category-trigger { min-height: 78px; gap: 11px; padding: 2px 5px; }
  .home-discovery-benefit-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
  .home-discovery-benefit-icon svg { width: 34px; height: 34px; }
  .home-discovery-benefit-icon .category-custom-icon { width:34px; height:34px; }
  .home-category-trigger strong { font-size: clamp(9px, 2.7vw, 11px); }
  .home-category-card { width: 100%; margin-top: -44px; padding: 0 var(--surface-inset); border-radius: 0; }
  .home-category-heading { align-items: start; gap: 10px; margin-bottom: 14px; padding: 0 6px; }
  .home-category-heading p { margin-bottom: 3px; font-size: 9px; }
  .home-category-heading h2 { font-size: 25px; }
  .home-category-heading > span { max-width: 140px; font-size: 11px; line-height: 1.25; }
  .categories-subcategory-panel { padding-top: 18px; }

  .section-head { gap: 10px; }

  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .promo-inner {
    display: block;
    padding: clamp(14px, 4.3vw, 22px) var(--fluid-gutter) clamp(84px, 22vw, 106px);
  }

  .promo-inner > div[style] {
    position: absolute;
    bottom: clamp(34px, 7vw, 42px);
    left: 50%;
    font-size: clamp(26px, 9.5vw, 44px) !important;
    line-height: 1 !important;
    text-align: left !important;
    transform: translateX(calc(-100% - clamp(8px, 2vw, 14px)));
  }
}

@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  main {
    gap: 12px;
    padding-bottom: 12px;
  }

  .home-content-surface > .custom-banner-section:has(.banner-carousel-controls) + .categories-section {
    margin-top: -12px;
  }

  .promo-inner {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    min-height: 148px;
    padding: 18px var(--fluid-gutter) 58px;
  }

  .promo h2 { font-size: clamp(18px, 3.7vw, 30px); }

.promo p { font-size: clamp(9px, 1.6vw, 12px); }

  .promo-inner > div[style] {
    position: static;
    font-size: clamp(42px, 9vw, 74px) !important;
    line-height: .9 !important;
    text-align: right !important;
    transform: none;
  }
}

/* Navegação assistiva e rodapé institucional compartilhado. */
.skip-link{position:fixed;z-index:10000;top:8px;left:8px;padding:10px 14px;border-radius:8px;background:#fff;color:#111;font-size:14px;font-weight:800;box-shadow:0 5px 20px rgba(0,0,0,.22);transform:translateY(-160%);transition:transform .16s ease}.skip-link:focus{transform:translateY(0)}
.site-footer{width:min(var(--content-width),100%);margin:0 auto;padding:30px var(--fluid-gutter);border-top:1px solid #e2e6e8;background:#fff;color:#4f5c64}.site-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}.site-footer-brand{margin:0;font-size:13px;line-height:1.55}.site-footer-brand strong{display:block;color:var(--ink);font:800 17px/1.2 Manrope,sans-serif}.site-footer-nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 18px}.site-footer-nav a{color:#44525b;font-size:12px;font-weight:750;text-decoration:none}.site-footer-nav a:hover,.site-footer-nav a:focus-visible{color:var(--red);text-decoration:underline;text-underline-offset:4px}
.promo-contact-link{display:inline-flex;margin-top:16px;border:1px solid rgba(255,255,255,.78);border-radius:999px;padding:9px 14px;color:#fff;font-size:12px;font-weight:800;text-decoration:none;transition:background .16s ease,color .16s ease}.promo-contact-link:hover,.promo-contact-link:focus-visible{background:#fff;color:#163b34}
@media(max-width:650px){.site-footer{padding:25px 20px}.site-footer-inner{align-items:flex-start;flex-direction:column}.site-footer-nav{justify-content:flex-start}}
