:root {
    --autocomplete-highlight-color: #E2E8DC;
    --local-context-width: 375px;
    --local-context-height: 40vh;
    --image-background: #fff;
    --primary-color: #4c592f;
    --alternate-color: #638b18;
    --popup-container-max-width: 550px;
    --primary-font: 'Open Sans';
    --secondary-font: sans-serif;
    --default-font-color: #666;
    --default-font-highlight-color: #888;
    --primary-font-size: 14px;
    --popup-content-title-font-size: 32px;
    --popup-content-font-size: 14px;
    --nearby-place-title-font-size: 22px;
    --nearby-place-title-mobile-font-size: 17px;
    --filter-active-text-color: #638b18;
}
@media (max-width: 450px) {
    :root {
        --popup-container-max-width: 80vw;
        --local-context-width: 80vw;
    }
}

#map {
    flex-grow: 1;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--primary-font), var(--secondary-font);
    color: var(--default-font-color);
    font-size: var(--primary-font-size);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.layer-control-divider {
    position: relative;
    overflow: hidden;
    width: 1px;
    height: 30px;
    margin: 5px 0;
    background-color: rgb(230, 230, 230);
    top: 0px;
}

.navbar.bg-light {
    background-color: hsl(210, 10%, 98%) !important;
    border: 1px solid #eaeaea;
}

a {
    color: var(--default-font-color);
}

a:hover {
    color: var(--default-font-highlight-color);
}

.map-control-divider {
    position: relative;
    overflow: hidden;
    width: 30px;
    height: 1px;
    margin: 0 5px;
    background-color: rgb(230, 230, 230);
    top: 0px;
}

.street-view-hidden {
    visibility: hidden !important;
}

.layer-control {
    padding: 0.25rem 0.5rem;
    font-family: var(--primary-font), var(--secondary-font);
    color: var(--primary-color);
    font-size: var(--primary-font-size);
    background-color: transparent;
}

.nav-item.layer-control {
    text-align: left;
}

.nav-item.layer-control a {
    border: none !important;
    outline: none !important;
}

.layer-control-active {
    background-color: #e0e0e0;
}

.layer-control.layer-control-active > .nav-link > .filter-icon > svg > path {
    fill: var(--primary-color) !important;
}

.layer-control.layer-control-active > .nav-link > .layer-control-label {
    color: var(--primary-color) !important;
}

.layer-control > .nav-link > .filter-icon > svg > path {
    fill: #666 !important;
}

.layer-control > .nav-link > .layer-control-label {
    color: #666;
}

.navbar > .container-fluid {
    padding: 0 !important;
    max-height: 75vh;
}

.navbar-toggler-button {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    box-shadow: none !important;
  }

.navbar-toggler-button.collapsed {
    margin-bottom: initial;
}

.nav-item {
    text-align: center;
    flex-grow: 1;
}

.layer-icon {
    height: 26px;
    width: 26px;
    padding: 0 0.2rem 0 0;
}

.layer-icon > svg {
    fill: var(--primary-color);
}

.layer-control-label {
    margin: auto 0;
    color: var(--default-font-color);
}

#show-hide-all-button {
    color: var(--primary-color);
    margin: 0 1rem;
}

#instructions-map-controls-fullscreen-text {
    position: relative;
    top: 6px;
}

#instructions-full-screen-map-controls {
    height: 40px;
}

#instructions-fullscreen-button {
    align-items: center;
}

#instructions-map-controls-content, #instructions-map-controls-fullscreen {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#instructions-map-controls-text {
    line-height: 2rem;
    text-align: right;
    position: relative;
    top: 14px;
}

.map-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    width: 40px;
    height: 122px;
    margin: 10px;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    color: rgb(102, 102, 102);
}

.map-control {
    display: flex;
    justify-content: center;
    align-content: center;
    border: none;
    background: #fff;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #666666;
}

.map-control:hover {
    color: rgb(25, 25, 25);
}

.material-icons {
    margin: auto;
    font-size: 30px;
}

#popup-trail-line {
    max-width: 20rem;
}

.trail-stroke {
    height: 6px;
}

.in-use {
    color: var(--primary-color);
}

/* Popup Styling */
/* The popup bubble styling. */
.popup-bubble {
    /* Position the bubble centred-above its parent. */
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -100%);
    /* Style the bubble. */
    background-color: white;
    overflow-y: auto;
    box-shadow: 0px 2px 10px 1px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
}

/* The parent of the bubble. A zero-height div at the top of the tip. */
.popup-bubble-anchor {
    /* Position the div a fixed distance above the tip. */
    position: absolute;
    width: 100%;
    bottom: 8px;
    left: 0;
}

/* This element draws the tip. */
.popup-bubble-anchor::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    /* Center the tip horizontally. */
    transform: translate(-50%, 0);
    /* The tip is a https://css-tricks.com/snippets/css/css-triangle/ */
    width: 0;
    height: 0;
    /* The tip is 8px high, and 12px wide. */
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
}

/* JavaScript will position this div at the bottom of the popup tip. */
.popup-container {
    cursor: auto;
    height: 0;
    position: absolute;
    /* The max width of the info window. */
    width: 80%;
    max-width: var(--popup-container-max-width);
}

