/* Overrides pequenos e seguros (carregados após style.css).
   Ideal: recompilar SCSS (scss/style.scss) para style.css e reduzir este arquivo. */

/* Home hero: 2 colunas (form + bg) */
.banner-area.banner-2col {
  position: relative;
  background-image: url("../img/banners/banner1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-area.banner-2col .banner-2col-row {
  min-height: clamp(520px, 80vh, 780px);
}

.banner-area.banner-2col .banner-2col-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0px;
  background: transparent;
}



.banner-area.banner-2col .banner-2col-right {
  min-height: 320px;
  background: transparent; /* coluna vazia */
}

@media (max-width: 991px) {
  .banner-area.banner-2col .banner-2col-row {
    min-height: auto;
  }
  .banner-area.banner-2col .banner-2col-right {
    display: none; /* mobile: só o form, bg continua na seção */
  }
}

/* Favoritos: manter só o essencial (evitar sobrescrever layout do style.css) */
.page-favoritos .card-1 {
  position: relative; /* mantém coração no canto */
}

.page-favoritos .card-1 .favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 15;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: #f34421;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-favoritos .card-1 .favorite-btn:hover {
  transform: scale(1.05);
}

.page-favoritos .card-1 .favorite-btn.active {
  background: #f34421;
  color: #fff;
  border-color: #f34421;
}

/* Ajuste de espaçamento da página de favoritos (o padrão 100px fica enorme em 2 seções) */
.page-favoritos .product-area {
  padding: 60px 0;
}
.page-favoritos .product-area + .product-area {
  padding-top: 20px;
}

/* Valor no canto da imagem (favoritos) */
.page-favoritos .card-1 .swiper-cards .valor-area {
  bottom: 10px;
  right: 10px;
  z-index: 11;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #f34421;
  background: linear-gradient(0deg, rgb(243, 68, 33) 0%, rgb(243, 111, 33) 100%);
  border: 1px solid rgba(255, 105, 75, 0.64);
  padding: 3px 10px;
  border-radius: 8px;
}

.page-favoritos .card-1 .swiper-cards .valor-area p {
  color: #fff;
  font-size: 0.9em;
  margin-bottom: 0;
  font-weight: 500;
}

.page-favoritos .card-1 .swiper-cards .valor-area .selected-choice p {
  display: none;
  color: #fff;
  font-size: 0.9em;
  margin-bottom: 0;
  font-weight: 500;
}

.page-favoritos .card-1 .swiper-cards .valor-area .selected-choice p.show {
  display: block;
}

/* Modal do mapa: aplica no HTML real (card-1 > a), sem depender de ` a .card-1` */
.modal-map .modal-map-content  .card-1 {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  border-radius: 16px;
}

/* Distribuição melhor do conteúdo dentro do modal (sem scroll) */
.modal-map .modal-map-content .body .card-1 > a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .modal-map .modal-map-content .body .card-1 > a {
    /* Mantém as 2 colunas mais “centradas” e sem esticar demais */
    grid-template-columns: minmax(520px, 1.2fr) minmax(360px, 0.8fr);
    align-items: start;
    column-gap: 22px;
    justify-content: center;
  }

  .modal-map .modal-map-content .body .card-1 > a .swiper-cards {
    grid-column: 1 / 2;
  }

  .modal-map .modal-map-content .body .card-1 > a .venda-area,
  .modal-map .modal-map-content .body .card-1 > a .content-area,
  .modal-map .modal-map-content .body .card-1 > a .icon-area {
    grid-column: 2 / 3;
  }

  .modal-map .modal-map-content .body .card-1 > a .icon-area {
    padding-top: 4px;
  }
}

.modal-map .modal-map-content {
  /* Modal maior e sem rolagem */
  width: min(96vw, 980px);
  max-height: 88vh;
  overflow: hidden;
  padding: 18px 22px;
  box-sizing: border-box;
  position: relative; /* ancora o botão X */
}

/* Garante que o modal fique centralizado (alguns overrides podem quebrar o absolute do style.css) */
.modal-map.showModal .modal-map-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 1002;
}

/* Centraliza o conteúdo do modal e evita “vazio” nas laterais */
.modal-map .modal-map-content .body {
  display: flex;
  justify-content: center;
}

