/* ===============================
   FINDSITES SEARCH
================================= */

.search-box{
display:flex;
gap:14px;
margin-bottom:30px;
align-items:center;
}

.search-box input{
flex:1;
max-width:420px;
height:44px;
border-radius:10px;
border:1px solid rgba(255,255,255,0.15);
background:rgba(255,255,255,0.04);
padding:0 14px;
color:#fff;
font-size:14px;
}

.search-box input:focus{
outline:none;
border-color:#3b82f6;
box-shadow:0 0 0 2px rgba(59,130,246,.25);
}

/* ===============================
   GRID LAYOUT
================================= */

.layout-grid{
display:grid;
grid-template-columns:420px 1fr;
gap:28px;
align-items:stretch;
}

@media(max-width:1100px){

.layout-grid{
grid-template-columns:1fr;
}

#map{
height:350px;
}

}

/* ===============================
   INFO CARD
================================= */

.info-card{
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.15);
border-radius:14px;
padding:28px;
backdrop-filter:blur(16px);
display:flex;
flex-direction:column;
gap:14px;
}

.site-header{
display:flex;
align-items:center;
justify-content:space-between;
margin-bottom:10px;
}

.site-header h2{
font-size:22px;
font-weight:600;
}

/* ===============================
   STATUS BADGE
================================= */

.badge{
padding:6px 14px;
border-radius:20px;
font-size:12px;
font-weight:600;
}

.badge.online{
background:#22c55e22;
color:#22c55e;
}

.badge.offline{
background:#ef444422;
color:#ef4444;
}

.badge.falha{
background:#facc1522;
color:#facc15;
}

/* ===============================
   INFO GRID
================================= */

.info-block{
font-size:14px;
opacity:.9;
padding:8px 0;
border-bottom:1px solid rgba(255,255,255,0.06);
}

/* ===============================
   BOTÕES
================================= */

/* ===============================
   BOTÕES
================================= */

.map-actions{
  display:flex;
  gap:12px;
  margin-top:20px;
}

