@import url("public-inventory-detail.css");

.wel-sales-inventory-page,
.wel-inventory,
.wel-inventory-detail {
    --wel-navy: #0c2d59;
    --wel-blue: #223a82;
    --wel-sky: #46a9f5;
    --wel-ink: #4b4d56;
    --wel-muted: #4b4d56;
    --wel-line: #e3e8ee;
    --wel-soft: #f6f8fa;
    --wel-white: #fff;
}

.wel-sales-inventory-page {
    max-width: 1180px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 7rem);
    color: var(--wel-ink);
    font-family: "Titillium Web", Arial, sans-serif;
}

.wel-sales-inventory-page * {
    box-sizing: border-box;
}

.wel-inventory-staging-notice {
    width: min(1180px, calc(100% - 2rem));
    margin: 1rem auto 1.5rem;
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--wel-sky, #46a9f5);
    background: #f1f5f9;
    color: var(--wel-ink, #4b4d56);
    font-family: "Titillium Web", Arial, sans-serif;
    line-height: 1.5;
}

.wel-inventory-staging-notice p {
    margin: 0;
}

.wel-inventory-staging-notice strong {
    color: var(--wel-navy, #0c2d59);
}

body.single-wel_inventory .wel-inventory-detail-template > .wel-inventory-staging-notice {
    width: min(960px, calc(100% - 64px));
}

/*
 * Keep the Sales index inside WEL's existing site shell. The active theme
 * already owns the map-backed #masthead, so extend that same element instead
 * of duplicating or hard-coding its background asset.
 */
body.wel-clean-sales-inventory {
    --wel-sales-masthead-extension: clamp(12rem, 13.5vw, 15rem);
}

body.wel-clean-sales-inventory #masthead {
    box-sizing: content-box;
    padding-bottom: var(--wel-sales-masthead-extension);
}

.wel-sales-masthead-titlebar {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: var(--wel-sales-masthead-extension);
    margin-top: calc(-1 * var(--wel-sales-masthead-extension));
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    color: var(--wel-white);
    text-align: center;
}

.wel-sales-masthead-titlebar__inner {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.wel-sales-masthead-titlebar h1 {
    margin: 0;
    color: #fff;
    font-family: "Russo One", Impact, sans-serif;
    font-size: clamp(2.35rem, 3.2vw, 3.4rem);
    font-weight: 400;
    line-height: 1.08;
}

.wel-sales-inventory-page__kicker {
    margin: 0 0 0.8rem;
    color: var(--wel-blue);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wel-sales-inventory-page__title {
    max-width: 820px;
    margin: 0;
    color: var(--wel-navy);
    font-family: "Russo One", Impact, sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4.7rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.wel-sales-inventory-page__lead {
    max-width: 620px;
    margin: 1.15rem 0 clamp(2.5rem, 6vw, 4.75rem);
    color: var(--wel-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.24rem);
    line-height: 1.55;
}

.wel-inventory {
    width: 100%;
}

.wel-inventory__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 6vw, 5rem) clamp(1.4rem, 3vw, 2.25rem);
}

.wel-inventory-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: transparent;
}

.wel-inventory-card__detail-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.wel-inventory-card__media {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, minmax(6rem, 1fr));
    aspect-ratio: 16 / 10;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--wel-line);
    background: var(--wel-line);
}

.wel-inventory-card__image {
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: var(--wel-soft);
}

.wel-inventory-card__image--1 {
    grid-row: 1 / -1;
}

.wel-inventory-card__image:only-child {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.wel-inventory-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.wel-inventory-card__detail-link:hover .wel-inventory-card__img,
.wel-inventory-card__detail-link:focus-visible .wel-inventory-card__img {
    transform: scale(1.018);
}

.wel-inventory-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 0 0;
}

.wel-inventory-card__title {
    margin: 0 0 0.55rem;
    color: var(--wel-navy);
    font-family: "Russo One", Impact, sans-serif;
    font-size: clamp(1.32rem, 2vw, 1.66rem);
    font-weight: 400;
    line-height: 1.16;
}

