/* =========================================
   RESULTADOS.CSS – Rota do Ensino
   Escopo: SOMENTE página de resultados
   Depende de: base.css (reset + header + footer)
========================================= */

:root {
  --bg: #FAEEDF;
  --text: #262118;
  --muted: #6f655a;
  --card: #ffffff;
  --stroke: rgba(38, 33, 24, 0.12);
  --stroke-strong: rgba(38, 33, 24, 0.18);
  --orange: #fe5d03;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
  --radius-lg: 18px;
  --radius-md: 14px;
}

/* Fundo da página de resultados */
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Acessibilidade */
.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Linha fina abaixo do header (se existir no HTML) */
.header-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

/* =========================================================
   HEADER RESULTADOS — RESPONSIVO (DESKTOP + MOBILE)
   Requer no HTML:
   <header class="header header--results">
   <form class="search-bar search-bar--header" ...>
========================================================= */

.header.header--results{
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 15px 24px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 16px !important;

  flex-wrap: nowrap !important;      /* <<< TROCA CRÍTICA: era wrap */
  overflow: visible !important;
  box-sizing: border-box !important;
}

.header.header--results .logo-img{
  height: 48px;
  width: auto;
  display: block;
}

/* IMPORTANTE: escopo para não afetar o index */
.header.header--results .logo-img-mobile{ display: none; }
.header.header--results .logo-img-desktop{ display: block; }

/* estrutura */
.header.header--results .header-left{
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  order: 1;
}

.header.header--results .header-right{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  position: relative;
  order: 3;
  z-index: 50;                  /* dropdowns acima */
}

/* CENTRO = search bar */
.header.header--results .header-center{
  flex: 1;
  min-width: 0;
  order: 2;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding: 0 40px;    /* Cria um "respiro" entre a barra e os itens das pontas */
}


header.header--results .search-bar.search-bar--header {
  width: 100%; 
  max-width: 550px; /* <--- REDUZA ESTE VALOR PARA DIMINUIR A BARRA (ex: 550px) */
  height: 48px;     /* Altura mais compacta para o header */
  margin: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px; /* Estilo pílula igual ao index */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header.header--results form.search-bar.search-bar--header{
  width: 100%;
  max-width: 550px;   /* ajuste livremente */
}

/* 2) Barra do header: mantém “cara” do index, mas controlada */
.header.header--results .search-bar{
  margin: 0 !important;
  width: 100% !important;
  max-width: 780px !important;

  /* não altero muito: só garanto que não estoura */
  min-width: 0 !important;

}
/* Antes (quebra o dropdown porque esconde TODOS os labels) */
/*
.header.header--results .search-bar--header .search-field label{
  display: none;
}
*/

/* Depois (correto): esconde só o label direto do campo */
.header.header--results .search-bar--header .search-field > label{
  display: none;
  padding: 5px; /* Reduzi o padding interno para caber em menos largura */
}

/* 5) Dropdowns do header não podem ser cortados por overflow hidden
      e precisam estar acima */
.header.header--results .header-dropdown{
  z-index: 200 !important;
}


/* ÍCONES DA BUSCA (escopado) */
.header.header--results .search-bar--header .search-input-wrapper img,
.header.header--results .search-bar--header .search-input-wrapper svg,
.header.header--results .search-bar--header .search-icon{
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* Botão de busca (escopado — não vaza para home) */
.header.header--results .hero-search-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  min-width: 42px;
}

.header.header--results .hero-search-btn .search-ico{
  width: 18px;
  height: 18px;
  display: block;
}

/* MOBILE */
@media (max-width: 820px){
  .header.header--results .logo-img-mobile{ display: block; height: 32px; }
  .header.header--results .logo-img-desktop{ display: none; }

  .header.header--results .header-left{ order: 1; }
  .header.header--results .header-right{ order: 2; }
  .header.header--results .header-center{
    order: 3;
    width: 100%;
  }

  .header.header--results .search-bar.search-bar--header{
    max-width: none;
    border-radius: 18px;
  }

  /* remove divisores no header */
  .header.header--results .divider,
  .header.header--results .divider-mobile{
    display: none;
  }
}

/* =========================================================
   FILTROS (linha superior, abaixo do header)
========================================================= */
.filters {
  width: 100%;  
}

.filters-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2.4vw, 28px);
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}



.filter label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px 12px;
  line-height: 1;
}

.filter select {
  min-width: 180px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.55);
  padding: 0 14px;
  outline: none;
  color: var(--text);
}

/* =========================================================
   CONTEÚDO (LISTA + MAPA)
========================================================= */
.content {
  width: 100%;
  padding: 8px 0 22px;
}

.content-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2.4vw, 28px);

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 40vw);
  gap: clamp(14px, 2.2vw, 26px);
  align-items: start;
}

.results-meta {
  padding: 10px 2px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: bold;
}

/* =========================================================
   BANNER (patrocinado)
========================================================= */
.hero-ad {
  background: linear-gradient(
    90deg,
    rgba(120, 92, 170, 0.95),
    rgba(56, 152, 209, 0.95)
  );
  border-radius: var(--radius-lg);
  height: 160px;
  margin: 8px 0 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-ad--clickable {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  text-decoration: none;
}

.hero-ad-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* =========================================================
   LISTA E CARDS
========================================================= */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 130px;
  position: relative;
  width: 100%;
  min-width: 0;
}

.card * {
  min-width: 0;
}

.card-media {
  position: relative;
  background: #f2f2f2;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fav {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(54, 30, 59, 0.55); /* cinza escuro */
  display: grid;
  place-items: center;
  box-shadow:  0 2px 6px rgba(0,0,0,0.25);
  transition: 
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}


  


.card-body {
  padding: 14px 16px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.card-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.sponsored {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.6);
}

.card-lines {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ico-pin,
.ico-info {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--stroke-strong);
  position: relative;
  flex: 0 0 auto;
  margin-top: 1px;
}

.ico-pin::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(38, 33, 24, 0.35);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ico-info::after {
  content: "i";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
  font-size: 11px;
  color: rgba(38, 33, 24, 0.45);
  font-weight: 800;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.rating-pill {
  width: 30px;
  height: 22px;
  border-radius: 999px;
  background: rgba(187, 145, 229, 0.35);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #51356f;
}

.more {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.more .chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(38, 33, 24, 0.55);
  border-bottom: 2px solid rgba(38, 33, 24, 0.55);
  transform: rotate(45deg);
}

/* Destaque card selecionado */
.card.is-active {
  outline: 2px solid rgba(254, 93, 3, .55);
  box-shadow: 0 14px 30px rgba(254, 93, 3, .18);
}

/* =========================================================
   PAGINAÇÃO
========================================================= */
.pagination {
  display: grid;
  grid-template-columns: 44px 1fr 44px 44px;
  align-items: center;
  gap: 10px;
  padding: 14px 0 0;
}

.page-btn,
.to-top {
  width: 44px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 18px;
}

.pages {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  color: rgba(38, 33, 24, 0.5);
}

.page-number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.page-number.active {
  background: rgba(38, 33, 24, 0.55);
  color: #fff;
  border-color: rgba(38, 33, 24, 0.55);
}

/* =========================================================
   MAPA (sticky definitivo, sem estourar)
========================================================= */
.content-inner > aside.right {
  position: sticky;
  top: 0;

  height: calc(100dvh - 12px);
  max-height: calc(100dvh - 12px);

  align-self: start;
  overflow: hidden;
  background: transparent;

  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.content-inner > aside.right > #map,
.content-inner > aside.right > .map,
.content-inner > aside.right > .map-container {
  flex: 1 1 auto;
  height: 100% !important;
  min-height: 0 !important;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

/* Leaflet respeitar 100% */
.content-inner > aside.right .leaflet-container {
  height: 100% !important;
  width: 100% !important;
}

/* =========================================================
   AUTOCOMPLETE (dropdown sugestões)
========================================================= */
.geo-autocomplete-wrap {
  position: relative;
}

.geo-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9999;

  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);

  overflow: hidden;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.geo-suggest.open {
  display: block;
}

.geo-suggest-section {
  padding: 10px 12px 6px;
  font-weight: 800;
  font-size: 12px;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.geo-suggest-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;

  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.geo-suggest-item:hover,
.geo-suggest-item.active,
.geo-suggest-item.is-active {
  background: rgba(0,0,0,0.06);
  outline: none;
}

.geo-suggest-title {
  font-weight: 700;
  font-size: 14px;
  color: #111;
}

.geo-suggest-sub {
  font-size: 12px;
  color: rgba(0,0,0,0.62);
}

.geo-suggest-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(254,93,3,.12);
  color: #fe5d03;
  vertical-align: middle;
}

.geo-suggest-badge--place {
  background: rgba(0,46,214,.10);
  color: #002ed6;
}

/* =========================================================
   AUTOCOMPLETE BADGE COLORS
   ========================================================= */
.geo-suggest-badge--city {
  background: rgba(0, 114, 208, 0.12);
  color: #0072d0;
}

.geo-suggest-badge--bairro {
  background: #e8d2fd;
  color: #bb91e5;
}

.geo-suggest-badge--place {
  background: rgba(0, 46, 214, 0.10);
  color: #002ed6;
}

/* =========================================================
   POPOVERS (Sort/Preço/Localização)
========================================================= */
.pop-wrap { position: relative; display: inline-block; }

.pop-trigger {
  height: 44px;
  min-width: 190px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.pop-trigger:focus {
  outline: 2px solid rgba(11,114,208,0.35);
  outline-offset: 2px;
}

.pop-trigger-caret { margin-left: auto; opacity: .7; }

.pop-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(520px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  display: none;
  z-index: 999;
  overflow: hidden;
}

.pop-panel.is-open { display: block; }

.pop-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.pop-reset {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  color: rgba(0,0,0,0.35);
}

.pop-apply {
  border: 0;
  background: #fe5d03;
  color: #fff;
  font-weight: 900;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  min-width: 120px;
}

/* Sort */
.sort-panel { padding: 10px 16px 0; }

.sort-list {
  display: grid;
  gap: 12px;
  padding: 8px 14px 14px;
}

.sort-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.78);
  cursor: pointer;
}

/* Preço */
.price-panel { padding: 14px 16px 0; }

.price-hist {
  height: 76px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.price-hist span {
  width: 10px;
  border-radius: 8px 8px 0 0;
  background: rgba(11,114,208,0.25);
  height: 12px;
}

.price-hist span:nth-child(3n) { height: 34px; background: rgba(11,114,208,0.35); }
.price-hist span:nth-child(4n) { height: 20px; }
.price-hist span:nth-child(5n) { height: 46px; background: rgba(11,114,208,0.40); }

.range-row { position: relative; padding: 16px 6px 10px; }

.range-row input[type="range"] {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 20px;
  width: calc(100% - 12px);
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.range-row input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0b72d0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  border: 0;
}

.range-row input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0b72d0;
  border: 0;
}

.range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(11,114,208,0.25);
  margin-top: 24px;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 10px;
  align-items: end;
  padding: 12px 2px 14px;
}

