#map{
    width: 100%;
    border:0px solid red;
    position: fixed;
    /* the map fills the whole frame: the toolbar floats over it */
    top: 0;
    bottom: 0;
    left: 0;
}

button[title=Attributions]{

}
.ol-attribution{
    bottom:50px !important;
}
.navbar{
    
    margin-bottom: 0px;
   
}
.twitter-typeahead{
    padding:0px;
    
}
.mytoolbar{
    padding:0px;
    
    padding-left:5px;
    padding-top:5px;
}
.dropdown-menu{
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    
}
.my_layerswitcher {
    text-align: left;
    padding:20px;
    padding-top:0px;
    list-style-type:none;
    white-space: nowrap;
    background-color: #ffffff;

}
.my_layerswitcher *{
    list-style-type:none;
    margin:0px;
    padding-left: 0px; 
}
.my_layerswitcher #ops_layertree ul,.my_layerswitcher #ops_layertree li{
    padding-left:10px;				
}
.my_layerswitcher #ops_layertree button{
    border-radius:5px; 
    border:1px solid #dadada;
    background-color: transparent;
    margin:4px;
    height:20px;
    width:20px;
    text-align: center
}
/* ---- popup of the map (OPS_Map.popUp): one look for every layer ----
   The descriptions come from many sources (KML of the caves, fauna,
   temperatures, tracings, older portals through the proxy): the popup sizes
   itself on its content up to a maximum, scrolls inside, and wraps anything
   long, so no table or name leaves the box. */
.popover{
    width: max-content;
    min-width: 220px;
    max-width: min(420px, calc(100vw - 20px));
    padding: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .08);
    font-size: 13px;
    line-height: 1.45;
    color: #222;
}
.popover.bottom > .arrow:after{
    border-bottom-color: #f6f7f9;
}
.popover-title{
    position: relative;
    margin: 0;
    padding: 10px 46px 9px 14px;
    background: #f6f7f9;
    border-bottom: 1px solid #e6e8eb;
    border-radius: 10px 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}
.ops-popup-close{
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 100%;
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.ops-popup-close:hover,
.ops-popup-close:focus{
    color: #000;
}
.popover-content{
    padding: 10px 14px 12px;
    /* room for the toolbar above and the scale and buttons below */
    max-height: clamp(120px, calc(100vh - 220px), 380px);
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: anywhere;
}
.popover-content em{
    color: #607080;
}
.popover-content small{
    color: #666;
}
.popover-content img{
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 6px;
}
.popover-content .table-responsive{
    margin: 0;
    border: 0;
    overflow: visible;
}
.popover-content table{
    width: 100%;
    margin: 6px 0;
    font-size: 12px;
    border-collapse: collapse;
}
.popover-content table > tbody > tr > td,
.popover-content table > thead > tr > th{
    padding: 5px 4px;
    vertical-align: top;
    border-top: 1px solid #eef0f2;
}
.popover-content table > tbody > tr:first-child > td{
    border-top: 0;
}
/* the links at the bottom of every description (open, go to, list) */
.popover-content > div.text-right:last-child{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: 1px solid #eef0f2;
    /* always visible while a long list scrolls */
    position: sticky;
    bottom: -12px;
    padding-bottom: 12px;
    margin-bottom: -12px;
    background: #fff;
}
.popover-content > div.text-right:last-child > a{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 4px 12px;
    border-radius: 17px;
    background: #eef3f8;
    color: #1f5f99;
    text-decoration: none;
    white-space: nowrap;
}
.popover-content > div.text-right:last-child > a:hover,
.popover-content > div.text-right:last-child > a:focus{
    background: #dde8f3;
}
.popover-content .btn{
    min-height: 34px;
}
/* list of the points under the pointer (OPS_Map.showHitListPopup) */
.ops-popup-list > div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 4px 0;
    border-bottom: 1px solid #eef0f2;
}
.ops-popup-list > div:last-child{
    border-bottom: 0;
}
.ops-popup-list .glyphicon{
    color: #888;
}
/* fauna: icon, name and, below, category and date of the last sighting */
.ops-fauna-table td:first-child{
    width: 18px;
    padding-top: 7px;
}
.ops-fauna-meta{
    font-size: 11px;
    color: #777;
}
@media (pointer: coarse){
    .popover-content > div.text-right:last-child > a,
    .popover-content .btn,
    .ops-popup-list > div{
        min-height: 44px;
    }
}

/* ---- compact toolbar floating over the map (small iframes) ---- */
#navbar.navbar{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    /* clicks between the buttons reach the map */
    pointer-events: none;
}
#navbar .mytoolbar{
    display: inline-block;
    margin: 0;
    padding: 6px 0 0 6px;
    pointer-events: auto;
}
#navbar .form-group{
    margin-bottom: 0;
    white-space: nowrap;
}
#navbar .btn-group{
    vertical-align: top;
}
#navbar .btn{
    height: 30px;
    padding: 4px 9px;
    font-size: 13px;
    line-height: 20px;
    color: #333;
    background: #fff;
    border: 1px solid rgba(0,0,0,.2);
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
#navbar #searchText{
    width: 220px;
    height: 30px;
    padding: 4px 8px;
    font-size: 13px;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
#navbar .tt-menu{
    max-width: calc(100vw - 20px);
}
#navbar .dropdown-menu{
    max-height: calc(100vh - 50px);
}
/* OpenLayers zoom below the toolbar */
.ol-zoom{
    top: 44px;
}
@media (max-width: 360px){
    #navbar #searchText{
        width: calc(100vw - 100px);
    }
}
/* the popup of a point stays above the zoom buttons, the mouse position and
   the other map controls */
.ol-overlaycontainer-stopevent > .ops-popup-overlay{
    z-index: 101;
}
/* over a map inside a page, when the wheel scrolls the page instead of zooming (OPS_Map.showWheelHint) */
.ops-wheel-hint{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
.ops-wheel-hint.visible{
    opacity: 1;
    transition-duration: 0.15s;
}
