/* Public detail page: scoped independently from property listing styles. */
.property-detail-page .page-wrapper {
    overflow: clip;
}

.property-detail-page .wpo-header-style-1 .wpo-site-header {
    position: relative;
    background: #0d1230;
}

.property-detail {
    --property-ink: #17243b;
    --property-muted: #637083;
    --property-line: #e2e6eb;
    --property-gold: #89671f;
    color: var(--property-ink);
    background: #f7f8fa;
    padding: 40px 0 80px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.property-detail h1,
.property-detail h2,
.property-detail h3 {
    color: var(--property-ink);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    text-transform: none;
}

.property-detail p {
    color: var(--property-muted);
    font-size: 15px;
    line-height: 1.75;
}

.property-detail a:focus-visible,
.property-detail button:focus-visible,
.property-detail input:focus-visible,
.property-detail textarea:focus-visible {
    outline: 3px solid var(--property-gold);
    outline-offset: 4px;
}

.property-back-link {
    color: var(--property-muted);
}

.property-back-link:hover {
    color: var(--property-gold);
}

.property-heading-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.property-detail .property-eyebrow {
    display: block;
    color: var(--property-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.property-eyebrow > span {
    margin: 0 8px;
    color: #a4acb8;
}

.property-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 5px;
    background: #eaf0f8;
    color: #365378;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
}

.property-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.property-status--1 { color: #836325; background: #f5eedf; }
.property-status--2 { color: #28624d; background: #e7f2ec; }

.property-heading h1 {
    max-width: 1050px;
    margin: 0 0 20px;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -1.2px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.property-detail .property-location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 28px;
    font-size: 14px;
}

.property-location > i {
    color: var(--property-gold);
    margin-top: 5px;
}

.property-location strong {
    color: var(--property-ink);
    font-weight: 500;
    margin-right: 12px;
}

.property-section-nav {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--property-line);
    margin-bottom: 28px;
}

.property-section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 14px;
    border-bottom: 2px solid transparent;
    color: var(--property-muted);
    font-size: 13px;
    font-weight: 500;
}

.property-section-nav a.is-active,
.property-section-nav a:hover {
    color: var(--property-ink);
    border-bottom-color: #b28d43;
}

.property-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "visuals sidebar" "information sidebar";
    align-items: start;
    gap: 36px 32px;
}

.property-visuals {
    grid-area: visuals;
    min-width: 0;
}

.property-visuals,
.property-information,
.property-inquiry {
    scroll-margin-top: 120px;
}

.property-gallery-panel { min-width: 0; }
.property-gallery-frame { position: relative; }

.property-detail .property-gallery {
    height: clamp(300px, 35vw, 480px);
    max-height: 65vh;
    margin: 0;
    border: 1px solid var(--property-line);
    border-radius: 12px;
    background: #eceef1;
}

.property-detail .property-gallery-slide { cursor: zoom-in; }

.property-detail .property-gallery .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e2e6eb;
    border-radius: 50%;
    background: #fff;
    color: var(--property-ink);
    box-shadow: 0 3px 12px #17243b14;
}

.property-detail .property-gallery .owl-nav button:hover {
    background: var(--property-ink);
    color: #fff;
}

.property-detail .property-gallery .owl-prev { left: 16px; }
.property-detail .property-gallery .owl-next { right: 16px; }

.property-gallery-count {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    color: #fff;
    background: #17243be8;
    font-size: 12px;
    pointer-events: none;
}

.property-gallery-count > i { margin-right: 4px; }

.property-gallery-caption {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--property-muted);
    padding: 12px 0;
    font-size: 11px;
}

.property-gallery-caption i { margin-right: 5px; }

.property-thumbnails:not([hidden]) {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 3px 3px 10px;
    scrollbar-width: thin;
    scrollbar-color: #c4cbd4 transparent;
}

.property-thumbnail {
    flex: 0 0 78px;
    height: 60px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 7px;
    background: #e9ecf0;
    opacity: 0.65;
    transition: border-color 0.2s, opacity 0.2s;
}

.property-thumbnail.is-active,
.property-thumbnail:hover {
    opacity: 1;
    border-color: #a37d33;
}

