.np {
    background: #FFFFFF;
    padding: 32px 0 96px;
}

.np-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
}

.np-title {
    margin: 0 0 4px;
    font-family: "Roboto Slab", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    color: #000000;
}

.np-intro {
    /*max-width: 920px;*/
    margin-bottom: 16px;
    font-family: Satoshi, sans-serif;
    font-size: 14px;
    line-height: 26px;
    color: #55514E;
}

.np-intro p {
    margin: 0 0 12px;
}

.np-intro p:last-child {
    margin-bottom: 0;
}

.np-filters .form-floating > label {
    left: 30px;
    font-weight: 700;
    font-family: "NewMontserrat-Regular", sans-serif;
    font-size: 14px;
    color: #80808A;
}

.np-filters .form-floating > .form-select ~ label {
    transform: scale(0.85) translateY(-1.1rem) translateX(0.15rem);
}
.np-filters .form-floating.select .form-select {
    padding: 27px 45px !important;
    height: 60px;
    border: 0;
}
.np-filters .form-control .number-input {
    padding-top: 22px !important;
}
.np-filters .form-floating > .form-control:not(:placeholder-shown) ~ label,
.np-filters .form-floating > .form-control:focus ~ label {
    transform: scale(0.85) translateY(-1.1rem) translateX(0.15rem);
}
.np-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 16px;
    background: #F6F4F4;
    border-radius: 6px;
}
.np-filters .nice-select-search-box {
    /*margin-top: -9px !important;*/
}
.np-filters .list {
    margin-top: 8px !important;
}

.np-filter {
    flex: 1;
    min-width: 0;
}

.np-filter-select {
    position: relative;
    background: #fff url("/img/search.svg") no-repeat 16px 50%;
    border: 1px solid #ECECEE;
    border-radius: 4px;
    height: 60px;
}

.np-filter-select select {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0 40px 0 44px;
    font-family: "NewMontserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 52px;
    color: #212529;
    appearance: none;
    cursor: pointer;
}

.np-filter-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 16px 12px;
    pointer-events: none;
}

.np-filter-input {
    position: relative;
    background: #fff url("/img/user-group.svg") no-repeat 16px 50%;
    border: 1px solid #ECECEE;
    border-radius: 4px;
    height: 60px;
}

.np-filter-input input {
    width: 100%;
    height: 60px !important;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0 16px 0 44px;
    font-family: "NewMontserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 52px;
    color: #212529;
}

.np-filter-input input::placeholder {
    color: #212529;
    opacity: 1;
}

.np-filter-select select:focus,
.np-filter-input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 161, 18, 0.15);
}

.np-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.np-card {
    display: flex;
    flex-direction: column;
}

.np-card-link {
    text-decoration: none;
    color: inherit;
}

.np-card-link:hover,
.np-card-link:focus {
    text-decoration: none;
    color: inherit;
}

.np-card-image-wrap {
    position: relative;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: #ddd;
}

.np-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    height: 240px;
    background: #e8e6e4;
}

.np-card-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 4px 12px;
    background: rgba(12, 10, 8, 0.72);
    border-top-right-radius: 4px;
}

.np-card-overlay-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.np-card-overlay-item img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(139deg) brightness(103%) contrast(104%);
}
.np-card-overlay-item .np-extra1 {
    width: 17px;
    height: 17px;
}
.np-card-overlay-item .np-extra2 {
    width: 20px;
    height: 20px;
}

.np-card-overlay-item span {
    font-family: Satoshi, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    color: #FFFFFF;
    white-space: nowrap;
}

.np-card {
    display: flex;
    flex-direction: column;
}

.np-card .provider-name-box {
    /*padding-top: 16px;*/
}

.np-card .provider-name-box .np-card-link {
    display: block;
}

.np-card .truck-img-box {
}

.np-card .truck-grid-info {
    padding: 20px;
    text-align: left;
    background: #F6F4F4;
    border-radius: 0 0 8px 8px;
    height: 100%;
}

.np-card .truck-grid-top {
    display: none;
}

.np-card-body {
    padding-top: 0;
}

.np-card-title {
    margin: 0 0 4px;
    font-family: "Roboto Slab", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 34px;
    color: #0C0A08;
}

.np-card-price {
    margin: 0 0 16px;
    font-family: Satoshi, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    color: #0C0A08;
}

.np-card-price-highlight {
    color: #1EA112;
    font-family: Satoshi, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
}

