.city-menu-item {
    background-color: var(--color-main);
    color: #fff;
}

.city-menu-item:hover {
    color: #fff;
}

.zoetermeer {
    background-color: var(--color-main) !important;
    color: #fff;
}

.zoetermeer:hover {
    color: #fff !important;
}

.lansingerland {
    background-color: #49aa48 !important;
    color: #fff;
}

.lansingerland:hover {
    color: #fff !important;
}

/* BASE */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    left: 0;
}
@media (max-width: 768px) {
    body {
        padding-top: 82px !important;
    }
}
@media (min-width: 1024px) {
    body {
        padding-top: 45px !important;
    }
}

.header-container {
    width: 100%;
    background-color: var(--bg-color);
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .header-container {
        padding-bottom: 0.5rem !important;
    }
    .site-header {
        margin-bottom: 0 !important;
    }
}

.menu {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    margin: 0;
}

.sub-menu {
    flex-direction: row !important;
    gap: 1rem;
}

.menu-item {
    font-size: 1.1rem;
}

.site-menu .menu li a {
    text-decoration: none;
    color: var(--text-color-comm);
    transition: color 0.2s ease 0s;
}

.site-menu .menu li a:hover {
    color: var(--color-accent);
}

.site-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.hamburger {
    display: none;
}

.menu-close {
    display: none;
}

.site-header {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.sub-menu .menu-item a {
    font-size: 1rem;
    display: block;
}

.site-title img {
    max-width: 200px;
    width: auto;
    height: 45px;
    align-self: start;
}

.site-title .site-logo-dark {
    display: none;
}

[data-theme="dark"] .site-title .site-logo-light {
    display: none;
}

[data-theme="dark"] .site-title .site-logo-dark {
    display: block;
}

/* HEADER STYLES DESKTOP */

@media (min-width: 1024px) {
    .menu ul {
        padding: 0;
    }
    .site-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding-top: 0;
        margin-bottom: 0;
        margin-top: 0.3rem;
    }

    .menu-menu-1-container {
        margin-top: 5px;
    }

    .site-icon img {
        display: block;
    }

    .site-header {
        display: grid;
        grid-template-columns: 190px 1fr auto;
        gap: 0.5rem;
        justify-content: space-around;
        align-items: center;
        max-height: 92px !important;
        max-width: 1200px;
    }

    .site-menu {
        display: block;
        position: static;
        width: auto;
        height: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        text-justify: center;
        align-content: space-around;
    }

    /* Hide mobile extras on desktop */
    .menu-extras {
        display: none !important;
    }

    .menu li {
        list-style: none;
        display: inline-block;
        gap: 1rem;
        font-weight: 600;
    }

    .sub-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: grid;
        grid-template-columns: auto;
        gap: 0;
        position: absolute;
        background: var(--off-white);
        border-radius: 6px;
        list-style: none;
        margin: 0;
        z-index: 99;
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease;
    }

    .menu li:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sub-menu:hover {
        display: list-item;
    }

    .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0.5rem 1rem 0.5rem 1rem !important;
    }

    .sub-menu li {
        display: block;
        margin: 0;
        padding: 0.4rem 0;
        border-bottom: none;
    }
}

.desktop-menu-extra {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    position: relative;
}

/* EXTRA */
/* SEARCH */
.search-wrapper {
    z-index: 200 !important;
    position: absolute;
    display: flex;
    align-items: center;
    position: relative;
    width: 2rem;
    height: 2rem;
    background: var(--bg-color);
    border-radius: 999px;
    border: 2px solid var(--color-main);
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0;
    transition:
        transform 0.2s ease 0.3s,
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s,
        box-shadow 0.2s ease 0.3s;
}

.search-wrapper.open {
    z-index: 300;
    position: absolute;
    right: 0;
    left: auto;
    width: 220px;
    overflow: visible !important;
    transform: translateY(2.5rem);
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.45);
    transition:
        transform 0.2s ease 0s,
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
        box-shadow 0.2s ease 0s;
}

.search-toggle {
    position: absolute;
    left: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.search-wrapper.open .search-toggle {
    opacity: 0;
    pointer-events: none;
}

.search-bar {
    width: 100%;
    opacity: 0;
    transition: opacity 0.2s ease 0.2s;
    padding: 0 0.5rem 0 0.5rem;
}

.search-wrapper.open .search-bar {
    opacity: 1;
}

.search-wrapper input {
    color: var(--text-color-comm);
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    background: transparent;
}

.search-submit {
    position: absolute;
    right: 0;
    background: var(--color-main);
    border: none;
    cursor: pointer;
    color: var(--text-color-cats);
    display: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.search-submit:hover {
    background: var(--color-accent);
}

.search-wrapper.open .search-submit {
    display: flex;
}

#search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-color);
    border-radius: 6px;
    width: 280px;
    z-index: 99;
    box-shadow: -5px 5px 6px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.2s ease 0s;
}

#search-results:hover {
    box-shadow: -10px 10px 12px rgba(0, 0, 0, 0.6);
}

.search-result {
    display: grid;
    grid-template-columns: 30% auto;
    gap: 0.5rem;
    padding: 0.3rem;
    text-decoration: none;
    color: var(--text-color-comm);
}

.search-content {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0.1rem;
}