.property-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    object-fit: cover;
}

.property-gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 32px;
    border: 1px solid var(--property-line);
    border-radius: 12px;
    background: #eceef1;
    text-align: center;
}

.property-gallery-empty > i {
    color: #8994a4;
    font-size: 38px;
    margin-bottom: 18px;
}

.property-gallery-empty h2 { font-size: 20px; margin: 0 0 10px; }
.property-gallery-empty p { max-width: 380px; margin: 0; }

.property-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0 0;
    padding: 24px 0;
    border-top: 1px solid var(--property-line);
    border-bottom: 1px solid var(--property-line);
}

.property-highlights > div {
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid var(--property-line);
}

.property-highlights > div:first-child { padding-left: 0; }
.property-highlights > div:last-child { padding-right: 0; border: 0; }

.property-highlights dt {
    color: var(--property-muted);
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 8px;
}

.property-highlights dt i { color: var(--property-gold); margin-right: 4px; }

.property-highlights dd {
    margin: 0;
    font-size: clamp(17px, 1.7vw, 23px);
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.property-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 120px;
    min-width: 0;
}

.property-cost-card {
    padding: 28px;
    border: 1px solid var(--property-line);
    border-top: 3px solid #b28d43;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 30px #17243b05;
}

.property-cost-card h2 { font-size: 19px; margin: 10px 0 28px; }
.property-detail .property-price-label { margin: 0 0 4px; font-size: 12px; }

.property-detail .property-price {
    color: var(--property-ink);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.8px;
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}

.property-cost-details {
    margin: 0 0 24px;
    padding: 16px 0;
    border-top: 1px solid var(--property-line);
    border-bottom: 1px solid var(--property-line);
}

.property-cost-details > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.property-cost-details dt { color: var(--property-muted); font-weight: 400; }

.property-cost-details dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    overflow-wrap: anywhere;
    min-width: 0;
}

.property-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 50px;
    padding: 14px 22px;
    border: 1px solid var(--property-ink);
    border-radius: 6px;
    color: #fff;
    background: var(--property-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    transition: background 0.2s, border-color 0.2s;
}

.property-button:hover { color: #fff; background: #31435d; border-color: #31435d; }
.property-cost-card .property-button { width: 100%; }

.property-detail .property-cta-note {
    margin: 10px 0 24px;
    text-align: center;
    font-size: 10px;
}

.property-advisor {
    display: flex;
    align-items: center;
    gap: 13px;
    border-top: 1px solid var(--property-line);
    padding: 22px 0 16px;
}

.property-advisor-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 50%;
    background: #f5f0e6;
    color: var(--property-gold);
    font-size: 19px;
}

.property-advisor div > span,
.property-advisor strong { display: block; }
.property-advisor div > span { color: var(--property-muted); font-size: 11px; }
.property-advisor strong { font-size: 16px; font-weight: 600; }

.property-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    color: var(--property-ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.property-contact-link:hover { color: var(--property-gold); }
.property-contact-link i { color: var(--property-gold); flex-shrink: 0; }
.property-detail .property-reference { font-size: 11px; margin: 16px 0 0; }

.property-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 0 0;
    font-size: 12px;
}

.property-information { grid-area: information; min-width: 0; }
.property-section-heading h2 { font-size: 25px; letter-spacing: -0.5px; margin: 8px 0 24px; }

.property-data-card {
    padding: 24px 28px 12px;
    border: 1px solid var(--property-line);
    border-radius: 10px;
    background: #fff;
}

.property-data-card + .property-data-card { margin-top: 18px; }

.property-data-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin: 0 0 14px;
}

.property-data-card h3 i { color: var(--property-gold); }
.property-data-list { margin: 0; }

.property-data-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 24px;
    border-top: 1px solid #edf0f3;
    padding: 13px 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.property-data-list dt { color: var(--property-muted); font-weight: 400; }
.property-data-list dd { margin: 0; text-align: right; font-weight: 500; }

.property-inquiry {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    margin-top: 56px;
    padding: 44px;
    border: 1px solid var(--property-line);
    border-radius: 12px;
    background: #fff;
}

