:root {
    --property-blue: #0e084c;
    --property-gold: #9e9b88;
    --property-white: #ffffff;
    --property-black: #000000;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.property-detail-page {
    margin: 0;
    background: rgba(158, 155, 136, 0.08);
    color: var(--property-blue);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.property-detail-page a {
    color: inherit;
    text-decoration: none;
}

.property-detail-page img {
    display: block;
    max-width: 100%;
}

.property-detail-page .page-container {
    width: min(100% - 32px, 1240px);
    margin: 0 auto;
}

.property-detail-page .property-page-main {
    padding: 28px 0 56px;
}

.property-detail-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    color: rgba(14, 8, 76, 0.62);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.property-detail-page .breadcrumb a {
    transition: color 220ms ease;
}

.property-detail-page .breadcrumb a:hover {
    color: var(--property-blue);
}

.property-detail-page .breadcrumb-separator {
    color: rgba(158, 155, 136, 0.9);
}

.property-detail-page .property-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 36px;
    align-items: end;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(14, 8, 76, 0.14);
}

.property-detail-page .property-heading-copy {
    min-width: 0;
}

.property-detail-page .property-location-main {
    margin-bottom: 7px;
    color: rgba(14, 8, 76, 0.68);
    font-size: 0.92rem;
    font-weight: 650;
}

.property-detail-page .property-title-main {
    max-width: 850px;
    margin: 0;
    color: var(--property-blue);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.property-detail-page .badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 410px;
}

.property-detail-page .badge {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(14, 8, 76, 0.15);
    border-radius: 999px;
    background: var(--property-white);
    color: var(--property-blue);
    font-size: 0.74rem;
    font-weight: 750;
    line-height: 1.2;
}

.property-detail-page .badge-type {
    border-color: var(--property-blue);
    background: var(--property-blue);
    color: var(--property-white);
}

.property-detail-page .badge-available,
.property-detail-page .property-status-available {
    border-color: rgba(14, 8, 76, 0.22);
    background: rgba(158, 155, 136, 0.25);
    color: var(--property-blue);
}

.property-detail-page .badge-unavailable,
.property-detail-page .property-status-unavailable {
    border-color: rgba(0, 0, 0, 0.28);
    background: rgba(0, 0, 0, 0.08);
    color: var(--property-black);
}

.property-detail-page .badge-certificate {
    border-color: rgba(158, 155, 136, 0.72);
    color: var(--property-blue);
}

.property-detail-page .content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.property-detail-page .content-grid > *,
.property-detail-page .card {
    min-width: 0;
}

.property-detail-page .property-main-column,
.property-detail-page .property-sidebar {
    display: grid;
    gap: 24px;
}

.property-detail-page .property-sidebar {
    position: sticky;
    top: 94px;
}

.property-detail-page .card {
    border: 1px solid rgba(14, 8, 76, 0.12);
    border-radius: 8px;
    background: var(--property-white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.property-detail-page .gallery-card {
    position: relative;
    padding: 8px;
}

.property-detail-page .gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 360px;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(14, 8, 76, 0.08);
    cursor: zoom-in;
}

.property-detail-page .gallery-main::after {
    content: "Hap galerin\00eb";
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 5px;
    background: rgba(14, 8, 76, 0.82);
    color: var(--property-white);
    font-size: 0.76rem;
    font-weight: 700;
    pointer-events: none;
}

.property-detail-page .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.property-detail-page .gallery-main:hover img {
    transform: scale(1.012);
}

.property-detail-page .gallery-thumbs {
    display: flex;
    gap: 9px;
    margin-top: 8px;
    padding: 0 0 2px;
    overflow-x: auto;
    scrollbar-color: rgba(14, 8, 76, 0.35) transparent;
    scrollbar-width: thin;
}

.property-detail-page .thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 70px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 5px;
    background: rgba(14, 8, 76, 0.08);
    cursor: pointer;
    opacity: 0.7;
    transition: border-color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.property-detail-page .thumb:hover,
.property-detail-page .thumb.active {
    border-color: var(--property-gold);
    opacity: 1;
}

.property-detail-page .thumb:hover {
    transform: translateY(-2px);
}

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

.property-detail-page .description-card {
    padding: 26px;
}

.property-detail-page .section-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--property-gold);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
}

.property-detail-page .description-card h2,
.property-detail-page .related-section h2 {
    margin: 0;
    color: var(--property-blue);
    font-size: 1.35rem;
    line-height: 1.25;
}

.property-detail-page .description-card p {
    margin: 16px 0 0;
    color: rgba(0, 0, 0, 0.72);
    font-size: 0.98rem;
    line-height: 1.8;
    white-space: pre-line;
}

.property-detail-page .details-card,
.property-detail-page .agent-card {
    padding: 22px;
}

