/* UnyEventos — Home Tools V1
   Escopo: somente recursos "Todos os lugares" + "Ajuda" na Home.
   Não altera menus globais. */

.uny-home-places-trigger{
  height:50px!important;min-width:190px!important;width:190px!important;padding:0 16px!important;
  border:1px solid #e3e8f1!important;border-radius:12px!important;background:#fff!important;color:#17233e!important;
  display:flex!important;align-items:center!important;gap:10px!important;justify-content:flex-start!important;
  font:700 12px/1.2 inherit!important;cursor:pointer!important;box-shadow:0 4px 14px rgba(10,13,18,.08)!important;
  flex:0 0 190px!important
}
.uny-home-places-trigger>i:first-child{color:#f42d7d}
.uny-home-places-trigger__arrow{font-size:9px;color:#8490a4;margin-left:2px}

/* HOME mobile: substitui só o seletor de categorias do topo */
.uny-home-places-trigger--header{
  border:0!important;background:transparent!important;box-shadow:none!important;
  cursor:pointer;color:inherit;font:inherit
}
.uny-home-places-trigger--header .uny-mobile-header-category__label{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}

/* Modal lugares */
.uny-home-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:18px}
.uny-home-modal.is-open{display:flex}
.uny-home-modal__backdrop{position:absolute;inset:0;background:rgba(5,12,35,.55);backdrop-filter:blur(3px)}
.uny-home-modal__dialog{
  position:relative;z-index:1;width:min(520px,100%);max-height:min(720px,90vh);overflow:hidden;
  border-radius:22px;background:#fff;box-shadow:0 25px 70px rgba(8,18,45,.28)
}
.uny-home-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 22px 14px}
.uny-home-modal__eyebrow{display:block;color:#f42d7d;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.uny-home-modal__header h3{margin:4px 0 0;color:#111827;font-size:21px;font-weight:900;line-height:1.2}
.uny-home-modal__close{width:36px;height:36px;border:0;border-radius:50%;background:#f3f5f9;color:#536078;cursor:pointer}
.uny-home-modal__search{
  margin:0 22px 12px;height:46px;border:1px solid #e3e8f1;border-radius:13px;background:#f8fafc;
  display:flex;align-items:center;gap:10px;padding:0 13px
}
.uny-home-modal__search i{color:#7c879b}
.uny-home-modal__search input{width:100%;border:0!important;outline:0!important;background:transparent!important;font-size:13px;color:#17233e}
.uny-home-places-list{max-height:430px;overflow:auto;padding:0 12px 16px;margin:0 10px}
.uny-home-place{
  min-height:62px;padding:10px 12px;border-radius:14px;display:flex;align-items:center;gap:11px;
  color:#162039!important;border:1px solid transparent;transition:.18s ease
}
.uny-home-place:hover{background:#f7f9fc;border-color:#e8edf5}
.uny-home-place--all{margin:0 22px 8px;background:#fff4fa;border:1px solid #ffd5e9}
.uny-home-place__icon{width:38px;height:38px;border-radius:12px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;flex:0 0 38px}
.uny-home-place--all .uny-home-place__icon{background:#ffe3f1;color:#f42d7d}
.uny-home-place>span:nth-child(2){min-width:0;flex:1}
.uny-home-place strong{display:block;font-size:13px;font-weight:850;color:#17233e}
.uny-home-place small{display:block;margin-top:2px;color:#8994a7;font-size:10px}
.uny-home-place>.fa-chevron-right{font-size:9px;color:#a3adbd}
.uny-home-places-empty{padding:20px;text-align:center;color:#8994a7;font-size:12px}
body.uny-home-modal-open{overflow:hidden}

/* Ajuda flutuante — referência: cabeçalho azul + 2 botões lado a lado */
.uny-home-help{
  position:fixed;right:20px;bottom:22px;z-index:9995;
  display:flex;flex-direction:column;align-items:flex-end;gap:10px
}
.uny-home-help__button{
  height:48px;padding:0 17px;border:0;border-radius:999px;background: linear-gradient(135deg, #982ae8 0%, #4f0a85 62%, #17022b 100%);color:#fff;
  display:flex;align-items:center;gap:8px;font:800 12px/1 inherit;cursor:pointer;box-shadow: 0 12px 28px rgb(189 153 216)
}
.uny-home-help__button i{font-size:18px;color:#fff}
.uny-home-help__panel{
  width:286px;border-radius:10px 10px 0 0;background:#fff;overflow:hidden;
  box-shadow:0 20px 55px rgba(12,25,60,.24);
  opacity:0;visibility:hidden;transform:translateY(8px) scale(.98);
  transition:.18s ease;transform-origin:bottom right
}
.uny-home-help__panel.is-open{opacity:1;visibility:visible;transform:none}

.uny-home-help__hero{
  position:relative;height:106px;padding:26px 20px 16px;
  background:linear-gradient(135deg,#5d049f 0%, #40096b 62%, #16012b 100%);
  overflow:hidden
}
.uny-home-help__close{
  position:absolute;right:10px;top:9px;width:28px;height:28px;border:0;background:transparent;
  color:#fff;font-size:17px;cursor:pointer;z-index:3
}
.uny-home-help__hero-copy{position:relative;z-index:2;color:#fff}
.uny-home-help__hero-copy span{display:block;font-size:14px;font-weight:400;line-height:1.05}
.uny-home-help__hero-copy strong{display:block;font-size:34px;font-weight:300;line-height:.95;letter-spacing:-1px}

.uny-home-help__art{position:absolute;right:10px;bottom:8px;width:116px;height:78px}
.uny-home-help__art-dot{
  position:absolute;left:16px;top:0;width:18px;height:18px;border-radius:50%;background:#ff28e7;opacity:.7
}
.uny-home-help__art-ticket{
  position:absolute;bottom:12px;width:36px;height:28px;border-radius:4px;
  display:grid;place-items:center;font-size:19px;background:#7fe36e;color:#0877ae;
  box-shadow:0 4px 0 rgba(0,0,0,.06)
}
.uny-home-help__art-ticket--one{right:42px;transform:rotate(6deg)}
.uny-home-help__art-ticket--two{right:8px;transform:rotate(-5deg)}
.uny-home-help__art-line{
  position:absolute;right:3px;bottom:2px;width:89px;height:28px;border-bottom:6px solid #62d7eb;
  border-right:6px solid #62d7eb;border-radius:0 0 40px 0;transform:rotate(5deg)
}

.uny-home-help__actions{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:20px;background:#fff
}
.uny-home-help__choice{
  height:36px;border:1px solid #4a0083;border-radius:5px;color:#4a0083!important;background:#fff;
  display:flex;align-items:center;justify-content:center;text-align:center;
  font-size:9px;font-weight:900;letter-spacing:.02em;transition:.18s ease
}
.uny-home-help__choice:hover{background: linear-gradient(135deg, #982ae8 0%, #4f0a85 62%, #17022b 100%);color:#fff!important}

/* Mobile */
@media(max-width:767px){
  .uny-home-places-trigger--inline{display:none!important}
  .uny-home-places-trigger--header{
    display:flex!important;align-items:center!important;gap:10px!important;
    width:auto!important;min-width:0!important;height:auto!important;padding:0!important;
    flex:1 1 auto!important
  }
  .uny-home-places-trigger--header .uny-mobile-header-category__label{
    display:block!important;color:#fff!important;font-weight:800!important;font-size:13px!important;
    white-space:nowrap!important
  }
  .uny-home-modal{padding:0;align-items:flex-end}
  .uny-home-modal__dialog{width:100%;max-height:86vh;border-radius:22px 22px 0 0}
  .uny-home-modal__header{padding:20px 18px 12px}
  .uny-home-modal__header h3{font-size:18px}
  .uny-home-modal__search{margin:0 18px 10px}
  .uny-home-place--all{margin:0 18px 6px}
  .uny-home-places-list{max-height:55vh}
  .uny-home-help{right:12px;bottom:82px}
  .uny-home-help__panel{width:min(286px,calc(100vw - 24px))}
  .uny-home-help__button{height:44px;padding:0 14px}
}

@media(min-width:768px){
  .search1-wrapper1{align-items:center!important}
  .search1-box1{flex:1 1 auto!important;max-width:none!important}
  .uny-home-places-trigger--inline{margin-left:auto!important}
}


/* ==========================================================
   V1.3 — CORREÇÃO FINAL "TODOS OS LUGARES"
   Desktop alinhado + mobile público (logado e deslogado)
========================================================== */

/* DESKTOP: busca e localização ficam em uma única linha, centralizadas e estáveis */
@media (min-width: 768px) {
  .hero-content .event-search .search1-wrapper1 {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:14px!important;
    width:min(940px, 100%)!important;
    max-width:940px!important;
    margin:0 auto!important;
    padding:10px 0!important;
  }

  .hero-content .event-search .search1-box1 {
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    padding:0 16px!important;
    border-radius:12px!important;
  }

  .hero-content .event-search .uny-home-places-trigger--inline {
    display:flex!important;
    flex:0 0 190px!important;
    width:190px!important;
    min-width:190px!important;
    max-width:190px!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    padding:0 15px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    border-radius:12px!important;
    line-height:1!important;
  }

  .hero-content .event-search .uny-home-places-trigger--inline > span {
    display:block!important;
    flex:1 1 auto!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:left!important;
    line-height:1!important;
    margin:0!important;
  }

  .hero-content .event-search .uny-home-places-trigger--inline > i {
    flex:0 0 auto!important;
    margin:0!important;
    line-height:1!important;
  }
}

/* MOBILE DESLOGADO: o controle do header continua aparecendo na Home */
@media (max-width: 991.98px) {
  body .main-header:not(.uny-v114-customer-logged) .uny-home-places-trigger--header {
    display:flex!important;
  }
}

/* MOBILE LOGADO: o header legado é escondido pelo projeto.
   Por isso o mesmo recurso é colocado na appbar do cliente. */
.uny-v11-appbar-place {
  display:none;
}

@media (max-width: 991.98px) {
  .uny-v11-appbar .uny-v11-appbar-place {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    min-width:0!important;
    max-width:180px!important;
    height:38px!important;
    padding:0 11px!important;
    margin:0 auto!important;
    border:1px solid rgba(255,255,255,.36)!important;
    border-radius:10px!important;
    background:rgba(255,255,255,.14)!important;
    color:#fff!important;
    box-shadow:none!important;
    font-size:11px!important;
    font-weight:800!important;
    cursor:pointer!important;
  }

  .uny-v11-appbar .uny-v11-appbar-place span {
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    line-height:1!important;
  }

  .uny-v11-appbar .uny-v11-appbar-place i {
    flex:0 0 auto!important;
    margin:0!important;
    color:#fff!important;
    font-size:12px!important;
  }

  /* Evita o botão duplicado embaixo da busca no mobile */
  .hero-content .event-search .uny-home-places-trigger--inline {
    display:none!important;
  }
}


/* ==========================================================
   V1.4 — AJUDA: painel sobe por trás do botão fixo
   Referência do vídeo enviado pelo usuário.
========================================================== */
.uny-home-help{
  position:fixed!important;
  right:20px!important;
  bottom:22px!important;
  z-index:9995!important;
  width:286px!important;
  height:48px!important;
  display:block!important;
  pointer-events:none!important;
}

/* Botão fica SEMPRE fixo no rodapé e na frente do painel */
.uny-home-help__button{
  position:absolute!important;
  right:0!important;
  bottom:0!important;
  z-index:3!important;
  pointer-events:auto!important;
  margin:0!important;
}

/* Painel nasce atrás do botão e desliza para cima */
.uny-home-help__panel{
  position:absolute!important;
  right:0!important;
  bottom:-50px!important;
  z-index:4!important;
  width:286px!important;
  margin:0!important;
  opacity:1!important;
  visibility:hidden!important;
  transform:translateY(calc(100% + 18px))!important;
  transition:
    transform .34s cubic-bezier(.22,.82,.32,1),
    visibility 0s linear .34s!important;
  transform-origin:bottom right!important;
  pointer-events:auto!important;
}

/* Aberto: sobe e termina acima do botão, mantendo pequena sobreposição */
.uny-home-help__panel.is-open{
  visibility:visible!important;
  transform:translateY(-30px)!important;
  transition:
    transform .34s cubic-bezier(.22,.82,.32,1),
    visibility 0s linear 0s!important;
}

/* Garante que o conteúdo do painel não cubra visualmente o botão */
.uny-home-help__panel::after{
  content:"";
  display:block;
  height:22px;
}

/* Mobile: botão continua preso ao rodapé visual da Home */
@media (max-width:767px){
  .uny-home-help{
    right:12px!important;
    bottom:82px!important;
    width:min(286px,calc(100vw - 24px))!important;
    height:44px!important;
  }

  .uny-home-help__panel{
    width:100%!important;
    right:0!important;
    bottom:16px!important;
    transform:translateY(calc(100% + 16px))!important;
  }

  .uny-home-help__panel.is-open{
    transform:translateY(-28px)!important;
  }

  .uny-home-help__button{
    right:0!important;
    bottom:0!important;
  }
}


/* ==========================================================
   V1.5 — BUSCADOR COMPACTO NO HEADER FIXO (DESKTOP)
========================================================== */
.uny-home-header-search{display:none}

@media (min-width: 992px){
  .main-header.fixed-header .header-inner{
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
  }

  .main-header.fixed-header .logo-outer{
    flex:0 0 auto!important;
  }

  .main-header.fixed-header .uny-home-header-search{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    flex:0 1 285px!important;
    width:285px!important;
    height:40px!important;
    margin-left:10px!important;
    padding:0 13px!important;
    border:1px solid rgba(255,255,255,.28)!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:0 5px 16px rgba(5,16,51,.13)!important;
  }

  .main-header.fixed-header .uny-home-header-search i{
    color:#667085!important;
    font-size:13px!important;
    flex:0 0 auto!important;
  }

  .main-header.fixed-header .uny-home-header-search input{
    flex:1 1 auto!important;
    min-width:0!important;
    width:100%!important;
    height:38px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    color:#20283b!important;
    font-size:11px!important;
  }

  .main-header.fixed-header .uny-home-header-search input::placeholder{
    color:#7e8798!important;
  }

  .main-header.fixed-header .nav-outer{
    margin-left:auto!important;
    min-width:0!important;
  }
}

/* ==========================================================
   V1.5 — ITEM "USAR MINHA LOCALIZAÇÃO ATUAL"
========================================================== */
.uny-home-place--current{
  width:calc(100% - 44px);
  margin:0 22px 8px;
  border:0;
  border-radius:14px;
  background:#f7fbff;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.uny-home-place--current .uny-home-place__icon{
  background:#e8f5ff;
  color:#1497ed;
}

/* ==========================================================
   V1.5 — CONSENTIMENTO DE GEOLOCALIZAÇÃO
========================================================== */
.uny-geo-consent{
  position:fixed;
  inset:0;
  z-index:100050;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.uny-geo-consent.is-open{display:flex}
.uny-geo-consent__backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,15,38,.58);
  backdrop-filter:blur(3px);
}
.uny-geo-consent__dialog{
  position:relative;
  z-index:1;
  width:min(430px,100%);
  padding:30px 28px 24px;
  border-radius:20px;
  background:#fff;
  text-align:center;
  box-shadow:0 25px 75px rgba(5,16,51,.28);
}
.uny-geo-consent__close{
  position:absolute;
  right:12px;
  top:12px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:#f4f6f9;
  color:#5d687c;
  cursor:pointer;
}
.uny-geo-consent__icon{
  width:58px;
  height:58px;
  margin:0 auto 15px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#e8f5ff;
  color:#119cf3;
  font-size:24px;
}
.uny-geo-consent__dialog h3{
  margin:0 0 9px;
  color:#151b2c;
  font-size:22px;
  font-weight:900;
  line-height:1.2;
}
.uny-geo-consent__dialog p{
  margin:0 auto;
  max-width:340px;
  color:#6e788c;
  font-size:12px;
  line-height:1.55;
}
.uny-geo-consent__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:21px;
}
.uny-geo-consent__actions button{
  height:43px;
  border-radius:10px;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.uny-geo-consent__allow{
  border:1px solid #119cf3;
  background:#119cf3;
  color:#fff;
}
.uny-geo-consent__later{
  border:1px solid #dbe2ec;
  background:#fff;
  color:#4f5b70;
}
.uny-geo-consent__status{
  margin-top:14px;
  padding:9px 11px;
  border-radius:10px;
  background:#fff3f5;
  color:#b4233d;
  font-size:10px;
  line-height:1.4;
}

@media(max-width:767px){
  .uny-geo-consent{align-items:flex-end;padding:0}
  .uny-geo-consent__dialog{
    width:100%;
    border-radius:22px 22px 0 0;
    padding:28px 20px 24px;
  }
}
