.map-container{
    min-height: 500px;
    height: 500px;
    overflow: hidden;
}

.map-container #map{
    width: 100%;
    height: 100%;
}

#map .gm-style::before {
    content: "";
    background: url(../../assets/img/pin-sign.svg);
    background-size: 40px auto;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 39px;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin-top: -20.5px;
    pointer-events: none;
}

#map-container {
    position: relative;
}

#map div[aria-roledescription='peta']::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 2;
    border-top: 1.5px solid #FFF;
    opacity: 0.8;
    pointer-events: none;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.9);
}

#map div[aria-roledescription='peta']::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 15px;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 1;
    border-left: 1.5px solid #FFF;
    opacity: 0.8;
    pointer-events: none;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.9);
}

#panorama-container{
    margin-bottom: -28px !important;
    margin-left: -2px;
    position: absolute !important;
    z-index: 10000000;
    bottom: 26px !important;
}

.marker-overlay{
    position: absolute;
    background: #fdd100;
    top: -125px;
    left: 50%;
    transform: translatex(-50%);
    max-width: 200px;
    min-width: 30px;
    width: auto;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid #eee;
    text-align: center;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
    font-size: 12px;
    animation: marker-overlay-bounce 1.5s; 
    animation-direction: alternate; 
    animation-timing-function: cubic-bezier(.5, 0.05, 0.5, .5); 
    animation-iteration-count: infinite; 
}

.marker-overlay::before{
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 8px;
    border-color: #FFF transparent transparent transparent;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translatex(-50%);
    z-index: -1;
}

@keyframes marker-overlay-bounce { 
    from { 
        transform: translate3d(-50%, 0, 0); 
    } 
    to { 
        transform: translate3d(-50%, 10px, 0); 
    } 
} 

/* Panorama */
#panorama-container {
    display: flex;
    display: inline-flex;
    display: -webkit-flex;
}

.pan-preview {
    position: relative;
    margin: 5px;
    overflow: hidden;
    width: 100px;
    height: 70px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    border: 2px solid #FFF
}

.pan-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0);
}

.pan-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
}

#panorama {
    width: 100px;
    height: 100px;
}

.pan-preview .pan-text {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translatex(-50%);
    color: #FFF;
    z-index: 2;
    text-shadow: 1px 1px rgb(0, 0, 0);
    font-size: 12px;
    white-space: nowrap;
    align-items: center;
}

.pan-preview .pan-text i {
    font-size: 22px;
}

.pan-preview .close-pan {
    display: block;
    visibility: hidden;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #FFF;
    z-index: 2;
    text-shadow: 1px 1px rgb(0, 0, 0);
    font-size: 12px;
    white-space: nowrap;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.pan-preview .close-pan i {
    display: block;
}

.show-street-view {
    overflow: hidden;
}

body.show-street-view #panorama-container {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: unset;
    z-index: 9999999;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    height: 100%;
}

body.show-street-view #panorama-container .pan-preview {
    margin: 0;
    box-shadow: unset;
    border-radius: 0;
    border: 0;
    width: 100%;
    height: 100%;
}

body.show-street-view .panorama-hide {
    visibility: hidden !important;
}

body.show-street-view #panorama-container .pan-preview .close-pan {
    visibility: visible;
}

body.show-street-view #panorama-container .pan-text,
body.show-street-view #panorama-container .pan-preview::before,
body.show-street-view #panorama-container .pan-preview::after {
    display: none !important;
}

body.show-street-view #panorama-container .pan-preview #panorama {
    width: 100%;
    height: 100%;
}

#panorama-container .gm-style::before,
#panorama-container div[aria-roledescription='peta']::before,
#panorama-container div[aria-roledescription='peta']::after {
    display: none !important;
}

body.show-street-view #topbar,
body.show-street-view .bg-header {
    display: none;
}

body.show-street-view div[id*='ctrl-'],
body.show-street-view .form-control {
    position: relative;
    z-index: -1;
}

body.show-street-view #panorama {
    height: calc(100% + 30px) !important;
}

body.fullscreen-map #panorama-container {
    bottom: 80px !important;
}

.show-street-view .gm-bundled-control-on-bottom{
    margin-bottom: 30px !important;
}

