/* ================================================================
   PORTUGAL ONLINE — DISCOVER PORTUGAL SECTION NAVIGATION
   Shared by Regions, Travel Tips and Cities and Towns.
   ================================================================ */

#body .pds-section-nav-wrap {
    display: block;
    position: relative;
    z-index: 2;
    float: none !important;
    clear: both !important;
    width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0 0 14px;
    padding: 14px 16px;
    overflow: visible;
    background: #f7f9fc;
    border: 1px solid #d8e0eb;
    border-radius: 5px;
    box-sizing: border-box;
}

#body .pds-section-nav {
    display: block;
    position: static;
    float: none !important;
    width: 100%;
    max-width: none;
    height: auto !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
}

#body .pds-section-nav-label {
    display: block;
    margin: 0 0 9px;
    padding: 0;
    color: #596b82;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.25;
    text-transform: uppercase;
}

#body .pds-section-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    list-style: none;
    box-sizing: border-box;
}

#body .pds-section-nav-list li {
    display: block;
    float: none !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

#body .pds-section-nav-list a {
    display: block;
    padding: 8px 11px;
    background: #fff;
    border: 1px solid #cbd7e7;
    border-radius: 4px;
    color: #3d5f91;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

#body .pds-section-nav-list a:hover,
#body .pds-section-nav-list a:focus {
    background: #eaf0fb;
    border-color: #aebfda;
    color: #244fa8;
    text-decoration: none;
}

#body .pds-section-nav-list a.is-active,
#body .pds-section-nav-list a[aria-current="page"] {
    background: #3b68c9;
    border-color: #3b68c9;
    color: #fff;
}

/* The city directory has 29 buttons. Slightly tighter desktop spacing keeps
   it useful without overwhelming the top of every guide. */
#body .pds-cities-nav {
    padding-bottom: 13px;
}

#body .pds-cities-nav .pds-section-nav-list {
    gap: 6px;
}

#body .pds-cities-nav .pds-section-nav-list a {
    padding: 7px 9px;
    font-size: 12px;
}

@media screen and (max-width: 767px) {
    #body .pds-section-nav-wrap {
        margin-bottom: 12px;
        padding: 12px;
        overflow: visible;
    }

    #body .pds-section-nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
        overflow: visible;
        padding-bottom: 0 !important;
    }

    #body .pds-section-nav-list li {
        display: block;
        width: 100%;
        min-width: 0;
    }

    #body .pds-section-nav-list a,
    #body .pds-cities-nav .pds-section-nav-list a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 40px;
        padding: 8px 7px;
        font-size: 12px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media screen and (max-width: 420px) {
    #body .pds-cities-nav .pds-section-nav-list {
        grid-template-columns: 1fr;
    }
}
