/* The homepage shares the resale card language, without changing other sections. */
.home-resale-section {
  padding: 62px 0;
  background: #f4f5f6;
  border-block: 1px solid #e6e9ec;
}
.home-resale-section .section-heading {
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}
.home-resale-section .section-heading > div { min-width: 0; }
.home-resale-section .section-heading .eyebrow {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.vigor-modern .home-resale-section h2 {
  font: 700 clamp(32px, 3.7vw, 46px)/1.2 var(--sans, Manrope, sans-serif);
  letter-spacing: -.04em;
  margin: 0;
}
.home-resale-section .home-resale-intro {
  max-width: 560px;
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #626c75;
}
.home-resale-section .section-heading > .text-link {
  flex-shrink: 0;
  min-height: 44px;
  font-size: 16px;
}
.home-resale-section .home-resale-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 0;
  margin: 0;
  border-block: 1px solid #dde2e6;
}
.home-resale-section .home-listing-modes {
  display: inline-flex;
  gap: 7px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.home-resale-section .home-listing-modes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid #dce1e5;
  border-radius: 6px;
  background: #fff;
  color: #3f4a53;
  box-shadow: none;
  font: 600 16px/1.4 var(--sans, Manrope, sans-serif);
  cursor: pointer;
}
.home-resale-section .home-listing-modes button:hover {
  border-color: #f19763;
  background: #fff2e9;
}
.home-resale-section .home-listing-modes button[aria-pressed="true"] {
  border-color: #ff6b22;
  background: #ff6b22;
  color: #222b32;
  box-shadow: none;
}
.home-resale-section #home-listing-count {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #58636c;
}
.home-resale-section .home-resale-notice {
  max-width: none;
  margin: 16px 0 22px;
  padding: 0;
  border: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #69737b;
}
.home-resale-section #home-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 26px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
  scrollbar-width: auto;
}
.home-resale-section #home-listing-grid[data-home-count="0"] { display: none; }
.home-resale-section #home-listing-grid[data-home-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin-inline: auto;
}
.home-resale-section #home-listing-grid > .resale-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dde2e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px #26313a06;
  scroll-snap-align: none;
  transition: border-color .18s, box-shadow .18s;
}
.home-resale-section #home-listing-grid > .resale-card:hover {
  border-color: #cbd2d8;
  box-shadow: 0 6px 18px #26313a0d;
}
.home-resale-section #home-listing-grid > .resale-card[hidden] {
  display: none !important;
}
.home-resale-section #home-listing-grid .resale-card .listing-visual {
  flex: 0 0 auto;
  width: 100%;
  height: 292px;
  min-height: 0;
  max-height: none;
  background: #e8ecee;
}
.home-resale-section #home-listing-grid[data-home-count="1"] .listing-visual {
  height: clamp(290px, 30vw, 360px);
}
.home-resale-section #home-listing-grid .resale-card .listing-purpose {
  top: 15px;
  left: 15px;
  padding: 7px 12px;
  border-radius: 4px;
  background: #fffffff2;
  color: #333d45;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .04em;
}
.home-resale-section #home-listing-grid .resale-card .listing-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 23px 24px 20px;
}
.home-resale-section .resale-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.home-resale-section #home-listing-grid[data-home-count="1"] .resale-card-main {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
}
.home-resale-section .resale-card-heading { min-width: 0; }
.home-resale-section #home-listing-grid .resale-card .listing-area {
  min-height: 0;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: #a6491e;
}
.home-resale-section #home-listing-grid .resale-card h3 {
  min-height: 0;
  margin: 0;
  color: #282e33;
  font: 700 23px/1.35 var(--sans, Manrope, sans-serif);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.home-resale-section #home-listing-grid .resale-card h3 a {
  display: inline;
  min-height: 0;
  color: inherit;
}
.home-resale-section #home-listing-grid .resale-card h3 a:hover { color: #ae481a; }
.home-resale-section .resale-card-location {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #69727a;
  overflow-wrap: anywhere;
}
.home-resale-section #home-listing-grid .resale-card .listing-price {
  margin: 0;
  white-space: normal;
  color: #282e33;
  font: 700 28px/1.3 var(--sans, Manrope, sans-serif);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.home-resale-section #home-listing-grid[data-home-count="1"] .listing-price {
  text-align: right;
}
.home-resale-section #home-listing-grid .resale-card .listing-price small {
  display: inline;
  margin: 0;
  color: #69727a;
  font: 400 14px/1.6 var(--sans, Manrope, sans-serif);
  letter-spacing: 0;
}
.home-resale-section #home-listing-grid[data-home-count="1"] .listing-price small {
  display: block;
  margin-top: 3px;
}
.home-resale-section #home-listing-grid .resale-card .listing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #424c55;
}
.home-resale-section #home-listing-grid .resale-card .listing-facts > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
}
.home-resale-section .resale-fact-icon {
  display: block;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: #5d6871;
}
.home-resale-section .resale-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 20px;
}
.home-resale-section #home-listing-grid .resale-card .listing-kind {
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #e7eaed;
  border-radius: 4px;
  background: #f7f8f9;
  color: #5d666e;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}
