#pageBackground.listing-detail-page {
    --detail-navy: #1d3749;
    --detail-navy-dark: #132a3a;
    --detail-text: #122333;
    --detail-muted: #647481;
    --detail-border: #d9e0e5;
    --detail-surface: #fff;
    --detail-page: #fff;
    --detail-soft: #edf2f5;
    --detail-success: #16784b;
    --detail-warning: #8a5b00;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0 16px 28px;
    overflow: clip;
    color: var(--detail-text);
    background: var(--detail-page);
}

.listing-detail-page *,
.listing-detail-page *::before,
.listing-detail-page *::after {
    box-sizing: border-box;
}

.detail-breadcrumb {
    width: min(100%, 979px);
    margin-inline: auto;
}

.detail-breadcrumb[hidden] {
    display: none;
}

.detail-breadcrumb {
    display: flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
    padding: 10px 0;
    overflow: hidden;
    color: var(--detail-muted);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
}

.detail-breadcrumb a {
    min-width: 0;
    overflow: hidden;
    color: var(--detail-navy);
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
}

.detail-breadcrumb a:hover,
.detail-breadcrumb a:focus-visible {
    text-decoration: underline;
}

.listing-detail-shell {
    width: min(100%, 979px);
    min-width: 0;
    margin-inline: auto;
}

.detail-heading {
    width: 100%;
    padding: 8px 10px;
    background: #eafefa;
}

.detail-heading__context {
    display: none;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    color: var(--detail-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

#postingTitle h1 {
    max-width: none;
    margin: 0;
    overflow-wrap: anywhere;
    text-wrap: wrap;
    color: var(--detail-text);
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -.015em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    align-items: center;
    margin-top: 11px;
    color: var(--detail-muted);
    font-size: 13px;
}

.detail-meta span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.detail-meta svg,
.detail-action svg,
.contact-actions svg,
.detail-safety > svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.detail-meta__verified {
    color: var(--detail-success);
    font-weight: 800;
}

.detail-actions {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 6px;
    background: var(--detail-surface);
}

.detail-action {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 3px 0;
    border: 0;
    border-radius: 0;
    color: #00e;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: underline;
}

.detail-action:hover,
.detail-action:focus-visible {
    color: #551a8b;
    background: transparent;
}

.detail-action--primary {
    color: #00e;
    background: transparent;
}

.detail-action--primary:hover,
.detail-action--primary:focus-visible {
    color: #551a8b;
    background: transparent;
}

.detail-action--quiet svg {
    color: #d71920;
}

.detail-action--back {
    margin-right: auto;
}

.detail-actions .detail-action--quiet {
    padding: 3px 6px;
    border-radius: 4px;
    background: #fff176;
}

.detail-actions .detail-action--quiet:hover,
.detail-actions .detail-action--quiet:focus-visible {
    background: #ffeb3b;
}

.detail-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
    gap: 16px;
    align-items: start;
    margin-top: 4px;
}

.detail-primary-grid,
.detail-safety,
.related-ads {
    width: min(100%, 979px);
}

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

.detail-card {
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: var(--detail-surface);
    box-shadow: none;
}

.detail-card__heading {
    display: none;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    padding: 0 0 10px;
    border: 0;
}

.detail-card__heading h2 {
    margin: 0;
    color: var(--detail-text);
    font-size: 16px;
    line-height: 1.25;
}

.detail-card__heading span {
    color: var(--detail-muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-gallery-card {
    overflow: hidden;
}

.detail-gallery__stage {
    position: relative;
    width: min(100%, 600px);
}

.detail-gallery__hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: min(100%, 600px);
    aspect-ratio: 4 / 3;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.detail-gallery__stage .detail-gallery__hero {
    width: 100%;
}

.detail-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    transform: translateY(-50%);
}

.detail-gallery__arrow--previous {
    left: 10px;
}

.detail-gallery__arrow--next {
    right: 10px;
}

.detail-gallery__arrow svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.detail-gallery__arrow:hover,
.detail-gallery__arrow:focus-visible {
    background: rgba(255, 255, 255, .34);
}

.detail-gallery__viewer[hidden] {
    display: none;
}

.detail-gallery__viewer {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 14, 20, .9);
    cursor: zoom-out;
}

