﻿.map-container {
    margin-bottom: 2rem;
    position: relative;
}

.map-container .map {
    background: lightgrey;
    box-shadow: #969696 0 10rem 10rem -10rem inset;
    position: absolute !important;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.mapboxgl-marker, .mapboxgl-popup {
    z-index: 100;
}

.leaflet-pane, .leaflet-top, .leaflet-bottom, .leaflet-control {
    z-index: initial !important;
}

.leaflet-tile-pane, .leaflet-overlay-pane, .leaflet-shadow-pane, .leaflet-marker-pane, .leaflet-tooltip-pane {
    z-index: 0 !important;
}

.leaflet-popup-pane {
    z-index: 100 !important;
}

.map-overlay {
    position: relative;
    height: 100%;
    pointer-events: none;
}

    .map-overlay #search-container {
        pointer-events: auto;
    }

    .map-overlay .breadcrumb {
        pointer-events: auto;
    }

    .leaflet-control-attribution {
    font-size: 11px;
}

.leaflet-popup.popup-downward.leaflet-popup-content-wrapper {
    transform: translateY(-100%) !important;
}

.flipped-popup .leaflet-popup-tip-container {
    top: auto;
    bottom: 100%;
    transform: rotate(180deg);
}

.title {
    color: white;
    text-shadow: 2px 2px 8px #969696F0;
}

#search-container {
    margin-bottom: -2rem;
    padding: 0;
    min-width: 215px;
}

#search-container > * {
    padding: 1rem;
}

@media (min-width : 992px) {
    #search-container > * {
        padding: 2rem;
    }
}

#search-container > *:first-child {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

#search-container > *:last-child {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

#search-bar {
    flex-grow: 100;
    position: relative;
}

.input-addon {
    position: relative;
    top: 0.75rem;
    right: 1.5rem;
}

.show-map-button {
    background: #87c857;
    flex-direction: column;
    color: white;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 1rem 2rem;
}

.show-map-button i {
    font-size: 2rem;
    text-shadow: 2px 0px 4px #96969650;
    margin-bottom: .25rem;
}

.show-map-button span {
    font-size: .9rem;
}

#map:not(.show) .on-map-shown, #map.show .on-map-hidden {
    display: none;
}

.title {
    transition: opacity .2s ease-in-out;
}

#map.show .title {
    opacity: 0;
    z-index: -1;
}

.show-map-arrow {
    transition: transform .2s ease-in-out;
}

#map.show .show-map-arrow {
    transform: rotate(180deg);
}

.search-bar-container {
    transition: margin-top .2s ease-in-out;
}

.map > * {
    transition: filter .2s ease-in-out;
}

#map .map > * {
    filter: blur(5px);
}

#nowOpenFilter {
    position: absolute;
    right: .25rem;
    display: flex;
    align-items: center;
}

#nowOpenFilter input {
    display: none;
}

#nowOpenFilter input:not(:checked) + * * {
    color: #96969680 !important;
}

#onDutyFilter {
    margin-top: .5rem;
    display: flex;
    align-items: center;
}

#onDutyFilter input {
    display: none;
}

#onDutyFilter input:not(:checked) + .pharmacy-on-duty {
    background: white;
}

    #onDutyFilter input:not(:checked) + * * {
        color: #8C8882 !important;
    }

@media (min-width: 460px) {
    #onDutyFilter {
        position: absolute;
        top: 0;
        right: .25rem;
        margin-top: 0;
    }

    #search-container #pharmacySearchInput {
        padding-right: 8rem;
    }

    #search-container form {
        gap: 1rem;
    }
}

.pharmacy-on-duty span {
    font-size: .9rem;
    font-weight: 500;
}

.marker-tom-tom {
    background-image: url('/img/location-dot-solid.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 28px;
}
.marker-tom-tom-center {
    background-image: url('/img/location-dot-solid-center.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 28px;
}
#map.show #tomtom-map-container {
    height: 100%;
    transition: height .2s ease-in-out;
}

#tomtom-map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.leaflet-popup-content-wrapper {
    border-radius: 1rem;
    padding: 1.25rem;
}

.leaflet-popup {
    font-size: 18px;
    font-family: 'Fira sans', sans-serif;
}

.leaflet-container a {
    color: inherit !important;
}
    .leaflet-container a.secondary-button {
        color: #DF5346 !important;
    }

.map-popup-container-address {
    color: #969696;
}

.map-popup-close-button {
    top: -0.75rem;
    right: -0.5rem;
    font-size: .6rem;
    border: none;
    background: none;
    color: grey;
}

#search-bar .search-bar {
    width: 95%;
}

@media (min-width : 576px) {
    #map.show .search-bar-container {
        margin-top: 250px;
    }

    #map.show .map > * {
        filter: none;
    }

    #map.show .search-bar-container {
        margin-top: 250px;
    }
}