.home-resale-section .resale-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #edf0f2;
}
.home-resale-section #home-listing-grid[data-home-count="1"] .resale-card-footer {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.home-resale-section #home-listing-grid .resale-card .listing-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.home-resale-section #home-listing-grid .resale-card .listing-tools button {
  display: inline-flex;
  flex: 0 1 auto;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 9px 11px;
  border-color: transparent;
  border-radius: 5px;
  background: #f7f8f9;
  color: #424d57;
  font-size: 14px;
  line-height: 1.5;
}
.home-resale-section #home-listing-grid .resale-card .listing-tools button:hover {
  border-color: #f2d8c8;
  background: #fff1e8;
}
.home-resale-section #home-listing-grid .resale-card .listing-tools button[aria-pressed="true"] {
  border-color: #f2d4bf;
  background: #fff1e7;
}
.home-resale-section .resale-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.home-resale-section #home-listing-grid[data-home-count="1"] .resale-card-actions {
  width: auto;
  margin-left: auto;
}
.home-resale-section .resale-card-actions a {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #d9dfe3;
  border-radius: 5px;
  background: #fff;
  color: #36414a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.home-resale-section .resale-card-actions a:hover {
  border-color: #ff6b22;
  background: #fff4ec;
}
.home-resale-section .resale-card-actions .resale-card-whatsapp {
  border-color: #ff6b22;
  background: #ff6b22;
  color: #24292e;
}
.home-resale-section .resale-card-actions .resale-card-whatsapp:hover { background: #f57a39; }
.home-resale-section #home-listing-empty {
  padding: 28px;
  margin: 0;
  border: 1px dashed #cfd6dc;
  border-radius: 8px;
  background: #fff;
  color: #5e6871;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}
.home-resale-section #home-listing-empty[hidden] { display: none; }
.home-resale-section .home-resale-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
}
.home-resale-section .home-resale-links .button {
  min-height: 46px;
  padding: 11px 20px;
  font-size: 16px;
}
.home-resale-section .home-resale-links .text-link { font-size: 16px; }
.home-resale-section :is(a, button):focus-visible {
  outline: 2px solid #e85d12;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .home-resale-section #home-listing-grid { gap: 20px; }
  .home-resale-section #home-listing-grid .resale-card .listing-visual { height: 250px; }
  .home-resale-section #home-listing-grid .resale-card .listing-body { padding: 20px; }
  .home-resale-section #home-listing-grid .resale-card h3 { font-size: 22px; }
}

@media (max-width: 700px) {
  .home-resale-section { padding: 40px 0; }
  .home-resale-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
  }
  .home-resale-section .section-heading > .text-link { min-height: 40px; }
  .home-resale-section .home-resale-intro {
    margin-top: 10px;
    font-size: 16px;
  }
  .home-resale-section .home-resale-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding-block: 16px;
  }
  .home-resale-section .home-listing-modes {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .home-resale-section .home-listing-modes button {
    padding: 11px 10px;
    min-height: 46px;
    font-size: 15px;
  }
  .home-resale-section .home-resale-notice {
    margin: 14px 0 18px;
    font-size: 14px;
  }
  .home-resale-section #home-listing-grid,
  .home-resale-section #home-listing-grid[data-home-count="1"] {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .home-resale-section #home-listing-grid .resale-card .listing-visual,
  .home-resale-section #home-listing-grid[data-home-count="1"] .resale-card .listing-visual {
    height: 240px;
  }
  .home-resale-section #home-listing-grid .resale-card .listing-body { padding: 18px 18px 16px; }
  .home-resale-section #home-listing-grid .resale-card-main,
  .home-resale-section #home-listing-grid[data-home-count="1"] .resale-card-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .home-resale-section #home-listing-grid .resale-card h3 { font-size: 22px; }
  .home-resale-section #home-listing-grid .resale-card .listing-price,
  .home-resale-section #home-listing-grid[data-home-count="1"] .resale-card .listing-price {
    font-size: 26px;
    text-align: left;
  }
  .home-resale-section #home-listing-grid .resale-card .listing-price small,
  .home-resale-section #home-listing-grid[data-home-count="1"] .resale-card .listing-price small {
    display: inline;
    margin: 0;
  }
  .home-resale-section #home-listing-grid .resale-card .listing-facts { gap: 9px 16px; }
  .home-resale-section #home-listing-grid .resale-card-footer,
  .home-resale-section #home-listing-grid[data-home-count="1"] .resale-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .home-resale-section #home-listing-grid .resale-card .resale-card-actions,
  .home-resale-section #home-listing-grid[data-home-count="1"] .resale-card .resale-card-actions {
    width: 100%;
    margin-left: 0;
  }
  .home-resale-section .home-resale-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 24px;
  }
  .home-resale-section .home-resale-links .button { width: 100%; }
  .home-resale-section .home-resale-links .text-link { justify-self: center; }
}

@media (max-width: 360px) {
  .home-resale-section #home-listing-grid .resale-card .listing-visual,
  .home-resale-section #home-listing-grid[data-home-count="1"] .resale-card .listing-visual { height: 220px; }
  .home-resale-section #home-listing-grid .resale-card .listing-body { padding-inline: 15px; }
  .home-resale-section #home-listing-grid .resale-card h3 { font-size: 21px; }
  .home-resale-section #home-listing-grid .resale-card .listing-tools { gap: 7px; }
  .home-resale-section #home-listing-grid .resale-card .listing-tools button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-resale-section #home-listing-grid > .resale-card { transition: none; }
}