.price-inputs .field-label {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  margin-bottom: 6px;
  font-weight: 700;
}

.price-inputs input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.16);
  padding: 0 12px;
  font-weight: 800;
}

.price-inputs .dash {
  text-align: center;
  color: rgba(0,0,0,0.40);
  font-weight: 900;
  padding-bottom: 12px;
}

/* Localização */
.loc-panel { padding: 14px 16px 0; }
.loc-block { padding: 10px 0 14px; }
.loc-title { font-weight: 900; margin-bottom: 10px; font-size: 16px; }

.loc-select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  padding: 0 12px;
  background: #fff;
  font-weight: 700;
}

.loc-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 12px;
  padding: 10px 12px;
}

.loc-search input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.loc-search-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  opacity: .7;
}

.loc-radio {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.loc-radio label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.72);
  }

.loc-radio input[type="radio"] {
  width: 18px;
  height: 18px;
}

/* =========================================================
   PAINEL DE FILTROS (mega dropdown)
========================================================= */
.filters-wrap { position: relative; display: inline-block; }

.filters-trigger {
  height: 44px;
  min-width: 210px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.filters-trigger:hover { border-color: rgba(0,0,0,0.22); }

.filters-trigger-label { font-weight: 600; opacity: 0.8; }
.filters-trigger-value { font-weight: 600; }
.filters-trigger-caret { margin-left: auto; opacity: 0.65; }

.filters-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(980px, calc(100vw - 24px));
  max-width: 980px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  overflow: hidden;
  display: none;
  z-index: 999;
}

.filters-panel.is-open { display: block; }

.filters-panel-inner {
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 680px);
}

.filters-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.filters-panel-title {
  font-size: 16px;
  font-weight: 800;
}

.filters-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.filters-close:hover {
  background: rgba(0,0,0,0.05);
  opacity: 1;
}

/* Chips selecionados */
.filters-selected {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #f7f1ff;
}

.filters-selected-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.filters-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.filters-chip:hover { border-color: rgba(0,0,0,0.22); }

.filters-chip .chip-x {
  opacity: 0.65;
  font-weight: 900;
}

/* Corpo */
.filters-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 380px;
  overflow: hidden;
}

.filters-categories {
  border-right: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  overflow: auto;
  padding: 10px 8px;
}

.filters-cat {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
  color: rgba(0,0,0,0.55);
}

.filters-cat:hover {
  background: rgba(254, 93, 3, 0.08);
  color: var(--text);
}

.filters-cat.is-active {
  background: rgba(187, 145, 229, 0.18);
  color: var(--text);
}

.filters-content {
  overflow: auto;
  padding: 14px 16px 18px;
}

.filters-section-title {
  font-size: 15px;
  font-weight: 900;
  margin: 10px 0 14px;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 10px;
  cursor: pointer;
  width: 100%;
}

.filter-item:hover {
  background: rgba(0,0,0,0.03);
}

/* Quando o item está selecionado */
.filter-check.is-on {
    border-color: var(--orange);
    background: rgba(187, 145, 229, 0.12);
    position: relative; /* Necessário para posicionar o check */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Criando o símbolo de check (v) com CSS puro */
.filter-check.is-on::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--orange);
    border-width: 0 2px 2px 0; /* Cria as bordas lateral e inferior */
    transform: rotate(45deg); /* Gira para formar o "V" */
    display: block;
}

.filter-icon {
  /* Tamanho visual do ícone */
  width: 16px !important; 
  height: 16px !important;
  
  /* Remove a trava do flexbox */
  flex: none !important; 
  
  /* Alinhamento vertical com o texto */
  display: inline-block;
  vertical-align: middle;
  
  /* Espaçamento entre o ícone e a palavra */
  margin-right: 8px;
  
  /* Garante que a imagem não distorça */
  object-fit: contain;
  opacity: 0.9;
}

/* Este é o seletor específico que você encontrou no console */
img.filter-opt-ico {
  width: 18px !important;  /* Tamanho ideal para alinhar com o texto */
  height: 18px !important; /* Mantém a proporção quadrada */
  
  /* Alinhamento */
  display: inline-block !important;
  vertical-align: middle !important;
  
  /* Espaçamento entre o ícone e o texto */
  margin-right: 8px !important;
  
  /* Garante que a imagem não estique */
  object-fit: contain !important;
  
  /* Remove qualquer restrição de flexbox que possa forçar o aumento */
  flex-shrink: 0 !important;
  max-width: 18px !important;
}

/* 1. O PAI: O container que abraça os três elementos */
.filter-item {
    display: flex !important;
    align-items: center !important; /* Alinha o check, o ícone e o texto pelo meio vertical */
    gap: 10px !important;           /* Espaçamento uniforme entre eles */
    padding: 6px 0;                 /* Respiro entre as linhas */
    cursor: pointer;
    width: 100%;
}

/* 2. O CHECKBOX: Mantém o tamanho fixo */
.filter-check {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;                 /* Impede de "amassar" */
    display: inline-block;
    border-radius: 5px;
  border: 2px solid rgba(0,0,0,0.28);
    /* Adicione as cores/bordas do seu checkbox aqui */
}

.filter-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(0,0,0,0.28);
  display: inline-block;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 3. O ÍCONE: Ajusta a imagem */
.filter-opt-ico {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    object-fit: contain;
    margin: 0 !important;           /* Remove margens antigas */
}

/* 4. O TEXTO: Limpa propriedades que causam desalinhamento */
.filter-label {
    font-weight: 800;
    color: var(--text);
    font-size: 14px;
    line-height: normal;            /* Fundamental para o alinhamento central */
    margin: 0 !important;
    display: inline-block;
    /* Remova o "top: -1px" ou "display: flex" se ainda estiverem aqui */
}

/* Garante que o ícone dentro do label não herde comportamentos estranhos */
.filter-label .filter-opt-ico {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;                  /* Impede o ícone de amassar */
  object-fit: contain;
  display: block;                  /* Remove respiros de elementos inline */
}

/* Footer do painel */
.filters-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.filters-reset {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.filters-reset:hover { border-color: rgba(0,0,0,0.24); }

.filters-apply {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.filters-apply:hover { filter: brightness(0.96); }

/* =========================================================
   CHIPS (filtros ativos abaixo da linha)
========================================================= */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
  font-size: 13px;
  font-weight: 700;
  color: rgba(0,0,0,0.78);
}

.filter-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: .7;
}

.filter-chip--clear {
  background: rgba(254,93,3,0.10);
  border-color: rgba(254,93,3,0.25);
}

/* =========================================================
   BOTTOM SHEET (detalhes)
========================================================= */
body.no-scroll { overflow: hidden; }

.ds-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9998;
}

.ds-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ds-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: #fff;
  z-index: 9999;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -18px 40px rgba(0,0,0,.22);
  transition: bottom .22s ease;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ds-sheet.is-open { bottom: 0; }

.ds-header { position: relative; }

.ds-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

.ds-hero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.ds-headline { padding: 10px 16px 8px; }

.ds-title {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.ds-subtitle {
  margin-top: 4px;
  opacity: .72;
  font-size: 13px;
}

.ds-meta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  opacity: .78;
}