.wel-inventory-card__title a {
    color: inherit;
    text-decoration: none;
}

.wel-inventory-card__title a:hover,
.wel-inventory-card__title a:focus-visible {
    color: var(--wel-blue);
}

.wel-inventory-card__description {
    max-width: 34rem;
    margin: 0 0 4px;
    color: var(--wel-muted);
    line-height: 1.62;
}

.wel-inventory-card__more,
.wel-inventory-card__cta,
.wel-inventory-detail__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
}

.wel-inventory-card__more {
    margin-top: auto;
    padding-top: 1.15rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid currentColor;
    color: var(--wel-blue);
}

.wel-inventory-card__more::after {
    content: " →";
    white-space: pre;
}

.wel-inventory-card__cta,
.wel-inventory-detail__cta {
    margin-top: 0.95rem;
    min-height: 44px;
    padding: 0.76rem 1.05rem;
    border: 1px solid var(--wel-navy);
    background: var(--wel-navy);
    color: var(--wel-white) !important;
}

.wel-inventory-card__cta {
    margin-top: 1.4rem;
}

.wel-inventory-card__cta:hover,
.wel-inventory-card__cta:focus-visible,
.wel-inventory-detail__cta:hover,
.wel-inventory-detail__cta:focus-visible {
    background: transparent;
    color: var(--wel-navy) !important;
}

.wel-inventory-card a:focus-visible,
.wel-inventory-detail a:focus-visible {
    outline: 3px solid var(--wel-sky);
    outline-offset: 3px;
}

.wel-inventory--empty {
    padding: 1.75rem 0;
    border-block: 1px solid var(--wel-line);
    color: var(--wel-muted);
}

.wel-inventory--empty p {
    margin: 0;
}

.wel-inventory-contact {
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(2.25rem, 4vw, 3.25rem);
    border-top: 2px solid var(--wel-navy);
}

.wel-inventory-contact h2 {
    margin: 0 0 0.45rem;
    color: var(--wel-navy);
    font-family: "Russo One", Impact, sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 400;
    line-height: 1.12;
}

.wel-inventory-contact p {
    max-width: 680px;
    margin: 0;
    color: var(--wel-muted);
    line-height: 1.65;
}

.wel-inventory-detail {
    width: 100%;
    color: var(--wel-ink);
}

.wel-inventory-detail__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.5rem, 1.4vw, 0.9rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.wel-inventory-detail__image {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--wel-line);
    background: var(--wel-soft);
}

.wel-inventory-detail__image--primary {
    grid-column: 1 / -1;
}

.wel-inventory-detail__img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 640px;
    object-fit: cover;
}

.wel-inventory-detail__image:not(.wel-inventory-detail__image--primary) .wel-inventory-detail__img {
    aspect-ratio: 4 / 3;
}

.wel-inventory-detail__description {
    max-width: 720px;
    color: var(--wel-muted);
    font-size: 1.04rem;
    line-height: 1.72;
}

.wel-inventory-detail__description > :first-child {
    margin-top: 0;
}

.wel-inventory-detail__actions {
    margin-top: 1.4rem;
}

.wel-inventory-detail__resources {
    max-width: 720px;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--wel-line);
}

.wel-inventory-detail__resources h2 {
    margin: 0;
    color: var(--wel-navy);
    font-family: "Russo One", Impact, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 400;
}

.wel-inventory-detail__resources .wel-inventory-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 0.9rem 0 0;
}

.wel-inventory-detail__resources .wel-inventory-detail__cta {
    margin-top: 0;
    border-color: var(--wel-line);
    background: transparent;
    color: var(--wel-blue) !important;
}

.wel-inventory-detail__resources .wel-inventory-detail__cta:hover,
.wel-inventory-detail__resources .wel-inventory-detail__cta:focus-visible {
    border-color: var(--wel-navy);
    background: var(--wel-navy);
    color: var(--wel-white) !important;
}

