.property-detail {
    background: #f4f8fc;
    color: #0d245a;
}

body.property-detail-page .site-main {
    padding-top: 0;
    padding-bottom: 0;
    background: #f4f8fc;
}

.property-hero {
    padding: 2rem 0 2.5rem;
}

.property-detail__back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1.5rem;
    color: #0d245a;
    font-weight: 800;
    text-decoration: none;
    position: relative;
}

.property-detail__back::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.22rem;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.22s ease;
}

.property-detail__back:hover::after {
    width: 100%;
}

.property-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr);
    gap: 2rem;
    align-items: start;
}

.property-gallery {
    min-width: 0;
}

.property-gallery__main {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: #e8eef7;
    box-shadow: 0 20px 50px rgba(13, 36, 90, 0.12);
}

.property-gallery__image {
    display: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 620px;
    object-fit: cover;
}

.property-gallery__image.is-active {
    display: block;
}

.property-gallery__placeholder {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6b88;
    font-weight: 800;
}

.property-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0d245a;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(13, 36, 90, 0.18);
}

.property-gallery__nav--prev {
    left: 1rem;
}

.property-gallery__nav--next {
    right: 1rem;
}

.property-gallery__counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 36, 90, 0.86);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
}

.property-gallery__thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scroll-behavior: smooth;
}

.property-gallery__thumb {
    flex: 0 0 150px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
}

.property-gallery__thumb.is-active {
    border-color: #0d245a;
}

.property-gallery__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.property-gallery__image {
    cursor: zoom-in;
}

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

.property-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: rgba(4, 12, 34, 0.9);
}

.property-lightbox__image {
    max-width: min(1200px, 92vw);
    max-height: 84vh;
    object-fit: contain;
    border-radius: 2px;
}

.property-lightbox__close {
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0d245a;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.property-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0d245a;
    font-size: 2.2rem;
    cursor: pointer;
}

.property-lightbox__nav--prev {
    left: 2rem;
}

.property-lightbox__nav--next {
    right: 2rem;
}

.property-lightbox__counter {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: #0d245a;
    color: #ffffff;
    font-weight: 800;
}

.property-lightbox-open {
    overflow: hidden;
}

.property-summary {
    position: sticky;
    top: 70px;
    align-self: start;
    padding: 1.75rem;
    border: 1px solid #dce6f3;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(13, 36, 90, 0.09);
}

.property-summary__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.1rem;
    padding: 0.45rem 1rem 0.45rem 0.85rem;
    background: #063195;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%);
    box-shadow: 0 8px 18px rgba(6, 49, 149, 0.18);
}

.property-summary__badge--premium {
    background: linear-gradient(135deg, #b89a61, #d8c08a);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(184, 154, 97, 0.24);
}

.property-summary__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.property-summary__top .property-summary__badge {
    margin-bottom: 0;
}

.property-summary__favorite {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce6f3;
    border-radius: 50%;
    background: #ffffff;
    color: #0d245a;

    font-size: 1rem;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 6px 16px rgba(13, 36, 90, 0.08);
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.property-summary__favorite:hover {
    color: #c62828;
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(13, 36, 90, 0.12);
}

.property-summary__favorite.is-active {
    color: #c62828;
    border-color: rgba(198, 40, 40, 0.22);
}

.property-summary__favorite.is-active:hover {
    color: #b71c1c;
}

.property-summary h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 2.45vw, 2.65rem);
    line-height: 1.08;
    color: #0d245a;
}

.property-summary__location {
    margin: 0 0 1rem;
    color: #50617e;
    font-size: 1.05rem;
}

.property-summary__location strong {
    font-weight: 800;
    color: #0d245a;
}

.property-summary__price {
    margin: 0 0 1rem;
    color: #0d245a;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
    line-height: 1;
}

.property-summary__reference {
    margin: 0 0 1rem;
    color: #5c6c89;
}

.property-summary__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
    margin: 1.3rem 0 1.3rem;
    padding: 1.2rem 0;
    border-top: 1px solid #e0e8f4;
    border-bottom: 1px solid #e0e8f4;
}

