﻿html {
  font-size: 14px;
}


html {
  position: relative;
  min-height: 100%;
}

.content {
    padding:0px;
}

/***** Sidebar *****/

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -255px;
    z-index: 999;
    background: #fff;
    transition: all .3s;
    box-shadow: 3px 3px 3px rgba(51, 51, 51, 0.5);
    text-align: left;
}

.sidebar.active {
    left: 0;
}

/***** Content *****/

.content {
    width: 100%;
    transition: all 0.3s;
}

.overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(51, 51, 51, 0.7);
    z-index: 998;
    opacity: 0;
    transition: all .5s ease-in-out;
}

.overlay.active {
    display: block;
    opacity: 1;
}


.dismiss {
    position: absolute;
    top: 15px;
    right: 10px;
    transition: all .3s;
    text-align: center;
    cursor: pointer;
}



/* Loader -------------------------------------------------- */
#loader {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(51, 51, 51, 0.7);
    z-index: 998;
    opacity: 1;
    transition: all .5s ease-in-out;
}

@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

.no-freeze-spinner {
    transition: all 0.1s linear;
    z-index: 9999;
    opacity: 0.5;
    transform: scale(1);
}

.no-freeze-spinner > div > div {
    animation-play-state: paused;
    border: 5px solid rgba(240, 240, 240, 1);
    border-radius: 50%;
    animation: rotate 1s infinite linear;
    border-left-color: rgba(240, 240, 240, 0.4);
    width: 100%;
    height: 100%;
}

.no-freeze-spinner > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 5px;
}

.no-freeze-spinner div div {
    animation-play-state: running;
}

@keyframes loadicons {
    0% {
        transform: scale(0) translate3d(0, 0, 0);
    }

    11% {
        transform: scale(1.2) translate3d(0, 0, 0);
    }

    22% {
        transform: scale(1) translate3d(0, 0, 0);
    }

    33% {
        transform: scale(0) translate3d(0, 0, 0);
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.no-freeze-spinner i {
    font-size: 24px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    color: #ffffff;
    width: 24px;
    height: 24px;
    line-height: 1;
    transform: scale(0) translate3d(0, 0, 0);
}

.no-freeze-spinner i:nth-of-type(1) {
    animation: loadicons 3s infinite ease-in-out;
}

.no-freeze-spinner i:nth-of-type(2) {
    animation: loadicons 3s 1s infinite ease-in-out;
}

.no-freeze-spinner i:nth-of-type(3) {
    animation: loadicons 3s 2s infinite ease-in-out;
}

/* Loader -------------------------------------------------- */

/* marker-cluster ------------------------------------------ */
.marker-cluster {
    width: 50px;
    height: 50px;
    background: no-repeat center/75% url(/img/pin-group.png);
    margin-left: -25px;
    margin-top: -25px;
}
/* marker-cluster ------------------------------------------ */

/* marker-detail ------------------------------------------ */
#market-detail {
    width: 300px;
    height: calc(var(--vh, 1vh) * 100);
    position: fixed;
    top: 0;
    left: -305px;
    z-index: 999;
    background: #fff;
    transition: all .3s;
    box-shadow: 3px 3px 3px rgba(51, 51, 51, 0.5);
    text-align: left;
}

#market-detail.active {
    left: 0;
}

#market-detail-close {
    position: absolute;
    top: 15px;
    right: 10px;
    transition: all .3s;
    text-align: center;
    cursor: pointer;
}

#market-detail-city-area {
    height: 70px;
    vertical-align: middle;
    text-align: center;
    margin-right: 45px;
    position: relative;
}

#market-detail-city {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#market-detail-image-area {
    height:160px;
}

#market-detail-image {
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    width:100%;
}
/* marker-detail ------------------------------------------ */

.top-bar {
    position: fixed;
    z-index: 997;
    box-shadow: 3px 3px 3px rgba(51, 51, 51, 0.2);
    border-radius: 20px;
    top: 10px;
    right: 30px;
    left: 30px
}

@media (min-width: 576px) {
    .top-bar {
        right: 100px;
        left: 100px
    }
}

@media (min-width: 768px) {
    .top-bar {
        right: 175px;
        left: 175px
    }
}

@media (min-width: 992px) {
    .top-bar {
        right: 250px;
        left: 250px
    }
}

@media (min-width: 1200px) {
    .top-bar {
        right: 350px;
        left: 350px
    }
}

@media (min-width: 1400px) {
    .top-bar
    {
        right: 450px;
        left: 450px
    }
}

/* fiche ------------------------------------------ */
.market-fiche {
    padding: 50px;
}

@media (max-width: 576px) {
    .market-fiche {
        padding: 10px;
    }
}

.market-img-carousel {
    height: 400px;
}

@media (max-width: 576px) {
    .market-img-carousel {
        height: 250px;
    }
}

/* news cards ------------------------------------ */
.card-image-box {
    overflow: hidden;
    height: 100%;
    width: 40%;
}

.card-body-box {
    width: 60%;
}

.card-description {
    word-break: break-word;
    white-space: pre-wrap;
    max-width: fit-content;
    max-height: 100px;
    overflow: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.card-title {
    font-weight: bold;
}

.card-img-top {
    object-fit: cover;
}

.market-card {
    height: 200px;
    min-width: 300px;
    flex-direction:row;
}

.market-image {
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}



