.listing-detail {
    padding: 2rem 0 4rem;
    max-width: 100%;
    overflow-x: clip;
}

.listing-detail__layout,
.listing-detail__main {
    min-width: 0;
    max-width: 100%;
}

.listing-detail__header {
    margin-bottom: 2rem;
}

.listing-detail__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 0.75rem;
    overflow-wrap: anywhere;
}

.listing-detail__header-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0;
}

.listing-detail__location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.listing-detail__location svg {
    color: var(--gold);
    flex-shrink: 0;
}

.listing-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.listing-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.listing-detail__tags .property-card__tag {
    position: static;
}

.listing-detail__tags .property-card__tag--type {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--navy);
}

.listing-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.listing-detail__badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--gold);
    color: var(--white);
}

.listing-detail__badge--urgent {
    background: #dc2626;
}

.listing-detail__badge--discount {
    background: #059669;
}

.listing-detail__badge--opportunity {
    background: var(--navy-3);
}

.listing-detail__layout {
    display: grid;
    gap: 2rem;
}

.listing-detail__sidebar,
.listing-sidebar {
    min-width: 0;
    max-width: 100%;
}

.page--listing-detail .listings-grid {
    min-width: 0;
    max-width: 100%;
}

.listing-detail__section {
    margin-top: 2rem;
}

.listing-detail__section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 1rem;
}

.listing-detail__specs {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.listing-detail__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.listing-detail__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.25rem 0.875rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.listing-detail__feature:hover {
    border-color: rgba(201, 168, 76, 0.45);
    box-shadow: var(--shadow-sm);
}

.listing-detail__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    color: var(--gold);
    flex-shrink: 0;
}

.listing-detail__feature-icon-svg,
.listing-detail__feature-icon-svg svg {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
}

.listing-detail__feature-icon-img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.listing-detail__feature-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
}

.listing-detail__feature-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.listing-detail__spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.listing-detail__spec-row:last-child {
    border-bottom: 0;
}

.listing-detail__spec-row dt {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.listing-detail__spec-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--navy);
    text-align: right;
}

.listing-detail__content {
    color: var(--text);
    line-height: 1.75;
}

.listing-detail__content p {
    margin: 0 0 1rem;
}

.listing-detail__location-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.listing-detail__location-text--address {
    font-weight: 500;
    color: var(--text);
}

.listing-detail__map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.listing-detail__map iframe {
    display: block;
    width: 100%;
}

.listing-detail__map-link a {
    color: var(--gold);
    font-weight: 600;
}

/* Gallery */
.listing-gallery {
    margin-bottom: 0.25rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.listing-gallery__viewport {
    position: relative;
    overflow: clip;
    border-radius: var(--radius);
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
    outline: none;
    max-width: 100%;
    isolation: isolate;
    contain: paint;
    overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
}

.listing-gallery__viewport:focus-visible {
    box-shadow: 0 0 0 3px var(--gold-light);
}

.listing-gallery__track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(calc(var(--slide-index, 0) * -100%));
    transition: transform 0.35s ease;
    will-change: transform;
}

.listing-gallery__track.is-dragging {
    transition: none;
    cursor: grabbing;
}

.listing-gallery__viewport.is-swiping {
    cursor: grabbing;
}

.listing-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
}

.listing-gallery__zoom-trigger {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.listing-gallery__zoom-trigger:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.listing-gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.listing-gallery__zoom-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(22, 32, 46, 0.62);
    color: var(--white);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity var(--transition, 0.25s ease), transform var(--transition, 0.25s ease);
    pointer-events: none;
}

.listing-gallery__zoom-trigger:hover .listing-gallery__zoom-icon,
.listing-gallery__zoom-trigger:focus-visible .listing-gallery__zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.listing-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.12));
    cursor: pointer;
    transform: translateY(-50%);
    transition: background var(--transition, 0.25s ease), transform var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.listing-gallery__nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.04);
}

.listing-gallery__nav:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

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

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

.listing-gallery__counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background: rgba(22, 32, 46, 0.72);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.listing-gallery__thumbs {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.75rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.125rem 0.25rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
}

