
/*
// Maps for Museumstag (WSM)
// Modular extendable web library.
// Written 2019 by Arne Kowalewski for karnbrock GmbH
*/

#mainframe  {
    /* border: 1px gray solid; */
        width: 100%;
        min-height: 600px;
    }

#mainframe-backend  {
/* border: 1px gray solid; */
    width: 100%;
    min-height: 300px;
}


/* ==========================================
    Custom appearance,
    this may be changed for every implementation of the maps script.
============================================= */

.wsm-items  {
    margin-left: 10px;
}

.wsm-title  {
    color: black;
    font-size: 1.625rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.wsm-subtitle   {
    color: #000;
    font-size: 1.625rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.wsm-item   {
    font-size: 1.25rem;
    line-height: 1.4;
}

.wsm-item.open, .wsm-item-index, .wsm-item a, .wsm-item:hover .wsm-item-name   {
    color: #afc424;
    font-weight: bold;
}

.wsm-item-details, .wsm-item a   {
    font-weight: normal;
}

/* ==========================================
    POPUP styles
============================================= */

.leaflet-popup-content a     {
    text-decoration: none;
}

.mtmaps-popup-title {
    font-size: 12pt;
    font-weight: bold;
    color: #ad1010;
}

.mtmaps-popup-place {
    font-weight: bold;
    margin-bottom: 20px;
    color: black;
}

.mtmaps-popup-image {
    max-width: 80%;
    margin-bottom: 20px;
}

.mtmaps-popup-image ~ .mtmaps-popup-tags {
    margin-top: -15px;
}

.mtmaps-popup-tags {
    margin-bottom: 20px;
}

.mtmaps-popup-goto {
    font-size: 120%;
    font-weight: bold;
    color: #ad1010;
}

.mtmaps-popup-goto:hover {
    font-size: 120%;
    font-weight: bold;
    color: #6b0d0d;
}

.mtmaps-popup-type  {
    font-weight: bold;
    float: left;
    width: 60px;
}

.mtmaps-popup-type-right  {
    margin-left: 60px;
}



/* ==========================================
    CORE styles,
    no need to change anything here if you jut want to adjust the apperance
============================================= */

.wsm-main   {
    font-family: Arial;
    display: grid;
    grid-template-columns: 2fr 1fr;
}


@media (min-width: 1025px) {
    .wsm-left   {
        max-height: 400px; /* To avoid "stretching" of the map to the bottom if the school list becomes too large */
    }
}

@media (max-width: 1024px) {
    .wsm-main   {
        grid-template-columns: 1fr;
    }

    .wsm-left   {
        height: 400px;
        max-height: 400px; /* To avoid "stretching" of the map to the bottom if the school list becomes too large */
    }
}

@media (max-width: 600px) {
    .wsm-left   {
        height: 260px;
        max-height: 260px; /* To avoid "stretching" of the map to the bottom if the school list becomes too large */
    }
}

.wsm-left   {
  /*  position: absolute; left: 0; top: 0; bottom: 0; right: 33%; */
}

.wsm-right   {
 /*    position: absolute; right: 0; top: 0; bottom: 0; width: calc(32% - 10px); */
    padding: 20px;
}

.wsm-item:not(.open) .wsm-item-details  {
    display: none;
}

.wsm-item   {
    position: relative;
    padding-left: 1.5em;
}

.wsm-item-name  {
    cursor: pointer;
}

.wsm-item-index {
    left: 0;
    position: absolute;
}

.wsm-label  {
    border: none;
    background: none;
    font-size: 1.0rem;
    box-shadow: none;
    color: white;
    font-weight: bold;
}

.wsm-popup  {
    background: none;
    border: none;
}

.mtmaps-popup-redpanel  {
    display: block;
    background: #ad1010;
    background-image: linear-gradient(#ce1313, #d73f3f);
    color: white !important;
    padding: 20px 20px;
    margin: 0 -20px; /* -19px = negative default margin of leaflet popup */
    transition: all 0.2s ease-out;
}

.mtmaps-popup-image {
    border-radius: 3px;
}