.detail-gallery__viewer img {
    display: block;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    object-fit: contain;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .4);
    cursor: default;
}

.detail-gallery__viewer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 35, 51, .72);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.detail-gallery__viewer-close:hover,
.detail-gallery__viewer-close:focus-visible {
    background: rgba(18, 35, 51, .95);
}

body.detail-gallery-viewer-open {
    overflow: hidden;
}

.detail-gallery__hero img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

.detail-gallery__video {
    display: block;
    width: min(100%, 600px);
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: none;
    margin: 0;
    border-radius: 0;
    background: #0e151a;
    object-fit: cover;
    object-position: center;
}

.detail-gallery__photo-label {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 0 16px;
    color: var(--detail-text);
    font-size: 13px;
    font-weight: 800;
}

.detail-gallery__photo-label span {
    color: var(--detail-muted);
    font-size: 12px;
}

.detail-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0 0;
}

.detail-gallery__thumbs a {
    display: block;
    width: 84px;
    aspect-ratio: 4 / 3;
    flex: 0 0 84px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--detail-soft);
}

.detail-gallery__thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .16s ease;
}

.detail-gallery__thumbs a:hover img,
.detail-gallery__thumbs a:focus-visible img {
    transform: scale(1.025);
}

.detail-gallery__thumbs a[aria-current="true"] {
    outline: 2px solid #28764d;
    outline-offset: -2px;
}

.detail-gallery__empty {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 24px;
    color: var(--detail-muted);
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 700;
}

