:root {
    --red: #ff8e8e;
    --dark-orange: #f6a973;
    --orange: #ffd88e;
    --green: #8dffc9;
    --light-grey: #d6d6d6;
    --active-red: #ff4b4b;
    --active-dark-orange: #fa8b3c;
    --active-orange: #ffc243;
    --active-green: #42d796;
    --active-light-grey: #b3b3b3;
    --prevalence-yes: #b662ff;
    --prevalence-no: #d6d6d6;
    --prevalence-high: #ff8e8e;
    --prevalence-medium: #ffd88e;
    --prevalence-low: #8dffc9;
    --blue: #0792cf;
    --opacity-red: #f9c4c4;
    --opacity-dark-orange: #ffe3cf;
    --opacity-orange: #ffeece;
    --opacity-green: #d4ffeb;
    --opacity-light-grey: #eaeaea;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	font-size: 15px;
    font-family: "sanofi-sans-regular";
	line-height: 14px;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

*, :before, :after {
    -webkit-font-smoothing: antialiased !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0 !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

footer,
body:not(.mgnl-admin) > div.sticky,
body:not(.mgnl-admin) > div.navigation__notice,
body:not(.mgnl-admin) > div.navigation {
    display: none;
}

.travelMap {
    display: flex;
    overflow: hidden;
}

body:not(.mgnl-admin) .leadin > .ui-section {
    padding: 0;
    margin: 0;
}

body:not(.mgnl-admin) .leadin > .ui-section > .ui-container {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

a {
    color: var(--blue);
    text-decoration: none;
}

.text-xl {
    font-size: 40px;
    line-height: 1;
}

.text-l {
    font-size: 30px;
}

.text-m {
    font-size: 22px;
}

.text-s {
    font-size: 18px;
}

.text-xs {
    font-size: 15px;
}

.text-xxs {
    font-size: 12px;
}

.font-22 {
    font-size: 22px;
}

.mb-5 {
    margin-bottom: 20px;
}

.my-5 {
    margin-bottom: 20px;
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 40px;
}

.mb-20 {
    margin-bottom: 80px;
}

.mt-4 {
    margin-top: 16px;
}

.bullet::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.bullet-4::before {
    background-color: var(--red);
}

.bullet-3::before {
    background-color: var(--dark-orange);
}

.bullet-2::before {
    background-color: var(--orange);
}

.bullet-1::before {
    background-color: var(--green);
}

.bullet-0::before {
    background-color: var(--light-grey);
}

.bullet-yes::before {
    background-color: var(--prevalence-yes);
}

.bullet-no::before {
    border: 1px solid  var(--light-grey);
}

.travel-notice-0::before {
    background-color: var(--active-light-grey);
}

.travel-notice-4 {
    background-color: var(--opacity-red);
    border-left: 10px solid var(--red)
}

.travel-notice-3 {
    background-color: var(--opacity-dark-orange);
    border-left: 10px solid var(--dark-orange);
}

.travel-notice-2 {
    background-color: var(--opacity-orange);
    border-left: 10px solid var(--orange);
}

.travel-notice-1 {
    background-color: var(--opacity-green);
    border-left: 10px solid var(--green);
}

.travel-notice-0 {
    background-color: var(--opacity-active-light-grey);
    border-left: 10px solid var(--active-light-grey);
}

body > a[href="#mainContent"] {
    display: none;
}

.home-bar {
    a {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 999;
        color: #2c2c2c;
        font-size: 20px;
    
        .home-label {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #fff;
            width: 0;
            height: 80px;
            opacity: 0;
            font-size: 1px;
            visibility: hidden;
            transition: all .2s linear;
        }
    
        .home-button {
            background-color: #fff;
            height: 80px;
            width: 80px;
            display: flex;
            justify-content: center;
            align-items: center;
    
            img {
                width: 25px;
            }
        }
    
        &:hover {
            .home-label {
                width: 150px;
                opacity: 1;
                visibility: visible;
                font-size: 16px;
            }
        }
    }
}

.sidebar {
    width: 100%;
    max-width: 530px;
    max-height: 100vh;
    position: relative;

    * {
        line-height: 24px;
    }

    .tabs {
        display: flex;
        position: relative;


        .tab {
            
            display: flex;
            justify-content: center;
            align-items: center;
            flex-basis: 50%;
            font-size: 16px;
            height: 110px;
            border-top: 5px solid var(--light-grey);
            cursor: pointer;
            color: #a0a0a0;
            transition: color .3s, background .3s;
            background: #f7f7f7;

            &:hover:not(.tab-active) {
                color: #000;
                border-top-color: #8e8e8e;
            }
        }

        .tab-active {
            border-top: 5px solid var(--blue);
            color: #000;
            background: #fff;
        }

        &:after {
            content: '';
            position: absolute;
            z-index: 10;
            bottom: 0;
            left: 0;
            width: calc(100% - 5px);
            height: 40px;
            -webkit-transform: translateY(100%);
            transform: translateY(100%);
            background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(rgba(255, 255, 255, 0)));
            background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 100%);
        }
    }
}

.tab-travel,
.tab-prevalence {
    overflow: scroll;
    height: 100vh;
    padding: 40px 0;

    &::-webkit-scrollbar {
        width: 5px;
        transition: background .3s ease-out;
    }

    &::-webkit-scrollbar-thumb {
        background: #d3d3d3;
    }

    &::-webkit-scrollbar-track {
        background: #f7f7f7;
        transition: background .3s ease-out;
    }

    .travel-advice,
    .prevalence-ranked {
        background-color: #f8f8f8;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0 0 20px 0;
        transition: all 250ms linear;
        padding: 30px 30px 25px;

        .legend_title {
            margin-bottom: 5px;
            display: flex;
            align-items: center;

            h3 {
                text-transform: uppercase;
                font-size: 12px;
                font-weight: 600;
                
                letter-spacing: 2px;
                color: #2c2c2c;
                line-height: 1;
                flex-grow: 1;

                span {
                    all: inherit;
                    display: inline;
                }
            }
        }
    }
}


.tooltip {
    position: relative;
    line-height: 1;
    height: 20px;

    .tooltip__icon {
        cursor: pointer;
    }

    &.tooltip-left {
        .tooltip__content {
            left: -30px;
    
            &::after {
                left: 20px;
            }
        }
    }

    .tooltip__content {
        visibility: hidden;
        position: absolute;
        top: -124px;
        right: -30px;
        width: 250px;
        background: #fff;
        padding: 15px;
        opacity: 0;
        transition: opacity .2s linear, top .2s linear;

        &::after {
            display: block;
            content: "";
            position: absolute;
            bottom: -10px;
            right: 20px;
            height: 0;
            width: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 20px solid #fff;
        }

        * {
            font-size: 13px;
        }
    }

    &:hover {
        .tooltip__content {
            top: -160px;
            visibility: visible;
            opacity: 1;
        }
    }

}

.icon {
    position: relative;
    line-height: 1em;
    display: inline-block;

    &:before {
        font-style: normal;
        font-variant: normal;
        font-weight: 400;
        text-decoration: none;
        text-transform: none;
        position: relative;
        top: .15em;
    }
}

.icon-info {
    &:before {
        content: "\E008";
    }
}

.prevalence-container {
    padding: 0 40px;
}

.prevalence-diseases {
    padding: 40px 30px 20px;
    border: 1px solid #e2e2e2;

    h2 {
        
        font-size: 19px;
        color: #2c2c2c;
        margin-bottom: 10px;
    }
}

.travel-title-container,
.prevalence-container {
    h1 {
        color: #2c2c2c;
    }

    p {
        font-size: 15px;

        + div {
            margin-top: 40px;
        }
    }
}
  
.tab-travel {

    img {
        width: 97px;
        height: 97px;
    }

    .travel-title-container {
        padding: 0 40px;
        margin-bottom: 40px;
    }

    .travel-advice {
        background-color: #f8f8f8;
        padding: 20px 30px;
        margin-bottom: 20px;

        ul {
            display: flex;
            flex-basis: 50%;
            flex-wrap: wrap;
            gap: 10px;
            /* justify-content: space-around; */

            li {
                width: calc(50% - 10px);
                line-height: 1.3;
            }
        }
    }
}

.travel-list {
    border-top: 1px solid #ececec;

    .travel-item {
        position: relative;
        display: flex;
        padding: 25px 30px;
        border-bottom: 1px solid #ececec;
        align-items: center;
        transition: box-shadow .3s ease-out, -webkit-box-shadow .3s ease-out;
        cursor: pointer;

        &::after {
            position: absolute;
            right: 30px;
            content: "";
            width: 15px;
            height: 15px;
            border-top: 3px solid #e3e3e3;
            border-right: 3px solid #e3e3e3;
            transform: rotate(45deg);
            background-color: transparent;
        }

        .travel-image {
            margin-right: 32px;
            height: 100px;

            img {
                border-radius: 50%;
            }
        }

        .travel-country {
            margin-bottom: 7px;
            font-size: 20px;
            color: #2c2c2c;
        }

        .travel-caution {
            font-size: 14px;
            color: #888;
        }

        &:hover {
            -webkit-box-shadow: 0 2px 24px 0 rgba(0, 0, 0, .08);
            box-shadow: 0 2px 24px 0 rgba(0, 0, 0, .08);

            &::after {
                border-color: #079cd5;
            }
        }
    }
}

.travel-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    height: 100vh;
    width: 100%;
    overflow: scroll;
    z-index: 12;

    .travel-header {
        padding: 40px 40px 90px;
        color: #fff;

        &:not(.travel-no-image) {
            background-repeat: no-repeat;
            background-position: center;
            background-size: cover;
            box-shadow: inset 0 0 0 999em rgba(0, 0, 0, .5);
        }

        .travel-header-back-btn {
            transition: all .3s;
            cursor: pointer;
            font-size: 12px;
            font-weight: 700;

            .arrow, 
            span {
                font-size: inherit;
                font-weight: inherit;
            }

            span {
                text-transform: uppercase;
                text-decoration: none;
            }
        }

        .travel-title {
            margin-top: 100px;
            line-height: 1;
        }

        + .sidebar-desc {
            margin-top: -50px;
            padding: 0 40px;
        }
    }

    .travel-no-image {
        padding: 40px 40px;
        color: #000;

        .travel-title {
            margin-top: 50px;
        }

        + .sidebar-desc {
            margin-top: 0;
        }
    }

    .travel-notice {
        padding: 40px;

        .travel-notice-title {
            color: #000;
            margin-bottom: 20px;
        }

        .travel-notice-description {
            p {
                margin: 10px 0;
            }
        }

        .travel-notice-info,
        .travel-notice-info * {
            color: #8e8e8e;
            font-size: 14px;
            line-height: 1.3;
        }
    }

    .travel-advice-notice {
        margin: 40px 0;
        color: #000;

        div {
            line-height: 1.5;
            
            &:nth-child(2) {
                margin-top: 40px;
            }
            
            &:nth-child(3) {
                color: #666;
                font-size: 16px;
            }
        }
    }

    .travel-advice-list {
        .travel-disease {
            padding: 25px;
            margin-bottom: 25px;
            border-radius: 3px;
            box-shadow: 0 0 20px 0 rgba(0, 0, 0, .2);

            h2 {
                margin-bottom: 10px;
                color: #000;
            }

            .travel-disease-via {
                color: #8e8e8e;
                font-size: 11px;
                text-transform: uppercase;
                letter-spacing: .85px;
            }
            
            p {
                margin-bottom: 10px;
            }

            .travel-transmit {
                display: flex;
                margin-bottom: 10px;
                
                li {
                    margin-right: 15px;
                    color: #424242;
                }

                span {
                    font-size: 12px;
                }
            }

            a {
                color: #004281;
                font-weight: 700;
                font-size: 12px;
                text-transform: uppercase;
            }
        }
    }

    .travel-notice-tooltip {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

.arrow {
    width: 1em;
    margin-left: 0;
    margin-right: 10px;
    transform: rotate3d(0, 0, 1, 180deg);
    display: inline-block;
    color: inherit;
    position: relative;
    width: 1.4em;
    height: .7em;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition: all .3s;

    &.arrow-left {
        transform: rotate3d(0, 0, 1, 180deg);
    }

    &:before {
        content: '';
        position: absolute;
        display: block;
        top: 0;
        right: 0;
        border-top: .14em solid;
        border-right: .14em solid;
        width: .7em;
        height: .7em;
        -webkit-transform: rotate3d(0, 0, 1, 45deg);
        transform: rotate3d(0, 0, 1, 45deg);
        -webkit-transition: all .3s;
        transition: all .3s;
    }
}

.find-out-more,
.disclaimer {
    position: relative;
    word-break: break-word;
}

.find-out-more {
    padding: 40px 40px 0;

    .intro-prompt {
        border-bottom: 2px solid rgba(0, 0, 0, .1);
        padding-bottom: 30px;
    }

    a {
        font-weight: 700;
        font-size: 14px;
        text-transform: uppercase;
    }
}

.disclaimer {
    padding: 40px 40px 60px;

    p {
        margin-bottom: 10px;
    }

    span, p {
        font-size: 14px;
        line-height: 1.428571429;
        color: #5d5d5d;
    }

    a {
        text-decoration: none;
    }

    h4 {
        color: #2c2c2c;
        font-size: 16px;
        font-weight: 400;
    }
}

.travel-overlay.travel-selected {
    display: block;
}

.tab-prevalence {
    .prevalence-ranked {
        ul {
            margin-bottom: 10px;
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;

            li {
                align-items: start;
                margin-right: 1.5rem;

                &:last-child {
                    margin-right: 0;
                }
            }
        }
    }

    .prevalence-list {
        /*display: flex;
        flex-wrap: wrap;
        gap: 10px;*/
        height: 385px;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;

        li {
            width: calc(50% - 10px);
            display: flex;
            align-items: center;
            padding: 10px 10px 10px 0;
            max-height: 55px;
        }

        label {
            position: relative;
            padding-left: 34px;
            line-height: 18px;
            cursor: pointer;
            margin: 3px 0;
            font-size: 14px;

            &:before {
                position: absolute;
                top: calc(50% - 11px);
                left: 1px;
                width: 24px;
                height: 24px;
                border-radius: 50%;
                border: 1px solid #e1e1e1;
                background-color: #fff;
                -webkit-transition: .3s ease all;
                transition: .3s ease all;
                content: '';
            }

            &:after {
                position: absolute;
                top: calc(50% - 12px);
                left: 0;
                width: 26px;
                height: 26px;
                border-radius: 50%;
                -webkit-transform: scale(0);
                transform: scale(0);
                background-color: #2c2c2c;
                -webkit-transition: .3s ease transform;
                transition: .3s ease transform;
                content: '';
            }
        }

        /* label::before {
            content: "";
            display: inline-block;
            margin-right: 10px;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            border: 1px solid var(--light-grey);
        } */

        /* .prevalence-selected {
            label::before {
                border: 1px solid #000;
            }

            label::after {
                position: absolute;
                left: 3px;
                top: 0;
                content: "";
                display: inline-block;
                width: 11px;
                height: 10px;
                border-radius: 50%;
                background-color: #000;
            }
        } */

        input[type="radio"] {
            display: none;
            display: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;

            &:checked+label::before {
                border-color: #2c2c2c;
            }

            &:checked+label::after {
                -webkit-transform: scale(.75) translateZ(0);
                transform: scale(.75) translateZ(0);
            }
        }
    }
}

.search-bar {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: absolute;
    margin: 0;
    right: -40px;
    top: 32px;
    -webkit-transition: all 250ms linear;
    transition: all 250ms linear;
    z-index: 9;

    input {
        background-color: #fff;
        width: 100%;
        -webkit-box-shadow: 0 2px 24px 0 rgba(0, 0, 0, .08);
        box-shadow: 0 2px 24px 0 rgba(0, 0, 0, .08);
        padding: 0 20px 0 45px;
        height: 44px;
        border-radius: 50px;
        border: 0;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .icon.icon-search-black {
        position: absolute;
        left: 16px;
        top: 13px;
    }

    ul {
        margin-top: 10px;

        li {
            background-color: #fff;
            padding: 10px 20px;
        }
    }
}

#map {
    height: 100vh;
    width: 100%;

    div[role="dialog"] {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .bubble-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--blue);
        z-index: -1;
        padding: 12px 10px;
        color: #fff;
    }

    .bubble-content {
        margin-left: 15px;
        margin-top: 10px;

        * {
            line-height: 24px;
        }

        .bubble-title {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .bubble-level {
            font-size: 11px;
            font-weight: 400;
            letter-spacing: 1.69px;
        }

        .bubble-risk {
            font-weight: 500;
        }

        .bubble-blurb {
            font-size: 14px;
            font-weight: 400;
            line-height: 18px;
        }
    }

    .bubble-risk {
        font-weight: bold;
        text-transform: capitalize;
        display: flex;
        align-items: center;
        line-height: 18px;
        margin-bottom: 10px;

        span {
            content: "";
            display: inline-block;
            background: tomato;
            width: 10px;
            height: 10px;
            border-radius: 100%;
            margin-right: 5px;
        }

        span.bubble-high {
            background-color: var(--red);
        }

        span.bubble-medium {
            background-color: var(--orange);
        }

        span.bubble-low {
            background-color: var(--green);
        }

        span.bubble-no_data {
            background-color: var(--light-grey);
        }

        span.bubble-yes {
            background-color: var(--prevalence-yes);
        }

        span.bubble-no {
            background-color: var(--prevalence-no);
        }
    }

    .bubble-case {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
    }

    .bubble-link {
        font-weight: bold;
    }
}

@media screen and (max-width: 1024px) {
    .travelMap {
        flex-direction: column-reverse;
    }

    .home-bar { 
        & a {
            .home-label {
                display: none;
            }
        
            .home-button {
                height: 60px;
                width: 60px;
        
                img {
                    width: 20px;
                }
            }
        
            &:hover {
                .home-label {
                    display: none;
                }
            }
        }  
    }

    .sidebar,
    #map {
        max-height: none;
        max-width: none;
        height: 50vh;
    }

    #map {
        .bubble-content {
            margin-left: 10px;
            margin-top: 5px;
            margin-bottom: 10px;
            margin-right: 10px;
        }
    }

    .sidebar {
        .tabs {
            .tab {
                height: 60px;
                font-size: 14px;
            }
        }
    }

    .tab-travel, 
    .tab-prevalence {
        height: calc(100vh - 58vh);
    }

    .travel-title-container, 
    .prevalence-container {
        h1 {
            &.text-l {
                font-size: 24px;
            }
        }

        p {
            font-size: 13px;
        }
    }

    .tab-travel .travel-title-container,
    .prevalence-container{
        padding: 0 30px;
    }

    .disclaimer {
        padding-left: 30px;
        padding-right: 30px;
    }

    .tab-travel {
        .travel-advice {
            ul {
                display: block;

                li {
                    width: 100%;
                    line-height: 2;
                }
            }
        }
    }
}

