/* ==========================================================================
   Property search + detail
   ========================================================================== */

.property-page {
    min-height: 60vh;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sans);
}

.property-page-hero {
    padding: 76px 24px 66px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(0, 165, 223, .14), transparent 48%),
        var(--c-navy-900);
}

.property-page-hero > div,
.property-search-panel,
.property-results,
.property-detail {
    max-width: var(--container);
    margin-inline: auto;
}

.property-eyebrow {
    margin: 0 0 10px;
    color: var(--c-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
}

.property-page-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.2;
}

.property-page-hero p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, .72);
}

.property-search-panel {
    position: relative;
    z-index: 2;
    margin-top: -24px;
    padding: 26px;
    background: #fff;
    box-shadow: var(--shadow-2);
}

.property-search-panel form {
    display: grid;
    grid-template-columns: .8fr 1fr 1fr 1.25fr auto;
    align-items: end;
    gap: 14px;
}

.property-search-panel label {
    display: block;
    min-width: 0;
}

.property-search-panel label > span {
    display: block;
    margin-bottom: 7px;
    color: var(--c-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.property-search-panel select,
.property-search-panel input {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid var(--c-line);
    border-radius: 0;
    background: #fff;
    color: var(--c-text);
    font-family: inherit;
}

.property-search-panel button {
    height: 48px;
    padding: 0 24px;
    border: 0;
    background: var(--c-blue);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.property-results {
    padding: 80px 24px 112px;
}

.property-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--c-line);
}

.property-results-heading h2 {
    margin: 0;
    color: var(--c-navy-900);
    font-size: 30px;
}

.property-results-heading > p {
    margin: 0;
    color: var(--c-text-muted);
    font-size: 14px;
}

.property-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
}

.property-card {
    min-width: 0;
    background: #fff;
    border-bottom: 2px solid var(--c-navy-700);
    transition: transform .25s ease, box-shadow .25s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-1);
}

.property-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.property-card-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dfe8ef;
    color: rgba(7, 55, 127, .36);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.025);
}

.property-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    background: var(--c-navy-900);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.property-card-body {
    padding: 22px 20px 24px;
}

.property-card-taxonomies {
    min-height: 20px;
    color: var(--c-blue-600);
    font-size: 11px;
    font-weight: 700;
}

.property-card-body h3 {
    margin: 8px 0 12px;
    color: var(--c-navy-900);
    font-size: 19px;
    line-height: 1.5;
}

.property-card-body p {
    margin: 4px 0;
    color: var(--c-text-muted);
    font-size: 13px;
}

.property-card-body .property-price {
    margin: 0 0 10px;
    color: var(--c-orange-600);
    font-size: 20px;
    font-weight: 700;
}

.property-card-more {
    display: inline-block;
    margin-top: 18px;
    color: var(--c-navy-700);
    font-size: 12px;
    font-weight: 700;
}

.property-empty {
    padding: 64px clamp(24px, 6vw, 80px);
    border-left: 3px solid var(--c-blue);
    background: #fff;
}

.property-empty-title {
    margin: 0 0 12px;
    color: var(--c-navy-900);
    font-size: 23px;
    font-weight: 700;
}

.property-empty > p:not(.property-empty-title) {
    max-width: 680px;
    color: var(--c-text-muted);
    line-height: 1.8;
}

.property-empty > div {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 28px;
}

.property-empty-contact,
.property-back-link {
    color: var(--c-navy-700);
    font-weight: 700;
}

.property-pagination {
    margin-top: 48px;
}

.property-single {
    padding: 72px 24px 112px;
}

.property-detail-header {
    max-width: 920px;
    margin-bottom: 34px;
}

.property-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.property-detail-tags a,
.property-detail-tags span {
    padding: 6px 10px;
    background: #eaf7fc;
    color: var(--c-navy-700);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.property-detail-header h1 {
    margin: 0 0 14px;
    color: var(--c-navy-900);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.35;
}

.property-detail-price {
    margin: 0;
    color: var(--c-orange-600);
    font-size: 26px;
    font-weight: 700;
}

.property-detail-main-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 46px;
    overflow: hidden;
    background: #dfe8ef;
}

.property-detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 64px;
    align-items: start;
}

.property-detail-content {
    font-size: 15px;
    line-height: 1.9;
}

.property-specs {
    margin-top: 42px;
    border-top: 1px solid var(--c-line);
}

.property-specs > div {
    display: grid;
    grid-template-columns: 160px 1fr;
    border-bottom: 1px solid var(--c-line);
}

