:root {
    /* --special-template-color-1: #00A63E; */
    --white: #fff;
   /* --special-template-title-1: #0F172B; */
    /* --green-light: #CDEFD7; */
    --maps-gray: #F9FAFB;
    --maps-gray-dark: #6B7280;
    --maps-border-light: #E0E0E0;
    --scrollbar-thumb: #BDBDBD;
}

.map-container {
    max-width: 100%;
    height: 70vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.vr-tab .map-container {
    border: 1px solid var(--maps-border-light);
    border-radius: 8px;
    margin-bottom: 60px;
}

.map-sidebar {
    position: absolute;
    top: 0;
    left: -100%;
    bottom: 0;
    margin-bottom: 0;
    width: 360px;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    z-index: 10;
    transition: left 0.5s ease-in-out;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.map-sidebar.tourism-sidebar {
    width: 300px;
}

.map-sidebar.show {
    left: 0;
}

.map-sidebar .card-header {
    background-color: var(--white);
    border-bottom: 0;
    padding: 8px 24px;
}

.map-sidebar .card-header h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    color: var(--special-template-color-1);
}

.map-sidebar .card-body {
    padding: 8px 24px 16px;
    overflow-y: auto;
}

@-moz-document url-prefix() {
    .map-sidebar .card-body,
    .map-sidebar .card-body.filter-fixed .filter-results {
        scrollbar-color: var(--scrollbar-thumb) var(--white);
        scrollbar-width: thin;
    }
}

.map-sidebar .card-body::-webkit-scrollbar {
    width: 8px;
    border-radius: 999px;
    -webkit-border-radius: 999px;
}

.map-sidebar .card-body::-webkit-scrollbar-track {
    background: var(--white);
    border-radius: 999px;
    -webkit-border-radius: 999px;
}

.map-sidebar .card-body::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 999px;
    -webkit-border-radius: 999px;
}

.tourism-list .tourism-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tourism-list .tourism-item:not(:last-of-type) {
    margin-bottom: 16px;
}

.tourism-list .tourism-item .icon-location {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-color: var(--special-template-color-1);
    border-radius: 50%;
    position: relative;
    /* background: url("../images/icon-location.png") no-repeat center / contain; */
}

.tourism-list .tourism-item .icon-location::before {
    content: '';
    position: absolute;
    display: inline-block;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    mask: url("../images/icon-location-filled.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon-location-filled.svg") no-repeat center / contain;
    background-color: var(--white);
}

.tourism-list .tourism-item span {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
    color: var(--special-template-title-1);
}

.location-popup-info {
    display: flex;
}

.location-popup-info .location-image {
    flex: none;
    width: 33%;
    margin-right: 4px;
}

.location-popup-info .location-image .location-image-inner {
    width: 100%;
    aspect-ratio: 1.38;
    background-size: cover;
    background-position: center center;
    border-radius: 4px;
    overflow: hidden;
}

.location-popup-info .location-info p {
    margin-bottom: 0;
}

.location-popup-info .location-info .location-name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.1px;
    color: var(--special-template-title-1);
}

.location-popup-info .location-info .location-address {
    font-size: 12px;
    line-height: 16px;
    color: var(--maps-gray-dark);
    letter-spacing: 0.4px;
}

.router-hd {
    color: var(--special-template-title-1);
}

.esri-component.esri-expand {
    transition: margin-left 0.5s ease-in-out;
}

.esri-component.esri-expand.sidebar-open {
    margin-left: 300px;
}

.esri-view .esri-view-surface:focus:after,
.esri-input:focus {
    outline: 0;
}

.esri-ui-corner .esri-component {
    font-family: "Inter";
}

.esri-input[type=text], .esri-input[type=password], .esri-input[type=number] {
    height: 40px;
}

.esri-search .esri-widget--button {
    border: 0;
}

.button:focus {
    outline: 0;
}

/*ICON ARCGIS*/
.esri-widget--button{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.esri-component.esri-zoom > .esri-widget--button:first-of-type{
    border-radius: 4px 4px 0 0;
}

.esri-component.esri-zoom > .esri-widget--button:last-of-type{
    border-radius: 0 0 4px 4px;
}

.esri-zoom .esri-widget--button:last-child{
    border-bottom: 1px solid var(--maps-border-light);
}

.esri-ui-corner .esri-component{
    box-shadow: 0 0 16px rgba(16, 24, 40, 0.12);
}

.esri-ui-bottom-left{
    transition: all 0.5s ease-in-out;
}

.esri-ui-bottom-left.map-sidebar-show{
    left: 600px;
}

.esri-component.esri-expand{
    border-radius: 8px;
    border: 2px solid var(--white);
    box-shadow: 0 0 8px rgba(3, 14, 55, 0.2);
}

.esri-component.esri-expand .esri-icon-collapse{
    transform: none;
}

.esri-component.esri-expand .esri-widget--button{
    width: 90px;
    height: 90px;
    background-image: url("../images/img_maps_layer1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    align-items: flex-end;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: left;
    padding: 6px;
}

.esri-component.esri-expand .esri-icon-font-fallback-text{
    font-family: "Inter" !important;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--white);
    width: 100%;
    height: auto;
    position: relative;
    text-align: left;
}

.esri-basemap-gallery__item-title{
    font-family: "Inter";
    font-size: 14px;
    line-height: 20px;
    color: var(--special-template-title-1);
}

.esri-component.esri-expand .esri-collapse__icon::before{
    content: none;
}

.esri-icon:before,
.esri-icon-search:before,
.esri-component.esri-expand .esri-collapse__icon {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--special-template-title-1);
    vertical-align: top;
}

