#mapPage {
    overflow: hidden;
    position: relative;
}

#step1 {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
    z-index: 20;
}

#step1 input {
    border: 1px solid #ccc!important;
    border-radius: 4px;
    box-shadow: 0 0.125rem 0.125rem rgba(125, 125, 125, 0.125);
    padding: 0.5rem;
}


#step1.active {
    transform: translateY(-100%);
}

#mapPage #map {
    height: 100vh;
    width: 100%;
}

/* Google autocomplete */
#mapPage .pac-container.pac-logo {
    z-index: 1060;
}

/* Input containers */
#mapPage .input-container {
    position: absolute;
    left: 2rem;
    padding: 1rem;
    width: 100%;
    max-width: calc(100vw - 4rem);
    background-color: rgba(255, 255, 255, 0.75)!important;
    backdrop-filter: blur(5px);
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.33);
    z-index: 1;
}


/* Mobile floating wrappers */
#mapPage .mobile-floating-wrapper {
    position: absolute;
    left: 1.5rem;
    padding: 0.75rem;
    width: auto;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.33);
    cursor: pointer;
}

#mapPage .mobile-floating-wrapper.settings {
    top: calc(var(--navbar-height) + 1.5rem);
}

#mapPage .mobile-floating-wrapper.settings svg {
    transition: rotate 0.25s ease-in-out;
}

#mapPage .input-container.mobile-settings:hover svg {
    rotate: 90deg;
}

#mapPage .mobile-floating-wrapper.help {
    top: calc(var(--navbar-height) + 1.5rem + 48px + 1rem + 48px + 1rem);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#mapPage .mobile-floating-wrapper svg {
    width: 1.5rem;
    height: auto;
}


/* Step 1 */
#mapPage .input-container.step-1 {
    display: none;
}

/* Step 2 */
#mapPage .input-container.step-2 {
    display: none;
}

/* Restart Demo */
#mapPage #restartDemo {
    position: absolute;
    top: 6rem;
    right: 2rem;
    opacity: 0;
    width: 48px;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.33);
    backdrop-filter: blur(4px);
    padding: 0.75rem;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
    z-index: 10;
}

#mapPage #restartDemo.show {
    opacity: 1;
}

#mapPage #restartDemo svg {
    width: 1.5rem;
    height: auto;
}

/* Deliver Button */
#mapPage #deliverButton {
    position: absolute;
    bottom: 6rem;
    left: 2rem;
    opacity: 0;
    width: 48px;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.33);
    backdrop-filter: blur(4px);
    padding: 0.75rem;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
    z-index: 10;
}

#mapPage #deliverButton.show {
    opacity: 1;
}

#mapPage #deliverButton svg {
    width: 1.5rem;
    height: auto;
}


/* Cellphone */
#mapPage .cellphone-container {
    display: none;
    position: absolute;
    top: calc(100vh - 19rem);
    height: fit-content;
}

#mapPage .phone-icon {
    width: 250px;
    height: auto;
}


/* Delivery Address input */
#mapPage .hp-input.delivery-address {
    width: 66%;
}

/* Notification Range input */
#mapPage .hp-input.notification-range {
    /* width: 33%; */
    position: relative;
}

#mapPage .hp-input.notification-range label {
    min-width: 130px;
}

#mapPage .hp-input.notification-range .floating-text {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    font-size: 0.66rem;
}

/* Code input */
#mapPage #code:not(:focus) + label {
    transform: unset;
}

#mapPage .btn.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

#mapPage .btn.btn-primary:hover {
    background-color: var(--primary-dark-color);
    border: 1px solid var(--primary-dark-color);
}


/* New Tour */
#mapPage #step1 .guide-1 {
    top: -100px;
    left: 0;
    font-size: 1.75rem;
    text-wrap: balance;
    text-align: center;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
    animation-delay: 0.5s;
}

#mapPage #step1 #confirmAddress {
    min-height: 40px;
}

#mapPage .guide-2 {
    top: -150px;
    left: calc((100% - 400px) / 2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#mapPage .guide-3-container {
    position: absolute;
    top: calc((100vh - 400px) / 2);
    left: calc((100vw - 400px) / 2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(51, 102, 153, 0.33) 0%, rgba(51, 102, 153, 0) 66%);
    opacity: 0;
    transition: opacity 0.33s ease-in-out;
    z-index: 1;
}

#mapPage .guide-3-container.show {
    opacity: 1;
}

#mapPage .guide-3 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

#mapPage .guide-2,
#mapPage .guide-3 {
    display: none;
    width: 400px;
    font-size: 1.75rem;
    text-wrap: balance;
    text-align: center;
    line-height: 1.2;
    color: var(--light-color);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    z-index: 19;
}

#mapPage .guide-2.show,
#mapPage .guide-3-container.show .guide-3 {
    display: flex;
    animation: fadeIn 0.5s ease-in-out forwards;
    animation-delay: 0.5s;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


#mapPage .mobile-floating-wrapper.help.show,
#mapPage .input-container.step-1.show,
#mapPage .input-container.step-2.show {
    opacity: 1;
}


@media (min-width: 768px) {
    #mapPage .input-container {
        background-color: rgba(200, 200, 200, 0.66)!important;
        max-width: 400px;
    }

    #mapPage .mobile-floating-wrapper {
        display: none;
    }

    #mapPage .mobile-floating-wrapper.help {
        display: block;
        top: calc(var(--navbar-height) + 2rem);
        left: unset;
        right: 2rem;
        width: fit-content;
    }

    #mapPage .input-container.step-1,
    #mapPage .input-container.step-2 {
        display: block;
        max-width: 200px;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    #mapPage .input-container.step-1 {
        top: calc(var(--navbar-height) + 2rem);
    }

    /* Step 2 */
    #mapPage .input-container.step-2 {
        top: calc(var(--navbar-height) + 2rem + 131px);
    }

    /* Restart Demo */
    #mapPage #restartDemo {
        width: 200px;
    }

    #mapPage #restartDemo svg {
        width: 1.25rem;
    }

    /* Deliver Button */
    #mapPage #deliverButton {
        width: 200px;
    }

    #mapPage #deliverButton svg {
        width: 1.25rem;
    }

    /* Tour */
    #mapPage .popover.tour-tour.tour-tour-0 {
        top: 41px!important;
        left: 1.5rem!important;
    }

    #mapPage .popover.tour-tour.tour-tour-1 {
        top: 31px!important;
        left: 1.5rem!important;
    }

    #mapPage .popover.tour-tour.tour-tour-2 {
        top: unset;
        left: -1.5rem!important;
    }
}

@media (min-width: 992px) {
    #mapPage .floating-items.tour-backdrop {
        top: 64px;
        height: calc(100% - 64px);
    }

    /* Step 1 */
    #mapPage .input-container.step-1 {
        top: calc(64px + 2rem);
    }

    /* Step 2 */
    #mapPage .input-container.step-2 {
        top: calc(64px + 2rem + 131px);
    }

    #mapPage .cellphone-container {
        display: block;
        right: 4rem;
        width: 175px;
    }

    #mapPage .cellphone-container .phone-icon {
        width: 175px;
    }
}

#mapPage .custom-input {
    font-family: 'Urbanist', sans-serif;
}


@media (max-width: 768px) {
    #mapPage .gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom {
        bottom: calc(95px + 5%)!important;
    }
}