#panorama-container img[src*='pin-sign']{
    display: none;
}

.show-street-view #panorama-container img[src*='pin-sign']{
    display: block;
}

button[aria-label='Tutup']{
    display: none !important;
}

.gm-style-iw{
    padding: 0 !important;
}

.gm-style-iw .gm-style-iw-d{
    overflow: hidden !important;
}

#pano-info-window-content{
    background: #fdd100 !important;
    padding: 10px;
    color: #272727;
    font-weight: bold;
    border: 3px solid #eee;
}

.map-fullscreen #lokasi-area{
    position: fixed !important;
    z-index: 10000000000000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100%;
}

.marker-overlay.no-animate{
    animation: unset;
}

.map-container.no-pin-location #map .gm-style::before,
.map-container.no-pin-location #map div[aria-roledescription='peta']::before,
.map-container.no-pin-location #map div[aria-roledescription='peta']::after
{
    display: none;
}

.streetview-marker{
    display: none;
    position: relative;
    width: 28px;
    height: 10px;
    border-radius: 50%;
    background: #E3775B;
    border: 2px solid #E3775B;
    text-align: center;
    font-size: 30px;
    color: #E6C257;
    text-shadow: -2px -2px 5px rgba(0,0,0,1);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.8);
    margin-left: -13.5px;
    margin-top: -5px;
    z-index: 1;
    cursor: pointer;
}

.streetview-marker::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #E6C257 transparent transparent transparent;
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translatex(-50%);
    z-index: -1;
}

.streetview-marker .fa{
    display: block;
    margin-top: -22px;
}

.streetview-marker-show .streetview-marker{
    display: block;
}

#street-view-info-window-content{
    max-width: 200px;
    background: #FFF !important;
    padding: 10px;
    text-align: center;
    color: #666;
}

.btn-open-street-view{
    margin-top: 10px;
    border: 1px solid #f4cbcb;
    pointer-events: none;
}

.btn-open-street-view::before{
    content: "Street View tidak tersedia";
    font-size: 12px;
    color: #cd7474;
}

.panorama-available .btn-open-street-view{
    border-color: #1633ff !important;
    pointer-events: visible;
}

.panorama-available .btn-open-street-view:hover::before{
    color: #FFF;
}

.panorama-available .btn-open-street-view::before{
    content: "Buka Street View";
    font-size: 12px;
    color: #1633ff;
    border-color: #1633ff !important;
}

#pan-button .fa{
    font-size: 20px;
}

.streetview-marker-show #pan-button .fa{
    color: #944d3b;
}

/* Custom Control */
#map .gm-fullscreen-control:active>img:nth-child(2){
    display: none !important;
}

#map .gm-fullscreen-control{
    width: auto !important;
    display: flex;
    display: inline-flex;
    display: -webkit-flex;
    padding: 5px !important;
    align-items: center;
    appearance: none;
    background-color: #FCFCFD !important;
    border-radius: 4px !important;
    border-width: 0 !important;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset !important;
    list-style: none;
    overflow: hidden;
    transition: box-shadow .15s,transform .15s;
    touch-action: manipulation;
    outline: none !important;
}

#map .gm-fullscreen-control:focus {
    box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

#map .gm-fullscreen-control:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
    transform: translateY(-2px);
}

#map .gm-fullscreen-control:active {
    box-shadow: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
}

#map .gm-fullscreen-control > img{
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
    margin-top: -1px;
}

#map .gm-fullscreen-control::before{
    content: "Layar Penuh";
    margin-right: 5px;
}

#map .gm-bundled-control-on-bottom{
    width: auto !important;
    bottom: 15px !important;
    right: unset !important;
    left: 50% !important;
    transform: translatex(-50%);
}

#map .gm-bundled-control-on-bottom > div{
    position: relative !important;
    width: auto;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex;
    display: inline-flex;
    display: -webkit-flex;
    justify-content: center;
}

#map .gm-bundled-control-on-bottom > div > div{
    position: relative !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    display: inline-flex !important;
    display: -webkit-flex !important;
}

#map .gm-bundled-control-on-bottom button[title='Perbesar'],
#map .gm-bundled-control-on-bottom button[title='Perbesar'] + div,
#map .gm-bundled-control-on-bottom button[title='Perkecil']
{
    display: inline-block !important;
}