@media (min-width: 56.01rem) {
    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.72fr);
        align-items: start;
        column-gap: clamp(2rem, 4vw, 4.25rem);
        row-gap: 0;
    }

    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__gallery {
        grid-column: 1;
        grid-row: 1 / span 6;
        margin-bottom: 0;
    }

    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__description,
    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__actions,
    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__resources {
        grid-column: 2;
        min-width: 0;
    }

    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__description {
        padding-top: 0.25rem;
    }

    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__actions {
        margin: 1.25rem 0 0;
    }

    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__actions .wel-inventory-detail__cta {
        width: 100%;
        margin-top: 0;
    }

    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__resources {
        margin-top: 2.4rem;
        padding-top: 1.35rem;
    }

    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__resources .wel-inventory-detail__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wel-inventory-detail:has(> .wel-inventory-detail__gallery) > .wel-inventory-detail__resources .wel-inventory-detail__cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wel-inventory-card__img {
        transition: none;
    }
}

@media (max-width: 40rem) {
    body.wel-clean-sales-inventory {
        --wel-sales-masthead-extension: 10.5rem;
    }

    .wel-sales-masthead-titlebar {
        padding-inline: 1rem;
    }

    .wel-sales-masthead-titlebar h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .wel-sales-inventory-page {
        padding-top: 1.75rem;
    }

    .wel-inventory__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .wel-inventory-card__media {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        aspect-ratio: 4 / 3;
    }

    .wel-inventory-card__image:not(:first-child) {
        display: none;
    }

    .wel-inventory-detail__gallery {
        grid-template-columns: 1fr;
    }

    .wel-inventory-detail__image--primary {
        grid-column: auto;
    }

    .wel-inventory-detail__img {
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .wel-inventory-card__cta,
    .wel-inventory-detail__cta {
        width: 100%;
    }

    .wel-inventory-detail__resources .wel-inventory-detail__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* Shared promotional buyer-resource sections. */
.wel-buyer-resources {
    display: grid;
    gap: 1rem;
    width: 100%;
    margin-top: clamp(3.5rem, 7vw, 6rem);
}

.wel-buyer-resource {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    width: 100%;
    padding: clamp(2.4rem, 5vw, 4rem);
    background: var(--wel-navy);
    color: var(--wel-white);
}

.wel-buyer-resource:nth-child(even) {
    background: var(--wel-blue);
}

.wel-buyer-resource__copy {
    max-width: 760px;
}

.wel-buyer-resource__eyebrow {
    margin: 0 0 0.65rem;
    color: #b9dfff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wel-buyer-resource h2,
.wel-buyer-resource h3 {
    margin: 0;
    color: var(--wel-white);
    font-family: "Russo One", Impact, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.wel-buyer-resource__description {
    max-width: 680px;
    margin: 0.85rem 0 1.35rem;
    color: #e5edf6;
    font-size: 1rem;
    line-height: 1.65;
}

.wel-buyer-resource__contact {
    max-width: 680px;
    margin: -0.55rem 0 1.35rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,.28);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.5;
}

.wel-buyer-resource__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    padding: 0.85rem 1.35rem;
    border: 0;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    background: var(--wel-white);
    color: var(--wel-blue) !important;
    font-family: "Russo One", Impact, sans-serif;
    font-size: 0.86rem;
    line-height: 1.1;
    text-decoration: none !important;
}

.wel-buyer-resource__cta:hover,
.wel-buyer-resource__cta:focus-visible {
    background: var(--wel-sky);
    color: var(--wel-navy) !important;
}

.wel-buyer-resource__media {
    display: grid;
    place-items: center;
    width: clamp(112px, 13vw, 168px);
    min-height: 104px;
    padding: 1rem;
    background: var(--wel-white);
}

.wel-buyer-resource__logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 132px;
    max-height: 72px;
    object-fit: contain;
}

.wel-sales-inventory-page .wel-buyer-resource {
    padding-inline: max(3rem, calc((100vw - 1160px) / 2));
}

@media (max-width: 760px) {
    .wel-buyer-resource {
        grid-template-columns: 1fr;
        padding: 2.35rem 1.5rem;
    }

    .wel-buyer-resource__media {
        grid-row: 1;
        width: 112px;
        min-height: 84px;
    }

    .wel-buyer-resource__cta {
        width: 100%;
    }

    .wel-sales-inventory-page .wel-buyer-resource {
        padding-inline: 1.5rem;
    }
}


/* Featured Sales buyer-resource cards.
 * Keep the full-width maintenance CTA as the strong close, then return to a
 * quieter contained module for secondary financing and warranty resources. */
.wel-sales-inventory-page .wel-buyer-resources--featured {
    display: block;
    width: min(1040px, calc(100% - clamp(3rem, 10vw, 9rem)));
    margin: clamp(3.5rem, 7vw, 6rem) auto 0;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--wel-line);
    background: var(--wel-soft);
}

