/* Property Card, gallery and property-detail styles. */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.listing-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--tight-shadow);
}

.listing-card.is-boosted {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 162, 76, 0.18);
}

.listing-frame {
    position: relative;
    overflow: hidden;
    background: var(--soft-blue);
}

.listing-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    color: var(--muted);
    text-decoration: none;
}

.listing-gallery-track {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    transition: transform 180ms ease;
}

.listing-slide {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 0 0 100%;
    align-self: stretch;
    overflow: hidden;
    place-items: center;
    background: var(--soft-blue);
    visibility: hidden;
}

.listing-gallery-track:not(.is-gallery-ready) .listing-slide:first-child,
.listing-slide.is-active {
    visibility: visible;
}

.listing-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.listing-slide.is-media-fallback {
    padding: 1rem;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.listing-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: var(--gold);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(13, 21, 36, 0.72);
    color: #ffffff;
    transform: translateY(-50%);
}

.gallery-nav-prev {
    left: 0.55rem;
}

.gallery-nav-next {
    right: 0.55rem;
}

.gallery-dots {
    position: absolute;
    top: 0.85rem;
    right: 0.75rem;
    display: flex;
    gap: 0.3rem;
}

.gallery-dots span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
}

.gallery-dots span.active {
    background: #ffffff;
}

.agency-overlay {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    max-width: calc(100% - 1.5rem);
    min-height: 2.35rem;
    gap: 0.45rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 0.35rem 1rem rgba(20, 30, 45, 0.12);
}

.agency-overlay img,
.agency-overlay span {
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
    background: var(--night);
    color: #ffffff;
}

.agency-overlay span {
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 900;
}