.ds-tabs {
  display: flex;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ds-tab {
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.ds-tab.is-active {
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.ds-body {
  padding: 14px 16px 18px;
  overflow: auto;
}

.ds-pane { display: none; }
.ds-pane.is-active { display: block; }

.ds-block { margin-bottom: 14px; }
.ds-label { font-weight: 900; margin-bottom: 6px; }
.ds-text { opacity: .86; line-height: 1.35; }

.ds-actions {
  display: flex;
  gap: 10px;
  margin: 10px 0 6px;
}

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  font-weight: 900;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.ds-hint { margin-top: 6px; opacity: .7; font-size: 12px; }

.ds-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ds-photos img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.ds-iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 14px;
}

/* =========================================================
   CARD DETAILS (dropdown “ver mais” dentro do card)
========================================================= */
.card-details {
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 12px;
}

.cd-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 4px 10px;
}

.cd-tab {
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.cd-tab.is-active {
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.cd-body { padding: 0 4px 10px; }

.cd-pane { display: none; }
.cd-pane.is-active { display: block; }

.cd-block { margin-bottom: 12px; }
.cd-label { font-weight: 900; margin-bottom: 6px; }
.cd-text { opacity: .86; line-height: 1.35; }

.cd-actions {
  display: flex;
  gap: 10px;
  margin: 10px 0 6px;
}

.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  font-weight: 900;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.cd-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cd-photos img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.cd-iframe {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 14px;
}

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 900px) {
  .content-inner {
    grid-template-columns: 1fr;
  }

  .content-inner > aside.right {
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
  }

  .content-inner > aside.right > #map,
  .content-inner > aside.right > .map,
  .content-inner > aside.right > .map-container {
    height: 360px !important;
  }

  .card {
    grid-template-columns: 1fr;
  }

  .card-media {
    height: 170px;
  }

  .filter {
    width: 100%;
  }

  .filter select,
  .filters-trigger,
  .pop-trigger {
    width: 100%;
    min-width: 0;
  }

  .filters-body {
    grid-template-columns: 1fr;
  }

  .filters-categories {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    overflow: auto;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .ds-hero img { height: 180px; }
  .ds-iframe { height: 220px; }
}



/* =========================================================
   SEARCH BAR DO HEADER (RESULTADOS)
   Objetivo: ficar 1:1 com o search bar do index.html
   Dependência: resultados.html deve usar a mesma estrutura/classe do index
========================================================= */

/* Garante que o header no resultados não fique “preso” por estilos antigos */
header.header{
  max-width: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Se você estiver usando <header class="header header--results">, melhor ainda */
header.header.header--results{
  justify-content: space-between; /* igual base/index */
}

/* A search bar do index (visual e espaçamentos) */
.header .search-bar{
  width: 100%;
  max-width: 980px;                 /* ajuste fino: mesmo “peso” visual do index */
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(38,33,24,0.10);
  border-radius: 999px;
  padding: 12px 12px 12px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  box-sizing: border-box;
}

/* Campos do search bar (mesma distribuição do index) */
.header .search-bar .search-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.header .search-bar .search-field > label{
  font-size: 12px;
  color: rgba(38,33,24,0.70);
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.header .search-bar .search-input-wrapper{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header .search-bar .search-input-wrapper input{
  border: 0;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: #262118;
  background: transparent;
  min-width: 0;
}

/* Ícones exatamente no mesmo “tamanho percebido” */
.header .search-bar .search-icon,
.header .search-bar .search-input-wrapper img,
.header .search-bar .search-input-wrapper svg{
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

/* Divisor igual ao index */
.header .search-bar .divider{
  width: 1px;
  height: 42px;
  background: rgba(38,33,24,0.10);
  flex: 0 0 auto;
}

/* Botão igual ao index */
.header .search-bar .search-button{
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: #fe5d03;
  color: #fff;
  font-weight: 900;
  font-family: "DM Sans";
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}

.header .search-bar .search-button:hover{
  filter: brightness(0.96);
}

/* ======= MOBILE: igual ao index (stack) ======= */
@media (max-width: 820px){
  .header .search-bar{
    max-width: none;
    border-radius: 18px;
    padding: 12px 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .header .search-bar .divider{
    display: none;
    
  }
  .header .search-bar .search-button{
    width: 100%;
    height: 48px;
  }
}

.tipo-dropdown-panel.is-open,
.tipo-dropdown-panel.open {
  display: block !important;
}

/* Dropdown Tipo: referência + sobreposição */
.header.header--results .search-field-dropdown{
  position: relative;
  overflow: visible;
}

.header.header--results #tipo-drodropdown-panelpdown.tipo-{
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 99999;
}

/* =========================================================
   TIPO DROPDOWN (RESULTADOS) — painel visível (card)
========================================================= */

/* resultados.css */

/* Anchor for absolute positioning */
.tipo-dropdown-wrap{
  position: relative;
}

/* Panel */
#tipo-dropdown.tipo-dropdown-panel{
  display: none;
  position: absolute;
  top: calc(100% + 12px);   /* right below the box */
  left: 0;                 /* align with the box */
  right: auto;

  width: min(650px, 90vw);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(0,0,0,.18);
  padding: 30px;
  border: 1px solid rgba(0,0,0,.08);
  z-index: 999999;
}

#tipo-dropdown.tipo-dropdown-panel.is-open,
#tipo-dropdown.tipo-dropdown-panel.open{
  display: block !important;
}

/* Garante que o grid interno use 3 colunas como na home */
#tipo-dropdown .dropdown-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #efe3d9;
}

#tipo-dropdown .dropdown-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 colunas para não ficar apertado */
  column-gap: 16px;
  row-gap: 4px;
  margin-top: 6px;
}

.dropdown-section-title {
  font-family: "DM Sans";
  font-weight: 600;
  color: #53425a;
  margin-bottom: 6px;
  font-size: 13px;
 
}

/* Opções (Checkbox + Texto) */
#tipo-dropdown .dropdown-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 13px;
  color: #40352b;
}

.dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #53425a;
}
#tipo-dropdown .dropdown-option span {
  font-family: 'DM Sans' !important;
  line-height: 1.1 !important;
  font-size: 12px !important;
  color: #8a7d6a !important; /* Cinza exato da Home */
}

/* Hover na opção */
#tipo-dropdown .dropdown-option:hover span {
  color: #fe5d03 !important; /* Laranja ao passar o mouse */
}

/* Estado aberto: aparece como painel */
#tipo-dropdown.tipo-dropdown-panel.is-open,
#tipo-dropdown.tipo-dropdown-panel.open{
  display: block !important;
}

.dropdown-header {
    margin-bottom: 8px;
    font-family: "DM Sans";
}

#tipo-dropdown .dropdown-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#tipo-dropdown .dropdown-clear-btn {
  background: none;
  border: none;
  color: #6f655a;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

#tipo-dropdown .dropdown-apply-btn {
  background-color: #fe5d03 !important; /* Laranja Rota do Ensino */
  color: #ffffff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: 'DM Sans';
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#tipo-dropdown .dropdown-apply-btn:hover {
  transform: scale(1.05);
}

#tipo-dropdown .dropdown-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  }

.search-field label {
    font-size: 12px;
    color: #8a7d6a;
    line-height: 1.1;
}

.dropdown-option span {
  font-family: "DM Sans";
  font-size: 15px;
  color: #6f655a;

}

/* Aparência do painel (sem isso, ele pode "abrir" e ficar invisível) */
.header.header--results #tipo-dropdown.tipo-dropdown-panel{
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.14) !important;

  padding: 16px 18px 12px !important;

  width: min(420px, calc(100vw - 24px)) !important;
  min-height: 60px !important; /* garante área visível mesmo com pouco conteúdo */

  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 10px) !important;
  z-index: 99999 !important;
}

/* Referência do dropdown */
.header.header--results .search-field-dropdown{
  position: relative;
  overflow: visible !important;
}

/* Ajuste do botão de busca no header */
.header.header--results .search-button {
  background-color: #fe5d03; /* Cor laranja da sua marca */
  border: none;
  border-radius: 50%; /* Deixa o botão redondo */
  width: 40px;        /* Largura fixa */
  height: 40px;       /* Altura fixa igual à largura */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;     /* Impede que o botão amasse */
  margin-right: 8px;  /* Pequeno recuo da borda direita da barra */
}

/* Tamanho do ícone dentro do botão */
.search-btn-icon {
  width: 20px;  /* Ajuste conforme o tamanho do seu arquivo de imagem */
  height: 20px;
  object-fit: contain;
  /* Se o seu ícone for preto e você quiser que ele fique branco via código: */
  /* filter: brightness(0) invert(1); */
}

/* Efeito ao passar o mouse */
.header.header--results .search-button:hover {
  background-color: #e55402;
  transform: scale(1.05);
}


@media (max-width: 768px) {
  #tipo-dropdown.tipo-dropdown-panel {
    width: 90vw !important;
    position: fixed !important;
    left: 5vw !important;
    right: 5vw !important;
    top: 100px !important;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    right: auto;
  }
}

/* Isso faz o painel aparecer quando o JS adiciona a classe is-open */
#price-wrap.is-open #price-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  min-width: auto !important; /* Remove larguras mínimas grandes */
  width: 180px !important;    /* Define uma largura fixa menor */
  padding: 0 !important;      /* Remove paddings excessivos do container pai */
  overflow: hidden;
}

/* Estilo da caixa "Em breve" */
.coming-soon-message {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 15px 10px ;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  min-width: 150px;
  text-align: center;
}

.coming-soon-message p {
  
  color: #fe5d03; /* Laranja da sua marca */
  font-weight: bold;
  font-size: 14px !important;    /* Fonte um pouco menor para combinar */
  margin: 0;
  white-space: nowrap;           /* Garante que o texto fique em uma linha só */
}
/* =========================================================
   MOBILE ACTION BAR (Trivago-like): Ordenar | Filtros | Mapa
   - Só aparece no mobile
   - Mapa substitui a lista (toggle via #resultsView.is-map)
========================================================= */

.mbar{
  display: none;            /* desktop: escondido */
  position: sticky;
  top: 0;                   /* se o header for sticky, ajuste para top: altura do header */
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.mbar__btn{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 10px;
  font: "DM Sans", ;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  line-height: 1;
}

.mbar__btn + .mbar__btn{
  border-left: 1px solid rgba(0,0,0,.08);
}

/* Estado default: lista visível, mapa como coluna direita no desktop.
   No mobile, vamos alternar. */
@media (max-width: 900px){
  .mbar{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* No mobile, por padrão mostramos a LISTA e escondemos o MAPA */
  #mapWrap{
    display: none;
  }

  /* Quando estiver em modo mapa */
  #resultsView.is-map #resultsListWrap{
    display: none;
  }
  #resultsView.is-map #mapWrap{
    display: block;
  }

  /* Mapa em tela cheia (ajuste o -52px se sua mbar tiver outra altura) */
  #map{
    width: 100%;
    height: calc(100vh - 52px);
  }

  /* opcional: reduzir espaçamentos do container no mobile */
  .content-inner{
    padding-top: 0;
  }
}