.listing-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.listing-gallery__thumb {
    flex: 0 0 5.5rem;
    height: 4rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: none;
    scroll-snap-align: start;
    transition: border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease), opacity var(--transition, 0.25s ease);
}

.listing-gallery__thumb:hover {
    border-color: rgba(201, 168, 76, 0.55);
}

.listing-gallery__thumb.is-active {
    border-color: var(--gold);
    border-width: 2px;
}

.listing-gallery__thumb:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.listing-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .listing-gallery__track,
    .listing-gallery__track.is-reduced-motion {
        transition: none;
    }

    .listing-gallery__nav:hover {
        transform: translateY(-50%);
    }
}

@media (max-width: 767px) {
    .listing-gallery__nav {
        display: none;
    }

    .listing-gallery__viewport {
        touch-action: pan-y;
    }

    .listing-gallery__zoom-trigger {
        touch-action: pan-y;
    }

    .listing-gallery__zoom-icon {
        opacity: 1;
        transform: scale(1);
        width: 2.25rem;
        height: 2.25rem;
        right: 0.75rem;
        top: 0.75rem;
    }

    .listing-gallery__thumb {
        flex: 0 0 4.75rem;
        height: 3.5rem;
    }

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

/* Gallery lightbox */
body.listing-lightbox-open {
    overflow: hidden;
    max-width: 100%;
    touch-action: none;
}

.listing-lightbox[hidden] {
    display: none !important;
}

.listing-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    height: 100dvh;
}

.listing-lightbox__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.listing-lightbox.is-open .listing-lightbox__backdrop {
    opacity: 1;
}

.listing-lightbox__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.listing-lightbox.is-open .listing-lightbox__inner {
    opacity: 1;
    transform: scale(1);
}

.listing-lightbox__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0.875rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
}

.listing-lightbox__counter {
    min-width: 4.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.listing-lightbox__zoom {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-inline: auto;
}

.listing-lightbox__zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease);
}

.listing-lightbox__zoom-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.listing-lightbox__zoom-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.listing-lightbox__zoom-btn--reset {
    min-width: 3.25rem;
}

.listing-lightbox__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
    transition: background var(--transition, 0.25s ease);
}

.listing-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.listing-lightbox__close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.listing-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0.5rem;
}

.listing-lightbox__viewport {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.listing-lightbox__viewport.is-dragging {
    cursor: grabbing;
}

.listing-lightbox__viewport.is-zoomed {
    cursor: grab;
}

.listing-lightbox__track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(calc(var(--slide-index, 0) * -100%));
    transition: transform 0.35s ease;
    will-change: transform;
}

.listing-lightbox__track.is-reduced-motion,
.listing-lightbox.is-zoomed .listing-lightbox__track {
    transition: none;
}

.listing-lightbox__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0.5rem;
}

.listing-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    transform-origin: center center;
    will-change: transform;
}

.listing-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background var(--transition, 0.25s ease), transform var(--transition, 0.25s ease);
    backdrop-filter: blur(4px);
}

.listing-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.05);
}

.listing-lightbox__nav:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.listing-lightbox__nav--prev {
    left: 0.75rem;
}

.listing-lightbox__nav--next {
    right: 0.75rem;
}

.listing-lightbox__thumbs {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    padding: 0.875rem 1rem 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
}

.listing-lightbox__thumbs::-webkit-scrollbar {
    display: none;
}

.listing-lightbox__thumb {
    flex: 0 0 4.5rem;
    height: 3.25rem;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.375rem;
    background: none;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: center;
    opacity: 0.65;
    transition: border-color var(--transition, 0.25s ease), opacity var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.listing-lightbox__thumb:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.55);
}

.listing-lightbox__thumb.is-active {
    opacity: 1;
    border-color: var(--gold);
}

.listing-lightbox__thumb:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.listing-lightbox__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .listing-lightbox__backdrop,
    .listing-lightbox__inner,
    .listing-lightbox__track {
        transition: none;
    }

    .listing-lightbox__nav:hover {
        transform: translateY(-50%);
    }
}

