/* COURSE MAP STYLE */

.course-date, .course-place {
    font-weight: bold;
}

#courses {
    background-color: #859aaa;
    position: relative;
}

#courses .inner-content ul {
    width: 40%;
}

#courses .inner-content {
    padding-top: 30px;
    color: #f0bf55;
    min-height: 540px;
    z-index: 20;
}

#courses a, #courses a:visited {
    color: #f0bf55;
}

#courses .inner-content h2 {
    margin-top: 0;
}

#courses p {
    width: 50%;
    margin-top: 20px;
    font-weight: bold;
    font-family: "Lora", serif;
}

@media all and (max-width: 600px) {
    #courses p {
        width: 100%;
    }
    #courses .inner-content ul {
        width: auto;
    }
    #courses .inner-content {
        padding-bottom: 250px;
    }
}

#courses #map-container {
    position: absolute;
    width: 100%;
    height: 446px;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

#courses #map {
    position: absolute;
    width: 1800px;
    height: 446px;
    bottom: 0;
    left: calc(50% - 900px);
}

#courses #map-img {
    width: 100%;
    height: 100%;
    display: block;
}

@media all and (max-width: 600px) {

    #courses #map {
        width: 300vw;
        height: calc(300vw / 4.04);
        left: calc(50% - 150vw);
    }
}

#courses ul#course-list {
    display: inline-block;
    flex-grow: 1;
    flex-basis: 400px;
    padding-left: 30px;
}

#courses #map svg.map-pin {
    width: 22px;
    height: 22px;
    stroke: #eca724;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: #eca724;
    z-index: 1;

    transition: all 0.3s ease-in;
    pointer-events: auto;
}

#courses #map svg.map-pin:hover {
    cursor:pointer;
    filter: drop-shadow(0 0 8px rgb(236, 167, 36));
    transition: all 0.3s ease-in;
}

#courses #map > div {
    position: absolute;
}

#courses #map div.map-tooltip {
    position: absolute;
    z-index: 100;
    width: 250px;
    background-color: #d7eaf1;
    border: 1px solid #2e3561;
    overflow-wrap: break-word;
    visibility: hidden;
    display: none;
    opacity: 0;
}

#courses #map div.map-tooltip h2 {
    font-size: 14pt;
    font-weight: bold;
    margin: 0;
    padding: 10px 10px 2px 10px;
}

#courses #map div.map-tooltip ul {
    font-size: 10pt;
    padding: 5px 5px 5px 25px;
}

#courses #map div:hover div.map-tooltip {
    visibility: visible;
    display: block;
    opacity: 1;
    left: -120px;
    bottom: 30px;
    transition: all 0.2s ease-in;
}