/* =========================================================
   MOBILE HEADER — SEARCH BAR EM LINHA PRÓPRIA
========================================================= */
/* =========================================================
   MOBILE SEARCH BAR — 3 LINHAS / 3 CARDS (LOCAL / TIPO / PROCURAR)
   - Campos em caixas brancas
   - Botão roxo #bb91e5 com texto centralizado
========================================================= */
@media (max-width: 900px){

  /* Header já deve estar grid pelo seu bloco "FIX DEFINITIVO — HEADER MOBILE" */

  /* FORM: vira container (não é mais a pílula branca do desktop) */
  body header.header.header--results form#search-form.search-bar.search-bar--header{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  /* Esconde labels ("Local", "O que eu busco") */
  body header.header.header--results form#search-form .search-field > label{
    display: none !important;
  }

  /* Remove divisores */
  body header.header.header--results form#search-form .divider,
  body header.header.header--results form#search-form .divider-mobile{
    display: none !important;
  }

  /* Cada search-field não cria caixa; quem cria caixa são os wrappers */
  body header.header.header--results form#search-form .search-field{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* ===== CARD 1: LOCAL (geo-wrap) ===== */
  body header.header.header--results form#search-form #geo-wrap{
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 52px !important;
        background: #fff !important;
        color: #fff !important;
        border: 1px solid rgba(0,0,0,.10) !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        padding: 0 !important;
        
  }

  body header.header.header--results form#search-form #geo-wrap input#local-input{
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
  }

  /* ===== CARD 2: TIPO (toggle) ===== */
  body header.header.header--results form#search-form #tipo-dropdown-toggle{
    display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 52px !important;
        background: #fff !important;
        color: #fff !important;
        border: 1px solid rgba(0,0,0,.10) !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        padding: 0 !important;
  }

  /* ===== CARD 3: BOTÃO PROCURAR (roxo) ===== */
  body header.header.header--results form#search-form button#search-button.search-button{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 52px !important;

    background: #fe5d03!important;
    color: #fff !important;

    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,.12) !important;

    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    padding: 0 !important;
  }

  /* Some com o ícone e garante texto visível */
  body header.header.header--results form#search-form button#search-button.search-button img.search-btn-icon{
    display: none !important;
  }

  /* Texto do botão (não depende do ícone) */
  body header.header.header--results form#search-form button#search-button.search-button::before{
    content: "Procurar" !important;
    display: block !important;
    color: #fff !important;
  }
}

/* =========================================================
   MOBILE — header-center e form full-width (viewport)
========================================================= */
@media (max-width: 900px){

  /* 1) destrava o container que limita a largura */
  body header.header.header--results .header-center{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 2) garante que o header em si não tenha max-width/margem */
  body header.header.header--results{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* 3) agora sim: form ocupa viewport e ganha respiro lateral */
  body header.header.header--results form#search-form.search-bar.search-bar--header{
    width: 100% !important;
    max-width: none !important;

    padding-left: 5px !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;

    justify-items: stretch !important;
  }

  /* 4) garante que os 3 cards não fiquem com "auto" centralizando */
  body header.header.header--results form#search-form #geo-wrap,
  body header.header.header--results form#search-form #tipo-dropdown-toggle,
  body header.header.header--results form#search-form button#search-button.search-button{
    justify-self: stretch !important;
    max-width: none !important;
  }
}


@media (max-width: 900px){

  /* Esconde visualmente, mas mantém funcional */
  #sort-wrap,
  #filters-wrap,
  #price-wrap,
  #loc-wrap{
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

}


/* =========================================================
   FIX DEFINITIVO — HEADER MOBILE (força grid)
========================================================= */
@media (max-width: 900px){
  body header.header.header--results{
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo spacer actions"
      "search search search";
    align-items: center;
    row-gap: 12px;
  }

  body header.header.header--results .header-left{
    grid-area: logo;
  }

  body header.header.header--results .header-right{
    grid-area: actions;
  }

  body header.header.header--results .header-center{
    grid-area: search;
    width: 100%;
  }

  body header.header.header--results .search-bar--header{
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================================
   MOBILE SEARCH BAR — 3 LINHAS / 3 CARDS (TRIVAGO-LIKE)
   - Remove a "pílula" branca do FORM no mobile
   - Cada item vira um card branco individual
========================================================= */
@media (max-width: 900px){

  /* FORM da busca: vira container, SEM caixa branca */
  header.header--results form.search-bar.search-bar--header,
  header.header--results .search-bar.search-bar--header{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  /* Cada campo NÃO deve criar caixa; quem vira caixa é o wrapper/botão */
  header.header--results .search-bar--header .search-field{
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
  }

  /* Divisores fora */
  header.header--results .search-bar--header .divider,
  header.header--results .search-bar--header .divider-mobile{
    display: none !important;
  }

  /* Labels: no mobile a gente QUER mostrar como no Trivago */
  header.header--results .search-bar--header .search-field > label{
    display: block !important;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 6px 2px;
    color: #444;
  }

  /* ===== CARD 1: LOCAL (wrapper #geo-wrap) ===== */
  #geo-wrap{
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
    padding: 12px 14px !important;
    width: 100%;
  }

  /* garante que não exista “segunda caixa” dentro do wrapper */
  #geo-wrap .search-input-wrapper,
  #geo-wrap.geo-autocomplete-wrap{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* ===== CARD 2: TIPO (o seu toggle #tipo-dropdown-toggle) ===== */
  #tipo-dropdown-toggle{
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
    padding: 12px 14px !important;
    width: 100%;
  }

  /* ===== CARD 3: BOTÃO ===== */
  header.header--results .search-bar--header .search-button{
    width: 100% !important;
    height: 52px !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
  }

  /* Inputs sem borda interna */
  header.header--results .search-bar--header input{
    border: none !important;
    outline: none;
    background: transparent !important;
    width: 100%;
  }
}

/* =========================================================
   FIX: LOCAL com caixa branca (mobile)
   - força estilo direto no #geo-wrap (seu wrapper real do input)
========================================================= */
@media (max-width: 900px){

  header.header--results form#search-form #geo-wrap{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;

    
    padding: 12px 14px !important;
    width: 100% !important;
  }

  header.header--results form#search-form #geo-wrap .search-icon{
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto !important;
  }

  header.header--results form#search-form #geo-wrap input#local-input{
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
  }
}

/* =========================================================
   FIX: BOTÃO PROCURAR visível (mobile)
========================================================= */
@media (max-width: 900px){

  header.header--results form#search-form button#search-button.search-button{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 52px !important;

    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;

    padding: 0 !important;
  }

  /* garante que o ícone não está escondido por alguma regra */
  header.header--results form#search-form button#search-button img.search-btn-icon{
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 900px){
  header.header--results form#search-form button#search-button::after{
    content: "Procurar";
    margin-left: 10px;
    font-weight: 700;
  }
}

/* =========================================================
   MOBILE — esconder labels acima dos campos
========================================================= */
@media (max-width: 900px){
  header.header--results form#search-form .search-field > label{
    display: none !important;
  }
}

/* =========================================================
   MOBILE — botão "Procurar" com texto centralizado
========================================================= */
@media (max-width: 900px){

  header.header--results form#search-form button#search-button{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 52px !important;
  }

  /* se você NÃO quiser o ícone, esconda */
  header.header--results form#search-form button#search-button img.search-btn-icon{
    display: none !important;
  }

  /* texto centralizado */
  header.header--results form#search-form button#search-button::after{
    content: "Procurar";
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
  }
}

/* =========================================================
   MOBILE — BOTÃO PROCURAR (texto real + cor roxa)
========================================================= */
@media (max-width: 900px){

  /* Botão base */
  header.header--results form#search-form button#search-button{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 52px !important;

    background: #fe5d03 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,.12) !important;

    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    cursor: pointer;
  }

  /* Remove o ícone antigo */
  header.header--results form#search-form button#search-button img.search-btn-icon{
    display: none !important;
  }

  /* INSERE TEXTO REAL NO BOTÃO */
  header.header--results form#search-form button#search-button::before{
    content: "Procurar";
    display: block;
  }
}

/* =========================================================
   FIX: remover duplicação do texto "Procurar" no botão (mobile)
========================================================= */
@media (max-width: 900px){
  body header.header.header--results form#search-form button#search-button.search-button::after{
    content: "" !important;     /* mata qualquer ::after anterior */
    display: none !important;
  }

  body header.header.header--results form#search-form button#search-button.search-button::before{
    content: "Procurar" !important;  /* mantém só um */
    display: block !important;
  }
}

/* =========================================================
   MOBILE — reduzir espaço antes da barra Ordenar | Filtros | Mapa
========================================================= */
@media (max-width: 900px){
  body .mbar{
    margin-top: 6px !important;   /* diminui o “respiro” */
  }
}

/* =========================================================
   MOBILE — reduzir espaçamento entre search bar e filtros
   (ativado via classe no HTML: filters--mobile-tight)
========================================================= */
@media (max-width: 900px){

  /* tira o “respiro” do topo da faixa de filtros */
  .filters.filters--mobile-tight{
    padding-top: 2px !important;   /* antes era 16px */
    padding-bottom: 0 !important;
     margin-top: 0 !important;
  }

  /* se ainda estiver alto, isso reduz o efeito de "base line" */
  .filters.filters--mobile-tight .filters-inner{
    align-items: center !important; /* em vez de flex-end */
    gap: 10px !important;           /* em vez de 18px */
  }

  /* remove margem do label (se algum aparecer) */
  .filters.filters--mobile-tight .filter label{
    margin-bottom: 0 !important;
  }
}

