/* CSS específico para o componente HighlightCardMobile - Versão mobile baseada no AdCardComponent */
@import url('../fonts.css');
@import url('../colors.css');

.highlight-card-mobile {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: var(--white-color);
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem !important;
  border: 1px solid var(--gray-stroke-color);
  height: 620px;
}

/* Container que envolve o carousel */
.highlight-card-mobile .carousel {
  background-color: var(--gray-background-color);
}

/* Status do anúncio e botão de edição */
.highlight-card-mobile .admin-badges-container {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.highlight-card-mobile .status-badge {
  background-color: var(--yellow-color);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--black-color);
}

.highlight-card-mobile .highlight-badge {
  background-color: #28a745;
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
}

.highlight-card-mobile .edit-button {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0.5rem;
  color: var(--black-color);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--yellow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 0;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.highlight-card-mobile .edit-button:hover {
  background-color: var(--yellow-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container da imagem no card mobile */
.highlight-card-mobile-image-container {
  position: relative;
  overflow: hidden;
  background-color: var(--gray-background-color);
  background-image: url('/assets/images/ad-card-default.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Imagem dentro do container mobile */
.highlight-card-mobile-img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  min-height: 140px;
  max-height: 220px;
}

/* Estilizando controles do carousel interno dos cards mobile */
.highlight-card-mobile .carousel-control-prev,
.highlight-card-mobile .carousel-control-next {
  width: 15%;
  opacity: 0.8;
  z-index: 10;
}

.highlight-card-mobile .carousel-control-prev-icon,
.highlight-card-mobile .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  padding: 8px;
  background-size: 60%;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.3));
}

.highlight-card-mobile .carousel-control-prev:hover,
.highlight-card-mobile .carousel-control-next:hover {
  opacity: 1;
}

.highlight-card-mobile .carousel-control-prev:hover .carousel-control-prev-icon,
.highlight-card-mobile .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Indicadores do carousel interno dos cards mobile */
.highlight-card-mobile .carousel-indicators [data-bs-target] {
  background-color: #131313;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 3px;
}

.highlight-card-mobile .carousel-indicators .active {
  background-color: var(--main-color);
}

/* Corpo do card */
.highlight-card-mobile-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.75rem;
  padding-top: 0 !important;
  position: static;
  margin-top: 0.5rem;
  min-height: 0;
}

.highlight-card-mobile-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black-color);
}

.highlight-card-mobile-type {
  font-size: 0.8rem;
}

.highlight-card-mobile-code {
  background-color: var(--yellow-color);
  color: var(--black-color);
}

.highlight-card-mobile-location {
  font-size: 0.8rem;
  color: var(--black-color);
  padding-bottom: 0.1rem;
}

.highlight-card-mobile-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--main-color);
}

.highlight-card-mobile-desc {
  font-size: 0.8rem;
  color: var(--black-color);
  word-break: break-word;
  display: -webkit-box;
  padding-bottom: 2px;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-card-mobile-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0rem;
  font-size: 0.89rem;
  color: var(--black-color);
}

.highlight-card-mobile-infos span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.highlight-card-mobile .bg-setting-info {
  background-color: var(--badge-bg-color);
  color: var(--black-color);
  font-weight: 600;
}

.highlight-card-mobile .bg-setting-info i {
  color: var(--black-color);
}

/* Responsividade */
@media (min-width: 1200px) {
  .highlight-card-mobile-infos {
    gap: 0.2rem 0.1rem;
  }
}

@media (max-width: 991.98px) and (min-width: 700px) {
  .highlight-card-mobile-infos {
    gap: 0;
    justify-content: center;
  }
}
