/**
 * Default styles for capcam-data-maptiler
 */

/* ------------------------------------------------------------------------------- */
/* 
 * info popup
 */

.maplibregl-popup-content {
    width: 248px;
    padding: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);   
}

.maplibregl-popup-content a img {
    width: 100%;
    max-width: 248px;
}

.maplibregl-popup-content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2em;
    text-align: center;
    line-height: 120%;
    letter-spacing: 0.01em;
    margin: 10px 5px 10px 5px;
}

.maplibregl-popup-content p a {
    text-decoration: none;
}

.no-touch .maplibregl-popup-content p a:hover {
    text-decoration: underline;
}

button.capcam-info-close {
    display: none;
}

.no-touch .maplibregl-popup-content:hover button.capcam-info-close {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    padding: 0;
    border: 0;
    background-color: transparent;
}

button.capcam-info-close img {
    width: 32px;
    height: 32px;
}

button.capcam-info-close:hover img {
    filter: invert();
}

/* hintbox variant of the popup */

.hintbox .maplibregl-popup-content {
    width: auto;
}

.hintbox .maplibregl-popup-content p {
    font-weight: 400;
    font-size: 1em;
    text-align: center;
    line-height: 120%;
    letter-spacing: 0.01em;
    margin: 4px;
}

/* ------------------------------------------------------------------------------- */
/* layerSwitcherControl */

.maplibregl-ctrl-basemaps {
  display: flex;
  flex-direction: row;
  pointer-events: auto;
  bottom: 15px;
  position: relative;
}
.maplibregl-ctrl-basemaps.reverse {
  flex-direction: row-reverse;
}
.maplibregl-ctrl-basemaps.column {
  flex-direction: column;
}
.maplibregl-ctrl-basemaps.column.reverse {
  flex-direction: column-reverse;
}
.maplibregl-ctrl-basemaps .basemap {
  width: 64px;
  height: 64px;
  margin: 2px;
  border: 2px solid #ccc;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.maplibregl-ctrl-basemaps .basemap.active {
  border-color: orange;
  box-shadow: 2px 2px 4px #000;
}
.maplibregl-ctrl-basemaps.closed .basemap {
  display: none;
}
.maplibregl-ctrl-basemaps.closed .basemap.active {
  display: block;
  border: 2px solid #ccc;
}

.maplibregl-ctrl-bottom-left .maplibregl-ctrl.maplibregl-ctrl-basemaps {
  margin-bottom: -4px;
}

/* ------------------------------------------------------------------------------- */
/* attribution */

/* adjust margin to centre the attribution icon*/
.maplibregl-ctrl-attrib.maplibregl-compact {
    margin: 10px 15px 10px 5px;
}

/* text hover color */
.maplibregl-ctrl-attrib-inner a:hover {
    color: #000;
}

/* ------------------------------------------------------------------------------- */

.maplibregl-ctrl-message {
    width: 30em;
    height: 5em;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 1em;
    padding: 1em;
}

/* ------------------------------------------------------------------------------- */

body.admin-bar .maplibregl-ctrl-top-right {
    top: 32px;
}

/* ------------------------------------------------------------------------------- */