#popup {
    position: absolute;
    z-index: -1000;
}

.gm-style-iw.gm-style-iw-c {
    border-radius: 0 !important;
}

#popup-close {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
}

#popup-content-container {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

#popup-content {
    display: flex;
    flex-direction: column;
}

#popup-content-main-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
}

.popup-images {
    margin: 0.5rem 0;
    overflow: hidden;
    height: 95%;
    min-height: 215px;
    width: 210px;
    background-size: cover;
    background-position: center;
    background-color: var(--image-background);

    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#booking-link {
    background-color: var(--primary-color);
    font-size: 18px;
    color: #f0f0f0;
    transition: all 0.2s;
    padding: 1rem;
    width: 12rem;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

#booking-link:hover {
    background-color: var(--alternate-color);
}

.nearby-place-highlight {
    background-color: #f0f0f0 !important;
}

.marker-highlight-overlay > svg > path, .marker-highlight-overlay > svg > g > path {
    fill: var(--alternate-color) !important;
}

.more-info-link {
    display: block;
    width: 100%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: var(--primary-font), var(--secondary-font);
    font-size: var(--primary-font-size);
    text-decoration: none;
    padding-bottom: 4px;
}

#popup-content-name {
    font-size: var(--popup-content-title-font-size);
    font-family: var(--primary-font), var(--secondary-font);
    color: var(--default-font-color);
    text-decoration: none;
    font-weight: bold;
}

.popup-content-name-linked:hover, .more-info-link:hover {
    color: var(--default-font-highlight-color) !important;
    text-decoration: none;
}

#popup-content-address {
    font-size: var(--popup-content-font-size);
    font-family: var(--primary-font), var(--secondary-font);
    color: var(--default-font-color);
}

.popup-content-other {
    font-size: var(--popup-content-font-size);
    font-family: var(--primary-font), var(--secondary-font);
    color: var(--default-font-color);
    padding: 0.4rem 0;
}

#popup-content-navigate {
    padding-top: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.popup-content-other:first-child {
    padding-top: 0;
}

.popup-content-other:last-child {
    padding-bottom: 0;
}

.popup-content-other-label {
    font-weight: bold;
}

.popup-link {
    font-size: 13px;
    font-family: var(--primary-font), var(--secondary-font);
    text-align: right;
    display:flex;
    height: 100%;
    justify-content: center;
    align-items: flex-end;
}

.display-none {
    display: none;
}

#call-to-action-links {
    justify-content: flex-start;
}

#popup-content-right {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.popup-nav-content > .material-icons-inline {
    font-size: 25px;
    color: var(--primary-color);
}

.popup-nav-content > .material-icons-inline:hover {
    color: var(--alternate-color);
}

.more-info-icon {
    font-size: 20px !important;
    color: var(--default-font-color);
}

.more-info-link:hover > .more-info-icon, .more-info-icon:hover {
    color: var(--default-font-highlight-color) !important;
}

.material-icons-inline {
    position: relative;
    top: 4px;
    font-size: 20px;
}

#geolocation-error-bar {
    position: absolute;
    top: -100px;
    width: 100%;
    text-align: center;
    color: red;
    margin: 0.5rem;
    z-index: 101;
    transition: all 0.25s;
    visibility: hidden;
}

.geolocation-error-bar-visible {
    top: 0px !important;
    visibility: visible !important;
}

.geolocation-error-bar-hidden {
    top: -200px;
    visibility: hidden !important;
}

#geolocation-error-bar-content {
    background-color: rgb(255, 240, 240);
    padding: 0.5rem;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    max-width: 50%;
    margin: auto;
}

#popup-content-title {
    margin-bottom: 1.5rem;
}

#location-search-container {
    padding: 0 0.25rem;
    flex: 1;
    height: 40px;
    display: flex;
    border: 1px solid #ced4da;
    background-color: #fff;
    border-radius: .25rem;
    flex-direction: row;
}

#location-search-container .material-icons {
    color: rgb(102, 102, 102);
}

#location-search {
    text-align: right;
    border: none;
    box-shadow: none !important;
    font-size: 1.15rem;
}

input:focus {
    outline: none;
}

.autoComplete_result {
    border-radius: 3px;
    color: #444444;
}

.autoComplete_result:hover, .autoComplete_selected {
    background-color: var(--autocomplete-highlight-color);
}

#autoComplete_list {
    border-radius: 3px;
}

input[type="text"] {
    font-family: var(--primary-font), var(--secondary-font);
    font-size: var(--primary-font-size);
}

#local-context {
    display: flex;
    flex-direction: column;
}

#local-context, #instructions-local-context {
    position: relative;
    z-index: 50;
    left: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    transition: all 0.2s ease-out;
}

.local-context-hidden {
    bottom: calc(-1 * var(--local-context-height)) !important;
    margin-top: calc(-1 * var(--local-context-height)) !important;
}

#local-context-places-container, #instructions-local-context-places-container {
    padding: 0;
}

#local-context-places, #instructions-local-context-places {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#local-context-places-empty-message {
    text-align: center;
}