.property-inquiry-intro h2 {
    margin: 14px 0 20px;
    font-size: clamp(26px, 2.5vw, 33px);
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.property-inquiry-intro p { font-size: 14px; margin-bottom: 28px; }

.property-inquiry-reference {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-left: 2px solid #b28d43;
    background: #f7f8fa;
    font-size: 12px;
}

.property-inquiry-reference > i { color: var(--property-gold); font-size: 19px; }
.property-inquiry-reference strong { display: block; font-weight: 600; }
.property-inquiry-form { min-width: 0; }
.property-detail .property-form-note { margin: 0 0 20px; font-size: 11px; }

.property-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
}

.property-field--wide { grid-column: 1 / -1; }

.property-field label {
    display: block;
    color: var(--property-ink);
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 7px;
}

.property-field .property-optional { color: var(--property-muted); font-weight: 400; }

.property-field .form-control {
    width: 100%;
    height: 48px;
    border: 1px solid #d5dbe3;
    border-radius: 6px;
    padding: 12px 14px;
    background: #fcfcfd;
    color: var(--property-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    box-shadow: none;
}

.property-field .form-control::placeholder { color: #7a8595; font-size: 13px; opacity: 1; }
.property-field .form-control:focus { border-color: var(--property-gold); background: #fff; }
.property-field textarea.form-control { min-height: 128px; height: auto; resize: vertical; }
.property-field .form-control.error { border-color: #a32c34; }

.property-inquiry-form label.error {
    color: #a32c34;
    font-size: 12px;
    font-weight: 400;
    margin-top: 6px;
}

.property-captcha { margin: 22px 0 16px; }
.property-detail .property-privacy-note { margin: 16px 0 20px; font-size: 11px; }
.property-privacy-note a { color: var(--property-ink); text-decoration: underline; text-underline-offset: 3px; }

.property-inquiry-form .error-handling-messages > div {
    border-radius: 5px;
    padding: 12px !important;
    font-size: 13px !important;
    text-align: left !important;
}

.property-detail .property-availability-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    background: #f5eedf;
    color: #715724;
    font-size: 12px;
}

.property-availability-note i { margin-top: 5px; }
.property-mobile-action { display: none; }

@media (min-width: 992px) {
    .property-detail-page .wpo-site-header .navigation > .container > .row {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr) auto;
        gap: 24px;
        margin: 0;
    }
    .property-detail-page .wpo-site-header .navigation > .container > .row > .col-6,
    .property-detail-page .wpo-site-header .navigation > .container > .row > .col-1,
    .property-detail-page .wpo-site-header .navigation > .container > .row > .col-2 {
        width: auto;
        min-width: 0;
        padding: 0;
    }
    .property-detail-page .wpo-site-header .navbar-brand { margin: 0; }
    .property-detail-page .wpo-site-header .navbar-brand img { max-width: 220px; }
    .property-detail-page .wpo-site-header #navbar > ul {
        flex-wrap: nowrap;
        justify-content: flex-end;
        white-space: nowrap;
    }
    .property-detail-page .wpo-site-header #navbar > ul > li > a {
        padding: 30px 10px;
        font-size: 15px;
    }
    .property-detail-page .wpo-site-header .header-right .close-form .theme-btn { padding: 14px 22px; }
}

@media (max-width: 1199px) {
    .property-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 28px 24px; }
    .property-cost-card { padding: 24px; }
    .property-inquiry { padding: 32px; gap: 36px; }
}

