body.fix246-lx--single .hp-listing--view-page > .hp-page__content {
    min-width: 0;
}

body.fix246-lx--single .hp-listing--view-page > .hp-page__content > .hp-listing__categories {
    margin: 0 0 0.7rem;
}

body.fix246-lx--single .hp-listing--view-page > .hp-page__content > .hp-listing__categories a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    background: rgba(23, 205, 115, 0.1);
    color: #107847;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-decoration: none;
}

body.fix246-lx--single-job .hp-listing--view-page > .hp-page__content > .hp-listing__categories a {
    background: rgba(16, 66, 145, 0.09);
    color: var(--fix246-lx-blue);
}

body.fix246-lx--single .hp-listing--view-page > .hp-page__content > .hp-listing__title {
    max-width: 48rem;
    margin: 0;
    color: var(--fix246-lx-ink);
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    letter-spacing: -0.025em;
    line-height: 1.12;
}

body.fix246-lx--single .hp-listing--view-page > .hp-page__content > .hp-listing__details--primary {
    margin-top: 0.55rem;
}

body.fix246-lx--single .hp-listing__created-date {
    color: var(--fix246-lx-muted);
    font-size: 0.78rem;
}

body.fix246-lx--single .hp-page__topbar--separate {
    min-height: 44px;
    margin: 1.15rem 0 0;
    padding: 0.2rem 0 0.65rem;
    border: 0;
    border-bottom: 1px solid var(--fix246-lx-line);
}

body.fix246-lx--single .hp-page__topbar--separate .hp-menu--tabbed ul {
    gap: 0.2rem;
}

body.fix246-lx--single .hp-page__topbar--separate .hp-menu__item a {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    color: var(--fix246-lx-muted);
    font-size: 0.82rem;
}

body.fix246-lx--single .hp-listing__actions--secondary .hp-listing__action--favorite {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--fix246-lx-blue);
    font-size: 0.82rem;
}

/* Existing HivePress carousel remains the only gallery implementation. */
body.fix246-lx--single .hp-listing__images {
    position: relative;
    margin-top: 1.25rem;
    max-width: 100%;
    overflow: visible !important;
}

body.fix246-lx--single .hp-listing__images-slider,
body.fix246-lx--single .hp-listing__images > .slick-list,
body.fix246-lx--single .hp-listing__images:not(.slick-initialized) > :where(img, video) {
    overflow: hidden;
    border: 1px solid var(--fix246-lx-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 22, 41, 0.065);
}

body.fix246-lx--single .hp-listing__images-slider .slick-list,
body.fix246-lx--single .hp-listing__images > .slick-list {
    overflow: hidden;
    border-radius: inherit;
}

body.fix246-lx--single .hp-listing__images-slider :where(img, video),
body.fix246-lx--single .hp-listing__images > :where(img, video),
body.fix246-lx--single .hp-listing__images > .slick-list :where(img, video) {
    display: block;
    width: 100% !important;
    height: clamp(310px, 45vw, 500px) !important;
    margin: 0;
    background: #fff;
    object-fit: cover;
}

body.fix246-lx--single-service .hp-listing__images-slider img,
body.fix246-lx--single-service .hp-listing__images > img,
body.fix246-lx--single-service .hp-listing__images > .slick-list img {
    box-sizing: border-box;
    padding: clamp(0.6rem, 2vw, 1.2rem);
    object-fit: contain;
}

/* ListingHive's native preview carousel stays small and fully visible. */
body.fix246-lx--single .hp-listing__images-carousel {
    margin-top: 0.75rem;
    overflow: visible;
}

body.fix246-lx--single .hp-listing__images-carousel img {
    display: block;
    width: 100% !important;
    height: 72px !important;
    padding: 0 !important;
    object-fit: cover;
}

body.fix246-lx--single .hp-listing__images [data-zoom] {
    cursor: zoom-in;
}

body.fix246-lx--single .hp-listing__images-slider > .slick-arrow,
body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-arrow {
    position: absolute;
    z-index: 7;
    top: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50% !important;
    background: rgba(11, 22, 41, 0.72) !important;
    box-shadow: 0 5px 16px rgba(11, 22, 41, 0.18);
    color: #fff !important;
    font-size: 0;
    transform: translateY(-50%);
}

body.fix246-lx--single .hp-listing__images-slider > .slick-prev,
body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-prev {
    left: 14px;
}

body.fix246-lx--single .hp-listing__images-slider > .slick-next,
body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-next {
    right: 14px;
}

body.fix246-lx--single .hp-listing__images-slider > .slick-prev::before,
body.fix246-lx--single .hp-listing__images-slider > .slick-next::before,
body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-prev::before,
body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-next::before {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 26px;
    line-height: 1;
}

body.fix246-lx--single .hp-listing__images-slider > .slick-prev::before,
body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-prev::before {
    content: "\2039";
}

body.fix246-lx--single .hp-listing__images-slider > .slick-next::before,
body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-next::before {
    content: "\203A";
}