.property-detail-page .price-block {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(14, 8, 76, 0.12);
}

.property-detail-page .price-main {
    color: var(--property-blue);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.property-detail-page .price-sub {
    margin-top: 8px;
    color: rgba(14, 8, 76, 0.58);
    font-size: 0.8rem;
}

.property-detail-page .meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(14, 8, 76, 0.1);
    border-radius: 6px;
    background: rgba(14, 8, 76, 0.1);
}

.property-detail-page .meta-row {
    min-height: 78px;
    padding: 13px;
    background: var(--property-white);
}

.property-detail-page .meta-row .label {
    display: block;
    margin-bottom: 4px;
    color: rgba(14, 8, 76, 0.56);
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
}

.property-detail-page .meta-row .value {
    display: block;
    color: var(--property-blue);
    font-size: 0.94rem;
    font-weight: 720;
    overflow-wrap: anywhere;
}

.property-detail-page .agent-card {
    display: grid;
    gap: 17px;
    border-top: 3px solid var(--property-gold);
}

.property-detail-page .agent-header {
    display: flex;
    gap: 13px;
    align-items: center;
}

.property-detail-page .agent-photo {
    display: flex;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(14, 8, 76, 0.14);
    border-radius: 50%;
    background: rgba(158, 155, 136, 0.2);
    color: var(--property-blue);
    font-size: 0.92rem;
    font-weight: 800;
}

.property-detail-page .agent-photo img,
.property-detail-page .agent-photo-initials {
    width: 100%;
    height: 100%;
}

.property-detail-page .agent-photo img {
    object-fit: cover;
}

.property-detail-page .agent-photo-initials {
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-detail-page .agent-name {
    color: var(--property-blue);
    font-size: 1rem;
    font-weight: 760;
    line-height: 1.25;
}

.property-detail-page .agent-role {
    margin-top: 2px;
    color: rgba(14, 8, 76, 0.58);
    font-size: 0.82rem;
}

.property-detail-page .agent-contact {
    padding: 13px 0;
    border-top: 1px solid rgba(14, 8, 76, 0.1);
    border-bottom: 1px solid rgba(14, 8, 76, 0.1);
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.87rem;
    overflow-wrap: anywhere;
}

.property-detail-page .agent-contact a {
    color: var(--property-blue);
    font-weight: 700;
}

.property-detail-page .owner-map {
    overflow: hidden;
    border: 1px solid rgba(14, 8, 76, 0.13);
    border-radius: 6px;
    background: var(--property-white);
}

.property-detail-page .owner-map iframe {
    display: block;
    width: 100%;
    height: 205px;
    border: 0;
}

.property-detail-page .owner-map-link {
    display: block;
    padding: 9px 11px;
    border-top: 1px solid rgba(14, 8, 76, 0.1);
    color: var(--property-blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.property-detail-page .contact-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.property-detail-page .btn-outline,
.property-detail-page .btn-whatsapp {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 13px;
    border: 1px solid var(--property-blue);
    border-radius: 6px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 760;
    text-align: center;
    cursor: pointer;
    transition: background-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.property-detail-page .btn-whatsapp {
    background: var(--property-blue);
    color: var(--property-white);
}

.property-detail-page .btn-outline {
    background: var(--property-white);
    color: var(--property-blue);
}

.property-detail-page .btn-whatsapp:hover,
.property-detail-page .btn-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(14, 8, 76, 0.15);
}

.property-detail-page .btn-whatsapp:hover {
    background: rgba(14, 8, 76, 0.9);
}

.property-detail-page .btn-outline:hover {
    background: rgba(158, 155, 136, 0.2);
}

.property-detail-page .agent-note {
    color: rgba(14, 8, 76, 0.55);
    font-size: 0.76rem;
    line-height: 1.55;
}

.property-detail-page .property-supporting-content {
    padding-bottom: 56px;
}

.property-detail-page .property-supporting-content + .property-supporting-content {
    padding-top: 0;
}

.property-detail-page .related-section {
    padding-top: 30px;
    border-top: 1px solid rgba(14, 8, 76, 0.14);
}

.property-detail-page .related-section > h2 {
    margin-bottom: 18px;
}

.property-detail-page .related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.property-detail-page .related-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(14, 8, 76, 0.12);
    border-radius: 8px;
    background: var(--property-white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.property-detail-page .related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(158, 155, 136, 0.78);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.property-detail-page .related-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(14, 8, 76, 0.08);
}

.property-detail-page .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

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

.property-detail-page .sponsored-ribbon,
.property-detail-page .related-status-badge {
    position: absolute;
    top: 10px;
    z-index: 1;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.property-detail-page .sponsored-ribbon {
    right: 10px;
    background: rgba(14, 8, 76, 0.88);
    color: var(--property-white);
}

.property-detail-page .related-status-badge {
    left: 10px;
}

.property-detail-page .related-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 17px;
}

.property-detail-page .related-price {
    margin: 0;
    color: var(--property-blue);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.property-detail-page .related-title {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0;
    overflow: hidden;
    color: var(--property-blue);
    font-size: 1rem;
    font-weight: 730;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.property-detail-page .related-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: rgba(14, 8, 76, 0.56);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.property-detail-page .related-meta-item {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-detail-page .related-meta-item + .related-meta-item::before {
    content: "\2022";
    margin-right: 7px;
    color: var(--property-gold);
}

.property-detail-page .promo-banner {
    position: relative;
    display: grid;
    min-height: 190px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 32px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--property-blue);
    color: var(--property-white);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
}

.property-detail-page .promo-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(14, 8, 76, 0.78);
    pointer-events: none;
}

.property-detail-page .promo-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-detail-page .promo-banner > div,
.property-detail-page .promo-banner-cta {
    position: relative;
    z-index: 2;
}

.property-detail-page .promo-banner-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.property-detail-page .promo-banner h2 {
    margin: 0 0 7px;
    color: var(--property-white);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
}

.property-detail-page .promo-banner p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.property-detail-page .promo-banner-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--property-white);
    color: var(--property-blue);
    font-weight: 800;
    white-space: nowrap;
}

.property-detail-page .lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.9);
}