.property-specs dt,
.property-specs dd {
    margin: 0;
    padding: 16px;
}

.property-specs dt {
    background: #edf3f7;
    font-weight: 700;
}

.property-inquiry {
    position: sticky;
    top: 148px;
    padding: 28px;
    background: var(--c-navy-900);
    color: rgba(255, 255, 255, .72);
}

.property-inquiry h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
}

.property-inquiry p:not(.property-eyebrow) {
    font-size: 13px;
    line-height: 1.7;
}

.property-inquiry .c-btn {
    width: 100%;
    margin-top: 12px;
}

.property-inquiry-tel,
.property-external-link {
    display: block;
    margin-top: 16px;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.property-back-link {
    display: inline-block;
    margin-top: 64px;
}

@media (max-width: 900px) {
    .property-search-panel {
        margin-inline: 20px;
    }

    .property-search-panel form {
        grid-template-columns: 1fr 1fr;
    }

    .property-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .property-detail-layout {
        grid-template-columns: 1fr;
    }

    .property-inquiry {
        position: static;
    }
}

@media (max-width: 600px) {
    .property-page-hero {
        padding: 56px 20px 52px;
    }

    .property-search-panel {
        margin-top: -16px;
        padding: 20px;
    }

    .property-search-panel form,
    .property-card-grid {
        grid-template-columns: 1fr;
    }

    .property-search-panel button {
        width: 100%;
    }

    .property-results {
        padding: 64px 20px 80px;
    }

    .property-empty {
        padding: 38px 24px;
    }

    .property-empty > div {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .property-single {
        padding: 56px 20px 80px;
    }

    .property-detail-main-image {
        aspect-ratio: 4 / 3;
    }

    .property-specs > div {
        grid-template-columns: 112px 1fr;
    }

    .property-specs dt,
    .property-specs dd {
        padding: 13px 12px;
    }
}

/* ---------- property gallery ---------- */
.property-gallery {
    margin-bottom: 40px;
}

/* Fixed-height stage: page height never changes between photos. */
.property-gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(340px, 56vh, 600px);
    background: #f1f4f7;
    overflow: hidden;
    touch-action: pan-y;
}

.property-gallery-main img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 0;
    transform: translateY(-50%);
    background: rgba(6, 27, 56, .82);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}

.gallery-nav svg {
    width: 22px;
    height: 22px;
}

.gallery-nav.is-prev {
    left: 16px;
}

.gallery-nav.is-next {
    right: 16px;
}

.gallery-nav:hover {
    background: var(--c-blue);
}

.property-gallery-count {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 16px 9px 13px;
    border-left: 3px solid var(--c-blue);
    background: rgba(6, 27, 56, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.count-badge {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.count-label {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.property-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    margin-top: 10px;
    max-height: 232px;
    overflow-y: auto;
}

.property-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    background: var(--c-bg);
    cursor: pointer;
    line-height: 0;
}

.property-gallery-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.property-gallery-thumb.is-active {
    border-color: var(--c-blue);
}

.property-gallery-thumb:hover {
    opacity: .85;
}

@media (max-width: 600px) {
    .property-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        max-height: 168px;
    }
}


@media (max-width: 600px) {
    .property-gallery-main {
        height: clamp(240px, 62vw, 420px);
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
    }

    .gallery-nav.is-prev { left: 10px; }
    .gallery-nav.is-next { right: 10px; }

    .property-gallery-count {
        left: 10px;
        bottom: 10px;
        gap: 8px;
        padding: 7px 12px 7px 10px;
    }

    .count-badge {
        font-size: 12.5px;
    }

    .count-label {
        font-size: 11px;
    }
}

/* ---------- Sold listings ---------- */
.property-sold-band {
    display: inline-block;
    margin: 0;
    padding: 10px 18px;
    border-left: 3px solid var(--c-blue);
    background: rgba(6, 27, 56, .06);
    color: var(--c-navy-900);
    font-size: 15px;
    font-weight: 700;
}

.property-related {
    margin-top: 64px;
    padding-top: 34px;
    border-top: 1px solid rgba(6, 27, 56, .12);
}

.property-related h2 {
    margin: 0 0 20px;
    font-size: 20px;
}

.property-related ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-related a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 18px;
    border: 1px solid rgba(6, 27, 56, .12);
    background: #fff;
    color: var(--c-navy-900);
    text-decoration: none;
}

.property-related a:hover {
    border-color: var(--c-blue);
}

.property-related-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.property-related-price {
    color: var(--c-orange-600);
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 782px) {
    .property-related ul {
        grid-template-columns: 1fr;
    }
}