/* =========================================================
   MOBILE — ajustar espaçamento da barra de filtros (sem afetar desktop)
========================================================= */
@media (max-width: 900px){
  .filters-inner{
    gap: 0px !important;            /* antes 18px */
    align-items: center !important;  /* antes flex-end */
    padding: 0 2px !important;      /* mais enxuto no mobile */
  }

  /* opcional: se a barra ainda ficar alta por quebra de linha */
  .filters-inner{
    -webkit-overflow-scrolling: touch;
  }

  /* evita aumentar altura por elementos internos */
  .filters-inner .filter{
    margin: 0 !important;
  }
}

@media (max-width: 900px){
  header.header.header--results{
    row-gap: 8px !important;  /* antes 12px */
  }
}

/* =========================================================
   MOBILE — zera o padding da faixa de filtros (override total)
========================================================= */
@media (max-width: 900px){
  section.filters.filters--mobile-tight{
    padding: 2px 0 0 !important;   /* SOBRESCREVE o shorthand 16px 0 2px */
    margin: 0 !important;
  }
}

/* =========================================================
   MOBILE — dropdowns do header não podem reservar espaço vertical
========================================================= */
@media (max-width: 900px){
  .header-dropdown{
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Override: quando o dropdown está aberto, traz de volta para a tela */
  .header-dropdown.open,
  .header-dropdown.is-open {
    left: auto !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    height: auto !important;
    overflow: visible !important;
    padding: 8px 0 !important;
    z-index: 9999 !important;
  }
}

/* =========================================================
   MOBILE — elimina o "vão": colapsa a faixa de filtros antiga
   (mantém os painéis funcionais)
========================================================= */
@media (max-width: 900px){

  /* A faixa inteira de filtros NÃO deve ocupar altura no mobile */
  section.filters.filters--mobile-tight{
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Garante que o conteúdo interno também não reserve altura */
  section.filters.filters--mobile-tight .filters-inner{
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Os PAINÉIS precisam sair do fluxo e abrir por cima da tela */
  #sort-panel,
  #filters-panel,
  #loc-panel,
  #price-panel{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 9999 !important;
  }
}

/* =========================================================
   MOBILE — título acima do campo Local
========================================================= */
@media (max-width: 900px){

  /* cria o título antes do campo de local */
  header.header.header--results
  form#search-form
  .search-field:first-of-type::before{
    content: "Escolha a Escola Certa!!";
    display: block;

    font-family: "Fira Sans";
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: #262118;
    margin-bottom: 10px;   /* controla o espaço até o campo */
    margin-top: 16px;     /* 👈 DESCE o título em relação ao header */
    margin-bottom: 10px; /* espaço até o campo de Local */
  }
}

/* =========================================================
   MOBILE — corrigir sobreposição: dropdown Tipo acima da action bar
========================================================= */
@media (max-width: 768px){

  /* 1) garanta que o header inteiro está acima do resto do layout */
  header.header.header--results{
    position: relative !important;
    z-index: 90000 !important;
  }

  /* 2) dropdown do tipo: já é fixed; sobe ainda mais */
  #tipo-dropdown.tipo-dropdown-panel{
    position: fixed !important;
    z-index: 100000 !important;
  }

  /* 3) action bar: mantém visível, mas abaixo */
  #mobileActionBar,
  .mbar{
    position: sticky !important;  /* se já for sticky, mantém; se não, não quebra */
    z-index: 1000 !important;     /* abaixo do dropdown */
  }

  /* 4) se existir qualquer overlay/toolbar fixo com z-index alto, derruba também */
  .mobile-action-bar,
  .results-actions,
  .results-toolbar{
    z-index: 1000 !important;
  }
}

/* =========================================================
   TIPOGRAFIA UNIFICADA — Local e Tipo de Ensino
========================================================= */

/* Input de local */
#local-input{
  font-family: "DM Sans", "Fira Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #262118;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Placeholder do local */
#local-input::placeholder{
  font-family: "DM Sans", "Fira Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6f6555;
  opacity: 1; /* evita diferença entre browsers */
}

/* Trigger do Tipo de Ensino */
#tipo-trigger,
#tipo-trigger *,
.tipo-trigger,
.tipo-trigger *{
  font-family: "DM Sans", "Fira Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #262118;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   TIPOGRAFIA UNIFICADA — Local e Tipo de Ensino
========================================================= */

/* Input de local */
#local-input{
  font-family: "DM Sans", "Fira Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #262118;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Placeholder do local */
#local-input::placeholder{
  font-family: "DM Sans", "Fira Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6f6555;
  opacity: 1; /* evita diferença entre browsers */
}

/* Trigger do Tipo de Ensino */
#tipo-trigger,
#tipo-trigger *,
.tipo-trigger,
.tipo-trigger *{
  font-family: "DM Sans", "Fira Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #262118;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   FIX: Mobile action bar clicável + alinhada abaixo do header
   - Evita overlay do header/containers “comendo” o clique
========================================================= */
@media (max-width: 900px){

  /* Garante header acima do conteúdo normal */
  header.header.header--results{
    position: sticky;
    top: 0;
    z-index: 10000;
  }

  /* Barra mobile fica logo abaixo do header e acima de tudo */
  .mbar{
    position: sticky;
    top: var(--hdr-h, 76px);
    z-index: 9999;
    pointer-events: auto;
  }

  .mbar *{
    pointer-events: auto;
  }
}

@media (max-width: 900px){

  /* NÃO esconder os wraps (senão os painéis dentro deles nunca aparecem) */
  #sort-wrap,
  #filters-wrap{
    display: block !important;
  }

  /* Esconde apenas os triggers do desktop (a action bar mobile substitui eles) */
  #sort-trigger,
  #filters-trigger{
    display: none !important;
  }

  /* Garante que os painéis “subam” acima de tudo no mobile */
  #sort-panel,
  #filters-panel{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 110px !important;          /* ajuste fino se precisar */
    z-index: 999999 !important;
  }
}

@media (max-width: 900px){

  /* Header pode continuar sticky */
  header.header.header--results{
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
  }

  /* A mbar “gruda” no topo do viewport, sem offset */
  .mbar,
  #mobileActionBar{
    position: sticky !important;
    top: 0 !important;            /* <- remove o offset do header */
    bottom: auto !important;
    z-index: 60 !important;       /* suficiente para ficar acima dos cards, sem exagero */
    background: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
  }

  /* Reserva espaço para os resultados não ficarem “por baixo” visualmente */
  .content{
    padding-top: 8px !important;
  }
}

@media (max-width: 900px){

  /* 1) Header NÃO flutua no mobile (para não sobrepor o conteúdo) */
  header.header.header--results{
    position: relative !important;   /* <-- tira sticky */
    top: auto !important;
    z-index: auto !important;
    background: transparent !important;
  }

  /* 2) A action bar é a única sticky */
  .mbar,
  #mobileActionBar{
    position: relative  !important;
    top: 0 !important;
    z-index: 60 !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
  }
}

/* =========================================================
   MOBILE — Sort panel com visual do Filters (modal com header + X)
========================================================= */
@media (max-width: 900px){

  /* transforma o popover do sort em painel/modal */
  #sort-panel.pop-panel{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 110px !important;            /* ajuste fino se quiser mais alto/baixo */
    width: auto !important;

    max-height: calc(100vh - 140px) !important;
    overflow: hidden !important;

    border-radius: 18px !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18) !important;
    z-index: 999999 !important;
  }

  /* garante que header/scroll funcionem como no filtros */
  #sort-panel .filters-panel-inner{
    display: flex;
    flex-direction: column;
    max-height: inherit;
  }

  /* corpo do sort pode rolar */
  #sort-panel .sort-panel{
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* footer “gruda” embaixo, igual experiência do filtros */
  #sort-panel .pop-footer{
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
  }
}
/* =========================================================
   MOBILE — SORT igual ao FILTROS (visual + altura enxuta)
========================================================= */
@media (max-width: 900px){

  /* painel */
  #sort-panel.pop-panel{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 96px !important;

    width: auto !important;
    height: auto !important;              /* <<< não força altura */
    max-height: 78vh !important;          /* <<< limite só por segurança */
    overflow: hidden !important;

    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18) !important;
    z-index: 999999 !important;

    display: none;                        /* fechado por padrão */
  }

  /* quando abrir por classe, aparece */
  #sort-panel.pop-panel.is-open{
    display: block !important;
  }

  /* tipografia/cores iguais ao filtros */
  #sort-panel,
  #sort-panel *{
    font-family: "DM Sans" !important;
    color: #262118 !important;
    font-size: 14px !important;
    line-height: normal;
    margin: 0 !important;
    
  }

  /* estrutura interna igual filtros */
  #sort-panel .filters-panel-inner{
    display: flex !important;
    flex-direction: column !important;
    max-height: 78vh !important;
  }

  #sort-panel .filters-panel-header{
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  }

  /* lista */
  #sort-panel .sort-panel{
    padding: 10px 16px 0 !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* footer: use o mesmo do filtros */
  #sort-panel .pop-footer{
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    background: #fff !important;
  }

  /* botões: força aparência do filtros */
  #sort-panel #sort-reset{
    height: 44px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    background: #fff !important;
    font-weight: 900 !important;
    color: #262118 !important;
    opacity: 1 !important;
  }

  #sort-panel #sort-apply{
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: var(--orange) !important;
    color: #fff !important;
    font-weight: 900 !important;
  }

  /* radios/labels: mesmo “tom” do filtros */
  #sort-panel .sort-opt{
    font-weight: 700 !important;
    color: rgba(38,33,24,0.78) !important;
  }
}

/* ===== Ordenar sem mudar HTML: usa ::before no span ===== */