.np-card-meta {
    margin: 0;
    font-family: Satoshi, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    color: #0C0A08;
    display: flex;
    gap: 4px;
}
.np-card-meta span {
    border: 1px solid rgba(194, 190, 188, 0.5);
    background: #FFFFFF;
    padding: 4px 6px;
}

#loadingResults {
    display: none;
    grid-column: 1 / -1;
}

#loadingSpinner {
    width: 100px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .np-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .np {
        padding: 32px 0 64px;
    }

    .np-container {
        padding: 0 20px;
    }

    .np-title {
        font-size: 32px;
    }

    .np-filters {
        flex-direction: column;
        gap: 12px;
    }

    .np-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .np-card-overlay {
        gap: 16px;
        padding: 10px 12px;
    }

    .np-card-overlay-item span {
        font-size: 12px;
    }
}

/* ==========================================================================
   Provider detail page (/studenterkorsel/{slug}) redesign
   ========================================================================== */

.np-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 1360px;
    max-width: 100%;
    margin: 32px auto 0;
    padding: 40px 0 0;
    box-sizing: border-box;
    height: 514px;
}

.np-hero-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 40px 32px;
    border-radius: 6px;
    background: #eae9e7 url(/img/home-back.jpg) center center;
    background-size: 100%;
    overflow: hidden;
}

.np-hero-back {
    transition: all 300ms ease;
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: Satoshi, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
    color: #55514E;
    text-decoration: none;
}

.np-hero-back img {
    transition: all 300ms ease;
    width: 20px;
    height: 20px;
}

.np-hero-back:hover img {
    transition: all 300ms ease;
    filter: brightness(0) saturate(100%) invert(40%) sepia(1%) saturate(1410%) hue-rotate(212deg) brightness(99%) contrast(80%);
}
.np-hero-back:hover {
    transition: all 300ms ease;
    color: #6A696E;
    text-decoration: none;
}

.np-hero-title {
    margin: 0;
    font-family: "Roboto Slab", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 44px;
    color: #0C0A08;
}

.np-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.np-hero-badge {
    /*border: 1px solid rgba(194, 190, 188, 0.6);*/
    background: #FAFAFA;
    border-radius: 4px;
    padding: 4px 12px;
    font-family: Satoshi, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    color: #0F0F0F;
}

.np-hero-lead {
    /*max-width: 420px;*/
    margin: 0;
    font-weight: 400;
    font-family: Satoshi, sans-serif;
    font-size: 14px;
    line-height: 28px;
    color: #000000;
}

.np-hero-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #478579;
    color: #FFFFFF;
    font-family: Satoshi, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 20px;
    transition: all 300ms ease;
}

.np-hero-cta:hover {
    transition: all 300ms ease;
    background-color: #DBD9D7;
    color: #FFFFFF;
    text-decoration: none;
}

.np-hero-media {
    border-radius: 6px;
    overflow: hidden;
}

.np-hero-figure {
    margin: 0;
    height: 100%;
}
.flickity-page-dots {
    grid-auto-columns: unset !important;
    grid-column-gap: 10px !important;
    max-width: 420px !important;
    padding: 0 !important;
}
.flickity-page-dots .dot {
    cursor: pointer;
    border: 1px solid black;
    width: 20px !important;
    height: 20px !important;
}

.np-hero-media .main-carousel,
.np-hero-media .carousel-cell {
    height: 100%;
    min-height: 474px;
}

.np-hero-media .provider-profile-car {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-video-cell {
    position: relative;
}

.np-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 4px 20px -6px rgba(79, 80, 102, 0.4);
}

.np-play-overlay img {
    width: 22px;
    height: 22px;
}

/* Tabs + rating section */

.np-tabs-section {
    display: grid;

    /* Uncomment to put back rate panel */
    /*grid-template-columns: minmax(0, 1fr) 354px;*/

    gap: 48px;
    width: 1360px;
    max-width: 100%;
    margin: 32px auto 0;
    padding: 0;
    box-sizing: border-box;
}

.np-tabs-main {
    min-width: 0;
}
.np-tabs-main .provider-profile-block {
    max-width: unset;
}