.property-summary__fact {
    min-width: 90px;
}

.property-summary__fact span {
    display: block;
    margin-bottom: 0.25rem;
    color: #657492;
    font-size: 0.82rem;
}

.property-summary__fact strong {
    color: #0d245a;
    font-size: 1.05rem;
}

.property-summary__contact {
    padding-top: 0.5rem;
}

.property-summary__contact h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.property-summary__contact p {
    margin: 0 0 1rem;
    color: #526382;
    line-height: 1.5;
}

.property-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 0.75rem;
    padding: 0 1.25rem;
    border: 1px solid #dce6f3;
    border-radius: 3px;
    background: #ffffff;
    color: #0d245a;
    font: inherit;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.property-share-button:hover {
    border-color: #0d245a;
    background: #f4f8fc;
}

.property-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 1.25rem;
    border: 1px solid #0d245a;
    border-radius: 3px;
    font-weight: 900;
    text-decoration: none;
}

.property-btn--primary {
    background: #0d245a;
    color: #ffffff;
}

.property-btn--primary:hover {
    background: #063195;
    border-color: #063195;
}

.property-main-column {
    min-width: 0;
}

.property-main-column .property-section {
    margin-top: 1.5rem;
}

.property-section {
    padding: 2rem;
    border: 1px solid #dce6f3;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(13, 36, 90, 0.045);
}

.property-section + .property-section {
    margin-top: 1.5rem;
}

.property-section h2 {
    margin: 0 0 1.2rem;
    font-size: 1.55rem;
    color: #0d245a;
}

.property-section__text {
    color: #35476a;
    font-size: 1.05rem;
    line-height: 1.75;
}

.property-section__text p {
    margin: 0 0 1rem;
}

.property-section--map {
    padding-bottom: 2rem;
}

.property-section--map {
    padding-bottom: 2rem;
}

.property-map {
    width: 100%;
    min-height: 380px;
    overflow: hidden;
    border: 1px solid #dce6f3;
    border-radius: 2px;
    background: #e8eef7;
}

.property-map__note {
    margin: 0.8rem 0 0;
    color: #657492;
    font-size: 0.95rem;
}

.property-map .leaflet-control-attribution {
    font-size: 0.68rem;
    opacity: 0.72;
    background: rgba(255, 255, 255, 0.72);
}

.property-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
    row-gap: 0;
}

.property-feature {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e8f4;
}

.property-feature span {
    color: #657492;
    font-size: 0.95rem;
}

.property-feature strong {
    color: #0d245a;
    font-size: 1rem;
    text-align: right;
}

.property-extra-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.property-extra-features span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 0.85rem;
    border: 0px solid #dce6f3;
    border-radius: 2px;
    background: #f7faff;
    color: #0d245a;
    font-size: 0.95rem;
    font-weight: 700;
}

.property-extra-features__text {
    margin-top: 1.2rem;
    color: #35476a;
    font-size: 1rem;
    line-height: 1.65;
}

.property-extra-features__text p {
    margin: 0 0 0.8rem;
}

.property-extra-features__text p:last-child {
    margin-bottom: 0;
}

.property-map {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: #e8eef7;
    color: #526382;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .property-hero {
        padding: 1.75rem 0 3.5rem;
    }

    .property-hero__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .property-main-column {
        min-width: 0;
        display: contents;
    }

    .property-summary {
        order: 2;
        position: static;
        max-width: none;
        padding: 1.75rem;
    }

    .property-summary h1 {
        max-width: 760px;
        font-size: clamp(2rem, 4vw, 2.8rem);
        line-height: 1.08;
    }

    .property-summary__price {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }

    .property-summary__facts {
        gap: 2rem;
    }

    .property-main-column > .property-section,
    .property-section {
        order: 3;
    }

    .property-lightbox {
        order: 99;
    }

    .property-gallery {
        order: 1;
    }

    .property-gallery__image {
        aspect-ratio: 16 / 9;
        max-height: 580px;
    }

    .property-gallery__thumb {
        flex-basis: 130px;
    }

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

    .property-map {
        min-height: 340px;
    }
}