#map .gm-bundled-control-on-bottom button[title='Perbesar']{
    width: auto !important;
    display: flex !important;
    display: inline-flex !important;
    display: -webkit-flex !important;
    padding: 5px !important;
    align-items: center;
    align-items: center;
    appearance: none;
    background-color: #FCFCFD !important;
    border-radius: 4px !important;
    border-width: 0 !important;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset !important;
    list-style: none;
    overflow: hidden;
    transition: box-shadow .15s,transform .15s;
    touch-action: manipulation;
    outline: none !important;
}

#map .gm-bundled-control-on-bottom button[title='Perbesar']:focus {
    box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

#map .gm-bundled-control-on-bottom button[title='Perbesar']:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
    transform: translateY(-2px);
}

#map .gm-bundled-control-on-bottom button[title='Perbesar']:active {
    box-shadow: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
}

#map .gm-bundled-control-on-bottom button[title='Perbesar'] > img{
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
    margin-top: -1px;
}

#map .gm-bundled-control-on-bottom button[title='Perbesar']:active>img:nth-child(2){
    display: none !important;
}

#map .gm-bundled-control-on-bottom button[title='Perbesar']::before{
    content: "Perbesar";
    margin-right: 8px;
}

#map .gm-bundled-control-on-bottom button[title='Perkecil']{
    width: auto !important;
    display: flex !important;
    display: inline-flex !important;
    display: -webkit-flex !important;
    padding: 5px !important;
    align-items: center;
    align-items: center;
    appearance: none;
    background-color: #FCFCFD !important;
    border-radius: 4px !important;
    border-width: 0 !important;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset !important;
    list-style: none;
    overflow: hidden;
    transition: box-shadow .15s,transform .15s;
    touch-action: manipulation;
    outline: none !important;
}

#map .gm-bundled-control-on-bottom button[title='Perkecil']:focus {
    box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

#map .gm-bundled-control-on-bottom button[title='Perkecil']:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
    transform: translateY(-2px);
}

#map .gm-bundled-control-on-bottom button[title='Perkecil']:active {
    box-shadow: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
}

#map .gm-bundled-control-on-bottom button[title='Perkecil'] > img{
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
    margin-top: -1px;
}

#map .gm-bundled-control-on-bottom button[title='Perkecil']:active>img:nth-child(2){
    display: none !important;
}

#map .gm-bundled-control-on-bottom button[title='Perkecil']::after{
    content: "Perkecil";
    margin-left: 8px;
}

#map .gm-bundled-control-on-bottom button[title='Perbesar'] + div{
    width: 1px !important;
    height: 27px !important;
}

/* Custom Map Bottom */
.map-button{
    background: none rgb(255, 255, 255);
    border: 0px;
    margin: 6px;
    text-transform: none;
    appearance: none;
    position: absolute;
    cursor: pointer;
    user-select: none;
    border-radius: 2px;
    height: 27px;
    width: 27px;
    overflow: hidden;
    padding: 3px 0;
    text-align: center;
    align-items: center;
    appearance: none;
    background-color: #FCFCFD;
    border-radius: 4px;
    border-width: 0;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    list-style: none;
    overflow: hidden;
    transition: box-shadow .15s,transform .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    outline: none !important;
}

.map-button:focus {
  box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.map-button:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
}

.map-button:active {
  box-shadow: #D6D6E7 0 3px 7px inset;
  transform: translateY(2px);
}

.map-button span{
    font-size: 22px;
    color: #666666;
    margin-top: -1px !important;
}

/* My Location */

#my-location-marker{
    position: relative;
    background: #2f318b;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #FFF;
}

#my-location-marker::after{
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: marker-radar 1s; 
    animation-direction: alternate; 
    animation-timing-function: cubic-bezier(.5, 0.05, 0.5, .5); 
    animation-iteration-count: infinite;
}

@keyframes marker-radar { 
    from { 
        width: 10px; 
        height: 10px;
        background: rgba(255,255,255,0);
    } 
    to { 
        width: 100px; 
        height: 100px;
        background: rgba(245,198,88,0.5);
    } 
} 