/* No desktop, melhor aproveitamento do espaço */
@media (min-width: 992px) {
  .modal-map .modal-map-content {
    width: min(92vw, 1040px);
  }
}

.modal-map .modal-map-content  .card-1 .favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 15;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: #f34421;
}

.modal-map .modal-map-content  .card-1 .favorite-btn.active {
  background: #f34421;
  color: #fff;
  border-color: #f34421;
}

.modal-map .modal-map-content  .card-1 .venda-area {
  padding: 16px 0;
  padding-bottom: 5px;
}

.modal-map .modal-map-content  .card-1 .venda-area p {
  padding: 0;
  margin: 0 0 5px 0;
  font-size: 0.6em;
  font-weight: 500;
  text-transform: uppercase;
  background-color: #0047ab;
  letter-spacing: 0.5px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 6px;
  color: #fff;
  display: block;
}

.modal-map .modal-map-content  .card-1 .content-area {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modal-map .modal-map-content  .card-1 .content-area h2,
.modal-map .modal-map-content  .card-1 .content-area h3 {
  font-size: 1.1em;
  text-align: left;
  color: #1e293b;
  margin-bottom: 4px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-map .modal-map-content  .card-1 .content-area span {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #64748b;
  font-size: 0.9em;
}

.modal-map .modal-map-content  .card-1 .content-area span i {
  color: rgba(100, 116, 139, 0.72);
}

.modal-map .modal-map-content  .card-1 .icon-area {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #475569;
  padding: 12px 0;
  font-size: 10px;
}

.modal-map .modal-map-content  .card-1 .icon-area div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-map .modal-map-content  .card-1 .icon-area div i {
  color: #0047ab;
  font-size: 14px;
}

.modal-map .modal-map-content  .card-1 .swiper-cards {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  /* Evita “achatado” e também evita modal gigante (menos branco) */
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 56vh;
  width: 100%;
}

@media (max-width: 991px) {
  .modal-map .modal-map-content  .card-1 .swiper-cards {
    aspect-ratio: 4 / 3;
    max-height: 52vh;
  }
}

.modal-map .modal-map-content  .card-1 .swiper-cards .swiper-slide,
.modal-map .modal-map-content  .card-1 .swiper-cards .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-map .modal-map-content  .card-1 .swiper-cards .swiper-button-next,
.modal-map .modal-map-content  .card-1 .swiper-cards .swiper-button-prev {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

/* Paginação do swiper no modal */
.modal-map .modal-map-content  .card-1 .swiper-cards .swiper-pagination {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  gap: 6px;
  z-index: 10;
  pointer-events: auto;
}

.modal-map .modal-map-content  .card-1 .swiper-cards .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-map .modal-map-content  .card-1 .swiper-cards .swiper-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* Valor (tag laranja) no modal */
.modal-map .modal-map-content  .card-1 .swiper-cards .valor-area {
  bottom: 10px;
  right: 10px;
  z-index: 11;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #f34421;
  background: linear-gradient(0deg, rgb(243, 68, 33) 0%, rgb(243, 111, 33) 100%);
  border: 1px solid rgba(255, 105, 75, 0.64);
  padding: 3px 10px;
  border-radius: 8px;
}

.modal-map .modal-map-content  .card-1 .swiper-cards .valor-area p {
  color: #fff;
  font-size: 0.9em;
  margin-bottom: 0;
  font-weight: 500;
}

.modal-map .modal-map-content  .card-1 .swiper-cards .valor-area .selected-choice p {
  display: none;
  color: #fff;
  font-size: 0.9em;
  margin-bottom: 0;
  font-weight: 500;
}

.modal-map .modal-map-content  .card-1 .swiper-cards .valor-area .selected-choice p.show {
  display: block;
}

/* Botão de fechar (X) do modal */
.modal-map .modal-map-content .closeModal:not(.overlay) {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f36f21;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  user-select: none;
}

.modal-map .modal-map-content .closeModal:not(.overlay):hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* Evita que wrappers de grid clonados (se houver) quebrem o layout do modal */
.modal-map .modal-map-content  .col-xl-3,
.modal-map .modal-map-content  .col-lg-6,
.modal-map .modal-map-content  .col-md-6,
.modal-map .modal-map-content  .mb-4 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
}

