:root {
    --pcv-orange: #f0aa00;
    --pcv-light-orange: #f5af03;
    --pcv-dark-orange: #b88606;
    --pcv-blue: #043667;
    --pcv-light-grey: #dddddd;
    --pcv-font-color: #444444;
}

html {
    overflow: hidden;
}

body {
    background-color: #ffffff;
    overflow: hidden;
}

h1 {
    position: fixed;
    width: 100%;
    height: 60px;
    font-size: 24px;
    line-height: 40px;
    background-color: #ffffff;
    margin: 0 0 50px 0;
}

h2 {
    margin: 32px 0 10px 0;
}

h3 {
    margin: 32px 0 6px 0;
    font-size: 16px;
    font-weight: 400;
}

.dummy {
    width: 100%;
    height: 60px;
}

.span-link {
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.1s ease-in-out;
}

.span-link:hover {
    color: var(--pcv-orange);
}

.button-img {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

#container {
    position: absolute;
    width: 100%;
    top: 0;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
}

#search-container {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 395px;
    height: 50px;
    margin: 0;
    z-index: 999;
}

#search-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    padding-left: 50px;
    padding-right: 100px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 200;
    color: var(--pcv-font-color);
    -webkit-font-smoothing: antialiased;
    background-image: url('../img/icon_search.png');
    background-position: 13px 13px;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    overflow: scroll;
    box-sizing: border-box;
    border: 1px solid var(--pcv-light-grey);
    border-radius: 8px;
    box-shadow: -5px 5px 2px 0 rgba(0, 0, 0, 0.1);
    z-index: 999;
}

::placeholder {
    color: var(--pcv-light-grey);
}

#search-bar:focus {
    outline-width: 0;
}

#del-button {
    display: none;
    position: absolute;
    top: 15px;
    right: 60px;
    cursor: pointer;
    opacity: 0.5;
    z-index: 999;
    transition: opacity 0.1s ease-in-out;
}

#del-button:hover {
    opacity: 0.8;
}


#menu-button {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    opacity: 0.5;
    z-index: 999;
    transition: opacity 0.1s ease-in-out;
}

#menu-button:hover {
    opacity: 0.8;
}

#menu {
    position: absolute;
    top: 0;
    right: -345px;
    width: 340px;
    height: 100%;
    color: var(--pcv-font-color);
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 200;
    background-color: #ffffff;
    transition: right 0.1s ease-in-out;
    box-shadow: -5px 5px 2px 0 rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

#menu.active {
    right: 0;
}

#menu-header {
    position: absolute;
    top: 0;
    left: 10px;
    width: 320px;
    height: 70px;
    font-size: 20px;
    padding-left: 60px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--pcv-light-grey);
}

#menu-header span {
    line-height: 70px;
}

#menu-close-button {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    max-height: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.1s ease-in-out;
}

#menu-close-button:hover {
    opacity: 0.8;
}

#menu-content {
    position: absolute;
    top: 70px;
    width: 100%;
    height: calc(100% - 70px);
}

#menu-list {
    position: absolute;
    top: 0;
    right: 10px;
    width: 100%;
    list-style: none;
    text-align: right;
}

#menu-list li {
    padding: 8px;
    font-size: 24px;
    line-height: 30px;
    height: 30px;
    cursor: pointer;
    transition: color 0.1s ease-in-out;
}

#menu-list li img {
    float: right;
    margin-top: 1px;
    margin-left: 25px;
    max-width: 25px;
    max-height: 25px;
    opacity: 0.75;
    filter: saturate(0) brightness(0.3);
    transition: filter 0.1s ease-in-out;
}

#menu-list li:hover {
    color: var(--pcv-orange);
}

#menu-list li:hover > img {
    filter: saturate(1) brightness(1);
}

.menu-content-page {
    position: absolute;
    top: 10px;
    right: -340px;
    width: 100%;
    height: calc(100% - 10px);
    padding: 0 20px 10px 20px;
    background-color: #ffffff;
    overflow-y: scroll;
    box-sizing: border-box;
    transition: right 0.2s ease-in-out;
    z-index: 99998;
}

.menu-content-page a {
    color: #000000;
    transition: color 0.1s ease-in-out;
}

.menu-content-page a:hover {
    color: var(--pcv-orange);
}

.menu-content-page.active {
    right: 0;
}

#menu-content-page-close-button {
    position: absolute;
    top: 20px;
    right: -320px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.1s ease-in-out, right 0.2s ease-in-out;
    z-index: 99999;
}

#menu-content-page-close-button.active {
    right: 20px;
}

#menu-content-page-close-button:hover {
    opacity: 0.8;
}

#menu-content-page-close-button img {
    max-width: 20px;
    max-height: 20px;
}

#greyout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 9998;
}

#greyout.active {
    opacity: 0.3;
    pointer-events: auto;
}