/* Turn the already connected location/provider/description area into one surface. */
body.fix246-lx--single .hp-listing__attributes--ternary {
    margin-top: 1.25rem !important;
    overflow: hidden;
    border: 1px solid var(--fix246-lx-line) !important;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 22, 41, 0.05);
}

body.fix246-lx--single .hp-listing__attributes--ternary > .hp-listing__attribute:not(.fix246-parish-panel-ready):not(.fix246-required-provider-ready) {
    padding: 1.05rem 1.15rem !important;
    color: var(--fix246-lx-text);
    line-height: 1.55;
}

body.fix246-lx--single :where(.fix246-parish-panel, .fix246-required-provider-panel) {
    margin: 0 !important;
    padding: 1.05rem 1.15rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--fix246-lx-line) !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.fix246-lx--single .hp-listing__attributes--ternary > .hp-listing__attribute:last-child :where(.fix246-parish-panel, .fix246-required-provider-panel) {
    border-bottom: 0 !important;
}

body.fix246-lx--single .hp-listing__description {
    margin: 1.25rem 0 0 !important;
    padding: 1.05rem 1.15rem !important;
    border: 1px solid var(--fix246-lx-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(11, 22, 41, 0.05) !important;
}

body.fix246-lx--single .hp-listing__attributes--ternary + .hp-listing__description {
    margin-top: 0 !important;
    border-top: 0 !important;
    border-radius: 0 0 18px 18px !important;
}

body.fix246-lx--single .hp-listing__description::before {
    margin-bottom: 0.55rem;
    color: var(--fix246-lx-ink);
    font-size: 1.02rem;
}

body.fix246-lx--single .hp-listing__description:has(+ .fix246-ss-gallery) {
    border-radius: 0 !important;
}

body.fix246-lx--single .fix246-ss-gallery {
    border-color: var(--fix246-lx-line) !important;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 22, 41, 0.05);
}

/* Sidebar: three native listing widgets visually become one contact card. */
body.fix246-lx--single .hp-page__sidebar > .hp-listing__attributes--primary.widget,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-listing__attributes--primary.widget {
    margin: 0 !important;
    padding: 1.15rem 1.15rem 0.75rem;
    border: 1px solid var(--fix246-lx-line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 22, 41, 0.055);
}

body.fix246-lx--single .hp-page__sidebar > .hp-listing__attributes--primary .hp-listing__attribute--businessname {
    color: var(--fix246-lx-ink);
    font-family: Poppins, sans-serif;
    font-size: 1.08rem;
    line-height: 1.35;
}

/* Keep only the outer Social Links block visually connected to the contact
   card. No descendant selector is used here, so HivePress remains fully
   responsible for the actual Social Links, icons, colours and link layout. */
body.fix246-lx--single .hp-page__sidebar > .hp-listing__social-links,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-listing__social-links {
    margin: 0 !important;
    padding: 0.45rem 1.15rem 0.8rem;
    border-right: 1px solid var(--fix246-lx-line);
    border-left: 1px solid var(--fix246-lx-line);
    background: #fff;
    box-shadow: none;
}

body.fix246-lx--single .hp-page__sidebar > .hp-listing__actions--primary.widget,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-listing__actions--primary.widget {
    margin: 0 0 1rem !important;
    padding: 0.15rem 1.15rem 1.15rem;
    border: 1px solid var(--fix246-lx-line);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 22, 41, 0.055);
}

body.fix246-lx--single .hp-page__sidebar .hp-listing__action--message.button {
    width: 100%;
    min-height: 44px;
    border-radius: 11px !important;
    background: var(--fix246-lx-yellow) !important;
    box-shadow: none;
    color: #fff !important;
}

body.fix246-lx--single .hp-page__sidebar .hp-listing__action--report {
    display: block;
    margin-top: 0.65rem;
    color: var(--fix246-lx-muted);
    font-size: 0.72rem;
    text-align: center;
}

/* Native HivePress vendor block becomes compact on desktop only. On mobile we
   intentionally leave HivePress's own Posted by / Service Provider layout alone. */
@media (min-width: 48.01rem) {
body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-areas:
        "eyebrow eyebrow"
        "vendor-media vendor-content"
        "vendor-footer vendor-footer";
    gap: 0.7rem 0.85rem;
    margin: 0 0 1rem;
    padding: 1.05rem;
    overflow: hidden;
    border: 1px solid var(--fix246-lx-line) !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 22, 41, 0.05) !important;
}

