/* Karten-spezifische Styles
 * Eingebunden via includes/meta-map.php auf allen Karten-Pages
 * (karte/index.php, karte/eintrag.php).
 *
 * Vorher inline dupliziert in meta-map.php + karte/index.php.
 */


/* ===========================================================
 * Map-Container + Mapbox-Popups (aus includes/meta-map.php)
 * =========================================================== */

body {
    margin: 0;
    padding: 0;
}

#header {
    margin-bottom: 10px;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

#map2.mapboxgl-map {
    min-height: 205px;
    height: 100%;
}

/* Custom Popup-Layout (Bild links, Titel + Text rechts, "mehr"-Button) */
.thepopup > div {
    background-color: transparent;
}

.thepopup {
    margin: 0;
}

.popcont {
    max-width: 400px;
}

.popcont p {
    font-family: 'Alegreya Sans', sans-serif;
    padding: 10px 20px 50px;
}

.popimg {
    max-width: 150px;
    padding: 10px 0 0 20px;
}

.popimg,
.popcont,
.poptitle {
    position: relative;
}

.popimg,
.popcont {
    float: left;
}

.poptitle {
    padding: 20px;
}

.poptitle h3 {
    width: 80%;
}

.popmehr {
    position: absolute;
    height: 30px;
    background-color: #f5f5f5;
    color: #555;
    padding: 5px 15px;
    right: 10px;
    bottom: 20px;
    border-radius: 20px;
}

.popmehr a {
    color: #555;
    font-family: 'Catamaran';
    font-size: 15px;
}

.popmehr a:hover {
    color: #f00;
}

i.fa {
    color: #555;
}

.thepop img {
    float: left;
    padding: 20px;
}

/* Mapbox-internal: Popup-Close-Button + Tip ausblenden */
.mapboxgl-popup-close-button {
    color: #f00;
    font-size: 25px;
    padding: 3px 8px 8px;
    border-radius: 30px;
    border: 2px solid #f00;
    margin: 10px;
    z-index: 2;
	height: 36px;
}

.mapboxgl-popup-tip {
    display: none !important;
}

.mapboxgl-popup-content {
    box-shadow: inherit;
    background-color: #fff !important;
    padding: 0;
    width: 560px;
}

/* Map-Popup-Typografie - WICHTIG: gescoped auf .mapboxgl-popup-content,
 * sonst greifen die Selektoren global und shrunken z.B. die Adress-
 * Anzeige auf karte/eintrag.php (Bug pre BS3-Removal nicht aufgefallen,
 * weil viele andere p-Elemente eigene font-size-Overrides haben). */
.mapboxgl-popup-content h3 {
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
    color: #333;
}

.mapboxgl-popup-content p {
    font-size: 1rem;
    color: #333;
}


/* Tablet */
@media only screen and (max-width: 1024px) {
    .mapboxgl-popup-close-button {
        margin: 10px;
    }

    .mapboxgl-popup-content {
        width: 600px;
    }

    .poptitle {
        width: 532px;
    }

    .popcont {
        max-width: 350px;
    }

    .popimg {
        max-width: 120px;
    }

    .popimg img {
        max-width: 138px;
    }
}


/* iPhone / Android */
@media only screen and (max-width: 768px) {
    .mapboxgl-popup-close-button {
        margin: 15px 15px 0 0;
        font-size: 15px;
        line-height: 15px;
        padding: 2px 6px;
    }

    .mapboxgl-popup-content {
        width: 320px;
    }

    .poptitle {
        width: 280px;
    }

    .popcont {
        max-width: 218px;
    }

    .popimg {
        max-width: 70px;
    }

    .popimg img {
        max-width: 58px;
    }

    .popimg,
    .popcont,
    .poptitle {
        background-color: #fefefe;
        position: relative;
        float: left;
        margin: 6px;
    }

    .popimg,
    .poptitle {
        padding: 6px 6px 0;
    }

    .popcont p {
        padding: 6px 6px 20px;
    }

    .poptitle h3 {
        width: 100%;
    }

    .popmehr {
        height: 25px;
        padding: 4px;
        text-indent: 2px;
        bottom: 8px;
    }

    .mapboxgl-popup-content p {
        font-size: 0.85rem;
        line-height: 0.95rem;
        padding: 4px;
    }

    .mapboxgl-popup-content h3 {
        padding: 6px;
    }
}


/* ===========================================================
 * Karten-Index-Page (aus karte/index.php)
 * =========================================================== */

#wrap {
    width: 100%;
}

.mapnav {
    position: absolute;
    right: -20px;
    top: 175px;
    width: 280px;
    font-family: 'Catamaran';
    font-size: 15px;
}

.mapnav a {
    color: #333;
}

.mapnav a:hover {
    color: #f00;
}

.ortebutton {
    width: 100%;
    height: auto;
    position: relative;
    background: #fff;
    margin-bottom: 10px;
    z-index: 10;
    color: #2b2b2b;
    border-radius: 30px;
    max-width: 236px;
    font-family: Catamaran;
    font-size: 15px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
}

.start {
    padding: 14px 20px 15px;
    display: block;
}

.drop-sub {
    background-color: #f5f5f5;
    padding: 20px 18px;
    display: none;
}

.drop-nav {
    cursor: pointer;
}

#menulinks {
    background-color: #f5f5f5;
}

#menulinks a {
    display: block;
    margin-bottom: 6px;
}

#menulinks i {
    color: #f5f5f5 !important;
    border: 1px solid #f00;
    margin-right: 8px;
    border-radius: 15px;
    font-size: 15px;
}

#menulinks .active i {
    color: #f00 !important;
    margin-right: 8px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 14px;
}

@media only screen and (max-width: 768px) {
    .mapnav {
        right: -30px;
        top: 175px;
    }
}


/* ===========================================================
 * Karten-Detail-Page Mobile-Overrides (aus karte/eintrag.php)
 * =========================================================== */
@media only screen and (max-width: 668px) {
    .boxed-wrapper {
        background: rgba(0, 0, 0, 1);
    }

    #hochftxt {
        margin-top: -15px !important;
    }

    #hochfbild {
        width: 100% !important;
        margin: 0 !important;
    }
}