.agency-overlay b {
    min-width: 0;
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-body {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.listing-body h2,
.listing-body h3,
.listing-body p {
    margin: 0;
}

.listing-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.listing-meta-row span {
    min-height: 1.55rem;
    padding: 0.18rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.listing-location {
    color: var(--muted);
    font-size: 0.95rem;
}

.mini-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.mini-details div {
    min-width: 0;
}

.mini-details dt {
    font-size: 0.75rem;
}

.mini-details dd {
    font-size: 0.9rem;
}

.listing-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.property-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.5rem 0;
}

.property-copy {
    align-self: center;
}

.property-gallery {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.75rem;
}

.property-gallery-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.property-gallery-strip {
    display: flex;
    min-width: 0;
    gap: 0.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.property-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    background: #e9eef0;
}

.property-gallery-strip img {
    flex: 0 0 clamp(7.5rem, 30%, 11rem);
    scroll-snap-align: start;
}

@media (max-width: 42rem) {

    .property-hero {
        display: block;
    }

    .property-gallery {
        margin-top: 1rem;
    }

    .property-gallery {
        flex-direction: row;
        gap: 0.75rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .property-gallery-featured,
.property-gallery-strip {
        display: contents;
    }

    .property-gallery img {
        flex: 0 0 min(82vw, 21rem);
        scroll-snap-align: start;
    }

    .agency-overlay {
        right: 0.55rem;
        bottom: 0.55rem;
        left: 0.55rem;
    }

    .listing-actions,
.mini-details {
        grid-template-columns: 1fr;
    }}

.listing-grid {
    gap: 1.25rem;
}

.home-body .listing-card {
    box-shadow: 0 1rem 2.35rem rgba(15, 23, 42, 0.1);
}

.home-body .listing-card.is-boosted {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(237, 79, 135, 0.18), 0 1rem 2.35rem rgba(15, 23, 42, 0.12);
}

.home-body .listing-badge {
    background: var(--accent);
}

@media (max-width: 42rem) {

    .property-gallery {
        display: grid;
        gap: 0.75rem;
        overflow: visible;
        padding-bottom: 0;
    }

    .property-gallery-featured,
.property-gallery-strip {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        overflow: visible;
        padding-bottom: 0;
    }

    .property-gallery-strip img {
        flex: 0 1 auto;
    }}

.listing-badge,
.listing-meta-row span,
.listing-slide.is-media-fallback,
.agency-overlay span {
    font-weight: 600;
}

.listing-location {
    font-weight: 400;
}

.public-full-width .page-shell > .property-hero {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(2.5rem, 5vw, 5rem) var(--public-gutter);
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

@media (max-width: 42rem) {
    .public-full-width .page-shell > .property-hero {
        padding-right: 1rem;
        padding-left: 1rem;
    }}

.public-body .listing-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
    gap: 1.9rem;
}

.public-body .listing-card {
    position: relative;
    display: grid;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #dfe8f3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1rem 2.2rem rgba(31, 43, 74, 0.12);
}

.public-body .listing-card::after {
    display: none;
}

.public-body .listing-card:hover,
.public-body .listing-card:focus-within {
    border-color: #c9d8e8;
    box-shadow: 0 1.15rem 2.6rem rgba(31, 43, 74, 0.16);
}

.public-body .listing-frame {
    min-height: 0;
    border-bottom: 1px solid #e5edf7;
    background: #edf4fb;
}

.public-body .listing-media {
    min-height: 12rem;
    aspect-ratio: 16 / 10;
    background: #edf4fb;
}

.public-body .listing-slide {
    background: #edf4fb;
}

.public-body .listing-badge {
    z-index: 4;
    top: 0.85rem;
    right: 0.85rem;
    left: auto;
    border-radius: 999px;
    background: var(--townhub-rose);
    box-shadow: 0 0.65rem 1.35rem rgba(244, 93, 146, 0.28);
}

.public-body .gallery-nav {
    z-index: 5;
    top: 50%;
    width: 2.35rem;
    min-height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.88);
    color: #23344f;
    box-shadow: 0 0.45rem 1.1rem rgba(19, 31, 55, 0.18);
    transform: translateY(-50%);
}

.public-body .gallery-nav:hover,
.public-body .gallery-nav:focus {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--townhub-blue-dark);
}

.public-body .gallery-dots {
    z-index: 5;
    right: 0.85rem;
    bottom: 0.85rem;
    top: auto;
    align-items: center;
    padding: 0.28rem 0.35rem;
    border-radius: 999px;
    background: rgba(18, 30, 50, 0.32);
}

.public-body .gallery-dots span {
    background: rgba(255, 255, 255, 0.62);
}

.public-body .gallery-dots span.active {
    background: #ffffff;
}

.public-body .agency-overlay {
    position: static;
    z-index: auto;
    inset: auto;
    width: 100%;
    max-width: none;
    min-height: 2.45rem;
    padding: 0.42rem 0.5rem;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    background: #f7faff;
    color: #263a59;
    box-shadow: none;
}

.public-body .agency-overlay span {
    background: var(--townhub-blue);
}

.public-body .agency-overlay b {
    color: #263a59;
}

.public-body .listing-body {
    position: static;
    z-index: auto;
    gap: 0.78rem;
    padding: 1rem;
    background: #ffffff;
    color: var(--townhub-ink);
}

.public-body .listing-body a,
.public-body .listing-body h2,
.public-body .listing-body h3 {
    color: var(--townhub-ink);
}

.public-body .listing-body h2 a,
.public-body .listing-body h3 a {
    display: -webkit-box;
    min-height: 2.55rem;
    overflow: hidden;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.public-body .listing-body h2 a:hover,
.public-body .listing-body h2 a:focus,
.public-body .listing-body h3 a:hover,
.public-body .listing-body h3 a:focus {
    color: var(--townhub-blue-dark);
    text-decoration: underline;
}

.public-body .listing-meta-row {
    gap: 0.4rem;
}

.public-body .listing-meta-row span {
    border: 1px solid #dbe6f2;
    border-radius: 999px;
    background: #f7fbff;
    color: #516582;
    font-size: 0.74rem;
}

.public-body .listing-meta-row span:nth-child(2) {
    border-color: rgba(31, 138, 131, 0.22);
    background: rgba(31, 138, 131, 0.08);
    color: #21635f;
}

.public-body .listing-body h2,
.public-body .listing-body h3 {
    font-size: 1.08rem;
    line-height: 1.22;
}

.public-body .listing-location {
    display: -webkit-box;
    overflow: hidden;
    color: #5d6f86;
    font-size: 0.9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.public-body .mini-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.1rem;
    border: 0;
}

.public-body .mini-details div {
    display: flex;
    min-width: 0;
    min-height: 2.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.52rem 0.55rem;
    border: 1px solid #e0e8f2;
    border-radius: 8px;
    background: #f8fbfe;
}

.public-body .mini-details div:last-child {
    border-right: 1px solid #e0e8f2;
}

.public-body .mini-details dt {
    color: #6b7f97;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-body .mini-details dd {
    min-width: 0;
    color: #1d2c44;
    font-size: 0.86rem;
    font-weight: 760;
    overflow-wrap: anywhere;
    text-align: right;
}

.public-body .listing-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.05rem;
}

.public-body .listing-actions .button-link,
.public-body .listing-actions .button-secondary {
    justify-content: center;
    min-height: 2.45rem;
    box-shadow: none;
}

.public-body .listing-actions .button-link {
    border-color: var(--townhub-blue);
    background: var(--townhub-blue);
    color: #ffffff;
}

.public-body .listing-actions .button-secondary {
    border-color: #dbe6f2;
    background: #ffffff;
    color: #1d2c44;
}

.public-body .listing-actions .button-link:hover,
.public-body .listing-actions .button-link:focus {
    border-color: var(--townhub-blue-dark);
    background: var(--townhub-blue-dark);
}

.public-body .listing-actions .button-secondary:hover,
.public-body .listing-actions .button-secondary:focus {
    border-color: var(--townhub-blue);
    background: #eff7ff;
    color: var(--townhub-blue-dark);
}

@media (max-width: 42rem) {

    .public-body .listing-card,
.public-body .listing-frame,
.public-body .listing-media {
        min-height: 0;
    }

    .public-body .listing-media {
        min-height: 14rem;
        aspect-ratio: 16 / 10;
    }

    .public-body .listing-body {
        padding: 0.95rem;
    }

    .public-body .mini-details {
        grid-template-columns: 1fr;
    }

    .public-body .mini-details div {
        min-height: 2.55rem;
    }

    .public-body .listing-actions {
        grid-template-columns: 1fr;
    }}

/* Property detail layout pass: title first, gallery second, stronger detail cards. */
.property-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.9rem;
}