.sort-opt{
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* esconde o radio nativo */
.sort-opt input[type="radio"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* pega o span do texto e cria a caixinha antes */
.sort-opt > span{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #262118;
}

.sort-opt > span::before{
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(0,0,0,0.28);
  background: #fff;
  flex: 0 0 auto;
  display: inline-block;
  box-sizing: border-box;
}

/* estado ativo */
.sort-opt input:checked + span::before{
  border-color: #fe5d03;
  background: rgba(254,93,3,0.12);
  box-shadow: inset 0 0 0 4px #fe5d03;
}
/* =========================================================
   FIX — ORDENAR: 1 caixinha só (igual ao painel de filtros)
   - Mata o radio nativo e mantém apenas o ::before no span
========================================================= */

/* o label vira referência do input absoluto */
.sort-opt{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* some com o radio nativo (não ocupa espaço e não aparece) */
.sort-opt input[type="radio"]{
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;

  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;

  appearance: none !important;
  -webkit-appearance: none !important;
}

/* texto + caixinha */
.sort-opt > span{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #262118;
}

/* caixinha (estado OFF) — igual ao “filter-check” base */
.sort-opt > span::before{
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(0,0,0,0.28);
  background: #fff;
  flex: 0 0 auto;
  display: inline-block;
  box-sizing: border-box;
}

/* estado ON — igual ao .filter-check.is-on (sem “bolinha” interna) */
.sort-opt input[type="radio"]:checked + span::before{
  border-color: var(--orange);
  background: rgba(254, 93, 3, 0.12);
  box-shadow: none; /* garante que não volte o “inset” */
}

/* Só no painel de Ordenar */
#sort-panel .filter-label::before{
  content: none !important;
  display: none !important;
}

/* Container do item de ordenação */
.sort-opt{
  display: flex !important;
  align-items: center !important;   /* 🔑 alinhamento vertical real */
  gap: 12px;
  cursor: pointer;
}

/* Checkbox (real ou fake) */
.sort-opt input[type="radio"],
.sort-opt input[type="checkbox"],
.sort-opt > span::before{
  margin: 0 !important;
  align-self: center !important;
}

/* Texto do label */
.sort-opt > span{
  display: flex !important;
  align-items: center !important;
  line-height: 1.2 !important;      /* 🔑 remove baseline “caída” */
  padding: 0 !important;
}

/* =========================================================
   BOTÕES APLICAR / REDEFINIR — TAMANHO E FONTE UNIFICADOS
========================================================= */

/* Base comum para ambos */
.filters-reset,
.filters-apply,
#sort-reset,
#sort-apply {
  height: 44px !important;
  min-width: 140px !important;     /* garante mesmo “peso visual” */
  padding: 0 20px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-family: "DM Sans", system-ui, -apple-system, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  border-radius: 999px !important;
  cursor: pointer !important;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ===============================
   REDEFINIR (botão claro)
================================ */
.filters-reset,
#sort-reset {
  background: #ffffff !important;
  color: #262118 !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
}

.filters-reset:hover,
#sort-reset:hover {
  border-color: rgba(0,0,0,0.28) !important;
}

/* ===============================
   APLICAR (botão laranja)
================================ */
.filters-apply,
#sort-apply {
  background: var(--orange) !important;
  color: #ffffff !important;
  border: none !important;
}

.filters-apply:hover,
#sort-apply:hover {
  filter: brightness(0.96);
}

/* ===============================
   FOOTER: alinhamento consistente
================================ */
.filters-footer,
.pop-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
}

/* =========================================================
   MOBILE — SORT PANEL: ALTURA ENXUTA (SEM ESPAÇO SOBRANDO)
========================================================= */
@media (max-width: 900px){

  /* Painel externo */
  #sort-panel.pop-panel{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 96px !important;

    /* 👇 ALTURA CONTROLADA */
    max-height: calc(100vh - 180px) !important;
    height: auto !important;

    display: none;
    overflow: hidden !important;

    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18) !important;
    z-index: 999999 !important;
  }

  #sort-panel.pop-panel.is-open{
    display: block !important;
  }

  /* Estrutura interna: coluna */
  #sort-panel .filters-panel-inner{
    display: flex !important;
    flex-direction: column !important;

    /* 👇 NÃO força altura */
    height: auto !important;
    max-height: inherit !important;
  }

  /* Corpo do conteúdo (lista de opções) */
  #sort-panel .sort-panel{
    padding: 12px 16px 8px !important;

    /* 👇 cresce só até o conteúdo */
    flex: 0 0 auto !important;

    overflow: visible !important;
  }

  /* Footer fixo visualmente, mas SEM empurrar o painel */
  #sort-panel .pop-footer{
    position: sticky !important;
    bottom: 0;

    padding: 12px 16px !important;
    background: #fff !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;

    flex-shrink: 0 !important;
  }
}

@media (max-width: 900px){

  /* CARD base: mesma caixa pros dois */
  body header.header.header--results form#search-form #geo-wrap,
  body header.header.header--results form#search-form #tipo-dropdown-toggle{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;   /* <<< não centraliza */
    gap: 10px !important;

    width: 100% !important;
    height: 52px !important;

    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;

    padding: 0 14px !important;              /* <<< padding lateral igual */
    box-sizing: border-box !important;

    font-family: "DM Sans", system-ui, -apple-system, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #262118 !important;               /* <<< NÃO #fff */
  }

  /* Ícone do LOCAL (pin) e do TIPO (livro), se existirem como img/svg */
  body header.header.header--results form#search-form #geo-wrap .search-icon,
  body header.header.header--results form#search-form #tipo-dropdown-toggle img,
  body header.header.header--results form#search-form #tipo-dropdown-toggle svg{
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 auto !important;
    display: block !important;
  }

  /* Input do LOCAL: herda tipografia e ocupa o resto */
  body header.header.header--results form#search-form #geo-wrap input#local-input{
    flex: 1 1 auto !important;
    width: 100% !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;

    font: inherit !important;
    color: inherit !important;
    line-height: 1 !important;
  }

  /* Remove qualquer “segunda caixa” interna do local */
  body header.header.header--results form#search-form #geo-wrap .search-input-wrapper{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  /* Texto do TIPO: garante alinhamento à esquerda e ocupa espaço */
  body header.header.header--results form#search-form #tipo-dropdown-toggle *{
    font: inherit !important;
    color: inherit !important;
  }

  /* Se o texto do tipo estiver num span/botão interno, deixa ele expandir */
  body header.header.header--results form#search-form #tipo-dropdown-toggle .tipo-trigger,
  body header.header.header--results form#search-form #tipo-dropdown-toggle #tipo-trigger,
  body header.header.header--results form#search-form #tipo-dropdown-toggle span{
    flex: 1 1 auto !important;
    text-align: left !important;
  }
}

/* =========================================================
   FIX BRUTO: dropdown Tipo acima de QUALQUER coisa no mobile
========================================================= */
@media (max-width: 900px){

  /* 1) Mbar não pode ficar “por cima” */
  .mbar,
  #mobileActionBar{
    position: relative !important;   /* tira sticky se estiver causando sobreposição */
    z-index: 5 !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  /* 2) Header e containers não podem “prender” o dropdown */
  header.header.header--results,
  header.header.header--results *{
    transform: none !important;      /* neutraliza stacking context comum */
  }

  /* 3) Pega o dropdown por ID E por classe (caso o ID não seja o real) */
  #tipo-dropdown,
  .tipo-dropdown-panel{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 120px !important;
    width: auto !important;

    max-height: calc(100vh - 150px) !important;
    overflow: auto !important;

    z-index: 2147483647 !important; /* topo absoluto */
  }
}/* =========================================================
   DROPDOWNS UNIFICADOS (ORDENAR, FILTROS, DISTÂNCIA)
   ========================================================= */

/* 1. Base dos Botões (Triggers) */
.pop-trigger, .filters-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px !important;
  height: 48px !important;
  background: #ffffff !important;
  border: 1px solid var(--stroke-strong) !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--text);
  width: 100% !important;
  transition: border-color 0.2s;
}

.pop-trigger:hover, .filters-trigger:hover {
  border-color: var(--orange) !important;
}

/* 2. Painéis (Dropdowns) */
.pop-panel, .filters-panel {
  display: none; /* Escondido por padrão */
  position: absolute !important;
  background: #fff !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 15px 45px rgba(0,0,0,0.18) !important;
  border: 1px solid var(--stroke) !important;
  z-index: 99999 !important;
  overflow: hidden;
  flex-direction: column;
}

/* 3. Comportamento Desktop */
@media (min-width: 1024px) {
  .filters-inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    position: relative;
  }

  .pop-trigger, .filters-trigger {
    width: 210px !important; /* Largura padrão dos botões na barra */
  }

  /* Dropdowns Normais (Ordenar e Distância) */
  .pop-panel {
    top: calc(100% + 10px) !important;
    left: 0 !important;
    width: 320px !important; /* Largura menor para os simples */
  }

  /* Dropdown Gigante (Filtros/Categorias) */
  .filters-panel {
    top: calc(100% + 10px) !important;
    left: 0 !important;
    width: 850px !important; /* Largura ampla */
    height: 550px !important;
  }
}

/* 4. Comportamento Mobile (Full Screen) */
@media (max-width: 1023px) {
  .pop-panel, .filters-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }
}

/* Classe de controle para abrir */
.is-open {
  display: flex !important;
}
/* Garante que o painel aberto tenha prioridade total de camada */
.pop-panel.is-open, 
.filters-panel.is-open {
  display: flex !important;
  z-index: 999999 !important; /* Valor muito alto */
}

/* Evita que o conteúdo de um painel "vaze" para o outro */
.filter {
  position: relative;
  z-index: 10;
}

/* Quando um painel abre, o container dele ganha prioridade */
.filter:has(.is-open) {
  z-index: 100;
}