body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block::before,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block::before {
    grid-area: eyebrow;
    color: var(--fix246-lx-muted);
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

body.fix246-lx--single-service .hp-page__sidebar > .hp-vendor--view-block::before,
body.fix246-lx--single-service .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block::before {
    content: "Service provider";
}

body.fix246-lx--single-job .hp-page__sidebar > .hp-vendor--view-block::before,
body.fix246-lx--single-job .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block::before {
    content: "Posted by";
}

body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block .hp-vendor__header,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block .hp-vendor__header {
    grid-area: vendor-media;
    margin: 0;
}

body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block .hp-vendor__image,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block .hp-vendor__image {
    width: 58px;
    height: 58px;
    margin: 0;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(11, 22, 41, 0.11);
}

body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block .hp-vendor__image img,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block .hp-vendor__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block .hp-vendor__content,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block .hp-vendor__content {
    grid-area: vendor-content;
    min-width: 0;
    align-self: center;
    padding: 0;
}

body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block .hp-vendor__name,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block .hp-vendor__name {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block .hp-vendor__registered-date,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block .hp-vendor__registered-date {
    color: var(--fix246-lx-muted);
    font-size: 0.68rem;
}

body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block .hp-vendor__footer,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block .hp-vendor__footer {
    grid-area: vendor-footer;
    margin: 0;
    padding: 0.1rem 0 0;
    border: 0;
}

body.fix246-lx--single .hp-page__sidebar > .hp-vendor--view-block .hp-vendor__action--message,
body.fix246-lx--single .hp-page__sidebar > .inner-wrapper-sticky > .hp-vendor--view-block .hp-vendor__action--message {
    color: var(--fix246-lx-blue);
}
}

/* Opportunity Hub keeps its own logic and colours, but joins the design language. */
body.fix246-lx--single .hp-page__sidebar .fix246-boh-panel {
    margin: 0 0 1rem !important;
    padding: 1.05rem !important;
    border: 1px solid var(--fix246-lx-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(11, 22, 41, 0.05) !important;
}

body.fix246-lx--single .hp-page__sidebar .fix246-boh-panel .fix246-boh-btn,
body.fix246-lx--single .hp-page__sidebar .fix246-boh-panel .fix246-boh-btn--primary {
    border-radius: 10px !important;
}

/* Advertising Manager remains responsible for rendering, targeting and tracking. */
body.fix246-lx--single .hp-page__sidebar > .widget_fix246_ad_widget,
body.fix246-lx--single .hp-page__sidebar > .widget:has(.fix246-advertise-banner) {
    margin-top: 1.15rem;
}

@media (max-width: 48rem) {
    body.fix246-lx--single .hp-listing--view-page > .hp-page__content > .hp-listing__title {
        font-size: clamp(1.65rem, 8vw, 2.1rem);
    }

    body.fix246-lx--single .hp-page__topbar--separate {
        margin-top: 0.9rem;
    }

    body.fix246-lx--single .hp-listing__images {
        margin-top: 1rem;
    }

    body.fix246-lx--single .hp-listing__images-slider,
    body.fix246-lx--single .hp-listing__images > .slick-list,
    body.fix246-lx--single .hp-listing__images:not(.slick-initialized) > :where(img, video) {
        border-radius: 16px;
    }

    /* Give the native Slick gallery one explicit mobile viewport. The outer
       slider and every Slick wrapper share that height, so the image itself
       can use contain instead of extending below a shorter clipping wrapper. */
    body.fix246-lx--single .hp-listing__images-slider,
    body.fix246-lx--single .hp-listing__images > .slick-list {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    body.fix246-lx--single .hp-listing__images-slider > .slick-list,
    body.fix246-lx--single .hp-listing__images-slider > .slick-list > .slick-track,
    body.fix246-lx--single .hp-listing__images-slider > .slick-list > .slick-track > .slick-slide,
    body.fix246-lx--single .hp-listing__images-slider > .slick-list > .slick-track > .slick-slide > *,
    body.fix246-lx--single .hp-listing__images > .slick-list > .slick-track,
    body.fix246-lx--single .hp-listing__images > .slick-list > .slick-track > .slick-slide,
    body.fix246-lx--single .hp-listing__images > .slick-list > .slick-track > .slick-slide > * {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    body.fix246-lx--single .hp-listing__images-slider :where(img, video),
    body.fix246-lx--single .hp-listing__images > :where(img, video),
    body.fix246-lx--single .hp-listing__images > .slick-list :where(img, video) {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    body.fix246-lx--single .hp-listing__images:not(.slick-initialized) > :where(img, video) {
        aspect-ratio: 4 / 3;
    }

    body.fix246-lx--single-service .hp-listing__images-slider img,
    body.fix246-lx--single-service .hp-listing__images > img,
    body.fix246-lx--single-service .hp-listing__images > .slick-list img {
        padding: 0.35rem;
    }

    body.fix246-lx--single .hp-listing__images-carousel img {
        height: 60px !important;
        padding: 0 !important;
    }

    body.fix246-lx--single .hp-listing__images-slider > .slick-arrow,
    body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-arrow {
        width: 38px;
        height: 38px;
    }

    body.fix246-lx--single .hp-listing__images-slider > .slick-prev,
    body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-prev {
        left: 9px;
    }

    body.fix246-lx--single .hp-listing__images-slider > .slick-next,
    body.fix246-lx--single .hp-listing__images:not(:has(.hp-listing__images-slider)) > .slick-next {
        right: 9px;
    }

    body.fix246-lx--single .hp-page__sidebar {
        margin-top: 1.35rem;
    }
}
