/*
 * Farger:
 * Mørk grønn: #016976
 * Lys grønn: #B6CED4
 *
 */
.olkweb3-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  margin: 0px 0 10px 0;
  font-size: 14px;
  width: 250px;
  padding: 5px;
}

#olkweb3-filter {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  gap: 32px;
  align-content: center;
  padding: 1em;

  input[type="checkbox"] {
      display: inline-block;
      vertical-align: top;
  }
}

.olkweb3-available-number {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 0 0.3em;
  border-radius: 100%;
  border: 1px solid #016976;
  font-size: 0.8em;
}

.olkweb3-row-phone {
  display: none;
}

.olkweb3-dropdown {
    padding:5px;
    width: 30%;
    display: inline-block;
    vertical-align: middle;
}

.olkweb3-filter-dropdown {
    border: 2px solid #faa32f;
    color: #016976;
    border-radius: 5px;
    /*
    min-height: 40px!important;
    height: 40px!important;
    padding: 4px 16px;
    */
}

.olkweb3-filter-dropdown option {
  /*background-color: #B6CED4;*/
  color: #016976;
}

.olkweb3-filter-checkbox-label {
  color: #016976;
  margin: 0 1em;
}

.olkweb3-filter-checkbox-wrapper {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-content: center;
}

.olkweb3-vacancies {
  align-self: center;
}

/*
 * Fancy checkbox
 */
.olkweb3-filter-checkbox {
  visibility: hidden;
  display: none !important;
}

.olkweb3-filter-checkbox-wrapper .toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
  align-self: center;
}
.olkweb3-filter-checkbox-wrapper .toggle:before {
  content: "";
  position: relative;
  top: 3px;
  left: 3px;
  width: 34px;
  height: 14px;
  display: block;
  background: #d5e9e8;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.olkweb3-filter-checkbox-wrapper .toggle span {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  display: block;
  background: #fefefe;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(154, 153, 153, 0.5);
  transition: all 0.2s ease;
}
.olkweb3-filter-checkbox-wrapper .toggle span:before {
  content: "";
  position: absolute;
  display: block;
  margin: -18px;
  width: 56px;
  height: 56px;
  background: rgba(79, 46, 220, 0.5);
  border-radius: 50%;
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
}

.olkweb3-filter-checkbox-wrapper #olkweb3-vacancies:checked + .toggle:before {
  background: #d5e9e8;
}
.olkweb3-filter-checkbox-wrapper #olkweb3-vacancies:checked + .toggle span {
  background: #faa32f;
  transform: translateX(20px);
  transition: all 0.2s cubic-bezier(0.8, 0.4, 0.3, 1.25), background 0.15s ease;
  box-shadow: 0 3px 8px rgba(79, 46, 220, 0.2);
}
.olkweb3-filter-checkbox-wrapper #olkweb3-vacancies:checked + .toggle span:before {
  transform: scale(1);
  opacity: 0;
  transition: all 0.4s ease;
}


/*
 * / Fancy checkbox
 */

.olkweb3-hidden {
    display: none !important;
    visibility: hidden;
}

.olkweb3-visible {
    display: inline !important;
    visibility: visible;
}

/* The Modal (background) */
.olkweb3-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 100;
    /* Sit on top */
    left: 0;
    top: 0;
    min-width: 100vw;
    /* Full width */
    height: 100vh;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
/*
.olkweb3-modal-content {
    outline: none;
    background-color: #fefefe;
    border: 1px solid #fff;
    margin: 15% auto;
    padding: 20px;
    height: 400px;
    width: 700px;
}
*/

/* The Close Button */
/*
.olkweb3-close {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 0px;
    color: black;
    float: right;
    font-size: 20px;
    font-weight: normal;
}
*/

/*
#olkweb3-map {
    position: absolute;
    border: 1px solid black;
    top: 80px;
    right: 0px;
    width: 400px;
    height: 300px;
    margin: 10px;
}
*/

/*
 * New modal
 */
/*
#olkweb3-contentcontainer {
  background-color: #B6CED4;
  border-radius: 5px;
}
*/

.olkweb3-modal-content {
  border: 4px solid #faa32f;
  /*box-shadow: 7px 7px 7px rgba(1,105,118,0.5);*/
  box-shadow: 7px 7px 7px rgba(0,0,0,0.5);
}

