.property-offer-modern {
    --offer-ink: #20252b;
    --offer-muted: #6d7379;
    --offer-soft: #f7f7f5;
    --offer-line: #e6e6e3;
    --offer-red: #b72619;
    color: var(--offer-ink);
}

.property-offer-modern.header-margin-top {
    margin-top: 0 !important;
}

.property-offer-gallery-section {
    padding: .5rem 0 2.5rem;
    background: #fff;
}

.property-offer-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.05rem;
    color: var(--offer-muted);
    font-size: .8rem;
}

.property-offer-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.property-offer-breadcrumb a:hover {
    color: var(--offer-red);
}

.property-offer-breadcrumb span:last-child {
    max-width: min(680px, 70vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-offer-gallery-shell {
    overflow: hidden;
    border-radius: 16px;
    background: #eee;
}

.property-offer-modern .offer-gallery {
    height: min(66vh, 680px);
    min-height: 520px;
    background: #efefed;
}

.property-offer-modern .offer-gallery__image-wrapper,
.property-offer-modern .offer-gallery__image {
    width: 100%;
    height: 100%;
}

.property-offer-modern .offer-gallery__image {
    object-fit: cover;
}

.property-offer-modern .slider-bar {
    padding: 1rem 1.15rem !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .62));
}

.property-offer-modern .slider-bar-button {
    min-height: 38px;
    padding: .42rem .8rem;
    border-radius: 999px;
    background: rgba(20, 20, 20, .48) !important;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .02em;
    text-transform: none !important;
    backdrop-filter: blur(5px);
}

.property-offer-main {
    padding-bottom: 1rem;
}

.property-offer-summary {
    padding: 2.4rem 0 2.1rem;
}

.property-offer-modern .offer-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
}

