
:root {
    --list-sticky-header-height: 132px;
}

.list-category-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--list-sticky-header-height);
    background-image:
        linear-gradient(90deg, rgba(5, 28, 55, .62), rgba(7, 41, 78, .46)),
        var(--list-header-image);
    background-position: center 44%;
    background-size: cover;
    box-shadow: 0 8px 24px rgba(3, 20, 39, .22);
    color: #fff;
}

.list-category-header__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.16), transparent 50%),
        linear-gradient(90deg, rgba(0,0,0,.08), transparent 42%);
    pointer-events: none;
}

.list-category-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    max-width: 1500px;
    min-height: var(--list-sticky-header-height);
    margin: 0 auto;
    padding: 1rem 2rem;
}

.list-category-header__brand {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    text-decoration: none;
}

.list-category-header__brand img {
    width: 92px;
    max-height: 112px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 7px 12px rgba(0,0,0,.28));
}

.list-category-header__content {
    min-width: 0;
}

.list-category-header__heading-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    margin-bottom: .65rem;
}

.list-category-header__site-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .62rem;
    min-width: 250px;
    min-height: 66px;
    padding: .52rem .8rem;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 5px 16px rgba(0,0,0,.18);
    color: #082f5d;
    text-decoration: none;
}

.list-category-header__site-logo:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0,0,0,.24);
}

.list-category-header__site-mark {
    display: block;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.list-category-header__site-name {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1;
}

.list-category-header__site-name strong,
.list-category-header__site-name i {
    display: inline;
    font-size: 1.58rem;
    line-height: 1;
}

.list-category-header__site-name strong {
    color: #082f5d;
    font-style: normal;
    font-weight: 900;
    letter-spacing: -.035em;
}

.list-category-header__site-name i {
    color: #ef2c6c;
    font-style: normal;
    font-weight: 500;
}

.list-category-header__site-name small {
    margin-top: .34rem;
    color: #64748b;
    font-size: .74rem;
    line-height: 1.1;
    white-space: nowrap;
}

/* Zorg dat naam en .app op één regel blijven. */
.list-category-header__site-name {
    position: relative;
}

.list-category-header__site-name::before {
    content: "Rethymnon.app";
    color: transparent;
    font-size: 1.58rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    height: 0;
    overflow: hidden;
}

/* De twee inline elementen worden visueel naast elkaar gehouden. */
.list-category-header__site-name strong {
    display: inline;
}

.list-category-header__site-name strong + i {
    margin-left: 0;
}

.list-category-header__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 3.4vw, 3.15rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.035em;
    text-shadow: 0 3px 16px rgba(0,0,0,.38);
}

.list-category-header__nav {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
}

.list-category-header__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .42rem .72rem;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(7px);
}

.list-category-header__nav a:hover,
.list-category-header__nav a.is-active {
    border-color: #fff;
    background: #fff;
    color: #0b3768;
}

.list-category-header__lang select {
    min-height: 40px;
    padding: .55rem .8rem;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(7px);
}

.list-category-header__lang option {
    color: #111827;
}

/* Resultaten scrollen onder de plakkende header. */
.list-shell {
    position: relative;
    z-index: 1;
    padding-top: 1.25rem;
}

/* Dubbele categorienavigatie uit oudere CSS verbergen wanneer die nog bestaat. */
.list-shell > .category-tabs {
    display: none !important;
}

@media (max-width: 900px) {
    :root {
        --list-sticky-header-height: 116px;
    }

    .list-category-header__inner {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: .8rem;
        padding: .7rem 1rem;
    }

    .list-category-header__brand img {
        width: 72px;
        max-height: 94px;
    }

    .list-category-header__heading-row {
        gap: .6rem;
        margin-bottom: .5rem;
    }

    .list-category-header__site-logo {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .list-category-header__site-logo img {
        width: 36px;
        height: 36px;
    }

    .list-category-header__title {
        font-size: clamp(1.55rem, 7vw, 2.25rem);
    }

    .list-category-header__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .2rem;
        scrollbar-width: none;
    }

    .list-category-header__nav::-webkit-scrollbar {
        display: none;
    }

    .list-category-header__lang {
        display: none;
    }
}

@media (max-width: 560px) {
    :root {
        --list-sticky-header-height: 104px;
    }

    .list-category-header__inner {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .list-category-header__brand img {
        width: 58px;
        max-height: 82px;
    }

    .list-category-header__site-logo {
        width: 42px;
        height: 42px;
    }

    .list-category-header__site-logo img {
        width: 32px;
        height: 32px;
    }

    .list-category-header__nav a {
        min-height: 30px;
        padding: .38rem .62rem;
        font-size: .72rem;
    }
}

.list-category-header__site-name-line {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .list-category-header__site-logo {
        min-width: 210px;
        padding: .45rem .65rem;
    }

    .list-category-header__site-mark {
        width: 42px;
        height: 42px;
    }

    .list-category-header__site-name strong,
    .list-category-header__site-name i {
        font-size: 1.34rem;
    }
}

@media (max-width: 900px) {
    .list-category-header__site-logo {
        min-width: 0;
        min-height: 54px;
        padding: .38rem .5rem;
    }

    .list-category-header__site-mark {
        width: 38px;
        height: 38px;
    }

    .list-category-header__site-name strong,
    .list-category-header__site-name i {
        font-size: 1.16rem;
    }

    .list-category-header__site-name small {
        font-size: .64rem;
    }
}

@media (max-width: 620px) {
    .list-category-header__site-name {
        display: none;
    }

    .list-category-header__site-logo {
        min-width: 46px;
        width: 46px;
        height: 46px;
        padding: .3rem;
        border-radius: 12px;
    }

    .list-category-header__site-mark {
        width: 36px;
        height: 36px;
    }
}


/* ===== V2.5: verbeterde headerfoto ===== */
.list-category-header {
    position: sticky;
    overflow: hidden;
    isolation: isolate;
    background: #0b3768 !important;
}

.list-category-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--list-header-image);
    background-repeat: no-repeat;
    background-position: center 58%;
    background-size: cover;
    filter: brightness(1.08) saturate(1.18) contrast(1.06);
    transform: scale(1.025);
}

.list-category-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(5, 28, 55, .52) 0%,
            rgba(7, 41, 78, .30) 48%,
            rgba(7, 41, 78, .18) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255,255,255,.08) 0%,
            rgba(255,255,255,0) 52%,
            rgba(4,23,43,.18) 100%
        );
    pointer-events: none;
}

.list-category-header__overlay {
    display: none !important;
}

.list-category-header__inner {
    text-shadow: 0 2px 12px rgba(0,0,0,.22);
}

.list-category-header__site-logo {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(5px);
}

.list-category-header__nav a {
    background: rgba(8, 46, 85, .26);
    border-color: rgba(255,255,255,.55);
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

.list-category-header__nav a:hover,
.list-category-header__nav a.is-active {
    background: rgba(255,255,255,.97);
    border-color: #fff;
    color: #0b3768;
    text-shadow: none;
}

.list-category-header__lang select {
    background: rgba(8, 46, 85, .30);
    border-color: rgba(255,255,255,.58);
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

@media (max-width: 900px) {
    .list-category-header::before {
        background-position: center 52%;
    }
}
