body.maple-v3 .maple-results-page .aq-market-property-card {
  --aq-card-edge: var(--maple-border, #dce1ed);
  --aq-card-media-button: rgb(15 25 46 / 84%);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-self: start;
  min-width: 0;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--aq-card-edge);
  border-radius: 16px;
  background: var(--maple-card, #fff);
  color: var(--maple-fg, #172445);
  box-shadow: 0 2px 8px rgb(13 25 51 / 5%);
}

body.maple-v3 .maple-results-page .aq-market-property-card [hidden] {
  display: none !important;
}

body.maple-v3 .maple-results-page .aq-market-property-card .aq-card-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: var(--maple-input, #e9edf5);
}

.maple-results-page .aq-market-property-card [data-aq-gallery-track] {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-template-rows: minmax(0, 1fr);
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.maple-results-page .aq-market-property-card [data-aq-gallery-track]::-webkit-scrollbar,
.maple-results-page .aq-market-property-card .aq-card-gallery-dots::-webkit-scrollbar {
  display: none;
}

.maple-results-page .aq-market-property-card .aq-card-media-slide {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  color: inherit;
  scroll-snap-align: start;
}

.maple-results-page .aq-market-property-card .aq-card-media-slide > img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.maple-results-page .aq-market-property-card .aq-card-media-slide > .aq-maple-image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

body.maple-v3 .maple-results-page .aq-market-property-card :is(.aq-card-favorite, [data-aq-slide-step]) {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  background: var(--aq-card-media-button);
  color: #fff;
  box-shadow: none;
}

body.maple-v3 .maple-results-page .aq-market-property-card .aq-card-favorite {
  inset: auto;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  transform: none;
  font-size: 19px;
}

body.maple-v3 .maple-results-page .aq-market-property-card .aq-card-favorite[aria-pressed="true"] {
  color: #ff9db0;
}

.maple-results-page .aq-market-property-card .aq-card-media > .aq-card-tier {
  position: absolute;
  z-index: 2;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  max-width: 38%;
  padding: 4px 9px;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 8px;
  background: var(--aq-card-media-button);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.maple-results-page .aq-market-property-card [data-aq-slide-step] {
  inset-block-start: 50%;
  transform: translateY(-50%);
}

.maple-results-page .aq-market-property-card [data-aq-slide-step="-1"] { inset-inline-start: 10px; }
.maple-results-page .aq-market-property-card [data-aq-slide-step="1"] { inset-inline-end: 10px; }

.maple-results-page .aq-market-property-card [data-aq-slide-step]:disabled {
  opacity: .42;
  cursor: default;
}

.maple-results-page .aq-market-property-card .aq-card-gallery-dots {
  position: absolute;
  z-index: 2;
  inset-block-end: 8px;
  inset-inline: 12px;
  display: flex;
  width: max-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  padding-inline: 4px;
  overflow: auto hidden;
  border-radius: 22px;
  background: var(--aq-card-media-button);
  scrollbar-width: none;
}

.maple-results-page .aq-market-property-card [data-aq-slide-to] {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  min-inline-size: 30px;
  min-block-size: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.maple-results-page .aq-market-property-card [data-aq-slide-to]::before {
  width: 7px;
  height: 7px;
  border-radius: 8px;
  background: rgb(255 255 255 / 65%);
  content: "";
}

.maple-results-page .aq-market-property-card [data-aq-slide-to][aria-current="true"]::before {
  width: 16px;
  background: #fff;
}

body.maple-v3 .maple-results-page .aq-market-property-card .aq-card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  padding: 14px 16px;
}

.maple-results-page .aq-market-property-card .aq-card-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
}

.maple-results-page .aq-market-property-card .aq-card-labels:not(:has(> *)) {
  display: none;
}

body.maple-v3 .maple-results-page .aq-market-property-card .aq-card-labels > * {
  position: static;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--aq-card-edge);
  border-radius: 7px;
  background: var(--maple-primary-soft, var(--maple-card, #fff));
  color: var(--maple-fg, #172445);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  white-space: normal;
  transform: none;
}

.maple-results-page .aq-market-property-card .aq-card-price {
  min-width: 0;
  margin: 0;
  color: var(--maple-fg, #172445);
  font-size: clamp(22px, 3.1vw, 29px);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.maple-results-page .aq-market-property-card .aq-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.maple-results-page .aq-market-property-card .aq-card-title {
  margin: 0;
  color: var(--maple-fg, #172445);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.maple-results-page .aq-market-property-card .aq-card-title a {
  color: inherit;
  text-decoration: none;
}

.maple-results-page .aq-market-property-card :is(.aq-card-specs, .aq-card-location) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  padding: 0;
  margin: 0;
  color: var(--maple-muted, #515f77);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.maple-results-page .aq-market-property-card .aq-card-specs > * {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.maple-results-page .aq-market-property-card .aq-card-location {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 6px;
}

.maple-results-page .aq-market-property-card :is(.aq-card-specs, .aq-card-location) svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.maple-results-page .aq-market-property-card .aq-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 9px;
  padding: 0;
  margin: 0;
  border: 0;
  color: var(--maple-muted, #515f77);
  font-size: 12px;
  line-height: 1.55;
}

.maple-results-page .aq-market-property-card .aq-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-block-start: 9px;
  margin-block-start: auto;
  border-top: 1px solid var(--aq-card-edge);
}

.maple-results-page .aq-market-property-card .aq-card-agent {
  display: flex;
  flex: 1 1 96px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  color: var(--maple-fg, #172445);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.maple-results-page .aq-market-property-card .aq-card-agent-avatar {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--aq-card-edge);
  border-radius: 50%;
  background: var(--maple-input, #e9edf5);
  object-fit: cover;
}

.maple-results-page .aq-market-property-card .aq-card-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maple-results-page .aq-market-property-card .aq-card-agent-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.maple-results-page .aq-market-property-card .aq-card-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-inline-start: auto;
}

body.maple-v3 .maple-results-page .aq-market-property-card .aq-card-contact > :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 7px 10px;
  margin: 0;
  border: 1px solid var(--aq-card-edge);
  border-radius: 10px;
  background: var(--maple-card, #fff);
  color: var(--maple-fg, #172445);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  white-space: normal;
}

.maple-results-page .aq-market-property-card .aq-card-contact svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

.maple-results-page .aq-market-property-card .aq-card-contact-label {
  display: none;
}

.maple-results-page .aq-market-property-card :is(a, button):focus-visible {
  outline: 2px solid var(--maple-primary, #426ab9);
  outline-offset: 2px;
}

.maple-results-page .aq-market-property-card .aq-card-media :is(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 2px #1b325f;
}

@media (min-width: 768px) {
  body.maple-v3 .maple-results-page .property-grid.list-view > .aq-market-property-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: stretch;
  }

  body.maple-v3 .maple-results-page .property-grid.list-view > .aq-market-property-card .aq-card-media {
    min-height: 240px;
    aspect-ratio: auto;
  }

  body.maple-v3 .maple-results-page .property-grid.list-view > .aq-market-property-card .aq-card-main {
    padding: 17px 19px;
  }

  body.maple-v3 .maple-results-page .property-grid.list-view > .aq-market-property-card .aq-card-price-row > .aq-card-favorite {
    inset-inline-start: calc(45.45% - 54px);
    inset-inline-end: auto;
  }
}

@media (max-width: 767px) {
  body.maple-v3 .maple-results-page .aq-market-property-card .aq-card-media {
    aspect-ratio: auto;
    background: transparent;
  }

  .maple-results-page .aq-market-property-card [data-aq-gallery-track] {
    position: relative;
    inset: auto;
    aspect-ratio: 3 / 2;
    border-radius: 14px;
    background: var(--maple-input, #e9edf5);
  }

  body.maple-v3 .maple-results-page .aq-market-property-card [data-aq-slide-step] {
    display: none;
  }

  .maple-results-page .aq-market-property-card .aq-card-gallery-dots {
    position: static;
    max-width: 100%;
    margin-block: 2px 0;
    padding-inline: 0;
    background: transparent;
  }

  .maple-results-page .aq-market-property-card [data-aq-slide-to]::before {
    background: var(--maple-muted, #515f77);
    opacity: .45;
  }

  .maple-results-page .aq-market-property-card [data-aq-slide-to][aria-current="true"]::before {
    background: var(--maple-primary, #1b325f);
    opacity: 1;
  }

  .maple-results-page .aq-market-property-card .aq-card-gallery-dots button:focus-visible {
    outline: 2px solid var(--maple-primary, #426ab9);
    outline-offset: -3px;
    box-shadow: none;
  }

  .maple-results-page .aq-market-property-card .aq-card-media > .aq-card-tier {
    inset-inline-start: auto;
    inset-inline-end: 10px;
  }

  .maple-results-page .aq-market-property-card .aq-card-agent {
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    max-width: min(56%, 210px);
    min-height: 36px;
    padding: 3px 6px 3px 9px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 9px;
    background: var(--aq-card-media-button);
    color: #fff;
  }

  .maple-results-page .aq-market-property-card .aq-card-agent-avatar {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .maple-results-page .aq-market-property-card .aq-card-agent-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.maple-v3 .maple-results-page .aq-market-property-card .aq-card-price-row > .aq-card-favorite {
    position: static;
    flex: 0 0 44px;
    border-color: var(--aq-card-edge);
    border-radius: 11px;
    background: var(--maple-card, #fff);
    color: var(--maple-fg, #172445);
  }

  body.maple-v3 .maple-results-page .aq-market-property-card .aq-card-price-row > .aq-card-favorite[aria-pressed="true"] {
    color: var(--maple-accent, #bc3853);
  }

  .maple-results-page .aq-market-property-card .aq-card-contact {
    display: grid;
    flex: 1 1 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
  }

  .maple-results-page .aq-market-property-card .aq-card-contact > :only-child {
    grid-column: 1 / -1;
  }

  .maple-results-page .aq-market-property-card .aq-card-contact-label {
    display: inline;
  }
}

body.maple-property-detail a.aq-detail-return {
  display: none;
}

@media (max-width: 767px) {
  body.maple-v3.maple-property-detail .maple-property-content:has(> [data-aq-detail-gallery]) {
    display: flex;
    flex-direction: column;
  }

  body.maple-v3.maple-property-detail .maple-property-content > [data-aq-detail-gallery] {
    order: -1;
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }

  body.maple-property-detail [data-aq-detail-gallery] > button:nth-of-type(n + 2) { display: none; }

  body.maple-property-detail a.aq-detail-return {
    position: absolute;
    z-index: 2;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--maple-card, #fff);
    color: var(--maple-fg, #172445);
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
  }

  body.maple-property-detail a.aq-detail-return svg { width: 20px; height: 20px; }

  body.maple-property-detail .sticky-contact.aq-detail-agent-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.maple-property-detail .sticky-contact.aq-detail-agent-contact:has(> a:only-of-type) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.maple-property-detail [data-aq-detail-gallery] .photo-count {
    direction: ltr;
    unicode-bidi: isolate;
  }

  .aq-detail-agent-contact .aq-detail-contact-name {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
    color: var(--maple-fg, #172445);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

body.maple-property-detail .aq-detail-gallery-controls { display: none; }

@media (max-width: 767px) {
  body.maple-property-detail .aq-detail-gallery-swipe > button[data-aq-index] {
    touch-action: pan-y pinch-zoom;
    user-select: none;
  }

  body.maple-property-detail .aq-detail-gallery-swipe > .aq-detail-gallery-controls {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    pointer-events: none;
  }

  body.maple-property-detail .aq-detail-gallery-controls > .aq-detail-gallery-step {
    position: absolute;
    inset-block-start: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 14px;
    background: rgb(17 28 43 / 68%);
    color: #fff;
    backdrop-filter: blur(8px);
    pointer-events: auto;
  }

  .aq-detail-gallery-step-previous { inset-inline-start: 10px; }
  .aq-detail-gallery-step-next { inset-inline-end: 10px; }

  body.maple-property-detail .aq-detail-gallery-step[aria-disabled="true"] {
    opacity: .5;
    cursor: default;
  }

  body.maple-property-detail .aq-detail-gallery-step:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -5px;
  }

  body.maple-property-detail .aq-detail-gallery-step svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .aq-detail-gallery-step-next svg,
  .aq-detail-gallery-step-previous:dir(rtl) svg { transform: rotate(180deg); }
  .aq-detail-gallery-step-next:dir(rtl) svg { transform: none; }
}

.aq-property-location-dialog {
  position: fixed;
  inset: 0;
  inline-size: min(800px, calc(100% - 28px));
  max-inline-size: 100%;
  max-block-size: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--maple-border, #d5ddeb);
  border-radius: 18px;
  background: var(--maple-card, #fff);
  color: var(--maple-fg, #172445);
  box-shadow: 0 16px 58px rgb(12 25 46 / 28%);
}

.aq-property-location-dialog:not([open]) {
  display: none;
}

.aq-property-location-dialog[open] {
  animation: aq-property-location-enter 150ms ease-out both;
}

.aq-property-location-dialog::backdrop {
  background: rgb(10 22 44 / 49%);
}

.aq-property-location-dialog :is(.aq-property-location-heading, .aq-property-location-actions) {
  display: flex;
  align-items: center;
  padding: 8px 14px;
}

.aq-property-location-dialog .aq-property-location-heading {
  justify-content: space-between;
  gap: 12px;
}

.aq-property-location-dialog .aq-property-location-heading > h2 {
  margin: 0;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 750;
}

.aq-property-location-dialog .aq-property-location-close {
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.aq-property-location-close > svg {
  inline-size: 21px;
  block-size: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.aq-property-location-view {
  position: relative;
  display: grid;
  place-items: center;
  block-size: clamp(180px, 62dvh, 520px);
  border-block: 1px solid var(--maple-border, #d5ddeb);
  background: var(--maple-subtle, #edf2f5);
}

.aq-property-location-view :is(.aq-property-location-frame, .aq-property-location-status) {
  grid-area: 1 / 1;
}

.aq-property-location-view .aq-property-location-frame {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  border: 0;
  visibility: hidden;
}

.aq-property-location-view .aq-property-location-frame-ready {
  visibility: visible;
}

.aq-property-location-view .aq-property-location-status {
  margin: 0;
  padding: 18px;
  color: var(--maple-muted, #43546c);
  text-align: center;
}

.aq-property-location-view .aq-property-location-status[hidden] {
  display: none;
}

.aq-property-location-dialog .aq-property-location-actions {
  justify-content: flex-start;
  padding-block-end: max(8px, env(safe-area-inset-bottom));
}

.aq-property-location-dialog .aq-property-location-full {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 14px;
  border-radius: 10px;
  background: var(--maple-primary, #235854);
  color: var(--maple-primary-ink, #fff);
  font-weight: 700;
  text-decoration: none;
}

.aq-property-location-dialog :is(button, a):focus-visible {
  outline: 2px solid var(--maple-primary, #235854);
  outline-offset: 2px;
}

@keyframes aq-property-location-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .aq-property-location-dialog {
    inset: auto 0 0;
    inline-size: 100%;
    margin: 0;
    border-radius: 18px 18px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aq-property-location-dialog[open] {
    animation: none;
  }
}

@media (max-width: 767px) {
  body.maple-property-detail .sticky-contact.aq-detail-agent-contact {
    border: 1px solid var(--maple-border, #d5ddeb);
    background: var(--maple-card, #fff);
    background: color-mix(in srgb, var(--maple-card, #fff) 90%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.maple-property-detail .sticky-contact.aq-detail-agent-contact {
    background: var(--maple-card, #fff);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    display: none;
  }

  ::view-transition-new(root) {
    animation: none;
  }

  ::view-transition-group(aq-listing-opening-photo) {
    animation-duration: 240ms;
    animation-timing-function: cubic-bezier(.2,.7,.25,1);
  }
}

body.maple-property-detail .aq-detail-contact-seller {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

body.maple-property-detail .aq-detail-contact-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--maple-card, #fff);
}

body.maple-property-detail .aq-detail-contact-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
