#map {
    height: 70vh;
    width: 100%;

    @media only screen and (max-width: 950px) {
        height: 45vh;
    }
}
.title-search{
    text-align: center;
    margin-top: 15px;
    font-size: 22px;
}

/* Search bar styling */
.search-wrap{
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-around;
    align-content: space-around;
    @media only screen and (max-width: 700px) {
        grid-template-columns: 1fr;
    }
}
#search-bar {
    display: block;
    margin-bottom: 20px;
    justify-content:center;
    text-align: center;
    @media only screen and (max-width: 450px) {
        justify-content: inherit;
    }
}

#search-bar input[type="text"]{
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}
#search-bar button {
    width: 100%;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.custom-marker {
    width: 60px;
    cursor: pointer!important;
}

.custom-marker img {
    max-width: 100%;
    height: auto;
}

.custom-marker .pin-top {
    padding: 2px 2px 5px 2px;
    margin-bottom: -1px;
    background: white;
    -moz-box-shadow: 0 0 3px #ccc;
    -webkit-box-shadow: 0 0 3px #ccc;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    text-align: center;
}

.custom-marker .pin-top .marker-promo{
    text-align: center;
    background: #98C44C;
    padding: 0 4px;
    border-radius: 5px 5px 0 0;
    color: black;
    font-size: 14px;
}
.pin-top .marker-promo span {
    text-decoration: line-through;
    color: #4b4b4b;
    font-size: 12px;

}
.custom-marker .pin-top .marker-title{
    font-size: 8px;
    color: black;
    text-align:center;

}

.custom-marker .pin-top  .map-center-logo{
    display: inline-block;
    color: red;
    font-size: 12px;
    padding-top: 11px;
    width: 32px;
    height: 32px;
    font-weight: bold;
}

.custom-marker .pin-tail {
    position: relative;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
    margin-left: 15px;
    filter: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.5));

}

.custom-cluster {
    background-color: #98c44c;
    color: black;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.custom-cluster:hover {
    transform: scale(1.2);
}

.custom-cluster div:nth-child(1) {
    font-size: 16px;
    font-weight: bold;
}

.custom-cluster div:nth-child(2) {
    font-size: 9px;
}

.custom-cluster div:nth-child(3) {
    font-size: 12px;
    font-weight: bold;
}
.custom-cluster .no-promo{
    padding-top: 6px;
    font-size: 18px;

}

.highlight .pin-top {
    background: #28a745;
}

.highlight .pin-tail {
    border-top-color: #28a745;;
}


#debugBox {
    background: white;
    padding: 15px;
    border: 1px solid grey;
    display: none;
    font-size: 12px;
}

#debugNearest {
    color: darkred;
    padding: 15px 0;
}

.debugInfo {
    padding: 20px;
    border-top: 1px solid grey;
}

.bounce {
    animation: bounce 0.5s linear infinite; /* Shorter duration for continuous bounce */
    -webkit-animation: bounce 0.5s linear infinite; /* Webkit support */
    -moz-animation: bounce 0.5s linear infinite; /* Firefox support */
    -o-animation: bounce 0.5s linear infinite; /* Opera support */
}

/* Keyframes for bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0); /* Start and end at the original position */
    }
    50% {
        transform: translateY(-20px); /* Move up 20px at the middle of the animation */
    }
}

@-webkit-keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@-moz-keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@-o-keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

[data-pin-highlight-hover], [data-pin-highlight-click], [data-pin-bounce-hover], [data-pin-bounce-click] {
    cursor: pointer;
}

.map-element-hide {
    display: none;
}

#map-access {
    border-bottom: solid 2px #98C44C;
    font-size: 18px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#map-access::after {
    content: "\25bc";
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

#map-access.active::after {
    transform: rotate(180deg);
}

.hidden-map-content {
    overflow: hidden;
    height: 0;
    transition: height 0.5s ease-out;
}

.hidden-map-content.show {
    height: 100%;
}

.gm-style-iw-chr {
    display: none !important;
}
.map-info-window{
    padding: 10px;
}
.map-info-window h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}
.map-info-window h4 .promo-price{
    background: #98C44C;
    border-radius: 5px;
    padding: 2px;
    color: black;
}

.map-info-window .promo-price span{
    color:#777;
    font-size: 14px;
    text-decoration: line-through;
    font-weight: normal;
}

.map-content{
    @media only screen and (max-width: 950px) {
        padding: 0 15px;
    }
    h2{
        text-align: center;
        &::after{
            left: 50%;
            margin-left: -20px;
        }
    }
}

#map-recenter {
    display: none;
}

.input-active-recenter {
    display: grid!important;
    gap: 30px;
    grid-template-columns: 250px 80px;
    @media only screen and (max-width: 450px) {
        overflow: hidden;
        grid-template-columns: 65% 1fr;
        gap: 15px;
    }
}

.place-autocomplete-card{
    display: inline-block;
    background-color: white!important;
    @media only screen and (max-width: 450px) {
        width: 100%;
    }
}