.search-title {
    font-size: 1rem;
    font-weight: 700;
}

.search-date {
    font-size: 0.85rem;
    color: var(--text-color-dates);
}

.search-result img {
    aspect-ratio: 1.618/1;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* SOCIALS */
.social-links {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
}

.social-link {
    display: flex;
    align-items: center;
    color: var(--text-color-cats);
    text-decoration: none;
    padding: 5px;
    border-radius: 4px;
    transition: padding 0.2s ease 0s, border-radius 0.2s ease 0s,
        color 0.2s ease 0s;
}

/* Stad zonder link voor dit netwerk: display op .social-link wint anders van
   de UA-stijl van het hidden-attribuut. */
.social-link[hidden] {
    display: none !important;
}

.social-youtube {
    background: #ff0000;
    color: #fff;
}

.social-facebook {
    background: #1877f2;
    color: #fff;
}

.social-instagram {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}
.social-link svg {
    width: 1.2rem;
    height: 1.2rem;
}

.social-link:hover {
    border-radius: 12px;
    padding: 7px;
    color: var(--text-color-cats) !important;
}

/* DARK-LIGHT SWITCHER */
#theme-toggle,
#theme-toggle-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    color: var(--text-color-comm);
}

.toggle-track {
    width: 44px;
    height: 24px;
    background-color: var(--text-color-dates);
    border-radius: 999px;
    position: relative;
    transition: background-color 0.3s ease;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: var(--bg-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .toggle-track {
        width: 50px;
        height: 30px;
    }
    .toggle-thumb {
        width: 24px;
        height: 24px;
    }
}

[data-theme="dark"] .toggle-track {
    background-color: var(--color-main);
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(20px);
}

/* MOBILE MENU EXTRAS */
.menu-extras {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-extra-item {
    display: grid;
    grid-template-rows: auto auto;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-color-comm);
    font-weight: 600;
    background: var(--off-white);
    padding: 12px;
    border-radius: 6px;
}

.toggle-icon {
    color: var(--color-main);
    height: 22px;
    width: auto;
}

/* HEADER STYLES MOBILE */

@media (max-width: 768px) {
    .site-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto;
        align-items: center;
        max-height: 93px !important;
        margin-bottom: 1vh;
    }

    .weergave-live-container {
        display: grid;
        grid-template-columns: auto auto;
        gap: 15px;
    }

    .site-title {
        grid-column: 2;
        text-align: center;
        margin-top: 1px;
        margin-bottom: 0.3rem;
    }

    .site-title img {
        max-height: 45px;
        width: auto;
    }

    .site-tagline {
        font-size: 11px !important;
        max-width: 170px !important;
    }

    .hamburger {
        grid-column: 1;
        justify-self: start;
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        padding-left: 1rem;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 4px;
        background: var(--color-main);
        padding-left: 0.4rem;
    }

    .menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 3rem;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-main);
        z-index: 1;
    }

    .menu-close svg {
        width: 26px;
        height: 26px;
    }

    .site-menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: var(--bg-color);
        padding: 4.5rem 1rem 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .site-menu .menu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .site-menu .menu li {
        display: block;
        border-bottom: 1px solid var(--off-white);
        padding: 0.75rem 0;
        font-weight: 600;
    }

    .site-menu .menu li a {
        text-decoration: none;
        color: var(--text-color-comm) !important;
        display: block;
    }

    .site-menu .sub-menu {
        display: none;
        position: static;
        background: none;
        padding: 0;
        border-radius: 0;
        padding-left: 1rem;
    }

    .site-menu .sub-menu.open {
        display: block;
    }

    .site-menu .sub-menu li {
        border-bottom: none;
        padding: 0.4rem 0;
        font-weight: 400;
    }

    .social-links {
        display: none !important;
    }

    /* Hide desktop toggle on mobile */
    .dark-light-container {
        display: none;
    }

    .ord-search {
        margin-right: 0.5rem;
    }

    .search-page-input-wrapper input,
    .search-bar input {
        font-size: 18px;
    }

    .search-wrapper {
        margin-right: 0;
        transition: margin-right 0.3s ease 0s;
    }

    .search-wrapper.open {
        margin-right: 2rem;
    }
    /* LETTERTYPES HAMBURGER MENU */
    .menu-extra-item {
        font-size: 1rem;
    }
    .menu-item {
        font-size: 1rem;
    }

    /* MOBILE MENU EXTRAS */
    .menu-extras {
        margin-top: 3rem;
        margin-bottom: 4rem;
        margin-right: 2.7rem;
    }
    /* Show submenu on mobile when toggled open */

    .menu-item-has-children .sub-menu {
        display: none;
    }
    .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }
}

/* HIDE HEADER ON SCROLL */
header {
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

@media (max-width: 768px) {
    header.header-hidden {
        transform: translateY(-100%);
        opacity: 0;
        transition:
            transform 0.3s ease,
            opacity 0.1s ease 0.2s;
    }
}

/* City switch fade — js/radio.js toggles .od-city-fading on #od-content */
#od-content {
    transition: opacity 0.18s ease;
}
#od-content.od-city-fading {
    opacity: 0;
}

@media (max-width: 1025px) {
    .site-title img {
        height: 40px !important;
        align-self: center;
    }
    .site-tagline {
        text-align: center !important;
    }
}