.property-copy {
    width: min(76rem, 100%);
    align-self: start;
}

.property-copy h1 {
    width: 100%;
    max-width: 70rem;
    margin: 0.35rem 0 0;
}

.property-price-line {
    width: min(70rem, 100%);
    max-width: none;
    margin-top: 0.85rem;
    color: #314155;
    font-size: 1.25rem;
    font-weight: 650;
}

.public-full-width .page-shell > .property-gallery-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(1.5rem, 3.2vw, 3rem) var(--public-gutter) clamp(2.5rem, 5vw, 5rem);
    border: 0;
    border-radius: 0;
    background: #f6f8fb;
    box-shadow: none;
}

.property-gallery-panel .property-gallery {
    width: min(86rem, 100%);
    margin: 0;
}

.property-gallery-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.property-gallery-strip {
    display: flex;
    min-width: 0;
    gap: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0.1rem 0 0.45rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.property-gallery-item {
    display: block;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cbd8e6;
    border-radius: 8px;
    background: #e8eef5;
    box-shadow: 0 12px 28px rgba(37, 49, 65, 0.11);
    cursor: zoom-in;
}

.property-gallery-item:focus-visible {
    outline: 3px solid rgba(201, 162, 76, 0.45);
    outline-offset: 3px;
}

.property-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    object-fit: cover;
    transition: transform 180ms ease;
}