@media (max-width: 767px) {
    .listing-lightbox__toolbar {
        padding: 0.75rem;
    }

    .listing-lightbox__zoom {
        gap: 0.25rem;
    }

    .listing-lightbox__zoom-btn {
        min-width: 2rem;
        height: 2rem;
    }

    .listing-lightbox__zoom-btn--reset {
        min-width: 2.75rem;
    }

    .listing-lightbox__nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .listing-lightbox__nav--prev {
        left: 0.35rem;
    }

    .listing-lightbox__nav--next {
        right: 0.35rem;
    }

    .listing-lightbox__thumb {
        flex: 0 0 3.75rem;
        height: 2.75rem;
    }

    .listing-lightbox__thumbs {
        padding: 0.75rem 0.75rem 1rem;
    }
}

/* Sidebar */
.listing-sidebar {
    --listing-accent: #1a5632;
    --listing-accent-hover: #144728;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: calc(var(--header-height, 80px) + 1rem);
}

.listing-sidebar__card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.125rem;
}

.listing-sidebar__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.listing-sidebar__price {
    margin: 0;
    font-size: clamp(1.625rem, 2.5vw, 1.875rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--listing-accent);
    overflow-wrap: anywhere;
}

.listing-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.listing-sidebar__action {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    text-align: center;
    transition: background var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease), color var(--transition, 0.25s ease), transform var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.listing-sidebar__action:hover {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .listing-sidebar__action:hover {
        transform: none;
    }
}

.listing-sidebar__action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.listing-sidebar__action-label {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
}

.listing-sidebar__action--call {
    background: #eff6ff;
    color: var(--navy);
    border: 1px solid #bfdbfe;
}

.listing-sidebar__action--call .listing-sidebar__action-icon {
    background: var(--navy);
    color: var(--white);
}

.listing-sidebar__action--call:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.listing-sidebar__action--whatsapp {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.listing-sidebar__action--whatsapp .listing-sidebar__action-icon {
    background: #25d366;
    color: var(--white);
}

.listing-sidebar__action--whatsapp:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.listing-sidebar__share {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 1px dashed #d1d5db;
    border-radius: 0.5rem;
    background: var(--bg-soft);
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease), color var(--transition, 0.25s ease);
}

.listing-sidebar__share-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.listing-sidebar__share:hover {
    background: var(--white);
    border-color: var(--navy);
    color: var(--navy);
}

.listing-sidebar__share.is-copied {
    background: #ecfdf5;
    border-color: #6ee7b7;
    border-style: solid;
    color: var(--listing-accent);
}

.listing-sidebar__consultant {
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border);
}

.listing-sidebar__consultant-title {
    margin: 0 0 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
}

.listing-sidebar__consultant-body {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.listing-sidebar__consultant-photo {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.listing-sidebar__consultant-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-sidebar__consultant-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 700;
}

.listing-sidebar__consultant-info {
    min-width: 0;
}

.listing-sidebar__consultant-name {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.listing-sidebar__consultant-phone {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Listing offer */
.listing-offer__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.listing-offer__desc {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.listing-offer__trigger {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), transform var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.listing-offer__trigger:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 40, 0.3);
}

.listing-offer__trigger:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.listing-offer__submit {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), transform var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.listing-offer__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.listing-offer__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.listing-offer__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
}

.listing-offer__input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.listing-offer__input::placeholder {
    color: var(--text-light);
}

.listing-offer__input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-light);
}

.listing-offer__submit:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 40, 0.3);
}

.listing-offer__submit:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.listing-offer__field.turnstile-field {
    margin-top: 0.25rem;
}

.listing-offer__field.turnstile-field .cf-turnstile {
    min-height: 65px;
}

@media (prefers-reduced-motion: reduce) {
    .listing-offer__submit:hover {
        transform: none;
    }

    .listing-offer__trigger:hover {
        transform: none;
    }
}

/* Listing offer modal */
body.listing-offer-modal-open {
    overflow: hidden;
}

.listing-offer-modal[hidden] {
    display: none !important;
}