.wel-sales-inventory-page .wel-buyer-resources__intro {
    max-width: 720px;
    margin: 0 0 1.5rem;
}

.wel-sales-inventory-page .wel-buyer-resources__eyebrow {
    margin: 0 0 0.5rem;
    color: var(--wel-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wel-sales-inventory-page .wel-buyer-resources__intro h2 {
    margin: 0;
    color: var(--wel-navy);
    font-family: "Russo One", Impact, sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 400;
    line-height: 1.08;
}

.wel-sales-inventory-page .wel-buyer-resources__lead {
    max-width: 640px;
    margin: 0.75rem 0 0;
    color: var(--wel-muted);
    line-height: 1.6;
}

.wel-sales-inventory-page .wel-buyer-resources__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource,
.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource:nth-child(even) {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--wel-line);
    border-top: 4px solid var(--wel-blue);
    background: var(--wel-white);
    color: var(--wel-ink);
    box-shadow: 0 10px 24px rgba(12,45,89,.07);
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__copy {
    display: flex;
    max-width: none;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.55rem;
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__eyebrow {
    margin: 0 0 0.45rem;
    color: var(--wel-blue);
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource h3 {
    margin: 0;
    color: var(--wel-navy);
    font-family: "Russo One", Impact, sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0;
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__description {
    margin: 0.8rem 0 1.25rem;
    color: var(--wel-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__contact {
    max-width: none;
    margin: 0.85rem 0 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--wel-line);
    color: var(--wel-muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__cta {
    align-self: flex-start;
    margin-top: auto;
    border: 1px solid var(--wel-navy);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    background: var(--wel-navy);
    color: var(--wel-white) !important;
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__cta:hover,
.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__cta:focus-visible {
    border-color: var(--wel-sky);
    background: var(--wel-sky);
    color: var(--wel-navy) !important;
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__media {
    order: -1;
    display: flex;
    width: 100%;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--wel-line);
    background: var(--wel-white);
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource:first-child .wel-buyer-resource__media {
    background: var(--wel-navy);
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__logo {
    width: auto;
    max-width: min(100%, 220px);
    max-height: 76px;
    object-fit: contain;
}

.wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource:first-child .wel-buyer-resource__logo {
    width: min(100%, 240px);
    max-width: 240px;
    max-height: none;
    height: auto;
}

@media (max-width: 760px) {
    .wel-sales-inventory-page .wel-buyer-resources--featured {
        width: min(100% - 2rem, 1040px);
        padding: 1.5rem;
    }

    .wel-sales-inventory-page .wel-buyer-resources__grid {
        grid-template-columns: 1fr;
    }

    .wel-sales-inventory-page .wel-buyer-resources--featured .wel-buyer-resource__cta {
        width: 100%;
    }
}


/* The TFS mark is reversed white artwork, so keep it on WEL navy while
 * preserving the source image's natural aspect ratio. */
.wel-buyer-resources--compact .wel-buyer-resource:first-child .wel-buyer-resource__media {
    background: var(--wel-navy);
}