@media (max-width: 991px) {
    .property-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "visuals" "sidebar" "information";
        gap: 32px;
    }
    .property-sidebar { position: static; }
    .property-detail .property-gallery { height: 440px; }
    .property-cost-card { padding: 28px; }
    .property-inquiry { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 36px; }
    .property-inquiry-reference { max-width: 360px; }
    .property-detail-page .wpo-site-header .navbar-header { margin-left: 0; }
    .property-detail-page .wpo-site-header .navbar-brand img { max-width: 100%; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .property-detail-page .wpo-header-style-1 .wpo-site-header { background: #fff; }
}

@media (max-width: 767px) {
    .property-detail-page .wpo-site-header .navigation > .container > .row { margin: 0; }
    .property-detail-page .wpo-site-header .navigation > .container > .row > .col-3 {
        flex: 0 0 52px;
        width: 52px;
        padding: 0;
    }
    .property-detail-page .wpo-site-header .navigation > .container > .row > .col-6 {
        flex: 1;
        width: auto;
        padding-left: 12px;
        padding-right: 0;
    }
    .property-detail-page .wpo-site-header .navigation > .container > .row > .col-1,
    .property-detail-page .wpo-site-header .navigation > .container > .row > .col-2 {
        flex: 0 0 0;
        width: 0;
        padding: 0;
    }
    .property-detail-page .wpo-site-header .navbar-brand {
        display: block;
        width: 180px;
        max-width: 100%;
        margin-right: 0;
    }
    .property-detail { padding: 28px 0 40px; }
    .property-detail > .container { padding-left: 20px; padding-right: 20px; }
    .property-heading-meta { gap: 10px 14px; margin-bottom: 14px; }
    .property-detail .property-heading .property-eyebrow { font-size: 9px; letter-spacing: 1.1px; }
    .property-status { font-size: 10px; padding: 4px 8px; }
    .property-heading h1 { font-size: 28px; letter-spacing: -0.7px; margin-bottom: 16px; }
    .property-location strong,
    .property-location span > span { display: block; }
    .property-detail .property-location { font-size: 12px; margin-bottom: 24px; }
    .property-section-nav {
        position: sticky;
        top: 0;
        z-index: 20;
        gap: 18px;
        margin: 0 -20px 22px;
        padding: 0 20px;
        background: #f7f8fa;
        box-shadow: 0 5px 10px #17243b08;
    }
    .property-section-nav a {
        min-height: 50px;
        padding: 14px 0;
        font-size: 12px;
        white-space: nowrap;
    }
    .property-section-nav i { display: none; }
    .property-visuals,
    .property-information,
    .property-inquiry { scroll-margin-top: 76px; }
    .property-detail-page .wpo-site-header .sticky-header { display: none; }
    .property-detail .property-gallery { height: clamp(250px, 75vw, 380px); border-radius: 8px; }
    .property-detail .property-gallery .owl-prev { left: 10px; }
    .property-detail .property-gallery .owl-next { right: 10px; }
    .property-gallery-count { bottom: 10px; right: 10px; }
    .property-gallery-caption { font-size: 10px; }
    .property-gallery-caption > span:last-child { white-space: nowrap; }
    .property-thumbnail { flex-basis: 64px; height: 52px; }
    .property-highlights { margin-top: 16px; padding: 20px 0; }
    .property-highlights > div { padding: 0 12px; }
    .property-highlights dt { font-size: 10px; margin-bottom: 6px; }
    .property-highlights dt i { display: none; }
    .property-highlights dd { font-size: 17px; }
    .property-cost-card { padding: 24px; }
    .property-section-heading h2 { font-size: 23px; margin-bottom: 20px; }
    .property-data-card { padding: 22px 20px 10px; }
    .property-data-list > div { font-size: 12px; gap: 12px; }
    .property-inquiry { padding: 26px 20px; gap: 28px; }
    .property-form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .property-inquiry-form .property-button { width: 100%; }

    .property-mobile-action {
        position: fixed;
        z-index: 98;
        inset: auto 0 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--property-line);
        background: #fff;
        box-shadow: 0 -4px 20px #17243b0a;
    }
    .property-mobile-action > div { min-width: 0; }
    .property-mobile-action span,
    .property-mobile-action strong { display: block; }
    .property-mobile-action span { color: var(--property-muted); font-size: 10px; }
    .property-mobile-action strong { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
    .property-mobile-action .property-button { flex-shrink: 0; gap: 12px; min-height: 44px; padding: 11px 20px; }
    .property-mobile-action.is-hidden { display: none; }
    .property-detail-page .page-wrapper { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .property-detail-page .back-to-top { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Keep the existing reCAPTCHA widget within narrow mobile form padding. */
@media (max-width: 419px) {
    .property-captcha .g-recaptcha {
        transform: scale(0.8);
        transform-origin: left top;
        width: 125%;
        margin-bottom: -16px;
    }
    .property-inquiry { padding-left: 16px; padding-right: 16px; }
}

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