
/*
 * Map
 *
 * Structure:
 * .tb-map
 */

// Stretch map to fit parent bounds
.tb-map {
    position: relative;
    width: 100%;
    overflow: hidden;

    // Always leave some space for scrolling
    height: 85vh;

    /*
     * TODO: Evaluate if this makes sense.
     * Not clear why this margin is defined like this.
     */
    p + & {
        margin-top: 2rem;
    }

    @media screen and (min-width: 601px) {
        display: flex;
    }
}

// Dynamic map rendered via poi:map viewhelper
.tb-map--article-toursprung,
.tb-map--article-google-maps {
    height: 20rem;
}

// Static map rendered via poi:map viewhelper
.tb-map--article-static-dynamic-switch {
    height: auto;
    cursor: pointer;
}

.tb-map-renderer {
    position: relative;
    z-index: 0;
    flex: 1;
    width: 100%;
    height: 100%;
}

.tb-map-renderer__map-container {
    width: 100%;
    height: 100%;
}

.tb-map-renderer__info-window-rendering-helper {
    display: none;
}

body {
    .leaflet-popup-content-wrapper {
        margin: 0;
        border-radius: 0;
    }
}
