.offer-detail-page {
    background: linear-gradient(180deg, var(--paper) 0%, #f8f4ed 100%);
}

.offer-detail-shell,
.offer-detail-content {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.offer-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
    gap: 28px;
    align-items: stretch;
    padding: 42px 0 34px;
}

.offer-gallery,
.offer-summary-card,
.offer-content-card,
.offer-contact-card,
.offer-detail-page .offer-author-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(22, 24, 22, 0.08);
}

.offer-gallery {
    display: grid;
    gap: 12px;
    padding: 12px;
}

.offer-gallery-main {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    aspect-ratio: 16 / 10;
    background: var(--shell);
    border-radius: 8px;
}

.offer-gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 320ms ease, transform 520ms ease;
}

.offer-gallery-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.offer-gallery-empty-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 8px 11px;
    color: var(--navy);
    background: rgba(255, 253, 250, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.offer-gallery-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: rgba(255, 253, 250, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
    backdrop-filter: blur(14px);
}

.offer-gallery-control:hover,
.offer-gallery-control:focus-visible {
    color: var(--white);
    background: var(--navy);
    outline: none;
    transform: translateY(-50%) scale(1.04);
}

.offer-gallery-control.is-prev {
    left: 14px;
}

.offer-gallery-control.is-next {
    right: 14px;
}

.offer-gallery-thumbs {
    display: grid;
    grid-auto-columns: 96px;
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.offer-gallery-thumb {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 0;
    background: var(--shell);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

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

.offer-gallery-thumb:hover {
    opacity: 0.86;
    transform: translateY(-1px);
}

.offer-gallery-thumb.is-active {
    border-color: var(--gold);
}

.offer-summary-card {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 28px;
}

.offer-back-link {
    justify-self: start;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

.offer-summary-card h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.1vw, 46px);
    line-height: 1.08;
}

.offer-lead {
    color: var(--muted);
    font-size: 17px;
}

.offer-price-card {
    display: grid;
    gap: 2px;
    padding: 18px;
    color: var(--white);
    background: var(--navy);
    border-radius: 8px;
}

.offer-price-card span,
.offer-contact-card > span,
.offer-section-heading span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.offer-price-card strong {
    font-size: 26px;
    line-height: 1.15;
}

.offer-hero-stats,
.offer-location-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.offer-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-hero-stats div,
.offer-location-list div,
.offer-data-item {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: rgba(245, 240, 232, 0.7);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.offer-summary-actions,
.offer-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.offer-summary-actions .btn {
    flex: 1 1 150px;
}

.offer-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    align-items: start;
    padding: 10px 0 82px;
}

.offer-detail-main {
    display: grid;
    gap: 22px;
}

.offer-content-card {
    padding: 28px;
}

.offer-section-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
}

.offer-section-heading h2,
.offer-contact-card h2,
.offer-detail-page .offer-author-card h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 34px);
}

.offer-data-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.offer-property-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
}

.offer-data-item span,
.offer-location-list dt,
.offer-hero-stats dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.offer-data-item strong,
.offer-location-list dd,
.offer-hero-stats dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.offer-prose {
    color: #2b2925;
    font-size: 17px;
}

.offer-prose + .offer-prose {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.offer-amenity-tags {
    margin-bottom: 0;
}

.offer-feature-list {
    margin-top: 16px;
}

.offer-map-link,
.offer-video-link {
    margin-top: 18px;
}

.offer-contact-column {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.offer-detail-page .offer-author-card {
    margin: 0;
    padding: 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.offer-detail-page .offer-author-body {
    grid-template-columns: 68px minmax(0, 1fr);
}

.offer-detail-page .offer-author-avatar {
    width: 68px;
    height: 68px;
}

.offer-contact-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.offer-contact-card p {
    margin: 0;
    color: var(--muted);
}

.offer-contact-actions {
    display: grid;
}

.offer-contact-actions .text-link {
    justify-self: center;
    font-size: 14px;
}

.offer-detail-page .btn {
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.offer-detail-page .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(16, 35, 63, 0.14);
}

.offer-detail-page.has-scroll-animations .offer-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.offer-detail-page.has-scroll-animations .offer-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .offer-gallery-slide,
    .offer-gallery-control,
    .offer-gallery-thumb,
    .offer-detail-page .btn,
    .offer-detail-page.has-scroll-animations .offer-reveal {
        transition: none;
    }
}

@media (max-width: 1100px) {
    .offer-detail-shell,
    .offer-detail-content {
        grid-template-columns: 1fr;
    }

    .offer-contact-column {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .offer-detail-shell,
    .offer-detail-content {
        width: min(100% - 32px, 1240px);
    }

    .offer-detail-shell {
        padding-top: 24px;
    }

    .offer-gallery-main {
        min-height: 280px;
        aspect-ratio: 4 / 3;
    }

    .offer-summary-card,
    .offer-content-card,
    .offer-contact-card,
    .offer-detail-page .offer-author-card {
        padding: 20px;
    }

    .offer-summary-card h1 {
        font-size: clamp(28px, 8vw, 38px);
        line-height: 1.08;
    }

    .offer-hero-stats,
    .offer-data-grid,
    .offer-contact-column {
        grid-template-columns: 1fr;
    }

    .offer-gallery-control {
        width: 38px;
        height: 38px;
    }

    .offer-gallery-thumbs {
        grid-auto-columns: 84px;
    }
}

@media (max-width: 520px) {
    .offer-summary-actions .btn {
        flex-basis: 100%;
    }

    .offer-gallery-thumbs {
        grid-auto-columns: 78px;
        gap: 8px;
    }

    .offer-detail-page .offer-author-body {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .offer-detail-page .offer-author-avatar {
        width: 56px;
        height: 56px;
    }
}