@media screen and (min-width: 601px) {
    #olkweb3-contentcontainer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /*grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));*/
        /*grid-template-rows: 30px 500px;*/
        /*grid-template-rows: auto auto;*/
        /*  grid-template-columns: auto auto;*/
        grid-template-areas:
        "titlebar titlebar"
        "info map"
        ;
        /*width: 80vw;*/
    }
    .olkweb3-modal-content {
        background-color: #fefefe;
        margin: 15% auto;
        padding: 20px;
        min-height: 400px;
        min-width: 600px;
        width: 600px;
        height: 400px;
        border-radius: 5px;
    }

    #olkweb3-map {
        position: relative;
        grid-area: map;
        width: 300px;
        height: 300px;
        border: 1px solid #c0c0c0;
        /*background-color: red;*/
    }
}

@media screen and (max-width: 600px) {
    #olkweb3-contentcontainer {
        display: inline-block;
        /*grid-template-rows: 1fr 1fr;*/
        /*grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));*/
        /*grid-template-rows: 30px 500px;*/
        /*grid-template-rows: auto auto;*/
        /*grid-template-rows: auto auto;
        grid-template-areas:
        " . close"
        "info"
        "map"
    ;*/
        /*width: 80vw;*/
    }
    .olkweb3-modal-content {
        position: relative;
        top: 0px;
        left: 0px;
        background-color: #fefefe;
        /*border: 1px solid red;*/
        margin: 15% auto;
        padding: 5px;
        /*min-height: 400px;
        min-width: 250px;*/
        width: 330px;
        /*height: 300px;*/
        border-radius: 15px;
    }

    #olkweb3-map {
        background-color: red;
        position: relative;
        top: 5px;
        /*right: 0px;*/
        border: 1px solid #c0c0c0;
        /*grid-area: map;*/
        margin: 5px;
        width: 310px;
        /*min-width: 250px;*/
        height: 200px;
        /*background-color: red;*/
    }
}

/*
#olkweb3-companyInfo .row {
    border: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#olkweb3-companyInfo .olkweb3-column {
    border: none;
    display: inline-flex;
    flex-direction: column;
    flex: 1;
}*/

.olkweb3-titlebar {
  min-height: 40px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  grid-area: titlebar;
}

.olkweb3-company-name {
  font-size: 20px;
  font-weight: bold;
}
.olkweb3-close {
    border: none;
    text-decoration: none;
    cursor: pointer;
    color: #faa32f;
}
.olkweb3-close:hover {
    color: #007d61;
}

.olkweb3-close i {
  font-size: 1.4em;
}

#olkweb3-companyInfo {
  grid-area: info;
  background-color: #d5e9e8;
  border-radius: 5px 0 0 5px;
}

.olkweb3-companyInfo-icon {
    color: #016976;
}

.marker {
    background-image: url('/wp-content/plugins/olkweb3-universal/img/custom_marker.png');
    background-size: cover;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

#olkweb3-map_container { /* Main Page Map */
    position: relative;
    top: 0px;
    left: 0px;
    height: 400px;
    border: 1px solid gray;

    /*display: flex;
    justify-content: center;
    margin: 15px;
    /*width: 100%;*/
    /*display: block;*/
    /*visibility: hidden;*/
    /*min-height: 600px;
    max-height: 1000px;*/
}


#olk_container_old {
    /* border: 1px solid red;
    background-color: #C0C0C0; */
    /*padding: 15px; */
    margin: 15px;
    /* margin-top: 15px; */
    /*z-index: 100;*/
    /*min-width: calc(100vw - 60px);*/
    background-color: white;
    /*min-height: 800px;*/
}

.olkweb3-menuImg {
    width: 55px;
    height: 40px;
    margin-right: 10px;
}
/* Make sure the mouse scroll button actually zooms in on the mouse position */

.mapboxgl-map {
    position: relative;
    left: 0;
    top: 0;
}

.olkweb3-mapboxgl-canvas {
    position: relative;
    left: 0;
    top: 0;
}



.olkweb3-mapboxgl-popup-close-button {
    display:none;
}

.olkweb3-col-sm {
    cursor: pointer;
}

.olkweb3-mapboxgl-popup-content {
    font-family: 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
    font-size: 12px;
    /*font: 400 15px/22px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;*/
    padding: 5px;
    /*width: 180px;*/
    border: none;
}

.olkweb3-mapboxgl-popup-content span {
    /*font: 400 15px/22px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
    padding: 5px;*/
    font-weight: bold;
    font-size: 14px;
}