.np-tabs-active {
    width: 24px;
    height: 2px;
    background: #478579;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}
.np-tabs:before {
    content: unset !important;
}
.np-tabs {
    display: flex;
    gap: 36px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid rgba(194, 190, 188, 0.3);
}

.np-tabs > li {
    margin-bottom: 0;
    position: relative;
}

.np-tabs > li > a {
    display: inline-block;
    padding: 0 0 12px;
    font-family: "Roboto Slab", sans-serif;
    font-size: 20px;
    line-height: 34px;
    font-weight: 700;
    color: #0C0A08 !important;
    /*border-bottom: 2px solid transparent;*/
    cursor: pointer !important;
    text-decoration: none;
    border: none;
    transition: all 300ms ease;
}

.np-tabs > li > a:hover,
.np-tabs > li > a:focus {
    transition: all 300ms ease;
    color: #10934C !important;
    text-decoration: none;
    /*border-bottom-color: #1EA112 !important;*/
    border: none !important;
    /*border-bottom: 1px solid #478579 !important;*/
}

.np-tabs > li.active > .np-tabs-active {
    display: block;
}
.np-tabs > li.active > a {
    color: #478579 !important;
    /*border-bottom-color: #1EA112;*/
    border: none;
    /*border-bottom: 1px solid #478579;*/
}

.np-tab-content .provider-profile-descrip {
    font-family: Satoshi, sans-serif;
    font-size: 14px;
    line-height: 26px;
    color: #0C0A08;
    white-space: pre-line;
    font-weight: 400;
}

.np-tab-content .read-more {
    position: relative;
    text-align: left;
    display: inline-block;
    margin-top: 8px;
    color: #478579;
    font-family: Satoshi, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* Services tab */

.np-service-group {
    margin-bottom: 24px;
}

.np-service-group:last-child {
    margin-bottom: 0;
}

.np-service-group-title {
    margin: 0 0 12px;
    font-family: "Roboto Slab", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0C0A08;
}

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

.np-service-item {
    display: flex;
    align-items: center;
    gap: 6px;
    /*border: 1px solid rgba(194, 190, 188, 0.5);*/
    border-radius: 2px;
    padding: 8px 12px;
    font-family: Satoshi, sans-serif;
    font-size: 14px;
    line-height: 26px;
    color: #0C0A08;
    background: #F4F2F0;
}

.np-service-excluded {
    color: #A6A29E;
    /*background: #FAFAF9;*/
}

.np-service-icon {
    font-weight: 700;
}

.np-service-included .np-service-icon {
    color: #1EA112;
}

.np-service-excluded .np-service-icon {
    color: #C2BEBC;
}

/* FAQ tab (scoped so it doesn't affect the global .faq-p pattern used elsewhere) */

.np-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.np-faq-list .faq-p {
    border: 1px solid rgba(194, 190, 188, 0.5);
    border-radius: 8px;
    padding: 16px 20px;
}

.np-faq-list .faq {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.np-faq-list .faq .toggle-text {
    font-family: Satoshi, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #0C0A08;
}

.np-faq-list .faq-body-cont {
    padding-top: 12px;
}

.np-faq-list .faq-answer {
    margin: 0;
    font-family: Satoshi, sans-serif;
    font-size: 13px;
    line-height: 22px;
    color: #55514E;
}

.np-faq-empty {
    font-family: Satoshi, sans-serif;
    font-size: 14px;
    color: #55514E;
}

/* Rating box (hardcoded placeholder values, see provider-detail-hero.html.twig) */

.np-rating-box {
    /* Delete to put back rate panel */
    display: none;

    align-self: start;
    border: 1px solid #8A8480;
    border-radius: 6px;
    padding: 24px;
    background: #FFFFFF;
}

.np-rating-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.np-rating-head h3 {
    margin: 0;
    font-family: "Roboto Slab", sans-serif;
    font-size: 20px;
    line-height: 34px;
    font-weight: 700;
    color: #0C0A08;
}

.np-rating-score {
}
.np-rating-separator {
    height: 1px;
    background: #EEEDEC;
}

.np-rating-value {
    font-family: "Roboto Slab", sans-serif;
    font-size: 20px;
    line-height: 34px;
    font-weight: 700;
    color: #E9A23B;
}

.np-rating-max {
    font-family: Satoshi, sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #A6A29E;
}

.np-rating-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.np-rating-list li {
    display: grid;
    grid-template-columns: 164px 1fr 20px;
    align-items: center;
    gap: 10px;
}

.np-rating-label {
    font-family: Satoshi, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    color: #0C0A08;
}

.np-rating-bar {
    display: block;
    height: 12px;
    border-radius: 12px;
    background: #EFEDEB;
    overflow: hidden;
}

.np-rating-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
}

.np-rating-fill-good {
    background-color: #1EA112;
}

.np-rating-fill-warning {
    background-color: #E9A23B;
}

.np-rating-fill-bad {
    background-color: #E0483F;
}

.np-rating-number {
    text-align: right;
    font-family: Satoshi, sans-serif;
    font-size: 14px;
    line-height: 26px;
    font-weight: 400;
    color: #0C0A08;
}

/* Available Trucks section */

.np-available-trucks .primary-alternative-green-button:hover {
    background: #16165A;
    transition: all 300ms ease;
}
.np-available-trucks .primary-alternative-green-button {
    transition: all 300ms ease;
    font-family: NewMontserrat, sans-serif;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
}

.np-available-trucks .wrapper-inner {
    max-width: 1360px;
}

.np-available-trucks .reset-filters:hover {
    border-bottom: 1px solid #F07AAD;
    text-decoration: none;
    color: #ED454F;
    text-shadow: none;
    transition: border-bottom 300ms ease;
}
.np-available-trucks .reset-filters {
    transition: border-bottom 300ms ease;
    border-bottom: 1px solid transparent;
    font-family: NewMontserrat-Regular, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 24px;
    color: #ED454F;
    text-align: right;
    width: auto;
}

.np-available-trucks .np-filters {
    padding: 0;
    gap: 12px;
    margin-bottom: 12px;
}

.np-available-trucks {
    width: 1360px;
    max-width: 100%;
    margin: 64px auto 0;
    padding: 0;
    box-sizing: border-box;
}

.np-available-trucks-title {
    margin: 0 0 16px;
    font-family: "Roboto Slab", sans-serif;
    font-size: 24px;
    line-height: 40px;
    font-weight: 700;
    color: #0C0A08;
}

.np-truck-filter-box {
    /*border: 1px solid rgba(194, 190, 188, 0.5);*/
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    background: #F6F4F4;
}

.np-truck-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.np-truck-filter-label {
    margin: 0;
    line-height: 24px;
    font-family: "Roboto Slab", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.np-truck-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.np-truck-filter-row .form-floating > label {
    left: 44px;
    width: auto;
    padding: 0;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    font-family: Satoshi, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #212529;
    border: 0;
    transition: transform .1s ease-in-out, font-size .1s ease-in-out, top .1s ease-in-out;
}

.np-truck-filter-row .form-floating > .form-control:focus ~ label,
.np-truck-filter-row .form-floating > .form-control:not(:placeholder-shown) ~ label,
.np-truck-filter-row .form-floating > .form-select ~ label,
.np-truck-filter-row .np-filter-select label {
    top: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #80808A;
    transform: none;
}

.np-truck-filter-submit {
    display: block;
    width: 100%;
    border: 0;
}

.np-filter-date {
    position: relative;
    background: #fff url("/img/calendar2.svg") no-repeat 16px 50%;
    background-size: 20px 20px;
    border: 1px solid #ECECEE;
    border-radius: 4px;
    height: 60px;
}

.np-filter-date input {
    width: 100%;
    height: 60px !important;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0 16px 0 44px;
    font-family: "NewMontserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 52px;
    color: #212529;
}

.np-filter-date input::placeholder {
    color: #212529;
    opacity: 1;
}

.np-filter-date input:focus {
    outline: none;
}

.np-truck-card .np-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    height: 248px;
    background: #e8e6e4;
}
.np-truck-card .np-card-image-wrap {
    overflow: unset;
}
.np-truck-card {
    border-radius: 8px;
    overflow: hidden;
}
.np-truck-cards {
    margin-top: 0;
    margin-bottom: 32px;
}

/* Feature-tag chips on truck cards (provider-detail page) */

.np-truck-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
}

.np-truck-tag {
    border: 1px solid rgba(194, 190, 188, 0.5);
    background: #FFFFFF;
    border-radius: 4px;
    padding: 3px 8px;
    font-family: Satoshi, sans-serif;
    font-size: 14px;
    line-height: 26px;
    font-weight: 400;
    color: #0C0A08;
    white-space: nowrap;
}

@media screen and (max-width: 991px) {
    .np-hero {
        grid-template-columns: 1fr;
        padding: 0;
        height: unset;
        gap: 0;
    }
    .np-hero-info {
        border-radius: 0;
        overflow: unset;
    }
    .np-hero-title {
        margin-top: 20px;
    }
    .np-hero-media {
        border-radius: 0;
    }
    .np-hero-media .main-carousel,
    .np-hero-media .carousel-cell,
    .np-hero-media .flickity-viewport {
        min-height: 300px;
    }

    .np-tabs-main .provider-profile-block.blur-effect {
        max-height: 216px !important;
    }

    .np-tabs-section {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .np-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .np-truck-filter-row {
        grid-template-columns: 1fr;
    }
    .np-available-trucks {
        padding: 0 20px;
    }
}