.property-gallery-item:hover img,
.property-gallery-item:focus-visible img {
    transform: scale(1.025);
}

.property-gallery-strip .property-gallery-item {
    flex: 0 0 clamp(6.5rem, 12vw, 9rem);
    scroll-snap-align: start;
    box-shadow: 0 8px 18px rgba(37, 49, 65, 0.09);
}

.property-gallery-strip .property-gallery-item img {
    aspect-ratio: 1 / 1;
}

.property-details-grid > div {
    border-color: #c9d8e8;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(35, 48, 67, 0.08);
}

.property-details-grid dt {
    color: #52657a;
    font-weight: 750;
}

.property-details-grid dd {
    color: #142033;
}

.property-description-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.property-description-copy {
    min-width: 0;
}

.property-description-copy .description-text {
    max-width: 58rem;
}

.property-location-details {
    max-width: 58rem;
}

.property-map-column h3 {
    margin: 0 0 0.75rem;
}

.property-map-card {
    position: relative;
    display: grid;
    gap: 0.85rem;
    align-content: start;
    min-height: 20rem;
    padding: 1rem;
    overflow: hidden;
    border: 2px solid #cbd8e6;
    border-radius: 8px;
    background: #f8fbfd;
    color: #172437;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(35, 48, 67, 0.12);
}

.property-map-card.is-available {
    border-color: #2f9f62;
    background: #f3fbf6;
    box-shadow: 0 18px 38px rgba(29, 122, 71, 0.18);
}

.property-map-card.is-unavailable {
    border-color: #d87070;
    background: #fff7f7;
    box-shadow: 0 16px 34px rgba(145, 55, 55, 0.12);
}

.property-map-card.is-link:hover,
.property-map-card.is-link:focus {
    border-color: #1d7a47;
    color: #123728;
    text-decoration: none;
    transform: translateY(-1px);
}

.map-status-pill {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 0.4rem;
    padding: 0.32rem 0.58rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.map-status-pill.is-available {
    color: #10663c;
}

.map-status-pill.is-unavailable {
    color: #a33c3c;
}

.map-status-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: currentColor;
}

.map-status-pill.is-available .map-status-dot {
    box-shadow: 0 0 0 4px rgba(36, 156, 90, 0.16);
}

.map-status-pill.is-unavailable .map-status-dot {
    box-shadow: 0 0 0 4px rgba(184, 72, 72, 0.14);
}

.map-card-copy {
    display: grid;
    gap: 0.22rem;
}

.map-card-copy strong {
    color: #172437;
    font-size: 1.05rem;
}

.map-card-copy span {
    color: #5d6f82;
    font-size: 0.92rem;
}

.property-lightbox[hidden] {
    display: none;
}

.property-lightbox {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    align-items: center;
    gap: 0.75rem;
    padding: 4rem clamp(1rem, 4vw, 3rem);
    background: rgba(8, 14, 24, 0.92);
}

body.is-lightbox-open {
    overflow: hidden;
}

.property-lightbox-frame {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    min-width: 0;
    margin: 0;
}