/* 1. Esconde o rádio padrão do navegador para evitar sobreposição */
.sort-opt input[type="radio"], 
.loc-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 2. Estilo da nossa bolinha customizada */
.filter-check {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid var(--stroke-strong) !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 3. Quando o rádio estiver selecionado, muda a cor da nossa bolinha */
input[type="radio"]:checked + .filter-check {
    background: rgba(187, 145, 229, 0.12)!important;
    }

/* 4. O símbolo de "v" (checkmark) dentro da bolinha */
.filter-check::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid var(--orange);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none; /* Escondido por padrão */
    margin-bottom: 2px;
}

/* 5. Mostra o "v" apenas quando o rádio estiver selecionado */
input[type="radio"]:checked + .filter-check::after {
    display: block !important;
    
}

/* Localiza o rádio especificamente dentro dos nossos painéis e força o desaparecimento */
#sort-panel input[type="radio"],
#loc-panel input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    appearance: none !important; /* Remove o estilo nativo do sistema (iOS/Android) */
    -webkit-appearance: none !important;
}

#sort-panel label, 
#loc-panel label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    gap: 10px; /* Espaço entre a bolinha e o texto */
    padding: 8px 0;
}

/* Garante que o botão mobile responda ao toque */
#btnFilters {
  z-index: 999 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}


/* --- CONFIGURAÇÃO PARA DESKTOP (TELAS GRANDES) --- */
@media (min-width: 1024px) {
  #filters-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 600px;
    height: auto;
    z-index: 100;
    /* Aqui o desktop usa a lógica normal de dropdown */
  }
}

/* =========================================================
   RESPONSIVO E FIX DO PAINEL
========================================================= */
@media (max-width: 1023px) {
  .content-inner {
    grid-template-columns: 1fr;
  }

  .content-inner > aside.right {
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
    order: 2; /* Mapa vai para baixo da lista no mobile se quiser */
  }

  .content-inner > aside.right > #map {
    height: 360px !important;
  }

  /* FORÇAR O PAINEL A APARECER NO MOBILE */
  #filters-panel {
    position: fixed !important; /* Fixa na tela, ignora pais */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important; /* Acima do mapa e do header */
    background: #ffffff !important;
    margin: 0 !important;
    display: none; /* Controlado pela classe .is-open */
    flex-direction: column;
  }

  #filters-panel.is-open {
    display: flex !important;
  }

  .filters-panel-inner {
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .filters-body {
    grid-template-columns: 1fr !important; /* Empilha categorias e conteúdo */
    flex: 1 !important;
    overflow-y: auto !important;
  }

  .filters-categories {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    border-right: none !important;
    border-bottom: 1px solid #eee !important;
    padding: 10px !important;
    height: auto !important;
  }

  .filters-cat {
    width: auto !important;
    padding: 8px 15px !important;
  }
}

#btnFilters {
    cursor: pointer !important;
    z-index: 100 !important;
    position: relative !important;
}

/* =========================================================
   FIX MOBILE — Filters panel sem fullscreen, sem scroll horizontal,
   abrindo abaixo da mbar (não afeta desktop)
========================================================= */
@media (max-width: 900px){

  /* painel: “popover” fixo logo abaixo da mbar */
  #filters-panel{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;

    /* abre abaixo da barra mobile (ajuste fino se precisar: 56->60 etc) */
    top: 66px !important;

    width: auto !important;
    height: auto !important;
    max-height: calc(100vh - 90px) !important;

    overflow: hidden !important;
    overflow-x: hidden !important;

    z-index: 999999 !important;
  }

  /* garante que o conteúdo não estoure lateralmente */
  #filters-panel .filters-panel-inner,
  #filters-panel .filters-body,
  #filters-panel .filters-content{
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* no mobile: categorias em “abas” horizontais + conteúdo abaixo (sem 2 colunas) */
  #filters-panel .filters-body{
    grid-template-columns: 1fr !important;
  }

  #filters-panel .filters-categories{
    display: flex !important;
    gap: 8px !important;
    padding: 10px !important;

    border-right: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  #filters-panel .filters-cat{
    flex: 0 0 auto !important;
  }

  /* conteúdo rola só vertical */
  #filters-panel .filters-content{
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Favoritos (coração) */
.fav-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(58,48,41,0.18);
  background: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fav-btn:hover{ filter: brightness(1.03); }

.fav-btn.is-on{
  border-color: rgba(254,93,3,0.55);
  box-shadow: 0 0 0 3px rgba(254,93,3,0.14);
}

.fav-btn svg{
  width: 18px;
  height: 18px;
}

.fav-btn.is-on svg path{
  fill: #fe5d03;
  stroke: #fe5d03;
}

.fav-only-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(58,48,41,0.12);
  color: #3a3029;
  font-weight: 700;
  margin: 10px 0;
}

.fav-only-toggle input{
  width: 18px;
  height: 18px;
}

.tickets-list{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.ticket-item{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(58,48,41,0.12);
}

.ticket-title{
  font-weight: 900;
  color: #2b231f;
  font-size: 14px;
}

.ticket-meta{
  margin-top: 4px;
  color: #6a5b52;
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-badge{
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(58,48,41,0.12);
  font-weight: 800;
  font-size: 12px;
  color: #3a3029;
}

.ticket-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* =========================================
   HOVER — ITENS DO DROPDOWN DE PERFIL
========================================= */

.header-dropdown .dropdown-item {
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover e foco (mouse + teclado) */
.header-dropdown .dropdown-item:hover,
.header-dropdown .dropdown-item:focus-visible {
  background-color: #faeedf;   /* tom claro da identidade */
  color: #002ed6;              /* laranja da marca */
}

/* Remove aparência padrão de botão */
.header-dropdown button.dropdown-item {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

/* =========================
   FAVORITE HEART
========================= */

/* hover */
.fav:hover {
  transform: scale(1.08);
}

/* quando favoritado */
.fav.is-active {
  animation: fav-pop 0.2s ease;
}

/* animação */
@keyframes fav-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* coração */
.fav { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fav .fav-ico { width: 22px; height: 22px; }
.fav .fav-ico path { fill: #fff9f2; }          /* cor default */
.fav.is-active .fav-ico path { fill: #fe5d03; }            /* cor favoritado */

/* thumbs */
.cd-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cd-photo-thumb {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.cd-photo-thumb img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  display: block;
}

/* modal */
.cd-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.cd-photo-modal.is-open {
  display: block;
}

.cd-photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
}

.cd-photo-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(92vw, 980px);
  max-height: 86vh;
  width: auto;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

.cd-photo-modal__panel img {
    display: block;
  width: 100%;
  height: auto;
  max-width: calc(100vw - 60px); /* 32px panel margin + ~28px padding */
  max-height: calc(100vh - 90px);/* room for close/counter */
  object-fit: contain;
  border-radius: 12px;
}

.cd-photo-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  position: absolute;
  z-index: 3;
}


.card-media { position: relative; }

.card-cover-thumb{
  position: absolute;
  right: 54px;            /* deixa espaço pro coração */
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  z-index: 3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* não corta, pode sobrar borda */
  object-position: center;
  display: block;
  background: #f2f2f2;      /* opcional para borda neutra */
}

.cd-prices { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cd-price-row { display: flex; justify-content: space-between; gap: 12px; }
.cd-price-key { font-weight: 700; }
.cd-price-val { font-weight: 800; white-space: nowrap; }

.cd-price-list { margin: 0; padding-left: 18px; }
.cd-price-list li { margin: 6px 0; }

.cd-price-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cd-price-row strong {
  white-space: nowrap;
}

.info-group { margin-top: 10px; }
.info-group-title { font-weight: 800; margin-bottom: 6px; }
.info-group-list { margin: 0; padding-left: 18px; }
.info-group-list li { margin: 4px 0; }

.tag-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-chip {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f2f2;
  border: 1px solid rgba(0,0,0,.08);
}
.tag-chip--more { font-weight: 700; }

/* Skeleton loading animation */
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 12px;
  height: 200px;
  margin-bottom: 16px;
}

/* Spinner com logo - versão simplificada */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  min-height: 400px;
}

.spinner-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

.spinner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* Apenas um arco externo */
.spinner-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 4px solid transparent;
  border-top-color: #fe5d03;
  border-right-color: #fe5d03;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  z-index: 1;
}

.loading-text {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
}

.loading-subtext {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
}

.loading-progress {
  width: 240px;
  height: 6px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 16px;
}

.loading-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #fe5d03, #ff9f4d);
  border-radius: 6px;
  animation: progress 2s ease-in-out infinite;
  transform-origin: 0% 50%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes progress {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* =========================================================
   FIX: Autocomplete dropdown visibility
   - Forces display, high z-index, and visible overflow
   ========================================================= */
.geo-suggest {
  display: block !important;               /* override any hidden state */
  background: #ffffff !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
  z-index: 999999 !important;               /* above everything */
  opacity: 1 !important;
  visibility: visible !important;
  max-height: 320px;
  overflow-y: auto;
}

/* Prevent parent containers from clipping the dropdown */
.geo-autocomplete-wrap {
  overflow: visible !important;
}

.header-center {
  overflow: visible !important;
}

/* Results page: make rotating banner the same height as a list card */
#homeBannerRotator {
  position: relative;
  height: 168px;              /* fallback; JS will set the exact height */
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0 14px;
}

#homeBannerRotator .home-banner-arrow{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent; /* your requirement */
  border: 0;
  padding: 0;
  cursor: pointer;

  z-index: 5; /* above the banner image/link */
}

#homeBannerRotator .home-banner-arrow--prev{ left: 0; }
#homeBannerRotator .home-banner-arrow--next{ right: 0; }

#homeBannerRotator .home-banner-arrow svg{
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

/* optional but recommended */
#homeBannerRotator .home-banner-arrow:focus-visible{
  outline: 2px solid rgba(254,93,3,.55);
  outline-offset: -2px;
}

#homeBannerRotator .home-banner-link,
#homeBannerRotator .home-banner-img {
  display: block;
  width: 100%;
  height: 100%;
}