.esri-component.esri-expand .esri-collapse__icon {
    mask: url("../images/icon_layers.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon_layers.svg") no-repeat center / contain;
    background-color: var(--white);
}

.esri-icon-search:before {
    mask: url("../images/icon_search.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon_search.svg") no-repeat center / contain;
}

/* .esri-icon-center:before {
    background-image: url("../images/icon_center.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.esri-icon-rotate:before {
    background-image: url("../images/icon_rotate.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
} */

.esri-icon-locate:before {
    mask: url("../images/icon_my_location.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon_my_location.svg") no-repeat center / contain;
}

.esri-rotating::before {
    mask: url("../images/icon_progress_activity.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon_progress_activity.svg") no-repeat center / contain;
}

/* .esri-icon-printer:before {
    background-image: url("../images/print.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.esri-icon-check-mark:before {
    background-image: url("../images/print1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
} */

.esri-widget--button,
.esri-ui-corner .esri-component {
    border-radius: 4px;
}

.esri-icon-plus:before {
    mask: url("../images/icon_plus.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon_plus.svg") no-repeat center / contain;
}

.esri-icon-minus:before {
    mask: url("../images/icon_minus.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon_minus.svg") no-repeat center / contain;
}

.esri-icon-erase:before {
    mask: url("../images/icon_directions_off.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon_directions_off.svg") no-repeat center / contain;
}

.esri-icon-location:before {
    mask: url("../images/icon_location_on.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon_location_on.svg") no-repeat center / contain;
}

.esri-icon-expand:before {
    mask: url("../images/icon_expand.svg") no-repeat center / contain;
    -webkit-mask: url("../images/icon_expand.svg") no-repeat center / contain;
}

/*********************Popup Location***********************/

.esri-view-width-xlarge .esri-popup__main-container{
    width: 300px;
}

#routerDirection .esri-popup__main-container {
    max-height: 450px;
}

.esri-popup.esri-popup--shadow{
    box-shadow: none;
}

.esri-popup__main-container{
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(3, 14, 55, 0.2);
}

.esri-popup__pointer .esri-popup--shadow {
    box-shadow: 0 1px 8px rgba(3, 14, 55, 0.2);
}

.esri-popup__content{
    margin: 0 16px 16px;
    /* padding-right: 10px; */
    scrollbar-color: var(--scrollbar-thumb) var(--white);
    scrollbar-width: thin;
}

.popup-content > .popup-info:not(:last-of-type){
    margin-bottom: 8px;
}

.popup-content > .popup-info{
    display: flex;
    flex-wrap: wrap;
}

.popup-content > .popup-info.group-info{
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.popup-content .group-info .popup-image{
    width: 72px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 16px;
    margin-bottom: 8px;
    flex: none;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.popup-content .group-info .popup-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: none;
}

.popup-content .group-info .popup-name{
    flex-grow: 1;
    margin-bottom: 8px;
}

.popup-content .group-info .popup-name span{
    font-size: 16px;
    line-height: 24px;
    display: block;
    color: var(--special-template-title-1);
}

.popup-content .group-info .popup-name .name{
    font-family: "Inter";
    font-weight: 600;
}

.popup-content > .popup-info:not(.group-info) .title-opacity{
    flex-grow: 1;
    margin-right: 8px;
}

.popup-content > .popup-info span{
    font-family: "Inter";
    font-size: 16px;
    line-height: 24px;
    color: var(--special-template-title-1);
    display: inline-block;
}

.popup-content > .popup-info:not(.group-info) span:not(.title-opacity){
    font-family: "Inter";
    font-weight: 600;
}

.popup-content > .popup-info .title-opacity{
    font-size: 14px;
}

.opacity-50{
    opacity: 0.5;
}

.opacity-70{
    opacity: 0.7;
}

.esri-popup__footer .esri-popup__button {
    font-family: "Inter";
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--special-template-color-1);
    background-color: var(--special-template-button-3);
    margin-bottom: 10px;
    margin-left: 0;
}

.esri-popup__footer .esri-popup__navigation{
    border-radius: 4px;
    /* background-color: var(--green-light); */
    margin: 0 16px 10px;
    border: 0;
}

.esri-popup__footer .esri-popup__navigation .esri-popup__button{
    border-radius: 0;
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
}

.esri-popup__footer .esri-popup__navigation .esri-popup__button.esri-popup__pagination-next {
    order: 1;
}

