/* Homenz Localizador - style.css */

/* Garantia anti-scroll lateral */
.hx-wrap, .hx-left, .hx-list, .hx-card, .hx-card-body { box-sizing: border-box; }
.hx-left { overflow-x: hidden; }
.hx-list { overflow-x: hidden; }

/* Layout geral - 50/50 no desktop */
.hx-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  font-family:Montserrat,sans-serif;
  align-items:start;
}

@media(max-width: 1024px){
  .hx-wrap{ grid-template-columns: 1fr; }
}

/* Colunas */
.hx-left{ min-width: 0; }

/* Mapa travado com margem superior (menu) */
.hx-right{ position: sticky; top: 100px; }
@media(max-width: 1024px){
  .hx-right{ position: relative; top: auto; }
}

/* Search */
.hx-search{
  background:#F4F7FF;
  border-radius:14px;
  padding:14px 14px;
  box-shadow:0 8px 18px rgba(0,0,0,.05);
  margin-bottom:12px;
}

.hx-title{ font-size:17px; font-weight:800; color:#01499B; margin-bottom:2px; }
.hx-subtitle{ font-size:12.5px; color:#3b3b3b; opacity:.9; margin-bottom:10px; }

.hx-inputs{ display:flex; gap:10px; }
.hx-inputs input{
  flex:1; padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(1,73,155,.15);
  outline:none; font-size:13px;
}
.hx-inputs button{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(1,73,155,.25);
  background:#fff;
  color:#01499B;
  font-weight:700;
  cursor:pointer;
}

/* LISTA: SEM SCROLL INTERNO */
.hx-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow: visible;
  max-height: none;
  padding-right: 0;
}

.hx-state{
  padding:12px 14px;
  border-radius:12px;
  background:#F4F7FF;
  color:#01499B;
  font-weight:800;
}

/* CARD compacto + FOTO 200x200 */
.hx-card{
  display:grid;
  grid-template-columns: 200px 1fr;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(15, 23, 42, .08);
  border:1px solid rgba(1,73,155,.08);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  max-width: 100%;
  background:#F4F7FF;
}

.hx-card:hover{
  transform: translateY(-1px);
  box-shadow:0 10px 22px rgba(15, 23, 42, .10);
}

@media(max-width: 640px){
  .hx-card{ grid-template-columns: 1fr; }
}

/* Media: 200x200 e 1:1 */
.hx-card-media{
  width:200px;
  height:200px;
  max-width:200px;
  max-height:200px;
  background: rgba(1,73,155,.06);
  position:relative;
  overflow:hidden;
}

@media(max-width: 640px){
  .hx-card-media{
    width:100%;
    height:200px;
    max-width:none;
  }
}

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

.hx-img-ph{
  width:100%;
  height:100%;
  background:rgba(1,73,155,.08);
}

.hx-card-badges{
  position:absolute;
  top:9px;
  left:9px;
  display:flex;
  gap:8px;
}

.hx-badge{
  background:#01499B;
  color:#fff;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

/* Body */
.hx-card-body{
  padding:12px 14px;
  overflow:visible;
  min-width:0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* Top: nome + relógio alinhado à direita */
.hx-card-top-inline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

/* Força o título do card a ignorar o h3 do tema/Elementor */
.hx-wrap .hx-card .hx-card-title,
.hx-wrap .hx-card h3.hx-card-title{
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  color: #01499B !important;
  font-family: Montserrat, sans-serif !important;
  max-width:100%;
  word-break: break-word;
}

/* Endereço em 2 linhas */
.hx-address{
  color:#0b3f86;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

/* Botões: padrão visual + peso 500 */
.hx-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.hx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:500;
  font-size:13px;
  line-height:1;
  white-space:nowrap;
  min-height:40px;
  border:1.6px solid rgba(1,73,155,.38);
  color:#01499B;
  background: rgba(255,255,255,.70);
  cursor:pointer;
}

.hx-btn:hover{ border-color: rgba(1,73,155,.55); }

.hx-btn-wa{
  background:#25D366;
  color:#fff;
  border:1px solid rgba(0,0,0,.04);
}

.hx-ico{ display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.hx-ico svg{ width:18px; height:18px; display:block; fill: currentColor; }
.hx-ico i{ font-size:18px; line-height:1; position:relative; top:1px; }

/* Relógio (popover) */
.hx-hours-inline{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1.6px solid rgba(1,73,155,.28);
  background: rgba(255,255,255,.65);
  color:#01499B;
  flex: 0 0 auto;
}

.hx-pop{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 250px;
  background: #fff;
  border-radius:14px;
  border:1px solid rgba(1,73,155,.14);
  box-shadow:0 18px 45px rgba(0,0,0,.14);
  padding:12px;
  z-index: 50;
  display:none;
}

.hx-pop:before{
  content:"";
  position:absolute;
  top:-8px;
  right:16px;
  width:14px;
  height:14px;
  background:#fff;
  transform: rotate(45deg);
  border-left:1px solid rgba(1,73,155,.14);
  border-top:1px solid rgba(1,73,155,.14);
}

@media(hover:hover){
  .hx-hours-inline:hover .hx-pop{ display:block; }
}
.hx-hours-inline.is-open .hx-pop{ display:block; }

.hx-pop-title{
  font-weight:900;
  color:#01499B;
  margin-bottom:8px;
  font-size:12.5px;
}

.hx-pop-grid{
  display:grid;
  grid-template-columns: 86px 1fr;
  gap:7px 10px;
  font-size:12.5px;
  color:#2f2f2f;
}

/* Instagram */
.hx-ig{
  display:flex;
  align-items:center;
  gap:8px;
}

.hx-ig a{
  color:#01499B;
  font-weight:700;
  text-decoration:none;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.hx-ig svg{ width:18px; height:18px; display:block; fill: currentColor; }

/* Map */
.hx-map{
  width:100%;
  height: calc(100vh - 160px);
  min-height:520px;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(15, 23, 42, .08);
  border:1px solid rgba(1,73,155,.08);
  background:#F4F7FF;
}

@media(max-width: 1024px){
  .hx-map{ height:420px; min-height:420px; }
}

.hx-map-fallback{
  padding:16px;
  color:#01499B;
  font-weight:900;
}

/* InfoWindow */
.hx-iw-title{ font-weight:900; color:#01499B; }
.hx-iw-sub{ margin-top:4px; font-size:12px; opacity:.85; }