/* Shared city groups for the main navigation and blog. */
.tp-main-menu .locations-menu > .locations-menu__groups,
.blog-header__locations > .locations-menu__groups {
    background: #292930;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 20px;
    text-align: left;
    width: 520px;
    z-index: 50;
}

.tp-main-menu .locations-menu > .locations-menu__groups {
    right: 0;
}

.tp-main-menu .locations-menu:focus-within > .locations-menu__groups {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

.tp-main-menu .locations-menu .locations-menu__region,
.blog-header__locations .locations-menu__region {
    list-style: none;
    margin: 0;
    min-width: 0;
}

.locations-menu__cities {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.tp-main-menu .locations-menu .locations-menu__cities li,
.blog-header__locations .locations-menu__cities li {
    margin: 0;
}

.tp-main-menu .locations-menu .locations-menu__cities a,
.blog-header__locations .locations-menu__cities a {
    color: #fff;
    display: block;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    padding: 6px 0;
}

.tp-main-menu .locations-menu a.locations-menu__region-label,
.blog-header__locations a.locations-menu__region-label {
    color: #ffdc60;
    display: block;
    font-size: 17px;
    font-weight: 700;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.tp-main-menu .locations-menu .locations-menu__cities a:hover,
.blog-header__locations .locations-menu__cities a:hover {
    color: #ffdc60;
}

.locations-menu__groups a:focus-visible {
    outline: 2px solid #ffdc60;
    outline-offset: 2px;
}

/* Keep the added item on the same row as the existing desktop links. */
@media (min-width: 992px) {
    #header-sticky > .container-fluid > .row {
        flex-wrap: nowrap;
    }

    #header-sticky > .container-fluid > .row > :first-child,
    #header-sticky > .container-fluid > .row > :last-child {
        flex: 0 0 auto;
        width: auto;
    }

    #header-sticky > .container-fluid > .row > :nth-child(2) {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    #mobile-menu > ul > li {
        margin-right: 20px;
    }

    #mobile-menu > ul > li:last-of-type {
        margin-right: 0;
    }

    #header-sticky .tp-yellow-space {
        margin-left: 0;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    #header-sticky {
        padding-left: 20px;
        padding-right: 20px;
    }

    #mobile-menu > ul > li {
        margin-right: 12px;
    }

    #mobile-menu > ul > li > a {
        font-size: 14px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #header-sticky {
        padding-left: 12px;
        padding-right: 12px;
    }

    #header-sticky .tp-logo span {
        font-size: 20px !important;
    }

    #header-sticky .tp-btn-black {
        padding-left: 20px;
        padding-right: 20px;
    }

    #mobile-menu > ul > li {
        margin-right: 10px;
    }
}

.blog-header__locations {
    position: relative;
}

.blog-header__locations > summary {
    color: #777d91;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.blog-header__locations[open] > summary {
    color: #5956e9;
}

.blog-header__locations > .locations-menu__groups {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
}

@media (max-width: 767px) {
    .blog-header__locations {
        position: static;
    }

    .blog-header__locations > summary {
        font-size: 13px;
    }

    .blog-header__locations > .locations-menu__groups {
        gap: 20px;
        left: 12px;
        max-height: calc(100vh - 180px);
        right: 12px;
        top: 100%;
        width: auto;
    }
}

@media (max-width: 479px) {
    .blog-header__locations > .locations-menu__groups {
        grid-template-columns: 1fr;
    }
}

/* Leave room for the sticky header when following contact anchors. */
#rybnik,
#zory {
    scroll-margin-top: 130px;
}
