﻿.ifim-search-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: center;
}

.ifim-search-header__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
}

.ifim-search-header__icon {
  font-size: 20px;
  color: #0f4c97;
  flex: 0 0 auto;
}

.ifim-search-header__field input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 0;
  margin: 0;
  outline: 0;
  font-size: 16px;
  color: #111827;
}

.ifim-search-header__field input::placeholder {
  color: #98a3b3;
}

.ifim-search-header__btn {
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: #0d3c8b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ifim-search-results {
  width: 100%;
}

.ifim-search-filter {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 16px;
}

.ifim-search-filter__row-q {
  display: block;
  margin: 0 0 12px;
  max-width: 460px;
}

.ifim-search-filter__row-q label {
  margin-bottom: 8px;
}

.ifim-search-filter__row-q input {
  width: 100%;
}

.ifim-search-filter__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ifim-search-filter label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.ifim-search-filter input,
.ifim-search-filter select {
  width: 100%;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}

.ifim-search-filter select:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.ifim-search-filter__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.ifim-search-filter__actions button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #0d3c8b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ifim-search-filter__actions a {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #111827;
}

.ifim-search-results__count {
  margin: 0;
  color: #374151;
  font-size: 13px;
}

.ifim-search-results__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.ifim-search-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.ifim-search-sort__label {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.ifim-search-sort__select {
  height: 38px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  min-width: 150px;
}

.ifim-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ifim-search-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.ifim-search-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.ifim-search-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #111827;
}

.ifim-search-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ifim-search-card__thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ifim-search-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6b7280;
}

.ifim-search-card__body {
  padding: 14px;
}

.ifim-search-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.ifim-search-badge--venda {
  background: rgba(0,128,0,.10);
}

.ifim-search-badge--locacao {
  background: rgba(0,90,255,.10);
}

.ifim-search-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ifim-search-card__title a {
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ifim-search-card__local {
  font-size: 13px;
  opacity: .8;
  margin-bottom: 10px;
}

.ifim-search-card__price {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  background-color: #fafe83;
  padding: 2px 10px;
  border-radius: 8px;
  display: inline-block;
}

.ifim-search-card__price-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #4b5563;
}

.ifim-search-empty {
  padding: 14px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #6b7280;
}

.ifim-search-pagination ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
}

.ifim-search-pagination a,
.ifim-search-pagination span {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 7px 11px;
  text-decoration: none;
}

.ifim-search-pagination .current {
  font-weight: 700;
}

@media (max-width: 1024px) {
  .ifim-search-filter__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ifim-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ifim-search-results__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ifim-search-sort {
    width: 100%;
  }

  .ifim-search-sort__select {
    width: 100%;
  }

  .ifim-search-header {
    grid-template-columns: 1fr;
  }

  .ifim-search-filter__row {
    grid-template-columns: 1fr;
  }

  .ifim-search-grid {
    grid-template-columns: 1fr;
  }
}

/* Padrao dos loops: video vertical + acoes com icones */
.ifim-search-card__thumb {
  aspect-ratio: 9 / 16;
  background: #000;
}

.ifim-search-card__footer {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.ifim-search-card__meta-left {
  min-width: 0;
}

.ifim-search-card__actions-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.ifim-search-icon-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ifim-search-icon-btn img {
  width: 30px;
  height: 30px;
  display: block;
}

/* Header shortcode agora usa busca avancada (sem campo de texto) */
.ifim-search-filter--header {
  margin: 0 0 0 auto;
  padding: 14px 0;
  width: 980px;
  max-width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.ifim-search-filter__row--header {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 25px;
  gap: 8px;
  align-items: end;
}

.ifim-search-filter--header .ifim-search-filter__row--header > div {
  min-width: 0;
}

.ifim-search-filter--header .ifim-search-filter__row--header select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ifim-search-filter--header .ifim-search-filter__row--header select:focus {
  outline: none;
  border-color: #0d3c8b;
  box-shadow: inset 0 0 0 1px #0d3c8b;
}

.ifim-search-filter__submit-wrap {
  display: flex;
  align-items: end;
  width: 25px;
  min-width: 25px;
  justify-content: flex-end;
}

.ifim-search-filter__submit-btn {
  width: 25px;
  height: 42px;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  color: #0d3c8b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: none !important;
}

.ifim-search-filter__submit-btn:hover,
.ifim-search-filter__submit-btn:focus-visible {
  color: #000;
  outline: none;
}

.ifim-search-filter__submit-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.ifim-search-filter__btn-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 1260px) {
  .ifim-search-filter__row--header {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ifim-search-filter__submit-wrap {
    grid-column: span 3;
  }

  .ifim-search-filter__submit-btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .ifim-search-filter__row--header {
    grid-template-columns: 1fr;
  }

  .ifim-search-filter__submit-wrap {
    grid-column: auto;
  }
}















/* Sidebar filter */
.ifim-search-sidebar {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.ifim-search-sidebar__section + .ifim-search-sidebar__section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef1f4;
}

.ifim-search-sidebar__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #374151;
}

.ifim-search-sidebar__select,
.ifim-search-sidebar__input {
  width: 100%;
  height: 42px;
  border: 1px solid #d1d5db!important;
  border-radius: 10px!important;
  padding: 0 12px!important;
  background: #fff;
}

.ifim-search-sidebar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ifim-search-chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  margin: 0;
  padding: 0 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 10px!important;
  background: #fff !important;
  color: #374151 !important;
  font-weight: 700;
  line-height: 1;
  box-shadow: none !important;
  text-transform: none;
  cursor: pointer;
}

.ifim-search-chip:hover {
background-color: #819ded !important;
color: #ffffff !important;
}

.ifim-search-chip.is-active {
  background: #1d4ed8 !important;
  color: #fff !important;
}

.ifim-search-sidebar__range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ifim-search-sidebar__actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.ifim-search-sidebar__btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #0d3c8b !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700 !important;
  line-height: 1;
  box-shadow: none !important;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.ifim-search-sidebar__btn:hover{
background-color: #819ded !important;
color: #fff !important;
}

.ifim-search-sidebar__clear {
  min-width: 96px;
  height: 42px;
  border: 1px solid #d1d5db !important;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827 !important;
  text-decoration: none;
  padding: 0 14px;
  background: #fff !important;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .ifim-search-sidebar__chips {
    gap: 8px;
  }

  .ifim-search-sidebar__range {
    grid-template-columns: 1fr;
  }
}