#sidebar {
    position: absolute;
    top: 0;
    right: -425px;
    width: 420px;
    height: 100%;
    background-color: #ffffff;
    transition: right 0.1s ease-in-out;
    box-shadow: -5px 5px 2px 0 rgba(0, 0, 0, 0.1);
    z-index: 998;
}

#sidebar.active {
    right: 0;
}

#result-container {
    position: absolute;
    top: 80px;
    right: -420px;
    width: 100%;
    height: calc(100% - 81px);
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: #ffffff;
    transition: right 0.4s ease-in-out;
}

#result-container.active {
    right: 0;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: var(--pcv-orange);
}

.result-item {
    display: none;
    position: relative;
    left: 10px;
    width: 390px;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 10px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 200;
    color: var(--pcv-font-color);
    background-color: #fafafa;
    transition: background-color 0.1s ease-in-out,
    color 0.1s ease-in-out,
    font-weight 0.1s ease-in-out,
    box-shadow 0.1s ease-in-out;
    cursor: pointer;
    border-radius: 8px;
}

.result-item:hover > .result-company {
    border-bottom: 1px dotted #ffffff;
}

.result-item:hover > .result-detail a {
    color: #ffffff;
}

.result-item.active {
    color: #ffffff;
    background-color: var(--pcv-orange);
    font-weight: 400;
}

.result.active:after {
    content: '';
    position: absolute;
    bottom: -4px;
}

.result-item.active a {
    color: #ffffff;
}

.result-item.hidden {
    display: none;
}

.result-company {
    position: relative;
    display: inline-block;
    width: 365px;
    height: 24px;
    margin-bottom: 4px;
    font-size: 20px;
    border-bottom: 1px dotted var(--pcv-light-grey);
    transition: border-bottom-color 0.1s ease-in-out;
}

.result-detail {
    position: relative;
    display: inline-block;
    width: 365px;
    padding: 4px 0 4px 0;
    vertical-align: top;
    font-size: 14px;
    line-height: 20px;
}

.result-email {
    padding-left: 1px;
}

.result-tel {
    padding-left: 1px;
}

#detail-container {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
}

#detail-back {
    display: inline-block;
    margin-bottom: 16px;
    padding-left: 12px;
    color: #777777;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.1s ease-in-out;
}

#detail-back:hover {
    color: #000000;
}

#detail-header {
    display: inline-block;
    margin-left: 10px;
}

#detail-company {
    display: inline-block;
    width: 100%;
    padding: 10px;
    margin-bottom: 4px;
    font-size: 24px;
    font-weight: 400;
    border-bottom: 1px dotted var(--pcv-light-grey);
}

.detail-row {
    display: inline-block;
    width: 100%;
    padding: 5px;
    margin-left: 5px;
    vertical-align: bottom;
}

.detail-row a {
    color: #000000;
    transition: color 0.1s ease-in-out;
}

.detail-row a:hover {
    color: var(--pcv-orange);
    transition: color 0.1s ease-in-out;
}

.icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    margin-bottom: 2px;
    vertical-align: middle;
    opacity: 0.5;
    user-select: none;
    transition: filter 0.1s ease-in-out, opacity 0.1s ease-in-out;
}

.icon img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    max-width: 16px;
}

#no-results {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    width: 380px;
    padding-left: 20px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #777;
}

#map {
    position: absolute;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    transition: width 0.1s ease-in-out;
}

.map-cluster {
    text-align: center;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
    color: #dddddd;
    background: url('../img/icon_cluster_neutral.png') no-repeat;
    background-size: 100% 100%;
    transition: width 0.1s ease-in-out,
    height 0.1s ease-in-out,
    top 0.1s ease-in-out,
    left 0.1s ease-in-out,
    font-size 0.1s ease-in-out,
    line-height 0.1s ease-in-out;
}

.map-cluster.hover {
    top: -5px;
    left: -5px;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px;
    line-height: 40px;
}

.popup {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 200;
    color: var(--pcv-font-color);
}

.popup hr {
    border-top: 1px solid var(--pcv-light-grey);
}

@media screen and (pointer: coarse), (pointer: none) {

    #search-container {
        max-width: calc(100% - 70px);
    }

    #search-bar {
        font-size: 20px;
    }

    #sidebar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        height: 50%;
        background-color: #ffffff;
        transition: top 0.1s ease-in-out;
        border: 2px solid var(--pcv-light-grey);
        z-index: 998;
    }

    #sidebar.active {
        top: 50%;
    }

    #result-container {
        top: 100%;
        right: 0;
        height: calc(100% - 10px);
        transition: top 0.4s ease-in-out;
    }

    #result-container.active {
        top: 10px;
    }

    .result-item {
        width: 95%;
        color: #000000;
    }

    .result-company {
        width: 100%;
    }

    .result-detail {
        width: 100%;
    }

    #no-results {
        top: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 460px);
        padding-left: 20px;
    }

    #detail-container {
        top: 10px;
    }

    #detail-header {
        display: none;
    }
}