.property-offer-kicker,
.property-offer-section-kicker {
    margin-bottom: .6rem;
    color: var(--offer-red);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.property-offer-kicker span {
    margin: 0 .35rem;
    color: #b7b7b3;
}

.property-offer-modern .offer-heading-main h1 {
    max-width: 950px;
    margin: 0;
    color: var(--offer-ink);
    font-size: clamp(2rem, 3.25vw, 3.45rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.038em;
}

.property-offer-modern .offer-heading-main > p {
    display: flex;
    align-items: center;
    margin-top: .9rem !important;
    color: var(--offer-muted);
    font-size: .94rem;
}

.property-offer-modern .offer-heading-main > p svg,
.property-offer-modern .offer-heading-main > p i {
    color: var(--offer-red);
}

.property-offer-modern .offer-client-actions {
    align-self: end;
}

.property-offer-modern .offer-client-actions__buttons {
    gap: .55rem;
}

.property-offer-modern .offer-client-actions .btn {
    min-height: 42px;
    padding: .55rem 1rem;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 750;
}

.property-offer-facts {
    padding: 3.5rem 0;
    border-top: 1px solid var(--offer-line);
}

.property-offer-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: end;
    margin-bottom: 1.5rem;
}

.property-offer-section-head h2,
.property-offer-description-card h2,
.property-offer-related h2 {
    margin: 0;
    color: var(--offer-ink);
    font-size: clamp(1.65rem, 2.25vw, 2.35rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.property-offer-section-head > p {
    max-width: 720px;
    margin: 0;
    color: var(--offer-muted);
    line-height: 1.7;
}

.property-offer-facts-card {
    overflow: hidden;
    border: 1px solid var(--offer-line);
    border-radius: 14px;
    background: #fff;
}

.property-offer-facts-card__body {
    padding: 1.35rem;
}

.property-offer-key-facts {
    margin: 0 -.35rem 1.2rem;
}

.property-offer-key-facts .field-container {
    padding: 0 .35rem;
}

.property-offer-key-fact {
    height: 100%;
    min-height: 90px;
    padding: 1rem 1.05rem;
    border-radius: 10px;
    background: var(--offer-soft);
}

.property-offer-key-fact label {
    display: block;
    margin-bottom: .3rem !important;
    color: var(--offer-muted);
    font-size: .76rem;
    font-weight: 650;
}

.property-offer-key-fact .text-primary {
    color: var(--offer-ink) !important;
    font-size: clamp(1.05rem, 1.35vw, 1.28rem) !important;
    line-height: 1.2;
}

.property-offer-modern .offer-attributes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-left: 0;
    margin-right: 0;
    border-top: 1px solid var(--offer-line);
}

.property-offer-modern .offer-attributes-grid .offer-attribute-item {
    padding: .95rem .8rem;
    border-bottom: 1px solid var(--offer-line);
}

.property-offer-modern .offer-attributes-grid .offer-attribute-item:not(:nth-child(4n + 1)) {
    border-left: 1px solid var(--offer-line);
}

.property-offer-modern .offer-attributes-grid .offer-attribute {
    min-height: 0;
    gap: .18rem;
}

.property-offer-modern .offer-attributes-grid .offer-attribute-label {
    color: var(--offer-muted);
    font-size: .73rem;
    font-weight: 600;
}

.property-offer-modern .offer-attributes-grid .offer-attribute-value {
    color: var(--offer-ink);
    font-size: .92rem;
    font-weight: 750;
}

.property-offer-modern .offer-attributes-toggle-wrap {
    margin-top: 1rem;
}

.property-offer-modern .offer-attributes-toggle {
    color: var(--offer-ink);
    font-size: .84rem;
    font-weight: 750;
}

.property-offer-modern .offer-attributes-toggle::after {
    color: var(--offer-red);
}

.property-offer-modern .offer-public-id {
    margin-top: .8rem;
    color: #92969a;
    font-size: .74rem;
}

.property-offer-body {
    padding: .5rem 0 4.5rem;
    align-items: flex-start;
}

.property-offer-description-card {
    overflow: hidden;
    border: 1px solid var(--offer-line);
    border-radius: 14px;
    background: #fff;
}

.property-offer-description-card__body {
    padding: clamp(1.4rem, 3vw, 2.35rem);
}

.property-offer-modern .offer-content {
    max-height: 620px;
    color: #3f464c;
    font-size: .96rem;
    line-height: 1.78;
}

.property-offer-modern .offer-content.show {
    max-height: none;
    overflow: visible;
}

.property-offer-modern .offer-content h2 {
    margin-bottom: 1.25rem;
}

.property-offer-modern .property-offer-description-copy > :last-child {
    margin-bottom: 0;
}

.property-offer-modern .offer-content::after {
    background-image: linear-gradient(rgba(255, 255, 255, 0) 0%, #fff 100%);
}

.property-offer-modern #read-more {
    margin: 1rem 0 0 !important;
}

.property-offer-modern #read-more a {
    display: inline-flex;
    padding: .45rem .2rem;
    color: var(--offer-ink) !important;
    font-size: .84rem;
    font-weight: 750;
}

.property-offer-modern #read-more a::after {
    content: ' ↓';
    margin-left: .25rem;
    color: var(--offer-red);
}

.property-offer-modern #read-more a[aria-expanded="true"]::after {
    content: ' ↑';
}

.property-offer-media-section {
    margin-top: 2.15rem;
    padding-top: 2rem;
    border-top: 1px solid var(--offer-line);
}

.property-offer-media-section h2 {
    margin-bottom: 1.15rem;
}

.property-offer-modern .property-media-cards {
    gap: .75rem;
}

.property-offer-modern .property-media-card {
    border-radius: 11px;
}

.property-offer-sidebar__sticky {
    position: sticky;
    top: 90px;
}

.property-offer-sidebar #scroll-to-contact {
    overflow: hidden;
    border: 1px solid var(--offer-line) !important;
    border-radius: 14px !important;
    box-shadow: none;
}

.property-offer-sidebar #scroll-to-contact > .card-body {
    padding: 1.35rem;
}

.property-offer-sidebar .agent-details {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: center;
}