.property-detail-page .lightbox-overlay.show {
    display: flex;
}

.property-detail-page .lightbox-content {
    position: relative;
    display: flex;
    max-width: 94vw;
    max-height: 92vh;
    align-items: center;
    justify-content: center;
}

.property-detail-page .lightbox-content img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.property-detail-page .lightbox-close,
.property-detail-page .lightbox-nav {
    position: fixed;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--property-blue);
    cursor: pointer;
    transition: transform 200ms ease, background-color 200ms ease;
}

.property-detail-page .lightbox-close:hover,
.property-detail-page .lightbox-nav:hover {
    transform: scale(1.05);
    background: var(--property-white);
}

.property-detail-page .lightbox-close {
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
}

.property-detail-page .lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
    transform: translateY(-50%);
}

.property-detail-page .lightbox-nav:hover {
    transform: translateY(-50%) scale(1.05);
}

.property-detail-page .lightbox-prev {
    left: 20px;
}

.property-detail-page .lightbox-next {
    right: 20px;
}

.property-detail-page .lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(14, 8, 76, 0.76);
    color: var(--property-white);
    font-size: 0.8rem;
    transform: translateX(-50%);
}

.property-detail-page :where(a, button, [role="button"]):focus-visible {
    outline: 3px solid rgba(158, 155, 136, 0.75);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .property-detail-page .property-header {
        grid-template-columns: 1fr;
    }

    .property-detail-page .badges-row {
        justify-content: flex-start;
        max-width: none;
    }

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

    .property-detail-page .property-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-detail-page .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .property-detail-page .page-container {
        width: min(100% - 24px, 1240px);
    }

    .property-detail-page .property-page-main {
        padding-top: 19px;
        padding-bottom: 42px;
    }

    .property-detail-page .breadcrumb {
        margin-bottom: 17px;
    }

    .property-detail-page .property-header {
        gap: 16px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .property-detail-page .property-title-main {
        font-size: 1.75rem;
    }

    .property-detail-page .badge {
        min-height: 30px;
        font-size: 0.68rem;
    }

    .property-detail-page .content-grid,
    .property-detail-page .property-main-column,
    .property-detail-page .property-sidebar {
        gap: 16px;
    }

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

    .property-detail-page .gallery-card {
        padding: 5px;
    }

    .property-detail-page .gallery-main {
        min-height: 260px;
        aspect-ratio: 4 / 3;
    }

    .property-detail-page .gallery-main::after {
        right: 9px;
        bottom: 9px;
    }

    .property-detail-page .thumb {
        flex-basis: 82px;
        width: 82px;
        height: 62px;
    }

    .property-detail-page .description-card,
    .property-detail-page .details-card,
    .property-detail-page .agent-card {
        padding: 18px;
    }

    .property-detail-page .meta-row {
        min-height: 72px;
        padding: 11px;
    }

    .property-detail-page .property-supporting-content {
        padding-bottom: 42px;
    }

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

    .property-detail-page .promo-banner {
        grid-template-columns: 1fr;
        min-height: 220px;
        padding: 24px 20px;
    }

    .property-detail-page .promo-banner-cta {
        justify-self: start;
    }

    .property-detail-page .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .property-detail-page .lightbox-prev {
        left: 10px;
    }

    .property-detail-page .lightbox-next {
        right: 10px;
    }

    .property-detail-page .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .property-detail-page *,
    .property-detail-page *::before,
    .property-detail-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