mapboxgl-popup-content .olkweb3-navlink {
    color: #84d0b2;
    text-decoration:none;
    border: none;
    outline: none;
    padding: 0px;
    position:absolute;
    top: 5px;
    right: 5px;
}

.mapboxgl-popup-close-button{
    display: none;
}

a:link, a:hover, a:visited, a:active {
    text-decoration:none;
    border: none;
    outline: none;
}

.olkweb3-mapsign-company-name {
  font-weight: bold;
}

#olkweb3-company_card {
    display:flex;
    flex-direction: column;
    width:400px;
    height:300px;
    visibility: hidden;
}

/* Absolute Center Spinner */
.olkweb3-loading {
    border: 5px solid;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
}

/* Transparent Overlay */
.olkweb3-loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255,255,255,0.5);
}

/* Hides these rules from IE9 and below */
.olkweb3-loading:not(:required) {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.olkweb3-loading:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 50px;
    height: 50px;
    margin-top: -0.5em;

    border: 15px solid rgba(100, 150, 143, 1.0);
    border-radius: 100%;
    border-bottom-color: transparent;
    -webkit-animation: spinner 1s linear 0s infinite;
    animation: spinner 1s linear 0s infinite;


}

/* Spinner Animation */
@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Float four columns side by side */
.olkweb3-card-column {
    cursor: pointer;
    float: left;
    width: 33%;
    padding: 5px 10px;
}

/* Remove extra left and right margins, due to padding in columns */
.olkweb3-card-row {margin: 0 -5px;}

/* Clear floats after the columns */
.olkweb3-card-row:after {
    content: "";
    display: table;
    clear: both;
}

/* Style the counter cards */
.olkweb3-card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */
    padding: 16px;
    text-align: left;
    background-color: #f1f1f1;
    min-height: 200px;
    max-height: 200px;
}

/* Responsive columns - one column layout (vertical) on small screens */
@media screen and (max-width: 600px) {
    .olkweb3-card-column {
        width: 100%;
        display: block;
        margin-bottom: 20px;
    }

    #olkweb3-map_container {
        /*width: 95%;*/
    }
}

#olkweb3-olk_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.olkweb3-company-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2.4em 4em auto;
  grid-template-areas:
    "orgLocation orgno"
    "name name"
    "position position"
    ;
  margin: 1em;
  padding: 0.8em;
  box-shadow: rgba(0,0,0,.15) 0 5px 15px 0;
  transition: box-shadow .3s ease-out;
  cursor: pointer;
  color: #2e6f7e;
  background-color: #d5e9e8;
}

.olkweb3-position-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "orgLocation"
    "name"
    "position"
    "vacancies"
    "orgno"
    ;
  margin: 1em;
  padding: 0.8em;
  box-shadow: rgba(0,0,0,.15) 0 5px 15px 0;
  transition: box-shadow .3s ease-out;
  cursor: pointer;
  color: #016976;
  background-color: #d5e9e8;
  /*overflow-y: hidden; /* Hide vertical scrollbar */
}

.olkweb3-company-card:hover, .olkweb3-position-card:hover {
  color: #B6CED4;
  background-color: #016976;
}

.olkweb3-company-card-field-name {
  grid-area: name;
  font-size: 1.1em;
  font-weight: 400;
  /*height: 20px;*/
}

.olkweb3-company-card-field-position {
  top: 20px;
  grid-area: position;
}
.olkweb3-company-card-field-position ul {
  margin: 1em 0.5em;
  padding: 0;
  list-style-type: none;
}
.olkweb3-company-card-field-position li {
  margin-top: 0.0em;
}

.olkweb3-company-card-field-position img {
  width: 2em;
  height: 2em;
}

.olkweb3-company-card-field-vacancies {
  grid-area: vacancies;
    /*border: 1px solid red;*/
  overflow: auto;
}

.olkweb3-company-card-field-vacancies li {
  margin: 4px 0;
}

.olkweb3-company-card-field-vacancies li img {
    height: 30px;
    width: 30px;
    margin-right: 1em;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    border-radius: 100%;
}

.olkweb3-company-card-field-orgno {
  grid-area: orgno;
  font-style: italic;
  font-size: 0.9em;
  text-align: right;
}

.olkweb3-company-card-field-orgLocation {
  grid-area: orgLocation;
}


