/* ===== Barra ===== */
.ajbar{ width:100%; padding: 14px 0; }

.ajpill{
  width: min(1180px, 92vw);
  margin: 0 auto;
  background:#fff;
  border-radius:999px;
  padding: 14px 14px 14px 22px;
  display:flex;
  align-items:center;
  gap: 0;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  position: relative;
}

/* ===== Campos ===== */
.ajfield{
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 10px 18px;
  border-radius: 18px;
  transition: background .2s ease;
}
.ajfield:hover{ background: rgba(0,0,0,.02); }

.ajlabel{
  font-weight: 800;
  font-size: 13px;
  color:#111;
  margin-bottom: 6px;
}
.ajvalue{
  font-weight: 650;
  font-size: 17px;
  color:#8e8e8e;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Separador (não corta o topo) */
.ajsep::after{
  content:"";
  position:absolute;
  right: 0;
  top: 12px;
  width: 1px;
  height: 44px;
  background: rgba(0,0,0,.08);
  border-radius: 2px;
}

.ajselect{
  position:absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ===== Popover (CENTRADO + MAIOR) ===== */
.ajclick{ cursor: pointer; }

.ajpop{
  position:absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background:#fff;
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
  padding: 16px;
  display:none;
  z-index: 9999;
}
.ajpop.open{ display:block; }

/* maior */
.ajpop--big{
  width: min(560px, 92vw);
}

/* header */
.ajpophead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 6px 8px 14px;
}
.ajpophead strong{ font-size: 16px; }
.ajx{
  border:none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor:pointer;
  color:#333;
}

/* ===== Datas ===== */
.ajdates{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 6px 8px 10px;
}
.ajdates label span{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color:#333;
  margin-bottom: 6px;
}
.ajdates input{
  width:100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
}
.ajdates input:focus{ border-color: rgba(0,0,0,.25); }

/* ===== Pessoas (grid alinhado) ===== */
.ajrows{
  padding: 6px 8px 10px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.ajrow{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  column-gap: 18px;
}

.ajrowleft{ min-width: 0; }
.ajrowtitle{ font-weight: 900; color:#111; font-size: 14px; }
.ajrowsub{ font-size: 12px; color:#777; margin-top:2px; }

/* stepper alinhado */
.ajstepper{
  display:grid;
  grid-auto-flow: column;
  align-items:center;
  gap: 12px;
}

.ajstep{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
  font-size: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
}
.ajstep:hover{ background: rgba(0,0,0,.03); }

.ajnum{
  width: 24px;
  text-align:center;
  font-weight: 900;
  color:#111;
}

/* ações */
.ajpopactions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 8px 6px;
}
.ajpopactions--wide{ padding-top: 14px; }

.ajbtn{
  border:none;
  border-radius: 14px;
  padding: 12px 14px;
  cursor:pointer;
  font-weight: 900;
  font-size: 13px;
}
.ajbtn.ghost{ background:#f2f2f2; color:#d34b5c; }
.ajbtn.primary{ background:#d6a146; color:#111; }

/* ===== Botão pesquisar ===== */
.ajgo{
  flex:0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border:none;
  background:#d6a146;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left: 10px;
}
.ajgo svg{ width: 22px; height: 22px; fill:#111; opacity:.95; }
.ajgo:hover{
  background:#d6a146;
  filter: brightness(.96);
}
.ajgo:active{ transform: scale(.98); }

/* ===== Resultados ===== */
.ajresults{
  width: min(1180px, 92vw);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px){
  .ajresults{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .ajresults{ grid-template-columns: 1fr; }
}

/* Card */
.ajcardlink{
  text-decoration:none;
  color: inherit;
  display:block;
}

.ajcard{
  background:#fff;
  border-radius: 22px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ajcard:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0,0,0,.14);
}

.ajcard img{
  width:100%;
  height: 175px;
  object-fit: cover;
  display:block;
}

/* Media + badges */
.ajmedia{ position: relative; }
.ajbadge{
  position:absolute;
  top: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.06);
  color:#111;
  line-height: 1;
}
.ajbadge--dur{ left: 12px; }
.ajbadge--cat{ right: 12px; }

/* Text bits */
.ajmeta{
  margin-top: 2px;
  font-size: 13px;
  color:#444;
  font-weight: 600;
  opacity: .9;
}
.ajdesc{
  margin-top: 8px;
  font-size: 13px;
  color:#555;
  line-height: 1.35;
}

/* Footer row */
.ajfoot{
  margin-top: 12px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
}
.ajrating{
  font-size: 13px;
  color:#333;
  font-weight: 600;
  opacity: .95;
  white-space: nowrap;
}
.ajreviews{
  font-weight: 600;
  color:#666;
}

.ajcardbody{
  padding: 14px 14px 16px;
}

.ajcardtitle{
  font-weight: 600;     /* sem bold pesado */
  color:#111;
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.25;
}

.ajcardprice{
  font-weight: 600;
  font-size: 15px;
  color:#111;
  background: linear-gradient(135deg,#f6d98a,#e7b957);
  padding: 6px 10px;
  border-radius: 10px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}

.ajmuted{
  color:#666;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 4px;
}
/* ===== Responsivo ===== */
@media (max-width: 900px){
  .ajpill{ border-radius: 32px; padding: 12px; }
  .ajfield{ padding: 10px 14px; }
  .ajvalue{ font-size: 16px; }
  .ajgo{ width: 52px; height: 52px; margin-left: 6px; }
  .ajpop--big{ width: min(620px, 94vw); }
}

@media (max-width: 640px){
  .ajpill{
    flex-direction: column;
    align-items: stretch;
    border-radius: 26px;
    padding: 12px;
  }
  .ajsep::after{ display:none; }

  .ajfield{ width:100%; padding: 10px 12px; }

  .ajpop{
    position: relative;
    top: 10px;
    left: 0;
    transform: none;
    width: 100% !important;
  }

  .ajdates{ grid-template-columns: 1fr; }
  .ajgo{
    width: 100%;
    height: 48px;
    border-radius: 14px;
    margin-left: 0;
  }
}
