.com-finder--tagsmodal {
  font-family: 'Playfair Display', serif;
}

.com-finder--tagsmodal input,
.com-finder--tagsmodal button {
  font-family: 'Open Sans', sans-serif;
}

.com-finder--tagsmodal .com-finder__form .form-control.js-finder-search-query {
  background-color: #E3E3E3;
  border: none;
  padding: 10px 20px;
}

.com-finder--tagsmodal .vivermais-searchbar {
  width: 100%;
}

.com-finder--tagsmodal .vivermais-searchbar__icon {
  background-color: #E3E3E3;
  border: none;
  color: #888;
  padding: 10px 14px 10px 4px;
}

.com-finder--tagsmodal .custom-filters-tabs {
  margin-top: 10px;
}

.com-finder--tagsmodal .custom-filters-tabs .filter-tab-item label {
  cursor: pointer;
  color: #141414;
  font-size: 1.2rem;
  margin-bottom: -2px;
  padding-bottom: 8px;
  transition: all 0.2s;
}

.com-finder--tagsmodal .custom-filters-tabs .filter-tab-item label.active-tab {
  color: #f37B20;
  border-bottom-color: #f37B20 !important;
}

.com-finder--tagsmodal .vivermais-card-result__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #f37B20;
  border-radius: 6px;
  padding: 24px;
  height: 100%;
}

.com-finder--tagsmodal .vivermais-card-result__title {
  flex: 1 1 auto;
  font-size: 1.1rem;
  line-height: 1.35;
}

.com-finder--tagsmodal .vivermais-card-result__cta {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

.com-finder--tagsmodal .vivermais-card-result__cta span {
  color: #f37B20;
}

.com-finder--tagsmodal .vivermais-card-result__pill span {
  display: inline-block;
  background: #f37B20;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .95rem;
}

.com-finder--tagsmodal .vivermais-card-result__button {
  background: transparent;
  border: none;
  padding: 0;
}

.com-finder--tagsmodal .modal-dialog {
  margin-top: 35px;
}

@media (min-width: 768px) {
  .modal-dialog.modal-vivermais { max-width: 75%; }
}

.modal-vivermais .modal-header {
  align-items: flex-start;
  border-bottom: none;
  padding-bottom: 0;
}

.modal-vivermais .modal-header-logo {
  height: 56px;
  width: auto;
}

.modal-vivermais .btn-close {
  border: 1.5px solid #bbb;
  border-radius: 50%;
  width: 1.8em;
  height: 1.8em;
  padding: 0.35em;
  opacity: 0.55;
  flex-shrink: 0;
}

.modal-vivermais .btn-close:hover { opacity: 1; }

.modal-vivermais .modal-body { font-family: "Open Sans", sans-serif; }

.modal-vivermais .modal-body > h4 { font-family: "Playfair Display", serif; }

.modal-vivermais .modal-body p {
  margin-bottom: 1.3rem;
  line-height: 2.2rem;
  min-height: 1em;
}

.modal-vivermais .modal-body img { max-width: 100%; height: auto; }

.modal-vivermais .modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.modal-vivermais .modal-body table td,
.modal-vivermais .modal-body table th {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  vertical-align: top;
}

/* Results grid: max 5 items/row, 2 rows when list_limit = 10 */
/* Default (small screens): pagers appear below the grid in a row */
.com-finder--tagsmodal .vivermais-results {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.com-finder--tagsmodal .vivermais-results__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  margin-bottom: 60px;
}

.com-finder--tagsmodal .vivermais-results__item {
  min-height: clamp(210px, 13.7vw, 263px);
}

@media (max-width: 1400px) {
  .com-finder--tagsmodal .vivermais-results__item {
    min-height: auto;
  }
}

.com-finder--tagsmodal .vivermais-results__pager {
  margin-top: 16px;
}

.com-finder--tagsmodal .vivermais-results__pager--next {
  margin-left: auto;
}

.com-finder--tagsmodal .com-finder__counter {
  flex: 0 0 100%;
  width: 100%;
}

/* Wide screens: float pagers vertically beside the grid */
@media (min-width: 1681px) {
  .com-finder--tagsmodal .vivermais-results {
    display: block;
    position: relative;
  }
  .com-finder--tagsmodal .vivermais-results__pager {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
  }
  .com-finder--tagsmodal .vivermais-results__pager--prev {
    left: -56px;
  }
  .com-finder--tagsmodal .vivermais-results__pager--next {
    right: -56px;
    margin-left: 0;
  }
}

@media (max-width: 1400px) {
  .com-finder--tagsmodal .vivermais-results__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .com-finder--tagsmodal .vivermais-results__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .com-finder--tagsmodal .vivermais-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .com-finder--tagsmodal .vivermais-results__grid {
    grid-template-columns: 1fr;
  }
}


.com-finder--tagsmodal .vivermais-results__pager-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f37B20;
  background: #fff;
  text-decoration: none;
}

.com-finder--tagsmodal .vivermais-results__pager-btn:hover {
  border-color: #f37B20;
  background: rgba(243, 123, 32, 0.1);
}
