:root {
  --bs-primary: #2563EB;
  --bs-primary-rgb: 37, 99, 235;
}
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}
.btn-primary:hover {
  background-color: #2563EB !important;
  border-color: #2563EB !important;
}
.text-primary {
  color: var(--bs-primary) !important;
}
.form-control:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.25) !important;
}
.btn-outline-primary {
  transition: all 0.2s ease-in-out;
}

.input-group:focus-within {
  box-shadow: none;
  border-color: transparent;
}
.category-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 260px;
  height: 44px;
  padding: 4px;
  background: #ECECF6; /* fundo suave */
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  gap: 0;
}

.category-toggle__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-toggle__option {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 999px;
  color: #4A4A55;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: color .2s ease;
}

.category-toggle__option img {
  display: block;
  width: 20px;
  height: 20px;
  filter: grayscale(1) opacity(.7);
  transition: filter .2s ease;
}

.category-toggle__pill {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: 36px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.08), 0 0 0 1px rgba(16,24,40,0.08);
  transition: transform .25s ease;
}

/* Estados ativos/hover/focus */
.category-toggle__pill {
  opacity: 0;
  transform: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
#cat-cars:checked ~ .category-toggle__pill {
  opacity: 1;
  transform: translateX(0%);
}
#cat-motos:checked ~ .category-toggle__pill {
  opacity: 1;
  transform: translateX(100%);
}

#cat-cars:checked + label,
#cat-motos:checked + label {
  color: #111827;
}
#cat-cars:checked + label img,
#cat-motos:checked + label img {
  filter: none;
}

.category-toggle__option:hover {
  color: #111827;
}
.category-toggle__option:focus-visible {
  outline: 2px solid #6366F1;
  outline-offset: 2px;
  border-radius: 999px;
}

  @media only screen and (min-width: 769px) and (max-width: 2000px) {
    /* Estilos para laptops e desktops */
    
    /* Altura fixa para as imagens para manter o grid alinhado */
.card-img-top-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Efeito de zoom na imagem ao passar o mouse */
.card:hover .card-img-top {
    transform: scale(1.05);
}

.card {
    transition: box-shadow 0.3s ease, transform 0.2s;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

.badge-site {
    position: absolute;
    top: 10px;
    right: 25px !important;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.card-title {
    font-size: 1rem;
    height: 2.4em; /* Limita a 2 linhas */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-tag {
    font-size: 1.25rem;
    color: #2c3e50;
    font-weight: 800;
}

.fontAnuncio{
    font-size: 0.8rem;
}
  }

@media (max-width: 768px) {
  /* Estilos para smartphones a tablet*/
  /* Altura fixa para as imagens para manter o grid alinhado */
.card-img-top-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Efeito de zoom na imagem ao passar o mouse */
.card:hover .card-img-top {
    transform: scale(1.05);
}

.card {
    transition: box-shadow 0.3s ease, transform 0.2s;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

.badge-site {
    position: absolute;
    top: 10px;
    right: 25px !important;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.card-title {
    font-size: 1rem;
    height: 2.4em; /* Limita a 2 linhas */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-tag {
    font-size: 1.25rem;
    color: #2c3e50;
    font-weight: 800;
}

.fontAnuncio{
    font-size: 0.8rem;
}
#containerAnuncios{
   min-height: 100dvh;
}
}
