/* Landing Page - CSS Consolidado e Otimizado */
/* Versão limpa sem duplicidades - Janeiro 2025 */

/* ===== VARIÁVEIS ESSENCIAIS ===== */
:root {
  --primary-color: #f18719;
  --primary-hover: #f18719;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #c2c2c2;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 6px 18px rgba(0, 0, 0, 0.15);
  --radius-md: 8px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --z-dropdown-landing: 15000;
  --z-dropdown-content: 999999;
}

/* ===== RESET E BASE ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  background: white;
  /* CRÍTICO: Não cortar elementos - permitir overflow para dropdowns */
  overflow-x: visible;
  overflow-y: auto;
  /* iOS: Prevenir problemas de rendering */
  -webkit-overflow-scrolling: touch;
}

body {
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
}

/* Landing: garantir que o menu horizontal continue clicável mesmo se data-swiping/touch estiver setado */
body.landing-page .menu-horizontal-filtros[data-swiping="true"],
body.landing-page .menu-horizontal-filtros[data-touch-active="true"] {
  pointer-events: auto !important;
}

body.landing-page .menu-horizontal-filtros[data-swiping="true"] .filtro-button,
body.landing-page .menu-horizontal-filtros[data-swiping="true"] .slider-button,
body.landing-page .menu-horizontal-filtros[data-touch-active="true"] .filtro-button,
body.landing-page .menu-horizontal-filtros[data-touch-active="true"] .slider-button {
  pointer-events: auto !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Tipografia herda as variáveis globais alinhadas ao start */

/* ===== CONTAINER PRINCIPAL ===== */
.container-conteudo {
  flex: 1 0 auto !important;
  margin: 0 auto;
  padding: 40px 15px;
  max-width: 1300px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  
  /* CRÍTICO: Permitir overflow para dropdowns */
  overflow: visible !important;
  /* iOS: Garantir que não cria stacking context */
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  isolation: auto !important;
  align-items: center;
}

/* EXCEÇÃO PARA FILTROS - NÃO CENTRALIZAR */
.container-conteudo .filtros-container {
  align-items: stretch !important;
  text-align: left !important;
}

/* CAIXA DE BUSCA - CENTRALIZAR */
.container-conteudo .search-box-container {
  align-items: center !important;
  text-align: center !important;
}

/* ===== LOGO ===== */
.logo-buske {
  width: 35%;
  min-width: 300px;
  max-width: 225px;
  height: auto;
  display: block;
  margin-bottom: 0px;
}

/* ===== TEXTO "ONDE DESEJA MORAR" ===== */
.texto-onde-morar {
  font-size: 14px;
  color: #666;
  margin-bottom: 10 !important; /* ✅ CORRIGIDO: Zero margin inferior para eliminar espaçamento */
  font-weight: 3400;
  margin-top: 0 !important; /* ✅ FORÇADO: Garantir zero margin superior */
  padding: 20px 0px 0px 0px !important; /* ✅ ADICIONADO: Garantir zero padding */
}

/* ===== CAMPO DE BUSCA ===== */
.search-bar {
  position: relative;
  margin-bottom: 5px;
  width: 100%;
  /* CORREÇÃO: Remover margem automática que centraliza */
  margin-left: 0;
  margin-right: 0;
}

/* search-input-wrapper controlado por search-box-modular.css */

/* ===== ESTRUTURA DE CHIPS (IDÊNTICA AO INDEX.HTML) ===== */
.search-content {
  display: flex;
  gap: 8px;
  min-height: 42px; /* ✅ CORREÇÃO: Altura mínima para uma linha */
  width: 100%;
  box-sizing: border-box;
  
  /* ✅ NOVO: Permitir crescimento automático com o conteúdo */
  height: auto;
}

/* ✅ CORREÇÃO: Esconder divs vazias que criam linhas desnecessárias */
.search-content:empty {
  display: none;
}

.selected-filters-chips {
  display: flex;
  gap: 3px;
  min-height: 0;
  /* ✅ NOVO: Garantir que o container se adapte ao conteúdo */
  justify-content: normal;
}

/* ✅ CORREÇÃO: Esconder container de chips quando vazio */
.selected-filters-chips:empty {
  display: none;
}

/* Chips controlados por search-box-modular.css */

.filter-counter {
  background: #f46f09;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* search-input controlado por search-box-modular.css */

/* search-input-wrapper styles em search-box-modular.css */

/* search-icon controlado por search-box-modular.css */

/* dropdown-arrow controlado por search-box-modular.css */

/* filter-counter controlado por search-box-modular.css */

/* ===== CONTAINER DE FILTROS ===== */
.filtros-container {
  width: 100%;
  /* CORREÇÃO: Remover max-width para permitir dropdowns expandirem */
  margin: 0 auto;
  flex: 0 0 auto;
  /* CRÍTICO: Permitir dropdowns extrapolarem */
  overflow: visible !important;
  position: relative;
  /* z-index: 100; - REMOVIDO: Causa bug WebKit #160953 no iOS Safari */
  /* FORÇAR baixo z-index para não interferir com dropdown da caixa de busca */
  z-index: 1;
  /* FORÇAR ALINHAMENTO À ESQUERDA SOBRESCREVENDO O CONTAINER PAI */
  /* Altura consistente para evitar mudanças ao mostrar/esconder menu */
  min-height: 63px;
  text-align: center !important; /* Centralizar o conteúdo */
  
  /* Remover flex - deixar elementos empilhados verticalmente */
  display: block !important;
  
  /* ===== CORREÇÃO TRADICIONAL - GARANTIR LTR ===== */
  direction: ltr !important;
  max-width: 700px;
}

/* ===== MENU HORIZONTAL DE FILTROS - COPIADO EXATO DO INDEX.HTML ===== */

/* ==================================================================== */
/*    MENU HORIZONTAL - MIGRADO PARA menu-filtros-modular.css */
/*     */
/*    ATENÇÃO: Todas as regras do menu horizontal foram movidas para um */
/*    arquivo independente e modular: */
/*    /static/css/components/menu-filtros-modular.css */
/*     */
/*    As regras abaixo estão comentadas para evitar conflitos. */
/*    Use apenas o CSS modular para o menu de filtros. */
/*    ==================================================================== */ */
 */
/* INÍCIO DAS REGRAS COMENTADAS - NÃO USAR MAIS */
 */
/* ✅ iOS FIX: Split containers para evitar bug WebKit #160953 */ */
/* .menu-horizontal-filtros-position-wrapper { */
/*     position: sticky; */
/*     top: 0; */
/* } */ */
 */
/* Container wrapper com botões de scroll - MENU SEMPRE VISÍVEL NO TOPO */ */
/* .menu-horizontal-filtros-carousel-wrapper { */
/*     /* position: sticky; - MOVIDO para wrapper acima */ */
/*     /* top: 0; - MOVIDO para wrapper acima */ */
/*     display: flex; */
/*     align-items: center; */
/*     margin-top: 10px; */
/*     margin-bottom: 10px; */
/*     max-width: 1300px; */
/*     background: #f46f09; */
/*     border-radius: 25px; */
/*     padding: 0 10px; */
/*     box-sizing: border-box; */
/*     /* z-index: 1000; - REMOVIDO: Causa bug WebKit #160953 no iOS Safari */ */
/*     overflow: visible; */
/*      */
/*     /* ===== CORREÇÃO TRADICIONAL TAMBÉM NO WRAPPER ===== */ */
/*     direction: ltr !important; */
/*     flex-direction: row !important; */
/*     justify-content: flex-start !important; */
/*     min-height: 50px; */
/*     width: 100%; */
/* } */
 */
/* Menu horizontal com scroll - FUNCIONANDO NO MOBILE */ */
/* .menu-horizontal-filtros { */
/*     background: transparent; */
/*     border-radius: 25px; */
/*     padding: 8px 8px 8px 8px; /* Alinhado com o CSS inline */ */
/*     min-height: 50px; */
/*     box-shadow: none; */
/*     display: flex; */
/*     gap: 7px; */
/*     flex-wrap: nowrap; */
/*     align-items: center; */
/*      */
/*     /* ===== CORREÇÃO TRADICIONAL FORÇADA ===== */ */
/*     direction: ltr !important; */
/*     flex-direction: row !important; */
/*     justify-content: flex-start !important; */
/*     align-items: center !important; */
/*      */
/*     /* SOLUÇÃO: contain layout permite overflow-x auto com dropdowns visíveis */ */
/*     overflow-x: auto !important; */
/*     overflow-y: visible !important; */
/*     contain: layout !important; */
/*      */
/*     scroll-behavior: auto; */
/*     scrollbar-width: none; */
/*     -ms-overflow-style: none; */
/*     -webkit-overflow-scrolling: touch; */
/*     scroll-snap-type: none; */
/*      */
/*     width: 100%; */
/*     max-width: 100%; */
/*     flex: 1; */
/*     position: static; */
/*     margin: 0; */
/*     min-width: 0; */
/*     text-align: left; */
/*     cursor: grab; */
/*     user-select: none; */
/*     /* ✅ CRÍTICO: Permitir APENAS scroll horizontal no touch */ */
/*     touch-action: pan-x !important; */
/* } */
 */
/* Esconder scrollbar do webkit */ */
/* .menu-horizontal-filtros::-webkit-scrollbar { */
/*     display: none; */
/* } */
 */
/* ✅ NOVO: Otimizações específicas para iOS */ */
/* @supports (-webkit-touch-callout: none) { */
/*     .menu-horizontal-filtros { */
/*         -webkit-transform: translateZ(0); */
/*         -webkit-backface-visibility: hidden; */
/*         will-change: scroll-position; */
/*         -webkit-overflow-scrolling: touch !important; */
/*     } */
/* } */
 */
/* ✅ NOVO: Estados visuais para swipe/touch */ */
/* .menu-horizontal-filtros[data-swiping="true"] { */
/*     cursor: grabbing !important; */
/*     pointer-events: auto !important; */
/*     user-select: none !important; */
/* } */
 */
/* .menu-horizontal-filtros[data-swiping="true"] .filtro-button, */
/* .menu-horizontal-filtros[data-swiping="true"] .slider-button { */
/*     pointer-events: none !important; */
/*     opacity: 0.8 !important; */
/*     transition: opacity 0.1s ease !important; */
/*     /* ✅ CRÍTICO: Remover efeitos de foco/active durante swipe */ */
/*     background-color: white !important; */
/*     color: #555 !important; */
/*     transform: none !important; */
/*     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important; */
/* } */
 */
/* .menu-horizontal-filtros[data-touch-active="true"] .filtro-button, */
/* .menu-horizontal-filtros[data-touch-active="true"] .slider-button { */
/*     /* ✅ FORÇAR: Estado neutro durante qualquer touch */ */
/*     background-color: white !important; */
/*     color: #555 !important; */
/*     transform: none !important; */
/*     transition: none !important; */
/* } */
 */
/* .menu-horizontal-filtros[data-touch-active="true"] .filtro-button:hover, */
/* .menu-horizontal-filtros[data-touch-active="true"] .slider-button:hover, */
/* .menu-horizontal-filtros[data-touch-active="true"] .filtro-button:active, */
/* .menu-horizontal-filtros[data-touch-active="true"] .slider-button:active, */
/* .menu-horizontal-filtros[data-touch-active="true"] .filtro-button:focus, */
/* .menu-horizontal-filtros[data-touch-active="true"] .slider-button:focus { */
/*     background-color: white !important; */
/*     color: #555 !important; */
/*     transform: none !important; */
/*     outline: none !important; */
/* } */
 */
/* Elementos filhos do menu horizontal não devem encolher */ */
/* .menu-horizontal-filtros > * { */
/*     flex-shrink: 0; */
/*     white-space: nowrap; */
/*     min-width: fit-content; */
/*     display: inline-flex; */
/*     /* CRÍTICO: Permitir overflow em elementos filhos para dropdowns */ */
/*     overflow: visible !important; */
/*     contain: none !important; */
/*      */
/*     /* ===== CORREÇÃO TRADICIONAL - RESET COMPLETO ===== */ */
/*     margin-left: 0 !important; */
/*     margin-right: 0 !important; */
/*     order: unset !important; */
/* } */
 */
/* Remover scroll-snap que causa posicionamento automático */ */
/* .menu-horizontal-filtros > *:first-child { */
/*     /* scroll-snap-align: start; - REMOVIDO */ */
/* } */
 */
/* .menu-horizontal-filtros > *:last-child { */
/*     /* scroll-snap-align: end; - REMOVIDO */ */
/* } */
 */
/* Força todos os botões a terem tamanho mínimo para serem visíveis */ */
/* .menu-horizontal-filtros .filtro-button { */
/*     min-width: 60px; */
/* } */
 */
/* .menu-horizontal-filtros .slider-button { */
/*     min-width: 60px; */
/* } */
 */
/* .menu-horizontal-filtros .toggle-comprar-alugar { */
/*     min-width: 40px; */
/* } */
 */
 */
/* ===== TOGGLE COMPRAR/ALUGAR ===== */ */
/* .toggle-comprar-alugar { */
/*     background: white; */
/*     border: 1px solid white; */
/*     border-radius: 25px; */
/*     padding: 0; */
/*     margin: 0; */
/*     display: flex; */
/*     position: relative; */
/*     width: 106.16px !important; */
/*     height: 42px; */
/*     box-sizing: border-box; */
/*     min-width: 106.16px !important; */
/*     max-width: 106.16px !important; */
/*     flex-shrink: 0 !important; */
/* } */
 */
/* ===== TOGGLE COMPRAR/ALUGAR - SEM OVERRIDE DE POSIÇÃO ===== */ */
/* .menu-horizontal-filtros .toggle-comprar-alugar { */
/*     /* TRADICIONAL: Sem order, sem margens automáticas */ */
/*     display: flex !important; */
/*     visibility: visible !important; */
/*     opacity: 1 !important; */
/*     flex-shrink: 0 !important; */
/*     /* RESET TOTAL: Herda margens do reset geral acima */ */
/*     padding: 0 !important; */
/* } */
 */
/* .toggle-option { */
/*     background: transparent; */
/*     border: none; */
/*     border-radius: 25px; */
/*     padding: 4px 8px; */
/*     font-size: 14px !important; */
/*     font-weight: 500; */
/*     color: #5f6368; */
/*     cursor: pointer; */
/*     transition: all 0.3s ease; */
/*     z-index: 2; */
/*     position: relative; */
/*     margin: 0; */
/*     height: 40px; */
/*     display: flex; */
/*     align-items: center; */
/*     justify-content: center; */
/* } */
 */
/* .toggle-option[data-value="comprar"] { */
/*     width: 58.58px; */
/* } */
 */
/* .toggle-option[data-value="alugar"] { */
/*     width: 45.58px; */
/* } */
 */
/* .toggle-option.active { */
/*     color: white; */
/*     background: #f46f09; */
/* } */
 */
/* .toggle-slider { */
/*     position: absolute; */
/*     width: calc(50% - 4px); */
/*     height: calc(100% - 4px); */
/*     background: white; */
/*     border-radius: 25px; */
/*     transition: transform 0.3s ease; */
/*     z-index: 1; */
/*     top: 4px; */
/*     left: 4px; */
/* } */
 */
/* .toggle-comprar-alugar.alugar .toggle-slider { */
/*     transform: translateX(100%); */
/* } */
 */
/* ===== DROPDOWNS ===== */ */
/* .filtro-dropdown, .slider-dropdown { */
/*     position: relative; */
/*     display: inline-block; */
/*     overflow: visible !important; */
/*     contain: none !important; */
/* } */
 */
/* .filtro-button, .slider-button { */
/*     background: white !important; */
/*     border: 1px solid white !important; */
/*     border-radius: 25px; */
/*     padding: 4px 6px; */
/*     font-size: 15px; */
/*     font-weight: 500; */
/*     color: #5f6368 !important; */
/*     cursor: pointer; */
/*     display: flex; */
/*     align-items: center; */
/*     justify-content: flex-start; */
/*     gap: 5px; */
/*     transition: all 0.2s ease; */
/*     height: 42px; */
/*     min-height: 42px; */
/*     white-space: nowrap; */
/*     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
/*     box-sizing: border-box; */
/*     flex-shrink: 0; */
/*     min-width: fit-content; */
/*     /* Event Delegation Pattern - Touch optimization */ */
/*     -webkit-tap-highlight-color: transparent; */
/*     -webkit-touch-callout: none; */
/*     /* ✅ CRÍTICO: Desabilitar todos os gestos touch nos botões */ */
/*     touch-action: none !important; */
/*     user-select: none; */
/*     -webkit-user-select: none; */
/* } */
 */
/* .slider-button { */
/*     min-width: 60px; */
/*     justify-content: center; */
/* } */
 */
/* .filtro-button:hover, .slider-button:hover { */
/*     background: rgba(255, 255, 255, 0.9) !important; */
/*     border-color: rgba(255, 255, 255, 0.9) !important; */
/*     color: #f46f09 !important; */
/*     transform: translateY(-1px); */
/*     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
/* } */
 */
/* .filtro-button.active, .slider-button.active { */
/*     background: rgba(255, 255, 255, 0.95) !important; */
/*     border-color: rgba(255, 255, 255, 0.95) !important; */
/*     color: #f46f09 !important; */
/*     font-weight: 300; */
/*     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); */
/* } */
 */
/* .filtro-button.selected { */
/*     background: rgba(255, 255, 255, 0.95) !important; */
/*     border-color: rgba(255, 255, 255, 0.95) !important; */
/*     color: #f46f09 !important; */
/*     font-weight: 600; */
/*     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); */
/* } */
 */
/* ✅ NOVO: Estilo para sliders selecionados (igual aos filtros) */ */
/* .slider-button.selected { */
/*     background: rgba(255, 255, 255, 0.95) !important; */
/*     border-color: rgba(255, 255, 255, 0.95) !important; */
/*     color: #f46f09 !important; */
/*     font-weight: 600; */
/*     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); */
/* } */
 */
/* .slider-button.selected .slider-text { */
/*     color: #f46f09 !important; */
/*     font-weight: 600; */
/* } */
 */
/* .filtro-arrow { */
/*   width: 0; */
/*   height: 0; */
/*   border-left: 4px solid transparent; */
/*   border-right: 4px solid transparent; */
/*   border-top: 4px solid var(--text-muted); */
/* } */
 */
/* ===== DROPDOWNS COM POSICIONAMENTO ABSOLUTO FIXO ===== */ */
/* .filtro-dropdown, */
/* .slider-dropdown { */
/*   position: relative; */
/*   overflow: visible !important; */
/*   contain: none !important; */
/*   isolation: auto !important; */
/* } */
 */
/* Append to Body Pattern - Solução definitiva para iOS */ */
/* .filtro-dropdown-content, */
/* .slider-dropdown-content { */
/*   position: fixed; */
/*   background: white; */
/*   border: 1px solid var(--border-color); */
/*   border-radius: 25px; */
/*   box-shadow: var(--shadow-lg); */
/*   z-index: 999999; */
/*   display: none; */
/*   min-width: fit-content; */
/*   width: auto; */
/*   max-width: 280px; */
/*   max-height: 70vh; */
/*   overflow-y: auto; */
/*   -webkit-overflow-scrolling: touch; */
/*    */
/*   /* Remover transforms que podem causar problemas no iOS */ */
/*   transform: none; */
/*   -webkit-transform: none; */
/*    */
/*   /* Garantir visibilidade */ */
/*   opacity: 1; */
/*   visibility: visible; */
/*   pointer-events: auto; */
/*    */
/*   /* Desabilitar transições no iPhone para evitar flash */ */
/*   transition: none !important; */
/*   -webkit-transition: none !important; */
/* } */
 */
/* iPhone específico - desabilitar todas as animações nos dropdowns */ */
/* @supports (-webkit-touch-callout: none) { */
/*   @media only screen and (max-width: 812px) { */
/*     .filtro-dropdown-content, */
/*     .slider-dropdown-content { */
/*       transition: none !important; */
/*       -webkit-transition: none !important; */
/*       animation: none !important; */
/*       -webkit-animation: none !important; */
/*     } */
/*      */
/*     /* Evitar piscar apenas no dropdown content */ */
/*     .filtro-dropdown-content, */
/*     .slider-dropdown-content { */
/*       transition: none !important; */
/*       -webkit-transition: none !important; */
/*       animation: none !important; */
/*       -webkit-animation: none !important; */
/*     } */
/*   } */
/* } */
 */
/* Quando movido para o body */ */
/* body > .filtro-dropdown-content, */
/* body > .slider-dropdown-content { */
/*   display: none; */
/*   /* Transição suave para evitar flash visual */ */
/*   transition: opacity 0.15s ease-out; */
/*   opacity: 0; */
/* } */
 */
/* Quando ativo no body */ */
/* .filtro-dropdown.active ~ body > .filtro-dropdown-content, */
/* .slider-dropdown.active ~ body > .slider-dropdown-content, */
/* body > .filtro-dropdown-content[data-active="true"], */
/* body > .slider-dropdown-content[data-active="true"] { */
/*   display: block !important; */
/* } */
 */
/* Visibilidade controlada via JS para evitar flash */ */
/* body > .filtro-dropdown-content[style*="visibility: visible"], */
/* body > .slider-dropdown-content[style*="visibility: visible"] { */
/*   opacity: 1; */
/* } */
 */
/* ✅ NOVO: Largura específica para sliders (preço e área) */ */
/* .slider-dropdown-content { */
/*   min-width: 250px !important; */
/*   width: 250px !important; */
/* } */
 */
/* Dropdowns quando ainda dentro do container (antes de mover para body) */ */
/* .filtro-dropdown .filtro-dropdown-content, */
/* .slider-dropdown .slider-dropdown-content { */
/*   display: none; */
/* } */
 */
/* Dropdowns quando movidos para o body e ativos */ */
/* body > .filtro-dropdown-content[data-active="true"], */
/* body > .slider-dropdown-content[data-active="true"] { */
/*   display: block !important; */
/*   visibility: visible !important; */
/*   opacity: 1 !important; */
/*   z-index: 999999 !important; */
/*   position: absolute !important; */
/* } */
 */
 */
/* ===== CONTEÚDO DOS DROPDOWNS ===== */ */
/* .dropdown-content-inner { */
/*   padding: 0; */
/*   background: white; */
/*   border-radius: 25px; */
/* } */
 */
/* .dropdown-header { */
/*   padding: 5px 10px 5px 10px; */
/*   font-size: 13px; */
/*   font-weight: 600; */
/*   color: #202124; */
/*   font-family: var(--font-family); */
/*   background: #f8f9fa; */
/*   border-bottom: 1px solid #e8eaed; */
/*   text-align: center; */
/* } */
 */
/* .dropdown-title { */
/*   margin: 0; */
/*   font-size: 14px; */
/*   font-weight: 600; */
/*   color: #202124; */
/*   font-family: var(--font-family); */
/*   text-align: center; */
/* } */
 */
/* .dropdown-subtitle { */
/*   margin: 0; */
/*   font-size: 13px; */
/*   color: var(--text-muted); */
/*   font-family: var(--font-family); */
/* } */
 */
/* .dropdown-footer { */
/*   padding: 10px 20px; */
/*   border-top: 1px solid #f1f3f4; */
/*   background: #f8f9fa; */
/*   border-radius: 0 0 25px 25px; */
/* } */
 */
/* .selection-counter { */
/*   font-size: 12px; */
/*   color: var(--text-muted); */
/*   font-weight: 500; */
/*   font-family: var(--font-family); */
/* } */
 */
/* .slider-header { */
/*   padding: 5px 10px 5px 10px; */
/*   font-size: 14px; */
/*   font-weight: 600; */
/*   color: #202124; */
/*   font-family: var(--font-family); */
/*   border-bottom: 1px solid #f1f3f4; */
/*   text-align: center; */
/* } */
 */
/* .filtro-options-container { */
/*   padding: 0; */
/*   max-height: 300px; */
/*   overflow-y: auto; */
/*   background: white; */
/*   /* ✅ OTIMIZADO: Largura baseada no conteúdo */ */
/*   width: auto; */
/*   min-width: fit-content; */
/* } */
 */
/* .filtro-option { */
/*   display: flex; */
/*   align-items: center; */
/*   padding: 0px 0px 0px 15px; */
/*   cursor: pointer; */
/*   gap: 8px; */
/*   transition: background-color 0.2s ease; */
/*   border-bottom: 1px solid #f1f3f4; */
/*   font-size: 15px; */
/*   color: var(--text-muted); */
/*   background: white; */
/*   min-height: 35px; */
/*   font-family: var(--font-family); */
/*   /* ✅ OTIMIZADO: Evitar quebra de linha e ajustar largura */ */
/*   white-space: nowrap; */
/*   width: auto; */
/*   min-width: fit-content; */
/* } */
 */
/* .filtro-option:last-child { */
/*   border-bottom: none; */
/*   border-radius: 0 0 25px 25px; */
/* } */
 */
/* .filtro-option:hover { */
/*   background-color: var(--bg-light); */
/* } */
 */
/* .filtro-option.selected { */
/*   background-color: #e8f0fe; */
/*   color: var(--primary-color); */
/* } */
 */
/* .filtro-checkbox { */
/*   width: 20px; */
/*   height: 20px; */
/*   border: 2px solid #dadce0; */
/*   border-radius: 4px; */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: center; */
/*   transition: all 0.2s ease; */
/*   font-size: 12px; */
/*   font-weight: bold; */
/*   flex-shrink: 0; */
/*   background: white; */
/* } */
 */
/* .filtro-option.selected .filtro-checkbox { */
/*   background-color: var(--primary-color); */
/*   border-color: var(--primary-color); */
/*   color: white; */
/* } */
 */
/* .filtro-option.selected .filtro-checkbox::after { */
/*   content: "✓"; */
/* } */
 */
/* .filtro-option-text { */
/*   flex: 1; */
/*   font-weight: 500; */
/*   /* ✅ OTIMIZADO: Garantir texto em uma linha */ */
/*   white-space: nowrap; */
/*   overflow: hidden; */
/*   text-overflow: ellipsis; */
/*   min-width: fit-content; */
/* } */
 */
/* ===== SLIDERS ===== */ */
/* .slider-wrapper { */
/*   padding: 10px 15px; */
/* } */
 */
/* .slider-range { */
/*   position: relative; */
/*   height: 6px; */
/*   background: #e0e0e0; */
/*   border-radius: 3px; */
/*   margin: 10px 0; */
/*   cursor: pointer; */
/* } */
 */
/* .slider-track { */
/*   height: 4px; */
/*   background: var(--primary-color); */
/*   border-radius: 2px; */
/*   position: absolute; */
/*   pointer-events: none; */
/* } */
 */
/* .slider-thumb { */
/*   width: 20px; */
/*   height: 20px; */
/*   background: var(--primary-color); */
/*   border: 2px solid white; */
/*   border-radius: 50%; */
/*   position: absolute; */
/*   top: -6px; */
/*   margin-left: -8px; */
/*   cursor: pointer; */
/*   box-shadow: var(--shadow-sm); */
/*   transition: transform 0.2s ease; */
/*   z-index: 1000; */
/*   user-select: none; */
/*   touch-action: none; */
/* } */
 */
/* .slider-thumb:hover { */
/*   transform: scale(1.1); */
/* } */
 */
/* .slider-values { */
/*   display: flex; */
/*   justify-content: space-between; */
/*   margin-top: 15px; */
/*   padding: 0 5px; */
/*   font-size: 15px; */
/*   color: var(--text-muted); */
/*   font-family: var(--font-family); */
/*   /* ✅ OTIMIZADO: Melhor espaçamento entre os valores */ */
/*   gap: 10px; */
/* } */
 */
/* ===== BOTÃO BUSCAR (FORA DO MENU) ===== */ */
/* .btn-buscar { */
/*   background: var(--primary-color) !important; */
/*   border: 2px solid var(--primary-color) !important; */
/*   border-radius: 25px; */
/*   padding: 8px 40px; */
/*   font-size: 15px; */
/*   color: white !important; */
/*   font-weight: 600; */
/*   cursor: pointer; */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: center; */
/*   gap: 8px; */
/*   transition: all 0.3s ease; */
/*   height: 40px; */
/*   min-height: 40px; */
/*   white-space: nowrap; */
/*   box-shadow: 0 4px 12px rgba(244, 111, 9, 0.3); */
/*   box-sizing: border-box; */
/*   font-family: var(--font-family); */
/*   outline: none; */
/*   margin: 20px auto 0 auto; */
/*   width: auto; */
/*   min-width: 120px; */
/*   max-width: 200px; */
/* } */
 */
/* .btn-buscar:hover { */
/*   background: var(--primary-hover) !important; */
/*   border-color: var(--primary-hover) !important; */
/*   color: white !important; */
/*   transform: translateY(-2px); */
/*   box-shadow: 0 6px 20px rgba(244, 111, 9, 0.4); */
/* } */
 */
/* .btn-buscar:active { */
/*   transform: translateY(0); */
/*   box-shadow: 0 2px 8px rgba(244, 111, 9, 0.3); */
/* } */
 */
/* ===== BOTÃO BUSCAR (ESTILO PARAMETRIZADO) ===== */
/* Reset específico para garantir aplicação dos estilos */
/* ===== BOTÃO BUSCAR - MÁXIMA PRIORIDADE ===== */
button.btn-buscar,
#buscarBtn,
.btn-buscar {
  /* Reset seletivo - preserva aparência básica */
  margin: 0 !important;
  padding: 0 30px !important;
  border: none !important;
  background: none !important;
  font: inherit !important;
  
  /* Centralização horizontal simples */
  display: block !important;
  margin: 30px auto !important;
  width: 180px !important; /* Largura fixa para melhor aparência */
  
  /* Dimensões e formato com bordas arredondadas */
  height: 50px !important;
  line-height: 50px !important;
  border-radius: 25px !important; /* Bordas bem arredondadas */
  
  /* Cor laranja vibrante do Buske.ai - FORÇA MÁXIMA */
  background-color: #f18719 !important;
  background-image: none !important;
  border: 2px solid #f18719 !important;
  color: white !important;
  
  /* Tipografia aprimorada */
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
  
  /* Sombra e profundidade */
  box-shadow: 0 4px 15px rgba(241, 135, 25, 0.35) !important;
  
  /* Interatividade e transições */
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  
  /* Garantir posição adequada */
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
  
  /* Fonte consistente */
  font-family: var(--font-family) !important;
  
  /* Desabilitar seleção de texto */
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  
  /* Garantir visibilidade */
  opacity: 1 !important;
  visibility: visible !important;
}

button.btn-buscar:hover,
#buscarBtn:hover,
.btn-buscar:hover {
  /* Efeito hover elegante */
  background: #e67a17 !important; /* Tom mais escuro de laranja */
  border-color: #e67a17 !important;
  transform: translateY(-3px) scale(1.05) !important; /* Elevar e aumentar levemente */
  box-shadow: 0 8px 25px rgba(241, 135, 25, 0.45) !important; /* Sombra mais pronunciada */
  cursor: pointer !important;
}

button.btn-buscar:active,
#buscarBtn:active,
.btn-buscar:active {
  /* Efeito de clique */
  background: #d47216 !important; /* Tom ainda mais escuro */
  border-color: #d47216 !important;
  transform: translateY(-1px) scale(0.98) !important; /* Afundar levemente */
  box-shadow: 0 2px 10px rgba(241, 135, 25, 0.3) !important;
}

/* ===== SUGESTÕES DE BUSCA ===== */
/* search-suggestions controlado por search-box-modular.css */

/* searchSuggestions controlado por search-box-modular.css */

/* search-suggestions show controlado por search-box-modular.css */

/* suggestion-item controlado por search-box-modular.css */

/* suggestion-item hover controlado por search-box-modular.css */

/* suggestion-item:last-child controlado por search-box-modular.css */

/* ===== FOOTER (LEGADO) ===== */
footer:not(.footer-v2) {
  background-color: #f18719 !important;
  color: var(--bg-white) !important;
  text-align: center !important;
  padding: 10px !important;
  margin-top: auto !important;
  font-size: var(--font-size-sm) !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  max-width: none !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  font-family: var(--font-family);
}

footer:not(.footer-v2) p {
  margin: 0;
  font-weight: 400;
}

footer:not(.footer-v2) .footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
  transition: color 0.2s;
}

footer:not(.footer-v2) .footer-links a:hover {
  text-decoration: underline;
}

footer:not(.footer-v2) .footer-copy {
  color: #fff;
  font-size: 14px;
}

/* ===== MODAL DE ERRO LANDING ===== */
.mensagem-erro-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.mensagem-erro-conteudo {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 14px;
  color: #333;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  font-family: var(--font-family);
}

/* Animações em search-box-modular.css */

/* ===== PULSAÇÃO SUTIL QUANDO DESTACADO ===== */
@keyframes subtle-pulse {
  0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(33, 150, 243, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
}

/* error-highlight controlado por search-box-modular.css */

/* ===== MODAIS ===== */
.modal-bg {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
}

.modal-bg.modal-open {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: rgba(0,0,0,0.45) !important;
}

.modal-bg.modal-open .modal-content {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 999999 !important;
  margin: 0 !important;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  max-width: 700px;
  width: 95vw;
  min-height: 320px;
  position: relative;
  text-align: left;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
}

.close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 14px;
  color: #aaa;
  cursor: pointer;
  font-weight: bold;
}

.close:hover {
  color: var(--primary-color);
}

.modal-tabs {
  display: flex;
  gap: 0px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e2e2e2;
  overflow-x: auto;
}

.tab-btn {
  border: none;
  background: none;
  font-size: 14px;
  padding: 8px 10px 8px 10px;
  cursor: pointer;
  color: #444;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: border-color 0.18s, color 0.18s;
  outline: none;
  white-space: nowrap;
  font-family: var(--font-family);
}

.tab-btn.active, .tab-btn:focus {
  border-bottom: 3px solid var(--primary-color);
  color: var(--primary-color);
  background: #f7f7f7;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
  font-family: var(--font-family);
}

.modal-content p {
  color: #222;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  font-family: var(--font-family);
}

.fechar-modal-btn {
  background: #f5f5f5;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 6px 24px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  align-self: flex-end;
  font-family: var(--font-family);
  outline: none;
}

.fechar-modal-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ===== CONTAINER DA CAIXA DE BUSCA - MESMA LARGURA DO MENU ===== */
.search-box-container {
  width: 100%; /* Largura total do container pai */
  max-width: 100%; /* Sem limite adicional */
  margin: 0; /* Sem margens laterais */
  margin-top: 0 !important; /* ✅ FORÇADO: Garantir zero margin superior */
  padding: 0; /* Sem padding adicional */
  padding-top: 0 !important; /* ✅ FORÇADO: Garantir zero padding superior */
  box-sizing: border-box;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .container-conteudo {
    padding: 40px 15px;
  }

  .logo-buske {
    width: 50%;
    max-width: 150px;
  }

  /* search-input controlado por search-box-modular.css */

  .btn-buscar {
    padding: 8px 20px;
    font-size: 14px;
    height: 40px !important;
  }

  .linha-filtros {
    flex-wrap: wrap;
  }

  .login-link-container {
    margin-top: 10px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .container-conteudo {
    padding: 40px 8px;
  }

  /* search-input controlado por search-box-modular.css */

  .btn-buscar {
    padding: 6px 16px;
    font-size: 13px;
    height: 36px !important;
    min-width: 80px;
  }
}

/* ===== UTILITÁRIOS ===== */
.linha-toggle,
.linha-filtros,
.linha-buscar {
  display: contents;
}

/* locationSearch controlado por search-box-modular.css */

/* suggestion-item font controlado por search-box-modular.css */

/* ===== DROPDOWN COM TAGS COMPLETAS - IDÊNTICO AO HEADER ===== */

/* ===== GRUPOS DE SUGESTÕES ===== */
.suggestion-group-header {
  display: none !important; /* ✅ OCULTAR: Remover cabeçalho "Selecionados" */
}

.suggestion-group-header:not(:first-child) {
  border-top: 1px solid #e9ecef;
}

/* ===== SEÇÃO SELECIONADOS NO DROPDOWN ===== */
.selected-tags-section {
  padding: 8px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.selected-tag-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: fit-content;
  margin: 2px;
  line-height: 1.2;
  box-sizing: border-box;
}

.selected-tag-item:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.selected-tag-text {
  color: #f46f09;
  margin-right: 5px;
}

.selected-tag-remove {
  width: 14px;
  height: 14px;
  background: #f46f09;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  font-weight: bold;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 2px;
  border: none;
}

.selected-tag-remove:hover {
  background: #c82333;
  transform: scale(1.1);
}

.clear-all-item {
  display: inline-flex;
  padding: 8px 10px;
  margin: 2px;
  background: #f46f09;
  color: white;
  border-radius: 30px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.clear-all-item:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.suggestion-separator {
  height: 1px;
  background: #e9ecef;
  margin: 0;
}

/* ===== CORREÇÃO FINAL DO Z-INDEX PARA LOCALIDADE ===== */
/* search-suggestions base controlado por search-box-modular.css */

/* search-suggestions active controlado por search-box-modular.css */

/* Android específico controlado por search-box-modular.css */

/* iOS específico controlado por search-box-modular.css */

/* search-suggestions.show controlado por search-box-modular.css */

/* ===== RESPONSIVIDADE PARA TAGS ===== */
@media (max-width: 480px) {
  .selected-tag-item {
    font-size: 13px;
    padding: 8px 6px;
    line-height: 1.2;
  }
  
  .selected-tag-remove {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
  
  .selected-tags-section {
    gap: 4px;
    padding: 8px;
  }
}

/* iOS/Safari correções controladas por search-box-modular.css */

/* ===== REGRA DE EMERGÊNCIA PARA BOTÃO BUSCAR ===== */
/* Aplicada após todas as outras regras para garantir máxima prioridade */
body .container-conteudo .filtros-container button#buscarBtn,
body .container-conteudo .filtros-container button.btn-buscar {
  /* Removido all: inherit para manter estilos base */
  
  /* Aplicar estilos com força máxima */
  display: block !important;
  width: 100px !important;
  height: 40px !important;
  padding: 0 !important;
  
  /* Centralização horizontal */
  margin: auto;
  
  /* Visual */
  background-color: #f18719 !important;
  background-image: none !important;
  border: 2px solid #f18719 !important;
  border-radius: 25px !important;
  color: #ffffff !important;
  
  /* Texto - sem transição para evitar flash */
  font-family: var(--font-family) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-align: center !important;
  line-height: normal !important;
  
  /* Efeitos - apenas para hover, não para fonte */
  box-shadow: 0 4px 15px rgba(241, 135, 25, 0.35) !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
  
  /* Garantir visibilidade */
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1 !important; /* Z-index muito baixo para ficar atrás do dropdown */
}

/* Hover com seletor específico */
body .container-conteudo .filtros-container button#buscarBtn:hover,
body .container-conteudo .filtros-container button.btn-buscar:hover {
  background-color: #e67a17 !important;
  border-color: #e67a17 !important;
  color: #ffffff !important; /* Letra branca no hover */
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(241, 135, 25, 0.45) !important;
}

/* Active com seletor específico */
body .container-conteudo .filtros-container button#buscarBtn:active,
body .container-conteudo .filtros-container button.btn-buscar:active {
  background-color: #d47216 !important;
  border-color: #d47216 !important;
  color: #ffffff !important; /* Letra branca quando clicado */
  transform: translateY(-1px) scale(0.98) !important;
  box-shadow: 0 2px 10px rgba(241, 135, 25, 0.3) !important;
}

/* Focus com seletor específico */
body .container-conteudo .filtros-container button#buscarBtn:focus,
body .container-conteudo .filtros-container button.btn-buscar:focus {
  color: #ffffff !important; /* Letra branca quando em foco */
  outline: none !important;
}

/* ===== TOGGLE DE MODO DE BUSCA ===== */
.search-mode-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  max-width: 600px;
  /* ✅ SIMPLIFICADO: z-index baixo para não interferir */
  pointer-events: auto !important;
  z-index: 1 !important;
  position: relative !important;
}

/* Estado desabilitado - quando funcionalidade não está disponível */
.search-mode-toggle-container.toggle-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-disabled .search-mode-toggle {
  pointer-events: none;
  cursor: not-allowed;
}

.toggle-disabled .search-toggle-switch {
  pointer-events: none;
  cursor: not-allowed;
}

.toggle-disabled .toggle-label {
  color: #999;
}

.toggle-disabled .search-toggle-slider {
  background-color: #ddd;
  cursor: not-allowed;
}

.search-mode-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  /* ✅ FORÇAR interatividade */
  pointer-events: auto !important;
  cursor: pointer !important;
}

.search-mode-toggle:hover {
  box-shadow: 0 4px 15px rgba(241, 135, 25, 0.15);
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: color 0.3s ease;
  user-select: none;
}

.toggle-label-online {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #f18719 0%, #ff9a3d 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(241, 135, 25, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

/* Badge "EM BREVE" para funcionalidades em desenvolvimento */
.badge-coming-soon {
  display: inline-block;
  background: linear-gradient(135deg, #f18719 0%, #ff9a3d 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(241, 135, 25, 0.3);
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 5px rgba(241, 135, 25, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(241, 135, 25, 0.4);
  }
}

.search-toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
  /* ✅ SIMPLIFICADO: interatividade garantida sem z-index alto */
  pointer-events: auto !important;
}

.search-toggle-switch input {
  /* ✅ CRÍTICO: Input precisa ter tamanho para ser clicável */
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
  /* ✅ CORREÇÃO: Permitir interação nativa do checkbox */
  pointer-events: auto !important;
  z-index: 2; /* Acima do slider para receber cliques */
}

.search-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 28px;
  transition: all 0.3s ease;
  /* ✅ CRÍTICO: pointer-events none para deixar cliques passarem para o input */
  pointer-events: none !important;
}

/* ✅ NOVO: Hover visual para mostrar que é clicável */
.search-toggle-switch:hover .search-toggle-slider {
  background-color: #b8b8b8;
  transform: scale(1.02);
}

.search-toggle-slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  /* ✅ CRÍTICO: Herdar pointer-events none do pai */
  pointer-events: none;
}

/* ✅ NOVO: Hover no círculo branco do toggle */
.search-toggle-switch:hover .search-toggle-slider:before {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.search-toggle-switch input:checked + .search-toggle-slider {
  background: linear-gradient(135deg, #f18719 0%, #ff9a3d 100%);
  box-shadow: 0 0 10px rgba(241, 135, 25, 0.3);
}

/* ✅ NOVO: Hover no estado ativo (laranja) */
.search-toggle-switch:hover input:checked + .search-toggle-slider {
  background: linear-gradient(135deg, #e67a17 0%, #ff8c2d 100%);
  box-shadow: 0 0 15px rgba(241, 135, 25, 0.5);
  transform: scale(1.02);
}

.search-toggle-switch input:checked + .search-toggle-slider:before {
  transform: translateX(24px);
}

.search-toggle-switch input:checked ~ .toggle-label-online {
  color: #f18719;
  font-weight: 600;
}

.search-mode-description {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.mode-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.mode-text {
  line-height: 1.4;
}

/* Estado quando online mode está ativo */
.search-mode-toggle-container[data-mode="online"] .search-mode-description {
  background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
  border: 1px solid #ffd9b8;
}

.search-mode-toggle-container[data-mode="online"] .mode-icon {
  transform: scale(1.1);
}

.search-mode-toggle-container[data-mode="online"] .mode-text {
  color: #d47216;
  font-weight: 500;
}

/* Responsividade do toggle */
@media (max-width: 768px) {
  .search-mode-toggle {
    padding: 8px 16px;
    gap: 10px;
  }

  .toggle-label {
    font-size: 13px;
  }

  .search-toggle-switch {
    width: 48px;
    height: 26px;
  }

  .search-toggle-slider:before {
    height: 20px;
    width: 20px;
  }

  .search-toggle-switch input:checked + .search-toggle-slider:before {
    transform: translateX(22px);
  }

  .search-mode-description {
    font-size: 12px;
    padding: 6px 12px;
  }

  .badge-new {
    font-size: 9px;
    padding: 2px 5px;
  }
}

@media (max-width: 480px) {
  .search-mode-toggle-container {
    margin: 15px auto;
  }

  .search-mode-toggle {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 12px;
  }

  .toggle-label {
    font-size: 12px;
  }

  .search-mode-description {
    text-align: center;
  }
}

/* ===== LINK DE LOGIN ===== */
.login-link-container {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.login-text {
  color: #666;
  margin-right: 4px;
}

.login-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.login-link:hover,
.login-link:focus {
  text-decoration: underline;
  color: #0056b3;
}

/* Menu horizontal no landing - controlado por floating-widget.css */
/* Removido daqui para evitar conflitos de CSS */

/* ===== ANIMAÇÕES DE FADE-IN ===== */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeInDown {
  from { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Classe para elementos ocultos inicialmente */
.fade-element {
  opacity: 0;
  visibility: hidden;
  /* ✅ CORREÇÃO: Garantir que animações não bloqueiem interação */
  pointer-events: auto !important;
}

/* Classe para aplicar fade-in */
.fade-in {
  animation: fadeIn 0.24s ease-out forwards; /* reduzido ~60% */
  visibility: visible !important;
}

/* Fade-in progressivo com diferentes delays */
.fade-in-1 { animation-delay: 0.04s; }
.fade-in-2 { animation-delay: 0.08s; }
.fade-in-3 { animation-delay: 0.16s; }
.fade-in-4 { animation-delay: 0.24s; }

/* ===== SKELETON LOADER ===== */
.search-skeleton {
  height: 50px;
  background: linear-gradient(
    90deg, 
    #f0f0f0 25%, 
    #e0e0e0 50%, 
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 25px;
  margin: 20px auto;
  max-width: 700px;
  width: 100%;
  transition: opacity 0.12s ease-out; /* reduzido */
}

@keyframes loading {
  0% { 
    background-position: 200% 0; 
  }
  100% { 
    background-position: -200% 0; 
  }
}

/* Estado para esconder skeleton suavemente */
.search-skeleton.hiding {
  opacity: 0;
  transition: opacity 0.12s ease-out; /* reduzido */
}

/* ===== OVERLAY INICIAL ===== */
.page-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 99999;
  transition: opacity 0.16s ease-out; /* reduzido */
  /* ✅ CRÍTICO: pointer-events none para não bloquear cliques após fade */
  pointer-events: none !important;
  opacity: 1;
}

.page-loading-overlay.loaded {
  opacity: 0;
}

/* ===== ANIMAÇÃO PARA SEARCH BOX ===== */
.search-box-container.fade-in-search {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Container do search box quando aparece */
.search-input-wrapper {
  transition: opacity 0.3s ease-out;
}

/* ===== RESPONSIVIDADE DAS ANIMAÇÕES ===== */
@media (max-width: 768px) {
  .search-skeleton {
    height: 45px;
    margin: 15px auto;
  }
  
  /* Animações mais rápidas em mobile */
  .fade-in {
    animation-duration: 0.4s;
  }
  
  .fade-in-1 { animation-delay: 0.05s; }
  .fade-in-2 { animation-delay: 0.1s; }
  .fade-in-3 { animation-delay: 0.2s; }
  .fade-in-4 { animation-delay: 0.3s; }
  .fade-in-5 { animation-delay: 0.4s; }
  .fade-in-6 { animation-delay: 0.5s; }
}

/* ========================================== */
/* ===== CARROSSEL DE DESTAQUES ===== */
/* ========================================== */

.secao-destaques {
  width: 100%;
  max-width: 1260px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
  /* ✅ FORÇAR VISIBILIDADE COMPLETA - Override de .fade-element */
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  /* opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; */
}

/* ✅ GARANTIR que .fade-element não esconda o carrossel */
.secao-destaques.fade-element {
  visibility: visible !important;
}

.secao-destaques.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Header da seção */
.destaques-header {
  text-align: center;
  margin-bottom: 30px;
}

.destaques-titulo {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.destaque-icon {
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

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

.destaques-subtitulo {
  font-family: var(--font-family);
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Container do carrossel */
.carrossel-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

/* Wrapper com scroll - comportamento idêntico ao grid principal */
.carrossel-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.carrossel-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ✅ GRID HORIZONTAL - Idêntico ao grid do index.html, mas em 1 linha */
.carrossel-track {
  /* ✅ MESMO display do #listaAnuncios */
  display: grid;

  /* ✅ MESMO gap do #listaAnuncios */
  gap: 10px;

  /* ✅ MESMO padding do #listaAnuncios */
  padding: var(--spacing-xl) 15px;

  /* ✅ Garantir alinhamento vertical */
  align-items: stretch;

  /* ✅ Box-sizing como #listaAnuncios */
  box-sizing: border-box;
}

.grid-anuncios--horizontal {
  /* ✅ TRANSFORMAR multi-linha em single-linha horizontal */
  grid-auto-flow: column;

  /* ✅ MESMA largura mínima/máxima dos cards do index.html */
  grid-auto-columns: minmax(380px, 1fr);

  /* ✅ Impedir grid-template padrão do index para manter uma única linha */
  grid-template-columns: unset;

  /* ✅ Permitir que o grid se expanda na horizontal para gerar o scroll */
  width: max-content;
  min-width: 100%;
  max-width: none;

  /* ✅ Sem margens automáticas - grid ocupa toda a largura disponível do wrapper */
  margin: 0;
}

/* ✅ Cards do carrossel - ZERO estilos adicionais, usar 100% do cards.css */
.carrossel-track .anuncio-card {
  /* ✅ Apenas scroll snap para navegação suave */
  scroll-snap-align: start;

  /* ✅ IMPORTANTE: Não definir width, height, flex - deixar o grid controlar */
}

/* ✅ FORÇAR visibilidade imediata dos cards no carrossel de destaques */
.carrossel-track .anuncio-card,
#carrosselDestaques .anuncio-card {
  /* Sobrescrever animações de scroll reveal do cards.css */
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;

  /* Garantir que transições não afetem a renderização inicial */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease !important;
}

/* Manter apenas o hover funcional */
.carrossel-track .anuncio-card:hover,
#carrosselDestaques .anuncio-card:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(241, 135, 25, 0.3) !important;
  border: 1px solid #f18719 !important;
  z-index: 2;
}

/* Botões de navegação (desktop) */
.carrossel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  color: #333;
}

.carrossel-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(241, 135, 25, 0.3);
}

.carrossel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carrossel-btn-prev {
  left: -24px;
}

.carrossel-btn-next {
  right: -24px;
}

.carrossel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Indicadores de página */
.carrossel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.carrossel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carrossel-indicator:hover {
  background: #999;
  transform: scale(1.2);
}

.carrossel-indicator.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 5px;
}

/* ===== RESPONSIVIDADE DO CARROSSEL ===== */

/* Desktop grande (mesma lógica do #listaAnuncios) */
@media (min-width: 1300px) {
  .grid-anuncios--horizontal {
    /* ✅ Cards com largura fixa em telas grandes */
    grid-auto-columns: 380px;
  }
}

/* Tablet */
@media (max-width: 1199px) {
  .grid-anuncios--horizontal {
    /* ✅ Largura mínima menor para tablet */
    grid-auto-columns: minmax(340px, 1fr);
  }

  .carrossel-btn-prev {
    left: -20px;
  }

  .carrossel-btn-next {
    right: -20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .secao-destaques {
    margin: 40px auto 30px auto;
    padding: 0 16px;
  }

  .destaques-titulo {
    font-size: 14px;
  }

  .destaque-icon {
    font-size: 14px;
  }

  .destaques-subtitulo {
    font-size: 14px;
  }

  .grid-anuncios--horizontal {
    /* ✅ Mobile: Cards ocupam quase toda a largura */
    grid-auto-columns: minmax(300px, 1fr);
    gap: 10px;
    padding: var(--spacing-xl) 10px;
  }

  /* Esconder botões no mobile - apenas swipe */
  .carrossel-btn {
    display: none;
  }

  .carrossel-indicators {
    gap: 6px;
  }

  .carrossel-indicator {
    width: 8px;
    height: 8px;
  }

  .carrossel-indicator.active {
    width: 20px;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .secao-destaques {
    padding: 0 12px;
  }

  .destaques-titulo {
    font-size: 14px;
  }

  .grid-anuncios--horizontal {
    /* ✅ Mobile pequeno: Cards ainda menores */
    grid-auto-columns: minmax(280px, 1fr);
  }
}

/* Desabilitar animações para usuários com preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .secao-destaques,
  .destaque-icon,
  .carrossel-btn,
  .carrossel-indicator {
    animation: none !important;
    transition: none !important;
  }

  .secao-destaques {
    opacity: 1;
    transform: none;
  }
}

/* ===== SPINNER PARA BUSCA ONLINE ===== */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Estado de loading do botão buscar */
.btn-buscar:disabled {
  cursor: wait !important;
  opacity: 0.7 !important;
}