.esri-popup__feature-menu-button {
    border: 0;
    padding: 0;
    color: var(--special-template-title-1);
}

.esri-popup__feature-menu-button .esri-popup__feature-menu-button-icon {
    display: none;
}

.esri-component.esri-popup--is-docked.esri-popup--is-docked-top-right .esri-popup__footer .esri-popup__button,
.esri-component.esri-popup--is-docked.esri-popup--is-docked-top-right .esri-popup__footer .esri-popup__navigation{
    margin-bottom: 6px;
}

.esri-component.esri-popup--is-docked.esri-popup--is-docked-top-right .esri-popup__footer .esri-popup__navigation .esri-popup__button{
    margin-bottom: 0;
}

.esri-ui .esri-popup--is-docked.esri-popup--is-docked-top-right .esri-popup__footer {
    order: 1;
}

.esri-popup__footer .esri-popup__button.esri-popup__action .esri-popup__icon{
    display: none;
}

.esri-popup__inline-actions-container{
    padding: 0 16px;
    gap: 8px;
}

.esri-popup__header-buttons .esri-popup__button:last-of-type{
    border-radius: 50%;
    background-color: var(--maps-gray);
    width: 19px;
    height: 19px;
    padding: 0;
    margin-top: 10px;
    /* opacity: 0.5; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.esri-popup__header-buttons .esri-popup__button.esri-popup__button--dock{
    margin-right: 5px;
}

.esri-popup__header {
    position: static !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.esri-popup__footer--has-pagination .esri-popup__inline-actions-container {
    width: auto;
}

.esri-icon-handle-horizontal::before {
    line-height: 20px;
}

.esri-popup__footer {
    flex-wrap: wrap;
}

.esri-popup--is-docked{
    right: 50px;
}

.esri-basemap-gallery,
.esri-basemap-gallery__item-thumbnail{
    border-radius: 4px;
}

.esri-basemap-gallery__item-title{
    padding: 0 10px;
    color: var(--special-template-title-1);
}

/* .esri-icon-close:before {
    font-size: 12px;
    line-height: 16px;
    display: block;
    text-align: center;
    color: var(--white);
} */

/* .esri-ui .esri-popup .esri-widget__heading {
    display: none;
} */

.esri-features__container {
    max-height: 100%;
    overflow: auto;
}

.esri-view-width-greater-than-large .esri-ui-corner .esri-basemap-gallery {
    width: 300px;
}

.esri-basemap-gallery__item-container {
    display: flex;
    flex-flow: column nowrap;
    position: relative;
    transition: opacity 250ms ease-in-out;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    gap: 0;
}

.esri-basemap-gallery:focus-within {
    outline: 0;
}

.esri-basemap-gallery__item {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 6px 7px;
    cursor: pointer;
    border-left: 3px solid rgba(0, 0, 0, 0);
    border-right: 3px solid rgba(0, 0, 0, 0);
    border-top: 0;
    border-bottom: 0;
    animation: esri-fade-in 500ms ease-in-out;
    transition: background-color 250ms ease-in-out;
}

@supports (object-fit: cover) {
    .esri-basemap-gallery__item .esri-basemap-gallery__item-thumbnail {
        height: 64px;
        width: 64px;
        object-fit: cover;
        min-width: unset;
    }
}

.esri-basemap-gallery__item .esri-basemap-gallery__item-thumbnail {
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(110, 110, 110, .3);
}

.esri-basemap-gallery--grid .esri-basemap-gallery__item-content {
    width: auto;
}

.esri-basemap-gallery__item-title {
    padding: 0;
}

.esri-basemap-gallery__item--selected, .esri-basemap-gallery__item.esri-basemap-gallery__item--selected:hover, .esri-basemap-gallery__item.esri-basemap-gallery__item--selected:focus {
    border-left-color: var(--special-template-color-1);
    border-right-color: transparent;
}

.esri-basemap-gallery__item:hover {
    /* border-left-color: var(--special-template-color-1);
    border-right-color: transparent; */
    border-color: transparent;
}

:host([scale=m]) .button {
    outline: 0 !important;
}

@media screen and (max-width: 600px){
    .esri-view-width-xsmall .esri-expand--auto .esri-expand__mask--expanded {
        display: none;
    }

    .esri-view-width-xsmall .esri-expand--auto .esri-expand__container--expanded {
        position: relative;
        height: auto;
        overflow: unset;
    }

    .esri-view-height-small .esri-ui-corner .esri-component .esri-expand__content {
        position: absolute;
        top: -250px;
        bottom: auto;
        left: 0;
        margin: 0;
    }

    .esri-basemap-gallery--grid .esri-basemap-gallery__item-container {
        display: flex !important;
    }

    .esri-basemap-gallery--grid .esri-basemap-gallery__item {
        flex-direction: row;
    }

    .esri-view-width-xsmall .esri-expand--auto .esri-expand__container--expanded .esri-expand__panel {
        display: block;
        padding: 0;
    }

    .esri-view-width-xsmall .esri-expand--auto .esri-widget {
        width: 230px;
    }
}