/* Only confirmed prices get the comparison panel. The original tile link remains on the photo and title. */
#apartamentos .av-result-tile {
  container-type: inline-size;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ddd5bd;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 20px #173f3e0e;
}
#apartamentos .av-result-tile > .property-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
#apartamentos .av-result-tile:has(> .av-hidden) { display: none; }
#apartamentos .av-result-tile:focus-within { outline: 2px solid #96753c; outline-offset: 2px; }
.av-result-tile .av-price {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "total" "average" "features" "detail" "action";
  gap: 3px 0;
  padding: 14px 13px 10px;
  margin-top: auto;
  background: linear-gradient(115deg, #f3f6f2, #fbf8ef);
}
.av-result-tile .av-price-label { grid-area: label; color: #485c54; align-self: end; font-size: 10px; font-weight: 650; letter-spacing: .065em; }
.av-result-tile .av-price-total { grid-area: total; font-size: 26px; align-self: center; }
.av-result-tile .av-price-average { grid-area: average; line-height: 1.4; }
.av-features {
  grid-area: features;
  display: grid;
  align-content: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 7px 0 0;
  padding: 7px 0 0;
  gap: 3px 8px;
  border-top: 1px solid #d9dfd4;
  list-style: none;
}
.av-features li { min-width: 0; align-self: center; }
.av-feature {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 33px;
  width: 100%;
  text-align: start;
  font: 600 11.5px/1.2 system-ui, sans-serif;
  color: #204a43;
  background: none;
  border: 0;
  padding: 2px 0;
}
.av-result-tile svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.av-feature-text { min-width: 0; overflow-wrap: anywhere; }
.av-feature-hint { display: block; width: fit-content; margin-top: 2px; font-size: 10.5px; font-weight: 450; color: #475e54; }
button.av-feature { position: relative; z-index: 1; cursor: pointer; border-radius: 4px; }
button.av-feature .av-feature-hint { text-decoration: underline dotted #809282; text-underline-offset: 2px; }
button.av-feature:hover, button.av-feature[aria-expanded=true] { color: #675125; }
.av-feature-detail {
  grid-area: detail;
  color: #234840;
  background: #e7ede4;
  margin: 5px 0 1px;
  padding: 8px 10px;
  border-inline-start: 2px solid #aa8a4a;
  border-radius: 0 5px 5px 0;
  font-size: 12px;
  line-height: 1.45;
}
.av-feature-detail[hidden] { display: none; }
.av-result-tile .av-result-link {
  grid-area: action;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 7px 0 0;
  margin: 3px 0 0;
  border-top: 1px solid #d9dfd4;
  font-size: 12px;
  text-decoration: none;
}
.av-result-link::before { content: ''; position: absolute; inset: 0; }
.av-result-link svg { width: 26px; height: 26px; padding: 4px; box-sizing: border-box; background: #eedcb0; color: #58461e; border-radius: 50%; }
.av-result-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.av-result-tile :is(button,a):focus-visible { outline: 2px solid #8c6d38; outline-offset: 1px; }
@container (min-width: 310px) {
  .av-result-tile .av-price {
    grid-template-columns: minmax(100px, 0.95fr) minmax(0, 1.65fr);
    grid-template-areas: "label features" "total features" "average features" "detail detail" "action action";
    column-gap: 9px;
  }
  .av-features { margin: 0; padding: 0 0 0 9px; border-top: 0; border-inline-start: 1px solid #d7dfd2; }
}
/* Give long translated names their full grid cell on phone-sized cards. */
@container (min-width: 310px) and (max-width: 414px) {
  .av-features { row-gap: 8px; }
  .av-feature { display: grid; justify-items: start; align-content: start; gap: 4px; }
  .av-feature-text { overflow-wrap: normal; hyphens: auto; }
}
.av-result-tile .av-result-link { min-height: 44px; }