.detail-gallery__empty img {
    display: block;
    width: 150px;
    max-width: 50%;
    height: auto;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.detail-summary-card {
    width: 100%;
    margin-top: 0;
}

.listing-profile-details {
    margin: 0;
    padding: 0;
}

.listing-profile-details > div {
    display: grid;
    grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 10px;
    border: 0;
}

.listing-profile-details > div:nth-child(even) {
    background: #f2f4f5;
}

.listing-profile-details > div:nth-child(odd) {
    background: #fff;
}

.listing-profile-details > div:last-child {
    border-bottom: 0;
}

.listing-profile-details dt,
.listing-profile-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.listing-profile-details dt {
    color: var(--detail-text);
    font-size: 12px;
    font-weight: 800;
}

.listing-profile-details dd {
    color: var(--detail-text);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.detail-contact-card {
    overflow: hidden;
}

.detail-contact-card > p {
    margin: 0;
    padding: 0 0 8px;
    color: var(--detail-muted);
    font-size: 13px;
    line-height: 1.5;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    padding: 0;
}

.contact-actions a {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #28764d;
    border-radius: 3px;
    color: #fff;
    background: #28764d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    white-space: nowrap;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
    border-color: #1f603e;
    color: #fff;
    background: #1f603e;
}

.contact-actions .contact-actions__secondary {
    border-color: #28764d;
    color: #fff;
    background: #28764d;
}

.contact-actions .contact-actions__secondary:hover,
.contact-actions .contact-actions__secondary:focus-visible {
    border-color: #1f603e;
    color: #fff;
    background: #1f603e;
}

.detail-contact-card .detail-contact-card__note {
    padding-bottom: 18px;
}

.detail-description-card {
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
}

.postingBody {
    padding: 4px 0 18px;
    overflow: hidden;
    color: #263947;
    font-size: 14px;
    line-height: 1.62;
    overflow-wrap: anywhere;
    text-wrap: wrap;
}

.postingBody > :first-child {
    margin-top: 0;
}

.postingBody > :last-child {
    margin-bottom: 0;
}

.postingBody div:has(> br:only-child) {
    min-height: 8px;
    height: 8px;
    line-height: 8px;
}

.postingBody p,
.postingBody ul,
.postingBody ol,
.postingBody blockquote {
    margin-block: 0 1em;
}

.postingBody img,
.postingBody video,
.postingBody iframe {
    max-width: 100%;
    height: auto;
}

.postingBody a {
    color: var(--detail-navy);
    font-weight: 700;
}

.detail-safety {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    margin: 4px 0 10px;
    padding: 4px 8px;
    border: 0;
    border-radius: 0;
    color: #5d460f;
    background: #fff8d8;
}

.detail-safety > svg {
    width: 21px;
    height: 21px;
    color: var(--detail-warning);
}

.detail-safety h2 {
    margin: 0 0 1px;
    color: #d71920;
    font-size: 14px;
}

.detail-safety p {
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
}

.detail-safety a {
    color: #5d460f;
    font-size: inherit;
    font-weight: 800;
    line-height: inherit;
}

.related-ads {
    margin-top: 20px;
}

.related-ads__heading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

.related-ads__heading h2 {
    margin: 0;
    color: var(--detail-text);
    font-size: 18px;
}

.related-ads__heading > a {
    color: var(--detail-navy);
    font-size: 13px;
    font-weight: 800;
}

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

.related-card {
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.related-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f5f6;
}

.related-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .16s ease;
}

.related-card__image:hover img,
.related-card__image:focus-visible img {
    transform: scale(1.025);
}

.related-card__body {
    display: grid;
    gap: 6px;
    padding: 9px;
}

.related-card__body > a {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: var(--detail-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-card__body > a:hover,
.related-card__body > a:focus-visible {
    text-decoration: underline;
}

.related-card__body small {
    color: var(--detail-muted);
    font-size: 12px;
}

@media (max-width: 972px) {
    .detail-heading,
    .detail-actions {
        width: 100%;
    }

    .detail-primary-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
    }

    .detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    #pageBackground.listing-detail-page {
        padding: 0 8px 28px;
        overflow: hidden;
    }

    .detail-breadcrumb {
        padding-block: 9px 7px;
        font-size: 12px;
    }

    .detail-heading {
        padding: 8px 10px;
    }

    .detail-heading__context {
        margin-bottom: 7px;
        font-size: 11px;
    }

    #postingTitle h1 {
        display: block;
        overflow: visible;
        font-size: 20px;
        line-height: 26px;
    }

    .detail-meta {
        gap: 7px 12px;
        margin-top: 10px;
        font-size: 12px;
    }

    .detail-actions {
        padding: 0 0 6px;
    }

    .detail-action {
        min-height: 30px;
        padding: 3px 0;
        font-size: 12px;
    }

    .detail-primary-grid,
    .detail-description-card,
    .detail-safety {
        margin-top: 12px;
    }

    .detail-primary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-gallery__empty {
        min-height: 240px;
    }

    .detail-gallery__video {
        width: min(100%, 600px);
        max-height: 500px;
        margin: 0;
    }

    .detail-gallery__arrow {
        width: 44px;
        height: 44px;
    }

    .detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .detail-card__heading {
        min-height: 0;
        padding: 0 0 8px;
    }

    .detail-card__heading h2 {
        font-size: 15px;
    }

    .listing-profile-details {
        padding: 0;
    }

    .listing-profile-details > div {
        grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .detail-contact-card > p {
        padding: 0 0 8px;
    }

    .contact-actions {
        padding: 0;
    }

    .postingBody {
        padding: 4px 0 15px;
        font-size: 14px;
        line-height: 1.58;
    }

    .detail-safety {
        padding: 4px 8px;
    }

    .related-ads {
        margin-top: 18px;
    }

    .related-ads__heading h2 {
        font-size: 17px;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .detail-actions {
        align-items: stretch;
    }

    .detail-action {
        flex: 0 0 auto;
    }

    .detail-gallery__thumbs a {
        width: 72px;
        flex-basis: 72px;
    }

    .related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .related-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .related-card__image {
        aspect-ratio: 1 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .detail-gallery__thumbs img,
    .related-card__image img {
        transition: none;
    }
}