.listing-offer-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.listing-offer-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 32, 46, 0.72);
    opacity: 0;
    transition: opacity var(--transition, 0.25s ease);
}

.listing-offer-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 28rem);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border-radius: var(--radius, 1rem);
    background: var(--white);
    box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.16));
    opacity: 0;
    transform: scale(0.96) translateY(0.75rem);
    transition:
        opacity var(--transition, 0.25s ease),
        transform var(--transition, 0.25s ease);
}

.listing-offer-modal.is-open .listing-offer-modal__backdrop {
    opacity: 1;
}

.listing-offer-modal.is-open .listing-offer-modal__panel {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .listing-offer-modal__backdrop,
    .listing-offer-modal__panel {
        transition: none;
    }
}

.listing-offer-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.listing-offer-modal__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.listing-offer-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: var(--bg-soft);
    color: var(--navy);
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), color var(--transition, 0.25s ease);
}

.listing-offer-modal__close:hover {
    background: var(--border);
}

.listing-offer-modal__close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.listing-offer-modal__body {
    padding: 1.25rem;
    overflow-y: auto;
}

.listing-offer-modal__desc {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Loan calculator */
.loan-calculator__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.loan-calculator__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.loan-calculator__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.loan-calculator__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.loan-calculator__field--select .loan-calculator__label--select {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
}

.loan-calculator__input,
.loan-calculator__select-wrap {
    width: 100%;
}

.loan-calculator__input {
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.loan-calculator__input::placeholder {
    color: var(--text-light);
}

.loan-calculator__input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-light);
}

.loan-calculator__field--select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.loan-calculator__field--select:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-light);
}

.loan-calculator__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.loan-calculator__select {
    width: 100%;
    padding: 0;
    padding-right: 1.5rem;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    appearance: none;
}

.loan-calculator__select:focus {
    outline: none;
}

.loan-calculator__select-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.loan-calculator__result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.loan-calculator__result-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

.loan-calculator__result-value {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--navy);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.loan-calculator__submit {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), transform var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.loan-calculator__submit:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 40, 0.3);
}

.loan-calculator__submit:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .loan-calculator__submit:hover {
        transform: none;
    }
}

.listing-similar {
    background: var(--bg-soft);
    padding-bottom: 4rem;
    overflow-x: clip;
    max-width: 100%;
}

.listing-detail__eids-footer {
    padding: 1.25rem 0 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.listing-detail__eids {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.listing-detail__eids-label {
    color: var(--text-muted);
    font-weight: 500;
}

.listing-detail__eids-value {
    color: var(--navy);
    font-weight: 700;
    word-break: break-word;
}

@media (min-width: 768px) {
    .listing-detail__features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .listing-detail__layout {
        grid-template-columns: 1fr 400px;
        align-items: start;
    }

    .listing-detail__features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .listing-detail__sidebar {
        order: -1;
    }

    .listing-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .page--listing-detail {
        overflow-x: clip;
        overscroll-behavior-x: none;
    }

    .page--listing-detail .container {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .listing-detail {
        padding: 1.25rem 0 2.5rem;
    }

    .listing-detail__header {
        margin-bottom: 1.25rem;
    }

    .listing-detail__title {
        font-size: clamp(1.375rem, 5.5vw, 1.75rem);
    }

    .listing-detail__layout {
        gap: 1.5rem;
    }

    .listing-sidebar {
        gap: 1rem;
    }

    .listing-sidebar__card {
        padding: 1rem;
    }

    .listing-detail__section {
        margin-top: 1.5rem;
    }

    .listing-detail__features {
        gap: 0.625rem;
    }

    .listing-detail__feature {
        padding: 1rem 0.625rem;
    }

    .listing-detail__spec-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .listing-detail__spec-row dd {
        text-align: left;
    }

    .listing-similar {
        padding-bottom: 2.5rem;
    }

    .listing-detail__eids-footer {
        padding: 1rem 0 2rem;
    }
}

/* Sidebar share actions */
.listing-sidebar__header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.listing-sidebar__instagram-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 2.75rem;
    margin: 0 0 0.875rem;
    padding: 0.75rem 1rem;
    border: 1px solid #fbcfe8;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.08), rgba(188, 24, 136, 0.08));
    color: var(--navy);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease), transform var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.listing-sidebar__instagram-action:hover {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.14), rgba(188, 24, 136, 0.14));
    border-color: #f472b6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.12);
}