.property-offer-sidebar .agent-details__img {
    position: relative;
    width: 112px;
    height: 142px;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    isolation: isolate;
    background:
        radial-gradient(110% 96% at 8% 109%, transparent 0 48%, rgba(215, 216, 214, .62) 48.5% 57%, transparent 57.5% 67%, rgba(230, 230, 228, .74) 67.5% 74%, transparent 74.5%),
        linear-gradient(140deg, #fafaf9 0%, #f4f4f2 58%, #fff 100%);
}

.property-offer-sidebar .agent-details__img::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: -38%;
    bottom: -48%;
    width: 118%;
    aspect-ratio: 1;
    border: 18px solid rgba(207, 209, 206, .28);
    border-radius: 50%;
    transform: rotate(-18deg);
    pointer-events: none;
}

.property-offer-sidebar .agent-details__img::after {
    content: '';
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: 0;
    width: 42%;
    height: 32%;
    background:
        linear-gradient(66deg, rgba(146, 31, 24, .88) 0 20%, transparent 20.5%),
        linear-gradient(58deg, rgba(183, 38, 25, .92) 0 31%, transparent 31.5%);
    clip-path: polygon(0 100%, 0 18%, 20% 56%, 37% 25%, 72% 100%);
    pointer-events: none;
}

.property-offer-sidebar .portrait-crop {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0 !important;
}

.property-offer-sidebar .portrait-crop img {
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    object-fit: contain;
    object-position: center bottom;
}

.property-offer-sidebar .agent-details__contact {
    min-width: 0;
    text-align: left !important;
}

.property-offer-sidebar .agent-details__contact .justify-content-center {
    justify-content: flex-start !important;
}

.property-offer-sidebar .offer-agent-name {
    color: var(--offer-ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.property-offer-sidebar .offer-agent-position {
    color: var(--offer-muted);
    font-size: .78rem;
    font-weight: 600;
}

.property-offer-sidebar .offer-agent-actions {
    display: grid;
    gap: .55rem;
    margin-top: .9rem;
}

.property-offer-sidebar .offer-agent-action {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    padding: .72rem .85rem;
    border: 1px solid #eee2df;
    border-radius: 10px;
    background: #fff;
    color: var(--offer-ink);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.property-offer-sidebar .offer-agent-action:hover,
.property-offer-sidebar .offer-agent-action:focus-visible {
    border-color: rgba(183, 38, 25, .34);
    background: #fff7f5;
    color: var(--offer-red);
    text-decoration: none;
}

.property-offer-sidebar .offer-agent-action__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 18px;
    color: var(--offer-red);
}

.property-offer-sidebar .offer-agent-action__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.property-offer-sidebar .agent-contact {
    grid-column: 1 / -1;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--offer-line);
}

.property-offer-sidebar .custom-input {
    min-height: 42px;
    border: 1px solid #efdfdf;
    border-radius: 7px;
    background: #fff7f7;
    font-size: .82rem;
}

.property-offer-sidebar textarea.custom-input {
    min-height: 110px;
}

.property-offer-sidebar .btn-outline-brand {
    min-height: 42px;
    padding: .5rem .85rem;
    border-radius: 7px;
    line-height: 1.2;
    font-size: .76rem;
}

.property-offer-sidebar .agent-socials {
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--offer-line);
    font-size: 1.1rem !important;
}

.property-offer-related {
    margin-top: 1.25rem;
    padding: 2rem 0 0;
}

.property-offer-related h2 {
    margin-bottom: 1rem;
}

.property-offer-related__card {
    padding: 1rem;
    border: 1px solid var(--offer-line);
    border-radius: 14px;
    background: #fff;
}

.property-offer-related__item a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.property-offer-related__item .image-offer-medium-container {
    width: 100%;
    height: 165px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--offer-soft);
}

.property-offer-related__item .img-offer-medium {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transition: transform .25s ease;
}

.property-offer-related__item a:hover .img-offer-medium {
    transform: scale(1.025);
}

.property-offer-related__item .about-image {
    padding: .35rem .15rem .15rem;
}

.property-offer-related__item .other-price {
    color: var(--offer-ink);
    font-size: .88rem;
}

