/* 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);
    }}

/* Premium property card: photo-led glass layout shared by Home, Search and Project. */
.public-body .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1rem, 1.6vw, 1.6rem);
}

.public-body .premium-property-card {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(28, 48, 76, 0.22);
    border-radius: 24px;
    background: #101a29;
    box-shadow: 0 1.35rem 3.2rem rgba(16, 27, 45, 0.2);
    isolation: isolate;
    transform: translateZ(0);
    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: rgba(91, 182, 255, 0.54);
    box-shadow: 0 1.65rem 3.7rem rgba(16, 27, 45, 0.28);
    transform: translateY(-3px);
}

.public-body .premium-property-card.is-boosted {
    border-color: rgba(225, 186, 96, 0.82);
    box-shadow: 0 0 0 2px rgba(225, 186, 96, 0.18), 0 1.65rem 3.7rem rgba(16, 27, 45, 0.28);
}

.public-body .premium-property-card .listing-frame {
    position: relative;
    min-height: 44rem;
    overflow: hidden;
    border: 0;
    background: #19263a;
    isolation: isolate;
}

.public-body .premium-property-card .listing-frame::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: rgba(6, 13, 23, 0.18);
    content: "";
    pointer-events: none;
}

.public-body .premium-property-card .listing-media {
    position: absolute;
    z-index: 1;
    inset: 0;
    min-height: 100%;
    aspect-ratio: auto;
    background: #19263a;
}

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

.public-body .premium-property-card .listing-media img {
    transition: transform 550ms ease;
}

.public-body .premium-property-card:hover .listing-slide.is-active img,
.public-body .premium-property-card:focus-within .listing-slide.is-active img {
    transform: scale(1.025);
}

.public-body .premium-property-card .media-placeholder,
.public-body .premium-property-card .listing-slide.is-media-fallback {
    color: rgba(255, 255, 255, 0.78);
    background: #192a42;
}