.property-lightbox-frame img {
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    border-radius: 8px;
    object-fit: contain;
    background: #111827;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.property-lightbox-frame figcaption {
    max-width: min(56rem, 100%);
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.property-lightbox-close,
.property-lightbox-nav {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    box-shadow: none;
}

.property-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.property-lightbox-close:hover,
.property-lightbox-close:focus,
.property-lightbox-nav:hover,
.property-lightbox-nav:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.property-lightbox.is-single .property-lightbox-nav {
    visibility: hidden;
}

@media (max-width: 64rem) {
    .property-description-layout {
        grid-template-columns: 1fr;
    }

    .property-map-card {
        min-height: 15rem;
    }}

@media (max-width: 42rem) {
    .public-full-width .page-shell > .property-gallery-panel {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .property-gallery-featured {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .property-gallery-featured .property-gallery-item {
        min-width: 0;
        width: 100%;
        flex: none;
        scroll-snap-align: unset;
    }

    .property-gallery-featured .property-gallery-item img {
        aspect-ratio: 4 / 3;
    }

    .property-gallery-strip {
        display: flex;
        gap: 0.55rem;
        overflow-x: auto;
        padding-bottom: 0.45rem;
        scroll-snap-type: x proximity;
    }

    .property-gallery-strip .property-gallery-item {
        flex: 0 0 5.75rem;
    }

    .property-gallery-strip .property-gallery-item img {
        aspect-ratio: 1 / 1;
    }

    .property-lightbox {
        grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
        gap: 0.4rem;
        padding: 4rem 0.6rem 2rem;
    }

    .property-lightbox-close,
.property-lightbox-nav {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.45rem;
    }

    .property-lightbox-frame img {
        max-height: calc(100vh - 8rem);
    }}

/* Client reference 2026-08-05: clean photo and white information body shared by Home, Search and Project. */
.public-body .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(0.9rem, 1.35vw, 1.35rem);
}

.public-body .premium-property-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 0.65rem 1.8rem rgba(24, 39, 65, 0.1);
    isolation: isolate;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.public-body .premium-property-card:hover,
.public-body .premium-property-card:focus-within {
    border-color: #c6d1df;
    box-shadow: 0 0.9rem 2.2rem rgba(24, 39, 65, 0.15);
    transform: translateY(-2px);
}

.public-body .premium-property-card.is-boosted {
    border-color: #d5b367;
    box-shadow: 0 0 0 2px rgba(200, 162, 93, 0.14), 0 0.75rem 2rem rgba(24, 39, 65, 0.12);
}

.public-body .premium-property-card .listing-frame {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 0;
    flex-direction: column;
    overflow: visible;
    border: 0;
    background: #ffffff;
}

.public-body .premium-property-card .listing-frame::before {
    display: none;
}

.listing-media-shell {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #edf2f7;
}

.public-body .premium-property-card .listing-media {
    position: absolute;
    inset: 0;
    min-height: 0;
    aspect-ratio: auto;
    background: #edf2f7;
}

.public-body .premium-property-card .listing-gallery-track,
.public-body .premium-property-card .listing-slide {
    height: 100%;
    background: #edf2f7;
}

.public-body .premium-property-card .listing-media img {
    object-fit: cover;
    object-position: center center;
    transform: none;
    transition: none;
}

.public-body .premium-property-card .media-placeholder,
.public-body .premium-property-card .listing-slide.is-media-fallback {
    color: #6b7788;
    background: #edf2f7;
}

.public-body .premium-property-card .gallery-nav {
    z-index: 4;
    top: 50%;
    width: 2.15rem;
    min-height: 2.15rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #142847;
    box-shadow: 0 0.25rem 0.75rem rgba(10, 24, 44, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.public-body .premium-property-card .gallery-nav:hover,
.public-body .premium-property-card .gallery-nav:focus-visible {
    border-color: #ffffff;
    background: #ffffff;
    color: #9b732d;
}

.listing-card-tool svg,
.listing-location-badge svg,
.listing-photo-count svg,
.listing-location svg,
.listing-map-icon svg,
.mini-details svg,
.gallery-nav svg {
    display: block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-body .premium-property-card .listing-body {
    position: static;
    z-index: auto;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.58rem;
    padding: 0.78rem;
    background: #ffffff;
    color: #152641;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.listing-card-topbar {
    position: static;
    display: flex;
    min-width: 0;
    min-height: 2rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.public-body .premium-property-card .agency-overlay {
    position: static;
    inset: auto;
    display: flex;
    width: auto;
    max-width: calc(100% - 4.75rem);
    min-height: 2rem;
    align-items: center;
    gap: 0.42rem;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #34445a;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.public-body .premium-property-card .agency-overlay img,
.public-body .premium-property-card .agency-overlay span {
    width: 1.8rem;
    height: 1.8rem;
    border: 0;
    border-radius: 6px;
    background: #347bd5;
    color: #ffffff;
}

.public-body .premium-property-card .agency-overlay b {
    min-width: 0;
    overflow: hidden;
    color: #34445a;
    font-size: 0.7rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-card-tools {
    display: flex;
    flex: 0 0 auto;
    gap: 0.32rem;
    margin-left: auto;
}

.listing-card-tool {
    display: inline-flex;
    width: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d9e1eb;
    border-radius: 50%;
    background: #ffffff;
    color: #536176;
    box-shadow: none;
}

.listing-card-tool:hover,
.listing-card-tool:focus-visible,
.listing-card-tool[aria-pressed="true"] {
    border-color: #c8a25d;
    background: #fffaf0;
    color: #142847;
}

.listing-card-tool[aria-pressed="true"] svg {
    fill: #d04e6e;
    stroke: #d04e6e;
}

.listing-card-badges {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    pointer-events: none;
}

.listing-status-badge,
.listing-location-badge,
.public-body .premium-property-card .listing-badge,
.listing-photo-count {
    position: static;
    display: inline-flex;
    min-height: 1.45rem;
    align-items: center;
    gap: 0.22rem;
    padding: 0.18rem 0.42rem;
    border: 1px solid #dfe5ec;
    border-radius: 999px;
    background: #f5f7fa;
    color: #566478;
    box-shadow: none;
    font-size: 0.61rem;
    font-weight: 750;
    line-height: 1.15;
    text-transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.listing-status-badge.is-rent.is-highlighted {
    border-color: #a9d7c0;
    background: #e9f7f0;
    color: #176943;
}

.listing-status-badge.is-sale.is-highlighted {
    border-color: #adc9eb;
    background: #edf5ff;
    color: #215f9e;
}

.listing-status-badge.is-availability {
    border-color: #dfe5ec;
    background: #f5f7fa;
    color: #566478;
}

.listing-location-badge svg,
.listing-photo-count svg {
    width: 0.76rem;
    height: 0.76rem;
}

.public-body .premium-property-card .listing-badge {
    inset: auto;
    border-color: #dbc486;
    background: #fff6dc;
    color: #76561e;
}

.listing-photo-count {
    margin-left: auto;
}

.listing-primary-price p,
.public-body .premium-property-card .listing-body h2,
.public-body .premium-property-card .listing-body h3,
.public-body .premium-property-card .listing-body p {
    margin: 0;
}

.public-body .premium-property-card .listing-body h2,
.public-body .premium-property-card .listing-body h3 {
    font-size: 0.92rem;
    line-height: 1.3;
}

.public-body .premium-property-card .listing-body h2 a,
.public-body .premium-property-card .listing-body h3 a {
    display: block;
    min-height: 0;
    overflow: visible;
    color: #152641;
    font-weight: 800;
    text-decoration: none;
    text-shadow: none;
    -webkit-line-clamp: unset;
}

.public-body .premium-property-card .listing-body h2 a:hover,
.public-body .premium-property-card .listing-body h2 a:focus-visible,
.public-body .premium-property-card .listing-body h3 a:hover,
.public-body .premium-property-card .listing-body h3 a:focus-visible {
    color: #9b732d;
    text-decoration: underline;
}

.listing-location-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.public-body .premium-property-card .listing-location {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.32rem;
    overflow: visible;
    color: #67758a;
    font-size: 0.7rem;
    line-height: 1.3;
    -webkit-line-clamp: unset;
}

.public-body .premium-property-card .listing-location svg {
    width: 0.88rem;
    height: 0.88rem;
    margin-top: 0.02rem;
}

.public-body .premium-property-card .listing-map-icon {
    display: inline-flex;
    width: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8c38e;
    border-radius: 50%;
    background: #fffaf0;
    color: #9a722c;
    text-decoration: none;
}

.public-body .premium-property-card a.listing-map-icon:hover,
.public-body .premium-property-card a.listing-map-icon:focus-visible {
    border-color: #c8a25d;
    background: #c8a25d;
    color: #ffffff;
}

.public-body .premium-property-card .listing-map-icon.is-disabled {
    border-color: #e1e6ed;
    background: #f6f8fa;
    color: #a4adba;
    cursor: not-allowed;
}

.listing-primary-price p:first-child {
    color: #132440;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.15;
    text-shadow: none;
}

.listing-primary-price p span {
    color: #67758a;
    font-size: 0.72em;
    font-weight: 750;
}

.listing-primary-price .listing-secondary-price {
    margin-top: 0.2rem;
    color: #536176;
    font-size: 0.7rem;
    font-weight: 700;
}

.public-body .premium-property-card .mini-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0.55rem 0;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.public-body .premium-property-card .mini-details div {
    display: grid;
    min-width: 0;
    min-height: 2.75rem;
    align-content: center;
    justify-items: center;
    gap: 0.16rem;
    padding: 0 0.2rem;
    border: 0;
    border-right: 1px solid #edf0f4;
    border-radius: 0;
    background: transparent;
    color: #536176;
    text-align: center;
}

.public-body .premium-property-card .mini-details div:last-child {
    border-right: 0;
}

.public-body .premium-property-card .mini-details dt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.16rem;
    color: #7a8799;
    font-size: 0.5rem;
    font-weight: 650;
}

.public-body .premium-property-card .mini-details dt svg {
    width: 0.92rem;
    height: 0.92rem;
    color: #617087;
}

.public-body .premium-property-card .mini-details dd {
    min-width: 0;
    margin: 0;
    color: #273850;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.public-body .premium-property-card .mini-details dd small {
    font-size: 0.56rem;
    font-weight: 650;
}

.public-body .premium-property-card .listing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
    margin-top: auto;
    padding-top: 0.08rem;
}

.public-body .premium-property-card .listing-action {
    display: inline-flex;
    min-width: 0;
    min-height: 2.55rem;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 0.55rem;
    border: 1px solid #d8dee7;
    border-radius: 7px;
    color: #152641;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.public-body .premium-property-card .listing-action.is-details {
    border-color: #d8dee7;
    background: #ffffff;
    color: #152641;
}

.public-body .premium-property-card .listing-action.is-inquiry {
    border-color: #132d52;
    background: #132d52;
    color: #ffffff;
}

.public-body .premium-property-card a.listing-action:hover,
.public-body .premium-property-card a.listing-action:focus-visible {
    transform: translateY(-1px);
}

.public-body .premium-property-card a.listing-action.is-details:hover,
.public-body .premium-property-card a.listing-action.is-details:focus-visible {
    border-color: #c8a25d;
    background: #fffaf0;
    color: #76561e;
}

.public-body .premium-property-card a.listing-action.is-inquiry:hover,
.public-body .premium-property-card a.listing-action.is-inquiry:focus-visible {
    border-color: #0d2342;
    background: #0d2342;
}

.public-body .premium-property-card a.listing-action:active {
    transform: translateY(0);
}

.premium-property-card button:focus-visible,
.premium-property-card a:focus-visible {
    outline: 3px solid rgba(200, 162, 93, 0.42);
    outline-offset: 2px;
}

@media (max-width: 78rem) {
    .public-body .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 64rem) {
    .public-body .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 42rem) {
    .public-body .listing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .public-body .premium-property-card .listing-body {
        padding: 0.85rem;
    }

    .public-body .premium-property-card .listing-body h2,
    .public-body .premium-property-card .listing-body h3 {
        font-size: 1rem;
    }

    .listing-primary-price p:first-child {
        font-size: 1.12rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-body .premium-property-card,
    .public-body .premium-property-card .listing-action {
        transition: none;
    }

    .public-body .premium-property-card:hover,
    .public-body .premium-property-card:focus-within,
    .public-body .premium-property-card a.listing-action:hover,
    .public-body .premium-property-card a.listing-action:focus-visible {
        transform: none;
    }
}
