/* PlacEVision V18
   Original card design + five complete 47px rows/10px gaps + detail button. */

:root {
  --pv-transaction-row-height: 47px;
  --pv-summary-row-gap: 10px;
  --pv-button-card-height: 759px;
  --pv-button-body-height: 539px;
  --pv-button-gold-dark: #8e6128;
  --pv-button-gold: #b9853f;
  --pv-button-gold-light: #d3aa69;
  --pv-button-gold-hover-dark: #9b692b;
  --pv-button-gold-hover: #c69249;
  --pv-button-gold-hover-light: #e2bd7d;
}

.property-list-card {
  height: var(--pv-button-card-height) !important;
  min-height: var(--pv-button-card-height) !important;
}

.property-list-card > a {
  height: var(--pv-button-card-height) !important;
  min-height: var(--pv-button-card-height) !important;
  grid-template-rows: 220px var(--pv-button-body-height) !important;
}

.property-list-card__body {
  height: var(--pv-button-body-height) !important;
  min-height: var(--pv-button-body-height) !important;
  grid-template-rows: 28px 72px 52px 275px minmax(74px, 1fr) !important;
}

/* Five rows need 5 x 47px plus four original 10px gaps = 275px. */
.property-list-card__summary {
  height: 275px !important;
  min-height: 275px !important;
  max-height: 275px !important;
  grid-template-rows: repeat(5, var(--pv-transaction-row-height)) !important;
  grid-auto-rows: var(--pv-transaction-row-height) !important;
  row-gap: var(--pv-summary-row-gap) !important;
}

.property-list-card__summary > .pv-transaction-term,
.property-list-card__summary > .pv-transaction-value {
  min-height: var(--pv-transaction-row-height) !important;
  max-height: var(--pv-transaction-row-height) !important;
}

.property-card-detail {
  align-self: start !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 12px 0 0 !important;
  padding: 0 16px !important;
  border: 1px solid rgba(142, 97, 40, 0.7) !important;
  border-radius: 3px !important;
  background-color: var(--pv-button-gold) !important;
  background-image: linear-gradient(120deg, var(--pv-button-gold-dark) 0%, var(--pv-button-gold) 54%, var(--pv-button-gold-light) 100%) !important;
  box-shadow: 0 7px 16px rgba(98, 67, 29, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.14em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: 0 1px 1px rgba(59, 37, 13, 0.2);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background-image 180ms ease !important;
}

/* Prevent the site's link/visited/selected rules from turning the button black. */
.property-list-card > a:link .property-card-detail,
.property-list-card > a:visited .property-card-detail,
.property-list-card > a:hover .property-card-detail,
.property-list-card > a:focus .property-card-detail,
.property-list-card > a:focus-visible .property-card-detail,
.property-list-card > a:active .property-card-detail,
.property-list-card:hover > a .property-card-detail,
.property-list-card:focus-within > a .property-card-detail {
  background-color: var(--pv-button-gold) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}

.property-card-detail::after {
  content: "→" !important;
  display: inline-block;
  margin-left: 11px;
  font-size: 15px;
  line-height: 1;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateX(0);
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .property-list-card:hover > a .property-card-detail,
  .property-list-card:focus-within > a .property-card-detail {
    background-color: var(--pv-button-gold-hover) !important;
    background-image: linear-gradient(120deg, var(--pv-button-gold-hover-dark) 0%, var(--pv-button-gold-hover) 54%, var(--pv-button-gold-hover-light) 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    filter: brightness(1.025);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(98, 67, 29, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  }

  .property-list-card:hover > a .property-card-detail::after,
  .property-list-card:focus-within > a .property-card-detail::after {
    transform: translateX(4px);
  }
}

.property-list-card > a:active .property-card-detail {
  background-color: #a87535 !important;
  background-image: linear-gradient(120deg, #7e5422 0%, #a87535 58%, #c79d5b 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  filter: none;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .property-card-detail,
  .property-card-detail::after {
    transition: none !important;
  }
}