.listing-card-topbar {
    position: absolute;
    z-index: 7;
    top: 0.85rem;
    right: 0.85rem;
    left: 0.85rem;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.public-body .premium-property-card .agency-overlay {
    position: static;
    z-index: auto;
    inset: auto;
    width: auto;
    max-width: min(62%, 15rem);
    min-height: 2.75rem;
    gap: 0.55rem;
    padding: 0.38rem 0.55rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.27);
    border-radius: 14px;
    background: rgba(10, 19, 32, 0.58);
    color: #ffffff;
    box-shadow: 0 0.7rem 1.5rem rgba(4, 10, 18, 0.2);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.public-body .premium-property-card .agency-overlay img,
.public-body .premium-property-card .agency-overlay span {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: #397ded;
}

.public-body .premium-property-card .agency-overlay b {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-card-tools {
    display: flex;
    flex: 0 0 auto;
    gap: 0.38rem;
}

.listing-card-tool {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: rgba(10, 19, 32, 0.58);
    color: #ffffff;
    box-shadow: 0 0.7rem 1.5rem rgba(4, 10, 18, 0.18);
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
}

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

.listing-card-tool:hover,
.listing-card-tool:focus-visible,
.listing-card-tool[aria-pressed="true"] {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.2);
}

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

.listing-card-badges {
    position: absolute;
    z-index: 6;
    top: 4.35rem;
    right: 0.85rem;
    left: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    pointer-events: none;
}

.listing-status-badge,
.listing-location-badge,
.public-body .premium-property-card .listing-badge,
.listing-photo-count {
    display: inline-flex;
    min-height: 1.8rem;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(10, 19, 32, 0.58);
    color: #ffffff;
    box-shadow: 0 0.55rem 1.2rem rgba(4, 10, 18, 0.18);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.listing-status-badge.is-rent.is-highlighted {
    border-color: rgba(125, 239, 180, 0.72);
    background: rgba(22, 135, 83, 0.82);
}

.listing-status-badge.is-sale.is-highlighted {
    border-color: rgba(140, 204, 255, 0.78);
    background: rgba(34, 105, 196, 0.84);
}

.listing-status-badge.is-availability {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.16);
}

.listing-location-badge svg {
    width: 0.9rem;
    height: 0.9rem;
}

.public-body .premium-property-card .listing-badge {
    position: static;
    inset: auto;
    background: rgba(200, 157, 68, 0.9);
    box-shadow: none;
}

.public-body .premium-property-card .gallery-nav {
    z-index: 6;
    top: 35%;
    width: 2.65rem;
    min-height: 2.65rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    background: rgba(8, 16, 28, 0.56);
    color: #ffffff;
    box-shadow: 0 0.7rem 1.6rem rgba(4, 10, 18, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.public-body .premium-property-card .gallery-nav:hover,
.public-body .premium-property-card .gallery-nav:focus-visible {
    border-color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.listing-photo-count {
    position: absolute;
    z-index: 6;
    top: 27%;
    right: 0.85rem;
    pointer-events: none;
}

.public-body .premium-property-card .listing-body {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.58rem;
    padding: 1.05rem;
    background: rgba(5, 11, 20, 0.42);
    color: #ffffff;
    box-shadow: 0 -4rem 4.5rem rgba(5, 11, 20, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.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;
}

.listing-primary-price p:first-child {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    text-shadow: 0 0.25rem 0.7rem rgba(0, 0, 0, 0.38);
}

.listing-primary-price p span {
    color: #d9efff;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0;
}

.listing-primary-price .listing-secondary-price {
    margin-top: 0.24rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 750;
}

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

.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: #ffffff;
    font-weight: 850;
    text-decoration: none;
    text-shadow: 0 0.2rem 0.55rem rgba(0, 0, 0, 0.32);
    -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: #bfe3ff;
    text-decoration: underline;
}

.public-body .premium-property-card .listing-location {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.4rem;
    overflow: visible;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    line-height: 1.25;
    -webkit-line-clamp: unset;
}

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

.public-body .premium-property-card .mini-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.34rem;
    margin: 0;
}

.public-body .premium-property-card .mini-details div {
    display: grid;
    min-width: 0;
    min-height: 4.1rem;
    align-content: center;
    justify-content: stretch;
    gap: 0.24rem;
    padding: 0.42rem 0.28rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.public-body .premium-property-card .mini-details div:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.public-body .premium-property-card .mini-details dt {
    display: grid;
    justify-items: center;
    gap: 0.16rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.56rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    text-transform: none;
}

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

.public-body .premium-property-card .mini-details dd {
    min-width: 0;
    margin: 0;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
}

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

.listing-price-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.38rem;
}

.listing-price-options.has-dual-price {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-price-option {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
    padding: 0.48rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.listing-price-option.is-highlighted.is-rent {
    border-color: rgba(111, 238, 174, 0.64);
    background: rgba(23, 126, 80, 0.58);
}

.listing-price-option.is-highlighted.is-sale {
    border-color: rgba(123, 195, 255, 0.72);
    background: rgba(27, 88, 166, 0.62);
}

.listing-price-option span {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.listing-price-option strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.76rem;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-body .premium-property-card .listing-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.listing-action {
    position: relative;
    display: inline-flex;
    min-width: 0;
    min-height: 3.65rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.62rem 0.42rem;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.12;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(4, 10, 18, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0.55rem 1.2rem rgba(4, 10, 18, 0.28);
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.listing-action svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.listing-action span {
    min-width: 0;
}

.listing-action.is-inquiry {
    border-color: #7cbcff;
    background: #176fe5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 0.62rem 1.35rem rgba(14, 92, 201, 0.36);
}

.listing-action.is-details {
    border-color: #ffdc83;
    background: #e7b544;
    color: #172235;
    text-shadow: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 0.62rem 1.35rem rgba(152, 105, 19, 0.34);
}

.listing-action.is-map {
    border-color: #c9dff3;
    background: #f8fbff;
    color: #17253a;
    text-shadow: none;
    box-shadow: inset 0 1px 0 #ffffff, 0 0.62rem 1.35rem rgba(15, 45, 78, 0.28);
}

.listing-action.is-map svg path:first-child {
    stroke: #34a853;
}

.listing-action.is-map svg path:nth-child(2) {
    stroke: #4285f4;
}

.listing-action.is-map svg circle {
    fill: #ea4335;
    stroke: #ea4335;
}

.listing-action.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

a.listing-action:hover,
a.listing-action:focus-visible {
    border-color: #ffffff;
    transform: translateY(-2px);
}

a.listing-action.is-inquiry:hover,
a.listing-action.is-inquiry:focus-visible {
    background: #0d61cf;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0.78rem 1.55rem rgba(14, 92, 201, 0.46);
}

a.listing-action.is-details:hover,
a.listing-action.is-details:focus-visible {
    background: #f0c45d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44), 0 0.78rem 1.55rem rgba(152, 105, 19, 0.42);
}

a.listing-action.is-map:hover,
a.listing-action.is-map:focus-visible {
    background: #ffffff;
    color: #0c1c31;
    box-shadow: inset 0 1px 0 #ffffff, 0 0.78rem 1.55rem rgba(15, 45, 78, 0.38);
}

a.listing-action:active {
    box-shadow: none;
    transform: translateY(0);
}

.premium-property-card button:focus-visible,
.premium-property-card a:focus-visible {
    outline: 3px solid rgba(137, 207, 255, 0.92);
    outline-offset: 2px;
}

@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 {
        border-radius: 20px;
    }

    .public-body .premium-property-card .listing-frame {
        min-height: 42rem;
    }

    .listing-card-topbar,
.listing-card-badges {
        right: 0.72rem;
        left: 0.72rem;
    }

    .listing-card-tool {
        width: 2.65rem;
        min-width: 2.65rem;
        padding: 0;
    }

    .listing-card-tool > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .public-body .premium-property-card .agency-overlay {
        max-width: calc(100% - 6rem);
    }

    .listing-photo-count {
        right: 0.72rem;
    }

    .public-body .premium-property-card .listing-body {
        gap: 0.52rem;
        padding: 0.82rem;
    }

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

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

    .public-body .premium-property-card .mini-details {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.28rem;
    }

    .public-body .premium-property-card .mini-details div {
        min-height: 3.85rem;
        padding: 0.34rem 0.16rem;
    }

    .public-body .premium-property-card .mini-details dt span {
        font-size: 0.5rem;
    }

    .public-body .premium-property-card .listing-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .listing-action {
        min-height: 3.7rem;
        flex-direction: column;
        gap: 0.16rem;
        padding: 0.42rem 0.18rem;
        border-radius: 12px;
        font-size: 0.68rem;
    }

    .listing-action span {
        white-space: nowrap;
    }

    .listing-action svg {
        width: 1.08rem;
        height: 1.08rem;
    }}

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

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