.btn-map{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:12px 16px;
  border-radius:14px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  color:#e5eefc;
  background:linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 20px rgba(0,0,0,0.22);
  backdrop-filter:blur(10px);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.btn-map:hover{
  transform:translateY(-2px);
  border-color:rgba(59,130,246,0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 24px rgba(0,0,0,0.28),
    0 0 0 1px rgba(59,130,246,0.10);
}

.btn-map:active{
  transform:translateY(0);
}

.btn-map svg{
  width:18px;
  height:18px;
  fill:currentColor;
  flex-shrink:0;
  display:block;
}

.btn-maps{
  color:#f8fafc;
}

.btn-waze{
  color:#7dd3fc;
}

.btn-waze svg{
  width:20px;
  height:20px;
}

.btn-whatsapp{
  color:#4ade80;
}

/* ===============================
   MAPA
================================= */

#map{
border-radius:14px;
overflow:hidden;
height:460px;
border:1px solid rgba(255,255,255,0.12);
box-shadow:0 0 0 1px rgba(255,255,255,0.04);
}

/* ===============================
   ERROR
================================= */

.error-box{
background:rgba(239,68,68,0.08);
border:1px solid rgba(239,68,68,0.4);
color:#fecaca;
border-radius:12px;
padding:24px;
text-align:center;
}

.error-box h2{
color:#ef4444;
margin-bottom:8px;
}

.error-box p{
font-size:14px;
opacity:.9;
}

/* ===============================
   EMPTY STATE
================================= */

.empty-state{
text-align:center;
opacity:.8;
padding:40px 10px;
}

.empty-state h2{
font-size:20px;
margin-bottom:8px;
}

.empty-state p{
font-size:14px;
opacity:.7;
}

.waiting-state h2 {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.dots {
  display: inline-flex;
  margin-left: 4px;
}

.dots span {
  opacity: 0.2;
  animation: dotPulse 1.4s infinite;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.search-box {
  display: flex;
  gap: 28px;
  margin-bottom: 25px;
}

.search-autocomplete {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.search-box input {
  width: 100%;
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0,0,0,0.35);
  z-index: 50;
  display: none;
  backdrop-filter: blur(18px);
}

.suggestions.show {
  display: block;
}

.suggestion-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(59,130,246,0.16);
}

.suggestion-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.suggestion-subtitle {
  color: #9db6d8;
  font-size: 12px;
}

.waiting-state h2 {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.dots {
  display: inline-flex;
  margin-left: 4px;
}

.dots span {
  opacity: 0.2;
  animation: dotPulse 1.4s infinite;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

/* ===============================
   BOTÃO MAIS PRÓXIMO
================================= */
.btn-nearest{
  height:44px;
  padding:0 16px;
  border-radius:12px;
  border:1px solid rgba(59,130,246,0.22);
  background:linear-gradient(180deg, rgba(59,130,246,0.18), rgba(59,130,246,0.08));
  color:#dbeafe;
  font-size:13px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  transition:.2s ease;
  white-space:nowrap;
}

.btn-nearest:hover{
  transform:translateY(-1px);
  border-color:rgba(96,165,250,0.45);
  box-shadow:0 8px 18px rgba(37,99,235,0.18);
}

.btn-nearest svg{
  width:16px;
  height:16px;
  fill:currentColor;
}

/* ===============================
   MAP FILTER CONTROL
================================= */
.map-filter-control{
  min-width:220px;
  padding:12px;
  border-radius:14px;
  background:rgba(7,16,31,0.92);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:0 14px 28px rgba(0,0,0,0.25);
  backdrop-filter:blur(16px);
}

.map-filter-title{
  color:#fff;
  font-size:12px;
  font-weight:700;
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.map-filter-status{
  display:flex;
  gap:8px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.filter-chip{
  border:none;
  border-radius:999px;
  padding:7px 12px;
  background:rgba(255,255,255,0.08);
  color:#cbd5e1;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

.filter-chip:hover,
.filter-chip.active{
  background:#2563eb;
  color:#fff;
}

.filter-select{
  width:100%;
  height:38px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(7, 16, 31, 0.92);
  color:#fff;
  padding:0 12px;
  outline:none;
}


/* ===============================
   MARKERS
================================= */
.site-mini-marker{
  display:block;
  width:14px;
  height:14px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.92);
  box-shadow:0 0 0 3px rgba(2,6,23,0.28);
}

.site-mini-marker.online{
  background:#22c55e;
  animation:markerPulseGreen 1.8s infinite;
}

.site-mini-marker.offline{
  background:#ef4444;
  animation:markerPulseRed 1.3s infinite;
}

.site-mini-marker.falha{
  background:#facc15;
}

.site-focus-marker{
  display:block;
  width:24px;
  height:24px;
  border-radius:50%;
  border:4px solid rgba(255,255,255,0.92);
  box-shadow:0 0 0 5px rgba(2,6,23,0.24);
}

.site-focus-marker.online{
  background:#22c55e;
  animation:markerPulseGreenStrong 1.6s infinite;
}

.site-focus-marker.offline{
  background:#ef4444;
  animation:markerPulseRedStrong 1.1s infinite;
}

.site-focus-marker.falha{
  background:#facc15;
}

@keyframes markerPulseGreen{
  0%{ box-shadow:0 0 0 0 rgba(34,197,94,0.45), 0 0 0 3px rgba(2,6,23,0.28); }
  70%{ box-shadow:0 0 0 10px rgba(34,197,94,0), 0 0 0 3px rgba(2,6,23,0.28); }
  100%{ box-shadow:0 0 0 0 rgba(34,197,94,0), 0 0 0 3px rgba(2,6,23,0.28); }
}

@keyframes markerPulseRed{
  0%{ box-shadow:0 0 0 0 rgba(239,68,68,0.55), 0 0 0 3px rgba(2,6,23,0.28); }
  70%{ box-shadow:0 0 0 11px rgba(239,68,68,0), 0 0 0 3px rgba(2,6,23,0.28); }
  100%{ box-shadow:0 0 0 0 rgba(239,68,68,0), 0 0 0 3px rgba(2,6,23,0.28); }
}

@keyframes markerPulseGreenStrong{
  0%{ box-shadow:0 0 0 0 rgba(34,197,94,0.55), 0 0 0 5px rgba(2,6,23,0.24); }
  70%{ box-shadow:0 0 0 14px rgba(34,197,94,0), 0 0 0 5px rgba(2,6,23,0.24); }
  100%{ box-shadow:0 0 0 0 rgba(34,197,94,0), 0 0 0 5px rgba(2,6,23,0.24); }
}

@keyframes markerPulseRedStrong{
  0%{ box-shadow:0 0 0 0 rgba(239,68,68,0.58), 0 0 0 5px rgba(2,6,23,0.24); }
  70%{ box-shadow:0 0 0 15px rgba(239,68,68,0), 0 0 0 5px rgba(2,6,23,0.24); }
  100%{ box-shadow:0 0 0 0 rgba(239,68,68,0), 0 0 0 5px rgba(2,6,23,0.24); }
}

/* ===============================
   RESULTADOS LISTA
================================= */
.resultados-lista{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:16px;
  max-height:420px;
  overflow:auto;
  padding-right:4px;
}

.resultado-item{
  width:100%;
  text-align:left;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.04);
  border-radius:14px;
  padding:14px;
  cursor:pointer;
  color:#fff;
  transition:.18s ease;
}

.resultado-item:hover{
  border-color:rgba(59,130,246,0.35);
  background:rgba(59,130,246,0.10);
  transform:translateY(-1px);
}

.resultado-item-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}

.resultado-item-sub{
  color:#9db6d8;
  font-size:12px;
  line-height:1.45;
}

.resultado-status{
  font-size:11px;
  font-weight:700;
  padding:5px 10px;
  border-radius:999px;
}

.resultado-status.online{
  background:#22c55e22;
  color:#22c55e;
}

.resultado-status.offline{
  background:#ef444422;
  color:#ef4444;
}

.resultado-status.falha{
  background:#facc1522;
  color:#facc15;
}

/* ===============================
   BADGE PULSE
================================= */
.badge-pulse.online{
  animation:badgePulseGreen 1.8s infinite;
}

.badge-pulse.offline{
  animation:badgePulseRed 1.2s infinite;
}

@keyframes badgePulseGreen{
  0%,100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); }
  50%{ box-shadow:0 0 0 8px rgba(34,197,94,0.12); }
}

@keyframes badgePulseRed{
  0%,100%{ box-shadow:0 0 0 0 rgba(239,68,68,0); }
  50%{ box-shadow:0 0 0 8px rgba(239,68,68,0.14); }
}

/* ===============================
   AÇÕES EXTRA
================================= */
.map-actions-wrap{
  flex-wrap:wrap;
}

.btn-route-inline{
  color:#93c5fd;
}

.btn-route-inline svg{
  width:18px;
  height:18px;
  fill:currentColor;
  flex-shrink:0;
}

/* ===============================
   RESPONSIVO EXTRA
================================= */
@media(max-width:900px){
  .search-box{
    flex-wrap:wrap;
  }

  .btn-nearest{
    width:100%;
    justify-content:center;
  }
}

@media(max-width:640px){
  .map-actions{
    flex-direction:column;
  }

  .map-filter-control{
    min-width:180px;
  }
}

.filter-reset-btn{
  margin-top:10px;
  width:100%;
  height:38px;
  border:none;
  border-radius:10px;
  background:rgba(59,130,246,0.16);
  color:#dbeafe;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

.filter-reset-btn:hover{
  background:#2563eb;
  color:#fff;
}

/* ===============================
   AJUSTE SEM SIDEBAR
================================= */

.search-box {
  justify-content: center;
}

.search-autocomplete {
  width: min(100%, 520px);
  max-width: 520px;
}

.layout-grid {
  width: 100%;
}