.loader-parent {
    position: fixed;
    z-index: 9999;
    background: #ffff;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

    .loader {
        position: relative;
    
        .svg-complete {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 100%;
            overflow: hidden;
            animation: svgLoad 5s linear;
            transform: rotate(180deg);
    
            img {
                transform: rotate(180deg) translate(0, 0);
            }
        }
    }

    .loader-message {
        text-transform: uppercase;
        margin-top: 20px;
    }
}

.loader-parent.hide-loader {
    display: none;
}
        
@keyframes svgLoad {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}
        
@keyframes hideLoader {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.icon-vp {
    &::before {
        display: inline-block;
        content: "";
        width: 12px;
        height: 12px;
        background-size: cover;
        margin-right: 5px;
    }
}

.icon-vp-animal {
    &::before {
        background-image: url("/dam/campus-sanofi-au/vaxiplace/travel-map/assets/img/diamond.svg");
    }
}

.icon-vp-water {
    &::before {
        background-image: url("/dam/campus-sanofi-au/vaxiplace/travel-map/assets/img/droplet.svg");
    }
}

.icon-vp-body-fluids {
    &::before {
        background-image: url("/dam/campus-sanofi-au/vaxiplace/travel-map/assets/img/fluid.svg");
    }
}

.icon-vp-mother-to-child {
    &::before {
        background-image: url("/dam/campus-sanofi-au/vaxiplace/travel-map/assets/img/bottle.svg");
    }
}

.icon-vp-sex {
    &::before {
        background-image: url("/dam/campus-sanofi-au/vaxiplace/travel-map/assets/img/heart.svg");
    }
}

.icon-vp-air-borne {
    &::before {
        background-image: url("/dam/campus-sanofi-au/vaxiplace/travel-map/assets/img/virus.svg");
    }
}

.icon-vp-contaminated {
    &::before {
        background-image: url("/dam/campus-sanofi-au/vaxiplace/travel-map/assets/img/bacteria.svg");
    }
}