.nearby-place {
    flex-grow: 1;
    flex-direction: column;
    display: flex;
    background-color: #fff;
    border: none;
    text-align: left;
    color: var(--default-font-color);

    border-bottom: 1px solid #ddd;
}

.nearby-place-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.nearby-place:hover {
    background-color: #f0f0f0;
}

.nearby-place-title {
    font-size: var(--nearby-place-title-mobile-font-size);
    color: var(--default-font-color);
}

.nearby-place-address {
    font-size: 14px;
}

.nearby-place-category {
    width: 26px;
    height: 26px;
    position: relative;
    top: 2px;
    margin-right: 0.5rem;
}

.nearby-place-content-left, .nearby-place-content-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nearby-place-content-right {
    text-align: right;
    align-items: flex-end;
    justify-content: center;
}

.nearby-place-image {
    overflow: hidden;
    height: 90px;
    width: 90px;
    background-size: cover;
    background-position: center;
    background-color: var(--image-background);
    margin-left: 1rem;
}

#help-button {
    border: none;
    display: flex;
    padding: 0.5rem;
    background-color: unset;
    color:var(--default-font-color);
}

#instructions-local-context-control {
    margin: 0 auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.color-primary {
    color: var(--primary-color);
}

#local-context-control, #instructions-local-context-control {
    display: flex;
    background-color: #fff;
    border-radius: 2px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: none;
    color: #666666;
    padding: 0;
}

#local-context-control {
    z-index: 5;
    width: 100%;
    border-bottom: 1px solid rgb(230, 230, 230);
}

#local-context-control > .material-icons {
    font-size: 34px !important;
}

#instructions-local-context-control-icon::after {
    content: "expand_less";
}

#local-context-control-icon.local-context-closed::after {
    content: "expand_less";
}
#local-context-control-icon.local-context-open::after {
    content: "expand_more";
}

#local-context-content, #instructions-local-context-content {
    width: 100%;
    height: var(--local-context-height);
    z-index: 10;
    background-color: #fff;
    overflow: auto;
}

#instructions-local-context-content {
    margin: 0 auto;
    height: unset;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

#map-content {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    flex-direction: column-reverse;
}

#external-controls {
    z-index: 100;
}

.dropdown-item {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.dropdown-item.feature-active {
    background-color: #f0f0f0 !important;
}

.dropdown-toggle {
    white-space: normal !important;
}

.dropdown-menu {
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto;
    max-height: 75vh;
}

/* Modal */
iframe {
    border: none;
    width: 100%;
    min-height: 80vh;
    height: 100%;
}

#tour-close-button, #instructions-close-button {
    text-align: end;
    padding-right: 0.5rem;
}

#instructions-layer-filters-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.instructions-filter {
    display: inline-block;
    flex-grow: 0;
}

#instructions-nearby-place-image {
    background-image: url("https://storage.googleapis.com/suncadia-resort-map/media/Suncadia_Dining_Stovehouse_2.jpg");
}

.filter-icon {
    display: inline-block;
    position: relative;
    top: -1px;
    margin-right: 1rem;
}

@media (min-width: 992px) {
    #local-context {
        display: block;
    }

    #map-content {
        flex-direction: row;
    }

    #local-context-content, #instructions-local-context-content {
        width: var(--local-context-width);
        height: 100%;
    }

    .local-context-hidden {
        left: calc(-1 * var(--local-context-width)) !important;
        margin-right: calc(-1 * var(--local-context-width)) !important;
        bottom: unset !important;
        margin-top: unset !important;
    }

    #local-context-control {
        position: absolute;
        bottom: 2rem;
        left: var(--local-context-width);
        right: unset !important;
        top: unset !important;
        border-bottom: unset;
        width: unset;
    }

    #instructions-local-context-control-icon::after {
        content: "chevron_left";
    }

    #local-context-control-icon.local-context-closed::after {
        content: "chevron_right";
    }
    #local-context-control-icon.local-context-open::after {
        content: "chevron_left";
    }

    .navbar-toggler-button {
        display: none;
    }

    .filter-icon {
        display: block;
        margin: auto;
    }

    .nav-item.layer-control {
        text-align: center;
    }

    .nearby-place-title {
        font-size: var(--nearby-place-title-font-size);
    }

    .popup-link {
        justify-content: flex-end;
    }

    .popup-images {
        margin-right: 1rem;
    }

    .dropdown-menu {
        max-height: initial;
    }

    .nearby-place-category {
        width: 36px;
        height: 36px;
    }

    .nearby-place-image {
        height: 120px;
        width: 120px;
    }

    #popup-content-main-container {
        flex-direction: row;
    }

    #instructions-layer-filters-list {
        flex-direction: row;
    }
}

@media (min-width: 576px) {
    #location-search-container {
        flex: unset;
        width: 100%;
        max-width: 20rem;
    }
}

@media (max-width: 420px) {
    #autoComplete_list {
        left: -50px;
    }
    #show-hide-all-button {
        margin: 0 0.5rem;
    }

    .popup-images {
        width: 175px;
        min-height: 180px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 370px) {
    #autoComplete_list {
        left: -100px;
    }
}