#homeBannerRotator .home-banner-img {
  object-fit: scale-down;
}

/* optional: keep controls inside the smaller banner */
#homeBannerRotator .home-banner-dots { bottom: 8px; }

/* =========================================================
   FIX — Filters panel layout (desktop + mobile)
   Goal: "Redefinir" / "Aplicar" always visible, and content scrolls.
   Paste at the END of resultados.css so it overrides older rules.
========================================================= */

/* 1) Make the panel inner have a real height so flex can distribute space */
#filters-panel .filters-panel-inner{
  height: min(78vh, 680px);
  max-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
}

/* 2) Body must flex and be allowed to shrink; otherwise footer gets pushed out */
#filters-panel .filters-body{
  flex: 1 1 auto;
  min-height: 0;          /* CRITICAL for inner scrolling */
  overflow: hidden;       /* keep scroll inside categories/content */
}

/* 3) Ensure scroll areas can actually scroll */
#filters-panel .filters-categories,
#filters-panel .filters-content{
  min-height: 0;
}

/* 4) Keep footer always visible */
#filters-panel .filters-footer{
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 5;
}

/* 5) Avoid last options being hidden behind the sticky footer */
#filters-panel .filters-content{
  padding-bottom: 88px; /* ~footer height */
}

/* 6) If a section title is placed inside a grid by JS, force full width */
#filters-panel .filters-section-title{
  grid-column: 1 / -1;
}

/* 7) Desktop: remove any fixed height that may clip the footer */
@media (min-width: 1024px){
  #filters-panel.filters-panel{
    height: auto !important; /* let .filters-panel-inner control the height */
  }
}

/* 8) Mobile: use full height and keep footer visible */
@media (max-width: 1023px){
  #filters-panel .filters-panel-inner{
    height: 100dvh;
    max-height: 100dvh;
  }
}

/* ================================
   FIX: Anchor Tipo dropdown to its field
   (header currently is only class="header")
================================ */

/* Ensure the dropdown container is the positioning context */
header.header .search-field-dropdown{
  position: relative !important;
  overflow: visible !important;
}

/* Clean, deterministic positioning for the panel (desktop) */
header.header #tipo-dropdown.tipo-dropdown-panel{
  position: absolute !important;
  top: calc(100% + 12px) !important;   /* right below the box */
  left: 0 !important;
  right: auto !important;

  /* keep your desired width, but don’t overflow viewport */
  width: min(650px, calc(100vw - 24px)) !important;

  /* IMPORTANT: neutralize the rule that was pushing it sideways */
  transform: none !important;
}

/* If you still have that old offset, kill it explicitly */
header.header #tipo-dropdown.tipo-dropdown-panel{
  margin: 0 !important;
}

/* =========================================================
   FEATURE FLAG — desativar seletor de país/idioma (temporário)
   Para reativar no futuro: remover a classe `feature-country-off` do <html>
========================================================= */

html.feature-country-off #lang-button,
html.feature-country-off #language-dropdown {
  display: none !important;
}

html.feature-country-off .footer2-col--country,
html.feature-country-off #country-dropdown,
html.feature-country-off #country-menu {
  display: none !important;
}

/* Mobile: put search bar on a new line (below logo + profile) */
@media (max-width: 820px){
  header.header{
    flex-wrap: wrap !important;
  }

  header.header .header-center{
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 820px){
  header.header .header-left{ order: 1 !important; }
  header.header .header-right{ order: 2 !important; }
  header.header .header-center{ order: 3 !important; }
}

/* Mobile: keep logo + profile on first row, search bar on second row (no extra spacing) */
@media (max-width: 820px){

  header.header{
    flex-wrap: wrap !important;
    row-gap: 30px !important;   /* controls vertical spacing between rows */
    column-gap: 10px !important;
  }

  /* Row 1 */
  header.header .header-left{
    order: 1 !important;
    flex: 0 0 auto !important;
  }

  header.header .header-right{
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;       /* prevents it from dropping to next line */
    margin-left: auto !important; /* pushes it to the right */
    align-self: flex-start !important;
  }

  /* Row 2 */
  header.header .header-center{
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 0 !important;         /* removes extra top/bottom space */
    padding: 0 !important;
  }

  /* remove any extra margin the form might have */
  header.header .search-bar--header,
  header.header form.search-bar--header{
    margin: 0 !important;
  }
  .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: auto;
   }

}

/* Mobile: keep banner compact */
@media (max-width: 900px){
  #homeBannerRotator{
    height: 140px !important;      /* adjust: 120–160 */
  }

  /* keep your image filling that compact height */
  #homeBannerRotator .home-banner-link,
  #homeBannerRotator .home-banner-img{
    height: 100% !important;
  }

  /* optional: looks nicer than scale-down in a short banner */
  #homeBannerRotator .home-banner-img{
    object-fit: cover !important;  /* use contain if you refuse cropping */
  }
}

html { scrollbar-gutter: stable; }

.cd-photo-modal__panel{
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 14px;                 /* this makes the panel larger than the photo */
  box-sizing: border-box;
  overflow: hidden;              /* prevents image from spilling outside */
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
}

.cd-photo-modal__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:rgba(0,0,0,.35);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
}
.cd-photo-modal__nav:hover{ background:rgba(0,0,0,.5); }

.cd-photo-modal__prev{ left:12px; }
.cd-photo-modal__next{ right:12px; }

.cd-photo-modal__counter{
  position:absolute;
  right:12px;
  bottom:12px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:12px;
  z-index:2;
}

.rating{
  display:flex;
  align-items:center;
  gap:10px;
}

.rating-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;      /* avoids weird wrapping / off-centering */
  height:26px;         /* match your pill height */
  padding:0 10px;
  line-height:1;       /* vertical centering */
  font-variant-numeric: tabular-nums;
}

.rating-meta{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
}

.rating-meta strong{
  display:inline;      /* prevents any global "strong{display:block}" from breaking layout */
}

/* ===== FULL-BLEED RESULTS (LIST + MAP) ===== */
:root{
  /* adjust if your header/filters heights differ */
  --header-h: 84px;
  --filters-h: 78px;
}

/* full viewport canvas */
html, body { height: 100%; }
body { margin: 0; overflow: hidden; }

/* remove any centered container constraints */
main.content{
  padding: 0 !important;
  margin: 0 !important;
}

/* this is your grid wrapper: <div class="content-inner resultsView" id="resultsView"> */
.content-inner.resultsView{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 0;

  /* fill viewport below header + filters */
  height: calc(100vh - var(--header-h) - var(--filters-h));
}

/* left column scrolls */
#resultsListWrap{
  height: 100%;
  overflow: auto;
  box-sizing: border-box;
  padding: 16px 16px 24px;
}

/* map column fills */
#mapWrap{
  height: 100%;
  overflow: hidden;
}

#map{
  width: 100%;
  height: 100%;
  border-radius: 0 !important; /* remove “floating card” look */
}

/* OPTIONAL: if you want zero page scroll and no footer on results */
footer.footer{ display: none; }

/* Mobile: keep stacked behavior */
@media (max-width: 900px){
  body{ overflow: auto; } /* allow normal scrolling on mobile */
  .content-inner.resultsView{
    grid-template-columns: 1fr;
    height: auto;
  }
  #mapWrap{ height: 320px; } /* or whatever you prefer on mobile */
}

/* ===== Filters bar: full width + left aligned ===== */
section.filters{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;

  /* match your page gutter (same as list padding) */
  padding: 12px 16px !important;
  box-sizing: border-box !important;

  display: flex !important;
  justify-content: flex-start !important;
}

section.filters .filters-inner{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  
  /* allow wrap if screen is tight */
  flex-wrap: wrap !important;
}


/* ===== Footer should appear only when page reaches bottom ===== */
footer.footer { display: block !important; }

/* Undo any "no page scroll" rules */
body{
  overflow: auto !important;
  display: block !important;
}

.content-inner.resultsView{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: start !important;
  gap: 0 !important;
  height: auto !important;        /* IMPORTANT: allow page to grow */
}

/* List must NOT be its own scroll container */
#resultsListWrap{
  height: auto !important;
  overflow: visible !important;
  padding: 16px 16px 24px;
  box-sizing: border-box;
}

/* Map stays visible while the page scrolls */
:root{
  /* Adjust if needed to match your real header + filters height */
  --header-h: 84px;
  --filters-h: 78px;
}

#mapWrap{
  position: sticky;
  top: calc(var(--header-h) + var(--filters-h));
  height: calc(100vh - var(--header-h) - var(--filters-h));
  overflow: hidden;
}

#map{
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
}

/* ===== MOBILE: list/map must cover full width/height ===== */
@media (max-width: 900px){
  /* kill desktop grid columns on mobile */
  .content-inner.resultsView{
    grid-template-columns: 1fr !important;
  }

  /* when a pane is hidden via JS aria-hidden, remove it from layout */
  #resultsListWrap[aria-hidden="true"],
  #mapWrap[aria-hidden="true"]{
    display: none !important;
  }

  /* always full width */
  #resultsListWrap,
  #mapWrap{
    width: 100% !important;
    max-width: none !important;
  }

  /* map fills viewport under header+filters+mbar (uses CSS vars with fallbacks) */
  :root{
    --hdr-h: 210px;   /* fallback if JS var not set */
    --filters-h: 64px;
    --mbar-h: 48px;
  }

  #mapWrap{
    position: relative !important; /* disable sticky on mobile */
    top: auto !important;
    height: calc(100vh - var(--hdr-h) - var(--filters-h) - var(--mbar-h)) !important;
    overflow: hidden !important;
  }

  #map{
    width: 100% !important;
    height: 100% !important;
  }
}