@media (max-width: 580px) {
    .property-detail {
        padding-top: 1.2rem;
    }

    .property-hero {
        padding: 0.25rem 0 2.4rem;
    }

    .property-detail__back {
        margin-bottom: 1.25rem;
        font-size: 0.95rem;
    }

    .property-hero__grid {
        gap: 1rem;
    }

    .property-gallery__main {
        border-radius: 2px;
        box-shadow: 0 14px 34px rgba(13, 36, 90, 0.12);
    }

    .property-gallery__image {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .property-gallery__nav {
        width: 38px;
        height: 38px;
        font-size: 1.7rem;
    }

    .property-gallery__nav--prev {
        left: 0.75rem;
    }

    .property-gallery__nav--next {
        right: 0.75rem;
    }

    .property-gallery__counter {
        right: 0.75rem;
        bottom: 0.75rem;
        font-size: 0.78rem;
    }

    .property-gallery__thumbs {
        gap: 0.55rem;
        margin-top: 0.65rem;
        padding-bottom: 0.3rem;
    }

    .property-gallery__thumb {
        flex-basis: 96px;
        border-radius: 4px;
    }

    .property-summary {
        margin-top: 0;
    }

    .property-summary,
    .property-section {
        padding: 1.15rem;
        border-radius: 2px;
    }

    .property-summary h1 {
        font-size: 1.6rem;
        line-height: 1.08;
        letter-spacing: -0.035em;
        margin-bottom: 0.75rem;
    }

    .property-summary__badge {
        margin-bottom: 0.7rem;
        padding: 0.4rem 1.15rem 0.4rem 0.75rem;
        font-size: 0.72rem;
    }

    .property-summary__top {
        margin-bottom: 0.9rem;
    }

    .property-summary__favorite {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .property-summary__location {
        margin-bottom: 0.7rem;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .property-summary__price {
        margin-bottom: 0.7rem;
        font-size: 1.75rem;
    }

    .property-summary__reference {
        margin-bottom: 0.7rem;
        font-size: 0.92rem;
    }

    .property-summary__facts {
        gap: 1.1rem;
        margin: 1rem 0 0;
        padding: 0.7rem 0;
    }

    .property-summary__fact span {
        font-size: 0.78rem;
    }

    .property-summary__fact strong {
        font-size: 1rem;
    }

    .property-summary__contact {
        margin-top: 1rem;
        padding-top: 0rem;
    }

    .property-summary__contact h2 {
        margin-bottom: 0.3rem;
        font-size: 1.25rem;
    }

    .property-summary__contact p {
        margin-bottom: 0.9rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .property-btn,
    .property-share-button {
        min-height: 44px;
        font-size: 0.95rem;
    }

    .property-share-button {
        margin-top: 0.55rem;
    }

    .property-main-column .property-section {
        margin-top: 1rem;
    }

    .property-section h2 {
        margin-bottom: 1.15rem;
        font-size: 1.55rem;
        line-height: 1.12;
        letter-spacing: -0.025em;
    }

    .property-section__text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

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

    .property-feature {
        padding: 0.85rem 0;
        gap: 0.9rem;
    }

    .property-feature span {
        font-size: 0.92rem;
    }

    .property-feature strong {
        font-size: 0.95rem;
    }

    .property-extra-features {
        gap: 0.5rem;
    }

    .property-extra-features span {
        min-height: 32px;
        padding: 0 0.75rem;
        font-size: 0.86rem;
    }

    .property-map {
        min-height: 280px;
        border-radius: 2px;
    }

    .property-map__note {
        font-size: 0.88rem;
    }

    .property-lightbox {
        padding: 1rem;
    }

    .property-lightbox__image {
        max-width: 94vw;
        max-height: 78vh;
    }

    .property-lightbox__close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .property-lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 2rem;
    }

    .property-lightbox__nav--prev {
        left: 1rem;
    }

    .property-lightbox__nav--next {
        right: 1rem;
    }
}