/* Search */
#search-input{
    margin: 6px;
    background: #FFF;
    padding: 0 5px;
    border-radius: 5px;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
    align-items: center;
    max-width: 250px;
    width: 100%;
    overflow: hidden;
    color: #666;
}

#search-input input{
    border: 0;
    outline: none;
    background: transparent;
    padding: 8px 0;
    font-size: 12px;
    flex-grow: 1;
}

#search-input input + span{
    display: none;
    width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    border-radius: 50%;
    background: #44433d;
    margin-top: -3px;
    color: #f5ee7f;
    margin: 0 3px;
    cursor: pointer;
}

#search-input input:not(:placeholder-shown) + span{
    display: block;
}

#search-result-list:not(:empty){
    padding: 5px;
}

#search-result-list{
    max-width: 500px;
}

#search-result-list span{
    background: #fff;
    display: block;
    width: 100%;
    padding: 5px 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    box-shadow: 1px 2px 5px rgba(0,0,0,0.5);
    cursor: pointer;
    color: #000;
}

#search-result-list span:hover{
    background: #eee;
}

#search-result-list.hide{
    display: none;
}

/* Map Layers */
.map-overview .gm-style::before,
.map-overview div[aria-roledescription='peta']::before,
.map-overview div[aria-roledescription='peta']::after{
    display: none !important;
}

.map-overlay-choices {
    margin-left: 44px;
    margin-top: 5px;
    background: #FFF;
    border-radius: 5px;
    width: 190px;
    visibility: hidden;
    height: 0px;
    overflow: hidden;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.4);
}

.show-layer-overlay .map-overlay-choices{
    height: auto !important;
    padding: 5px;
    visibility: visible;
}

.map-overlay-choices .map-overview {
    margin: 5px;
    flex-grow: 1;
    max-width: 80px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.map-overlay-choices .map-overview:hover {
    background: #005AC4;
    color: #FFF;
    border: 1px solid #005AC4;
}

.map-overlay-choices .map-overview-style {
    flex-direction: column;
    width: 78px;
    height: 50px;
    pointer-events: none;
}

.map-overlay-choices .map-overview-style+label {
    cursor: pointer;
}

.map-overview{
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
}

.map-overview label{
    text-align: center;
    padding: 2px;
}

.map-overview-style > div{
    height: 80px !important;
}

.map-overlay-choices .map-overview.selected {
    position: relative;
    border: 1px solid #005AC4;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.map-overlay-choices .map-overview.selected label{
    color: #005AC4;
}

.map-overlay-choices .map-overview.selected:hover label {
    background: #005AC4;
    color: #FFF;
}

.marker-truck{
    overflow: visible !important;
}

/* #place-button-container{
    top: 78px !important;
} */

#place-button.place-off .material-icons::before{
    content:"location_off";
    text-align: center;
    margin-left: 2.5px;
}

#map{
    height: calc(100% + 30px) !important;
}

.gm-bundled-control-on-bottom{
    margin-bottom: 20px !important;
}

.map-button[title='Lokasi Saya']
{
    margin-bottom: 20px !important;
}

#panorama-container{
    bottom: 55px !important;
}

@media (max-width: 440px){
    #panorama-container .pan-preview{
        width: 65px;
        height: 55px;
        position: relative;
    }
    
    #panorama-container .pan-preview .pan-text{
        color: transparent;
        text-shadow: unset;
    }
    
    #panorama-container .pan-preview .pan-text .material-icons{
        color: #FFF !important;
        position: absolute;
        left: 50%;
        bottom: 2px;
        transform: translatex(-50%);
    }
}

#location-animation-overlay{
    visibility: hidden;
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: marker-radar2 1s;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(.5, 0.05, 0.5, .5);
    animation-iteration-count: infinite;
    border: 2px solid #FFFFFF40;
}

#location-animation-overlay[show-animation=true]{
    visibility: visible !important;
}

.d-bloc #map  button:hover {
    color: #115097 !important;
}

@keyframes marker-radar2 { 
    from { 
        width: 10px; 
        height: 10px;
        background: rgba(255,255,255,0);
    } 
    to { 
        width: 100px; 
        height: 100px;
        background: rgba(88,200,245,0.5);
    } 
} 