.hp-row.hp-listing{
    .hp-page__content{
        display: flex;
        flex-direction: column;
        gap:clamp(1.2rem,3vw,2rem);
    }
    .hp-listing__back-link{
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        width: fit-content;
        padding: 0.5rem 1.15rem;
        border-radius: 100px;
        background-color: #5c6370;
        font-family: var(--primary-font);
        font-size: 0.9375rem;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: #fff;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .hp-listing__back-link:hover,
    .hp-listing__back-link:focus-visible{
        background-color: var(--color-content-heading, #1d1d1d);
        color: #fff;
    }
    .hp-listing__back-link .hp-icon{
        font-size: 0.75em;
    }
    .hp-listing__attribute--job-category{
        border-radius: 13.5px;
        background: var(--color-blue);
        color: white;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.96px;
        padding: 9px 16px;
        text-transform: uppercase;
        width: fit-content;
    }
    .hp-listing__attributes--ternary:not(:last-child),
    .hp-listing__details--primary:not(:last-child){
        margin-bottom: 0;
    }
    .hp-listing__title{
        text-box: trim-both cap alphabetic;
        font-family:var(--primary-font);
        font-size:clamp(1.7rem,4vw,2.5rem);
        font-weight:550;
        line-height:1.1;
        letter-spacing:0.5px;
        em{
            font-weight:450;
            color: var(--color-content-heading);
            margin-right:8px;
        }
        em:nth-of-type(2){
            color: var(--color-light-blue);
            font-weight:550;
            font-style: normal;
        }
    }
    .hp-listing__description{
        margin-bottom: 0;
    }
    .hp-listing__order-link{
        margin-top: 0.25rem;
        width: fit-content;
    }
    .hp-listing__action--order{
        width: auto;
    }
    .hp-listing__images{
        /* aspect-ratio: 2 / 1; */
        margin-bottom: 0;
    }
    .hp-listing__images .hp-listing__images-slider{
        border-radius: 24px;
        overflow: hidden;
    }
    .hp-vendor__image{
        max-width: 122px;
        aspect-ratio: 1/1;
    }
    .hp-vendor__image img{
        border-radius: var(--rg-border-radius) !important;
    }
    .hp-vendor--view-block{
        display: flex;
        align-items: flex-end;
        gap: 1rem;
        padding: 0;
    }
    .hp-vendor__content{
        margin-top: 0;
    }
    .hp-vendor__registered-date{
        display: block;
        margin-top: 0.5rem;
        font-size: 0.875rem;
        line-height: 1.3;
        color: var(--color-gray);
    }
    footer.hp-vendor__footer,
    .hp-listing__created-date{
        display: none;
    }
     .hp-vendor--view-block:not(:last-child){
        margin-bottom: 0;
    }
    .hp-vendor--view-block .hp-vendor__header:not(:last-child){
        margin-bottom: 0;
    }
    .hp-listing__attributes--primary:not(:last-child),
    .hp-listing__actions--primary:not(:last-child){
        margin-bottom: 0;
    }
   
}

.button--primary{
    font-family:var(--primary-font) !important;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: var(--btn-line-height, 1.2) !important;
    letter-spacing: 0.36px;
    padding: var(--btn-padding) !important;
    background: var(--color-dark-blue);
    color: white;
    border-radius: var(--btn-radius) !important;
}
.hp-listing__offer-submitted{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    font-family: var(--primary-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.36px;
    color: var(--color-content-heading, #1d1d1d);
    background: none;
    border: none;
    box-shadow: none;
}
.hp-listing__attribute.hp-listing__attribute--budget{
    padding: 1.5rem !important;
    font-size: 1.5rem !important;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.5px;
    border-radius: var(--rg-border-radius);
}

.hp-template.hp-template--request-view-page .hp-page__sidebar,
.hp-template.hp-template--vendor-view-page .hp-page__sidebar,
.hp-template.hp-template--user-view-page .hp-page__sidebar {
    background-color: transparent;
    box-sizing: border-box;
    padding-block: var(--hp-page-padding-block);
    padding-inline: 0 var(--hp-page-padding-inline);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Vendor and user profiles: same inset as .hp-page__content (tablet/desktop). Job request keeps 0 inset-start. */
.hp-template.hp-template--vendor-view-page .hp-page__sidebar,
.hp-template.hp-template--user-view-page .hp-page__sidebar {
    padding-inline: var(--hp-page-padding-inline);
}

.hp-template--request-view-page .inner-wrapper-sticky,
.hp-template--vendor-view-page .inner-wrapper-sticky,
.hp-template--user-view-page .inner-wrapper-sticky {
    background: #fff;
    border-radius: var(--rg-border-radius);
    padding: 1.5rem;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.06);
    gap: 1.25rem;
    max-width: 100%;
    box-sizing: border-box;
}

.hp-template--request-view-page .hp-listing__attribute.hp-listing__attribute--budget {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 1.25rem 1.5rem !important;
    font-family: var(--primary-font) !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px;
    color: var(--penni-price-pill-color, var(--color-dark-blue)) !important;
    background: var(--penni-price-pill-bg, var(--color-light-gray)) !important;
    border-radius: var(--rg-border-radius) !important;
}

/* Stack profile image + name in sidebar through tablet (incl. landscape >1024px). */
@media only screen and (max-width: 1280px) {
    body.hp-template--request-view-page .hp-row.hp-listing .hp-page__sidebar .hp-vendor--view-block,
    .hp-template--request-view-page .hp-page__sidebar .hp-vendor--view-block {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hp-template--request-view-page .hp-page__sidebar .hp-vendor__image {
        max-width: 88px;
        margin-bottom: 1rem;
    }

    .hp-template--request-view-page .hp-page__sidebar .hp-vendor__header,
    .hp-template--request-view-page .hp-page__sidebar .hp-vendor__content {
        text-align: center;
        width: 100%;
    }
}

/* Tablet/mobile: stack columns and use one row gutter (avoid narrow sidebar + extra right padding). */
@media only screen and (max-width: 900px) {
    .hp-template--request-view-page .hp-page .hp-row {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        box-sizing: border-box;
    }

    .hp-template.hp-template--request-view-page .hp-page__sidebar,
    .hp-template.hp-template--request-view-page .hp-page__content {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .hp-template.hp-template--request-view-page .hp-page__content {
        padding: 0 0 1.5rem !important;
    }

    .hp-template.hp-template--request-view-page .hp-page__sidebar {
        padding: 1.5rem;
        background-color: #fff;
        border-radius: var(--rg-border-radius);
        box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.06);
    }

    .hp-template--request-view-page .inner-wrapper-sticky {
        max-width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .hp-template--request-view-page .hp-listing__attribute.hp-listing__attribute--budget {
        overflow-wrap: anywhere;
    }
}

@media only screen and (max-width: 768px) {
    .hp-template.hp-template--request-view-page .hp-page__sidebar {
        margin-bottom: 1.5rem;
    }
}

@media only screen and (max-width: 767px) {
    .hp-template.hp-template--vendor-view-page .hp-page__sidebar,
    .hp-template.hp-template--user-view-page .hp-page__sidebar {
        background-color: #fff;
        padding: 1.5rem;
        border-radius: var(--rg-border-radius);
        box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.06);
    }

    .hp-template--vendor-view-page .inner-wrapper-sticky,
    .hp-template--user-view-page .inner-wrapper-sticky {
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
}
.hp-listing__map,
.hp-request__map{
    width: 100%;
    min-height: 314px;
    height: 314px;
    border-radius: var(--rg-border-radius);
    flex-shrink: 0;
}
.inner-wrapper-sticky{
    display: flex;
    flex-direction: column;
    width: 100%;
    > div{
        margin-bottom: 0;
    }
}
.description-title{
    position: relative;
    font-weight: 550 !important;
}
.description-title:after{
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-gray);
    left: 0;
    bottom: -1.2rem;
    opacity: 0.4;
}
.primary-secondary-wrap{
    display: flex;
    gap:2rem;
    margin-top: -0.5rem;
    .hp-col-lg-6{
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }
}
.hp-listing__attribute--job-date{
    position: relative;
    display: flex;
}
.hp-listing__attribute--job-date:before{
    content: '\f073';
    font-family: 'fontawesome';
    display: block;
    left: 0;
    color: var(--color-blue);
    font-weight: 600;
    top: 0;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    width: 40px;
    justify-content: center;
}
.hp-listing__location .fa-map-marker-alt:before{
    color: var(--color-blue);
}