.listing-sidebar__instagram-action:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .listing-sidebar__instagram-action:hover {
        transform: none;
    }
}

/* Instagram share modal */
body.instagram-share-open {
    overflow: hidden;
}

.instagram-share[hidden] {
    display: none !important;
}

.instagram-share {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.instagram-share__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 32, 46, 0.72);
}

.instagram-share__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 32rem);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border-radius: var(--radius, 1rem);
    background: var(--white);
    box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.16));
}

.instagram-share__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.instagram-share__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.instagram-share__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: var(--bg-soft);
    color: var(--navy);
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), color var(--transition, 0.25s ease);
}

.instagram-share__close:hover {
    background: var(--border);
}

.instagram-share__close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.instagram-share__body {
    padding: 1.25rem;
    overflow-y: auto;
}

.instagram-share__desc {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.instagram-share__fieldset {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
}

.instagram-share__legend {
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.instagram-share__legend.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.instagram-share__images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.instagram-share__image-option {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 0.625rem;
    background: var(--bg-soft);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.instagram-share__image-option img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-share__image-option.is-active,
.instagram-share__image-option:hover {
    border-color: var(--gold);
}

.instagram-share__image-option.is-active {
    box-shadow: 0 0 0 3px var(--gold-light);
}

.instagram-share__image-option:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.instagram-share__formats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.instagram-share__format {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    padding: 1rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--bg-soft);
    color: var(--navy);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease), transform var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.instagram-share__format:hover {
    background: var(--white);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.instagram-share__format:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.instagram-share__format-preview {
    display: block;
    border: 2px solid var(--navy);
    border-radius: 0.375rem;
    background: linear-gradient(180deg, #d1d5db 0 58%, var(--navy) 58% 100%);
}

.instagram-share__format-preview--story {
    width: 3.25rem;
    height: 5.75rem;
}

.instagram-share__format-preview--post {
    width: 4rem;
    height: 5rem;
    background: linear-gradient(180deg, #d1d5db 0 52%, var(--white) 52% 100%);
}

.instagram-share__format-label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.instagram-share__format-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.instagram-share__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 12rem;
    text-align: center;
}

.instagram-share__spinner {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: instagram-share-spin 0.8s linear infinite;
}

@keyframes instagram-share-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .instagram-share__spinner {
        animation: none;
        border-top-color: var(--gold);
    }

    .instagram-share__format:hover {
        transform: none;
    }
}

.instagram-share__loading-text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.instagram-share__preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.875rem;
    background: var(--bg-soft);
}

.instagram-share__preview {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.12));
}

.instagram-share__hint {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
    text-align: center;
}

.instagram-share__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.instagram-share__btn {
    flex: 1 1 calc(50% - 0.3125rem);
    min-height: 2.75rem;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: background var(--transition, 0.25s ease), transform var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.instagram-share__btn--primary {
    background: var(--navy);
    color: var(--white);
}

.instagram-share__btn--primary:hover {
    background: var(--navy-3, #28384d);
}

.instagram-share__btn--secondary {
    background: var(--bg-soft);
    color: var(--navy);
    border: 1px solid var(--border);
}

.instagram-share__btn--secondary:hover {
    background: var(--white);
    border-color: var(--navy);
}

.instagram-share__btn--share {
    flex-basis: 100%;
    background: linear-gradient(135deg, #f09433, #bc1888);
    color: var(--white);
}

.instagram-share__btn--share:hover {
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.25);
}

.instagram-share__btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.instagram-share__error {
    margin: 0 0 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.45;
}

@media (max-width: 479px) {
    .instagram-share__formats {
        grid-template-columns: 1fr;
    }

    .instagram-share__btn {
        flex-basis: 100%;
    }
}
