.button-container{
    position: sticky;
    padding-left: 50vw;
    padding-bottom: 5vh;
    cursor:pointer;
}

.lokala-map-button {
    font-family: 'Comfortaa', sans-serif;
    font-weight: bold;
    transform: translate(-50%, 0%);
    width: 200px;
    height: 50px;
    text-align: center;
    padding: 1.5em;
    background-color: var(--lokala-white);
    color: var(--lokala-blue);
    margin: auto;
    border-radius: 10px;
    box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.25);
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.25);
}

/*popup styling*/
.leaflet-popup {
    margin: 0 !important;
    font-family: 'Comfortaa', sans-serif !important;
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
    width: 301px;
    height: 250px;
    border-radius: var(--lokala-border-radius) !important;
    border: var(--lokala-border) !important;
    box-sizing: border-box;
}

.leaflet-popup-content {
    margin: 0 0 0 0 !important;
    height: 100%;
    width: 100% !important;
}

.leaflet-popup-content p {
    margin: 0 !important;
}

.leaflet-popup-tip {
    background: rgba(0, 0, 0, 0) !important;
    box-shadow: none !important;
    z-index: 999;
} /*removes tail tip*/

.popup-body, .row {
    width: 100%;
    height: 100%;
}

.popup-body-main {
    position: relative;
    width: 100%;
    height: 67%;
    background-size: cover;
    border-radius: 9px 9px 0 0;
}

.leaflet-popup-close-button {
    color: var(--lokala-white) !important;
    font-size: 25px !important;
    margin: 3px 3px 0 0 !important;
    z-index: 10;
}

.name-filter{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: #0000001c;
    border-radius: 9px 9px 0 0;
    height: 20%;
    z-index: 2;
    pointer-events: none;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 9px 9px 0 0;
}

.shop-name {
    font-size: 1.5em; 
    margin: 0 10px 0 5px !important;
    color: var(--lokala-text-color-light) !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-footer {
    width: 100%;
    height: 33%;
    overflow: hidden;
    border-top: 1px solid #eee;
}

.popup-footer .info-field{
    margin-top: 10px;
    margin-bottom: 5px;
}

.popup-footer p.shop-address{
    font-size: 12px;
}

.category-chip {
    padding: 2px 3px 0 2px !important;
}

.category-chip-name{
    margin-left: 3px;
}

.category-chip-field {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.category-with-name {
    display: flex;
    align-items: center;
}

.popup-footer a.go-to-shop-btn{
    width: 90%;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.go-to-shop-btn {
    background-color: var(--lokala-green)!important;
    color: var(--lokala-text-color-light) !important;
    border-radius: var(--lokala-border-radius);
    border: var(--lokala-border);
}

@media (min-width: 768px) {
    .leaflet-popup-content-wrapper {
        /* wider popup for desktop */
        width: 325px !important; 
    }
}

/*CLUSTER CSS*/

.marker-cluster div {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}

.custom-marker-cluster {
    background-color: var(--lokala-dark-orange);
    border: 1px solid var(--lokala-white);
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center; /* center vertically */
}

.marker-cluster-number {
    color: var(--lokala-text-color-light);
    margin: 0 auto;
}

.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
	-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
	-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
	-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
	transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

.leaflet-cluster-spider-leg {
	/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */
	-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;
	-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;
	-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;
	transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
}