.property-offer-related__item .other-price-square,
.property-offer-related__item .other-area {
    color: var(--offer-muted);
    font-size: .74rem;
}

.property-offer-related__item .other-title {
    margin: .35rem 0 0;
    color: var(--offer-ink) !important;
    font-size: .82rem !important;
    font-weight: 650;
    line-height: 1.45;
}

.property-offer-modern .offer-quick-menu {
    border-top: 1px solid var(--offer-line);
    box-shadow: 0 -7px 22px rgba(0, 0, 0, .07);
}

@media (max-width: 1199.98px) {
    .property-offer-modern .offer-gallery {
        height: 560px;
        min-height: 0;
    }

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

    .property-offer-modern .offer-attributes-grid .offer-attribute-item:not(:nth-child(4n + 1)) {
        border-left: 0;
    }

    .property-offer-modern .offer-attributes-grid .offer-attribute-item:nth-child(even) {
        border-left: 1px solid var(--offer-line);
    }
}

@media (max-width: 991.98px) {
    .property-offer-modern .offer-gallery {
        height: 430px;
    }

    .property-offer-modern .offer-heading-row,
    .property-offer-section-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
    }

    .property-offer-modern .offer-client-actions {
        width: 100%;
    }

    .property-offer-modern .offer-client-actions__buttons {
        justify-content: flex-start;
    }

    .property-offer-sidebar {
        margin-top: 1rem;
    }

    .property-offer-sidebar__sticky {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .property-offer-gallery-section {
        padding-top: 0;
        padding-bottom: 1.5rem;
    }

    .property-offer-breadcrumb {
        margin-bottom: .8rem;
        font-size: .74rem;
    }

    .property-offer-breadcrumb span:last-child {
        max-width: 50vw;
    }

    .property-offer-gallery-shell {
        margin: 0 -.75rem;
        border-radius: 0;
    }

    .property-offer-modern .offer-gallery {
        height: 330px;
    }

    .property-offer-summary {
        padding: 1.8rem 0 1.6rem;
    }

    .property-offer-modern .offer-heading-main h1 {
        font-size: clamp(1.85rem, 8.5vw, 2.6rem);
        letter-spacing: -.03em;
    }

    .property-offer-modern .offer-client-actions__buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-offer-facts {
        padding: 2.8rem 0;
    }

    .property-offer-facts-card__body {
        padding: 1rem;
    }

    .property-offer-key-facts .field-container {
        width: 50%;
        margin-bottom: .7rem;
    }

    .property-offer-key-fact {
        min-height: 80px;
    }

    .property-offer-body {
        padding-bottom: 3.5rem;
    }

    .property-offer-description-card__body {
        padding: 1.25rem;
    }

}

@media (max-width: 575.98px) {
    .property-offer-modern .offer-gallery {
        height: 265px;
    }

    .property-offer-modern .slider-bar {
        padding: .65rem !important;
    }

    .property-offer-modern .slider-bar-button {
        min-height: 34px;
        padding: .36rem .65rem;
        font-size: .7rem;
    }

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

    .property-offer-modern .offer-attributes-grid .offer-attribute-item {
        padding: .8rem .65rem;
    }

    .property-offer-modern .offer-public-id {
        text-align: left;
    }

    .property-offer-related__item .image-offer-medium-container {
        height: 200px;
    }
}

@media (max-width: 419.98px) {
    .property-offer-modern .offer-client-actions__buttons {
        grid-template-columns: minmax(0, 1fr);
    }

    .property-offer-key-facts .field-container {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .property-offer-sidebar .agent-details {
        grid-template-columns: 92px minmax(0, 1fr);
        column-gap: .85rem;
    }

    .property-offer-sidebar .agent-details__img {
        width: 92px;
        height: 118px;
    }

    .property-offer-sidebar .offer-agent-action {
        min-height: 40px;
        padding: .65rem .72rem;
        font-size: .82rem;
    }

    .property-offer-sidebar .offer-agent-action__text {
        white-space: normal;
        word-break: break-word;
    }
}
