/* Shared shop-card details. Existing Bootstrap column sizes are unchanged. */
.nightshift-shop-card {
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.nightshift-jobs-group-gap {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 28px;
    clear: both;
}
.nightshift-shop-card .nightshift-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    line-height: 1.6;
    color: #62606a;
}
.nightshift-location-pin {
    flex: 0 0 13px;
    color: #81718e;
}
.nightshift-card-location > span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.nightshift-shop-card .nightshift-card-image {
    position: relative;
    overflow: hidden;
}
.nightshift-card-photo {
    position: absolute;
    inset: 0;
    display: block;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform .3s ease;
}
.nightshift-job-featured-card .nightshift-new-label {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #9333ea, #db2777);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    box-shadow: 0 2px 8px rgba(88, 28, 135, .18);
    pointer-events: none;
}
@media (hover: hover) {
    .nightshift-shop-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 20px 2px rgba(168, 85, 247, .24), 0 0 8px rgba(236, 72, 153, .16);
    }
    .nightshift-shop-card:hover .nightshift-card-photo {
        transform: scale(1.03);
    }
}
.nightshift-shop-card:focus-within {
    box-shadow: 0 0 0 2px rgba(147, 51, 234, .32);
}

/* Home only: add restrained color without changing the content order. */
.nightshift-home-content {
    --ns-accent: #8051a3;
    --ns-accent-light: #dfcfe9;
    --ns-button-hover: #f4edf9;
}
.nightshift-home-content main.container > .row:has(.nightshift-section-heading--jobs) {
    background: linear-gradient(180deg, #fbf8fe 0%, #f8f3fc 100%);
    border-radius: 18px;
    padding-bottom: 24px;
}
.nightshift-home-content main.container > .row:has(.nightshift-section-heading--food) {
    --ns-accent: #94621e;
    --ns-accent-light: #e7d7bd;
    --ns-button-hover: #fff4de;
    margin-top: 32px;
    background: linear-gradient(180deg, #fffdf7 0%, #fff9ed 100%);
    border-radius: 18px;
    padding-bottom: 24px;
}
.nightshift-home-content main.container > .row:has(.nightshift-section-heading--useful) {
    --ns-accent: #387668;
    --ns-accent-light: #bdded5;
    --ns-button-hover: #e8f6f0;
    margin-top: 32px;
    background: linear-gradient(180deg, #f8fdfa 0%, #eff9f4 100%);
    border-radius: 18px;
    padding-bottom: 24px;
}
.nightshift-home-content .nightshift-shop-card {
    background: #fff;
    border-radius: 5px;
}
.nightshift-home-content h2.nightshift-section-heading {
    position: relative;
    padding-bottom: 24px !important;
    margin-bottom: 24px;
    border-bottom: 0;
    text-align: center;
}
.nightshift-home-content h2.nightshift-section-heading::before {
    content: none;
}
.nightshift-home-content h2.nightshift-section-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 50px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    transform: translateX(-50%);
}
.nightshift-home-content h2.nightshift-section-heading--food::after {
    background: linear-gradient(90deg, #d89839, #e5b964);
}
.nightshift-home-content h2.nightshift-section-heading--useful::after {
    background: linear-gradient(90deg, #409b85, #86c8aa);
}
.nightshift-home-content .submit01 {
    display: block;
    float: none;
    width: max-content;
    max-width: 100%;
    margin: 24px auto;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    text-align: center;
}
.nightshift-home-content .submit01 > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid var(--ns-accent-light);
    border-radius: 999px;
    background: #fff;
    color: var(--ns-accent) !important;
    text-decoration: none;
    text-shadow: none;
    line-height: 1.5;
    transition: background-color .2s ease, border-color .2s ease;
}
.nightshift-home-content .submit01 > a::after {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.nightshift-home-content .submit01 > a:hover {
    background: var(--ns-button-hover);
    border-color: var(--ns-accent);
}
.nightshift-home-content .submit01 > a:focus-visible {
    outline: 2px solid var(--ns-accent);
    outline-offset: 3px;
}
@media (max-width: 767px) {
    .nightshift-home-content main.container > .row:has(.nightshift-section-heading) {
        border-radius: 12px;
    }
    .nightshift-home-content .submit01 > a {
        gap: 12px;
        padding: 10px 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .nightshift-shop-card,
    .nightshift-card-photo,
    .nightshift-home-content .submit01 > a {
        transition: none;
    }
    .nightshift-shop-card:hover,
    .nightshift-shop-card:hover .nightshift-card-photo {
        transform: none;
    }
}
