:root {
    --balady-main-cyan: #2FCDC2;
}

@font-face {
    font-family: "NHC";
    src: url(fonts/nhc-arabic.ttf);
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "_Balady";
    src: url(fonts/NotoKufiArabic.ttf);
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FrutigerLTArabic45Light';
    src: url('fonts/FrutigerLTArabic45Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Balady';
    src: url('fonts/FrutigerLTArabic55Roman.ttf') format('truetype');
}

@font-face {
    font-family: 'FrutigerLTArabic65Bold';
    src: url('fonts/FrutigerLTArabic65Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'FrutigerLTArabic75Black';
    src: url('fonts/FrutigerLTArabic75Black.ttf') format('truetype');
}

html * {
    font-size: 10pt;
    font-family: "Balady"
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    font-family: "Balady";
    padding: 0;
    margin: 0;
}

div#pageMaps, div#pageMaps > div {
    width: 100%;
    height: 100vh;
}

div#pageMaps {
    position: relative;
}

div#esriMap, div#urbiMap {
    position: absolute;
    left: 0;
    top: 0;
}

    div#urbiMap.show {
        z-index: 1;
    }

    div#urbiMap canvas {
        width: 100% !important;
    }

button.myLocation, button#map3d, button.flag-btn, .map-button {
    background: #fff;
    box-shadow: 0 1px 3px 0 rgba(38, 38, 38, 0.5);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    align-content: center;
    justify-content: center;
    padding: 3px;
    align-items: center;
}

    .map-button img {
        height: 100%;
    }


div.right-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 0;
    bottom: 0;
}

div#search-container {
    padding: 0;
    border: none;
    z-index: 10;
    position: relative;
    margin: 20px auto;
    width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.right-sidebar:not(.show) div#search-container {
    margin: 20px;
}

div#searchBox .autoComplete_wrapper {
    width: 100%;
    height: 37px;
}


.search-box, .directions-search-box {
    position: relative;
    width: 310px;
    height: 40px;
    border-radius: 50px;
    border: thin solid silver;
    background: white;
}

    .search-box #search-box, #startPoint, #endPoint {
        position: absolute;
        right: 10px;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1;
        border: none;
        border-radius: 20px;
    }

    .search-box button#startDirection {
        left: 7px !important;
    }

div.directions-search-box {
    display: none;
    height: fit-content;
    border-radius: 10px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px;
    gap: 10px;
}

div#directionsResult {
    display: flex;
    position: absolute;
}

ul.route-wrapper li .directions-input-wrapper label {
    padding: 10px;
    display: inline-block;
}

ul.directions-result-list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    list-style: none;
}

ul#route-wrapper:after {
    content: "";
    position: absolute;
    width: 2px;
    background: #D2D2D2;
    right: 5px;
    top: 35px;
    bottom: 37px;
}

#directionsResult ul#route-wrapper:after {
    top: 30px;
    bottom: 30px;
}

ul.directions-result-list li.direction-item {
    display: flex;
    width: 100%;
    background: whitesmoke;
    border-radius: 8px;
    margin: 10px 0;
    padding: 10px;
    align-items: center;
}

    ul.directions-result-list li.direction-item .info {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

#directionsResult ul.route-wrapper li .directions-input-wrapper {
    background: white;
}

ul.directions-result-list li.direction-item .control button {
    /* Frame 17 */
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 36px;
    background: #003449;
    border-radius: 7px;
    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
    color: white;
    border: none;
    padding: 0 43px;
}

ul.directions-result-list li.direction-item .info span.time {
    font-size: 12pt;
    font-weight: bold;
}

ul.directions-result-list li.direction-item .info .distance {
    font-size: calc(12pt/1.61);
}

.directions-option-controls {
    display: flex;
    gap: 10px;
}

    .directions-option-controls button {
        width: 100%;
        padding: 12px 0;
        border: thin solid whitesmoke;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .directions-option-controls button.active {
            border: thin solid #003449;
        }

ul.route-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.search-box button#search-button, .search-box button#startDirection {
    border: none;
    background: whitesmoke;
    z-index: 2;
    width: 30px;
    height: 30px;
    position: absolute;
    left: 50px;
    top: 5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

div#searchBox img {
    height: 50%;
    filter: brightness(0.9);
}

.search-box button#search-button:hover {
    transform: translate(2px,-2px);
}

.search-box #search-box:focus-visible {
    outline: none;
}

.dropdown-active .ts-control, .ts-control {
    border: none;
    border-radius: 50px;
}


.autoComplete_wrapper {
    border-radius: 50px;
}

    .autoComplete_wrapper ul[id*="autoComplete_list"] {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        list-style: none;
        padding: 0;
        margin: 0;
        background: white;
        border-radius: 8px;
        z-index: 10;
        border: thin solid silver;
    }

        .autoComplete_wrapper ul[id*="autoComplete_list"] li small {
            display: none;
        }

        .autoComplete_wrapper ul[id*="autoComplete_list"] li {
            padding: 10PX;
            border-bottom: thin solid whitesmoke;
            transition: all 0.3s ease;
        }

            .autoComplete_wrapper ul[id*="autoComplete_list"] li mark {
                padding: 0;
                background: none;
                font-weight: bold;
                color: #158b67;
            }

            .autoComplete_wrapper ul[id*="autoComplete_list"] li:hover {
                padding-right: 15px;
                background: white;
                cursor: pointer;
            }

            .autoComplete_wrapper ul[id*="autoComplete_list"] li label {
                color: silver;
                font: normal 10pt tahoma;
                display: block;
                margin-top: 10px;
            }


        .autoComplete_wrapper ul[id*="autoComplete_list"] li {
            display: flex;
            flex-direction: column;
        }

            .autoComplete_wrapper ul[id*="autoComplete_list"] li > * {
                width: 100%;
            }

            .autoComplete_wrapper ul[id*="autoComplete_list"] li > strong, .autoComplete_wrapper ul[id*="autoComplete_list"] li > strong mark {
                font-size: 12pt;
            }

/*Sidebar*/

div#place-details-wrapper {
    max-width: 20vw;
    background: white;
    box-shadow: 0 15px 10px -11px silver;
    width: 0;
    transition: all 0.3s ease;
    margin-top: 0;
    z-index: 1;
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: 0;
}

#route-info-wrapper {
    top: 80px;
}

div#place-details-wrapper .container h1, div#place-details-wrapper .container h2, div#place-details-wrapper .container h3 {
    font-size: 15pt;
    margin-bottom: 20px;
    display: inline-block;
    height: 28px;
    max-width: calc(100% - 60px);
}

    div#place-details-wrapper .container h1:not(:first-child), div#place-details-wrapper .container h2:not(:first-child), div#place-details-wrapper .container h3:not(:first-child) {
        margin-right: 10px;
    }

div#place-details-wrapper .container .img-wrapper {
    height: 250px;
    display: block;
    overflow: hidden;
    padding: 0;
}

    div#place-details-wrapper .container .img-wrapper img {
        width: 100%;
    }

div#place-details-wrapper .container .section {
    padding: 18px;
    border-right: none;
    border-left: none;
    box-shadow: 0px 3px 3px #e5e5e5;
}

    div#place-details-wrapper .container .section > * {
        margin: 5px 0;
    }

    div#place-details-wrapper .container .section > h2 {
        font-weight: bold;
        margin-bottom: 18px;
    }

div#place-details-wrapper .container {
    padding: 0;
}

    div#place-details-wrapper .container > * {
        padding: 10px;
    }

    div#place-details-wrapper .container table {
        margin: 15px auto;
        width: 100%;
    }

        div#place-details-wrapper .container table tr {
            border-bottom: thin solid whitesmoke
        }

            div#place-details-wrapper .container table tr:last-child {
                border: none;
            }

            div#place-details-wrapper .container table tr td {
                padding: 5px;
            }

div#route-info-wrapper {
    width: 310px;
    height: 61px;
    border-radius: 8px;
    border: thin solid silver;
    background: white;
    padding: 10px 16px;
    display: flex;
    justify-content: space-evenly;
    margin-top: 15px;
}

    div#route-info-wrapper p {
        margin: 0;
        font-size: 17pt;
        font-weight: bold;
    }

    div#route-info-wrapper img {
        height: 25px;
        margin-left: 20px;
        margin-top: 5px;
        margin-bottom: 10px;
    }


ul {
}



/**Tags*/

.tags {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0px;
    margin: 10px 0;
    position: absolute;
    right: 360px;
    top: 10px;
    z-index: 3;
    max-width: Calc(100vw - 430px);
}

    .tags .search-tag {
        margin-left: 15px;
        margin-bottom: 15px;
        min-width: 0px;
        font-weight: 400;
        letter-spacing: -0.7px;
        padding: 6px 15px;
        border-radius: 10px;
        box-shadow: rgb(230, 230, 230) 0px 0px 0px 1px inset;
        color: rgb(38, 38, 38);
        display: inline-flex;
        box-sizing: border-box;
        user-select: none;
        cursor: pointer;
        background-color: rgb(255, 255, 255);
        transition: box-shadow 200ms, color 200ms;
        text-decoration: none;
        font-size: 10pt;
        font-family: "Balady";
        height: 42px;
        display: flex;
        align-items: center;
        width: fit-content;
    }


a.search-tag img {
    height: 20px;
    margin-left: 10px;
}

a#moreTags img, a#lessTags img {
    margin: 0;
}

.hide {
    display: none !important;
}

button#reset {
    padding: 0;
    outline: 0;
    border: none;
    cursor: pointer;
    height: 32px;
    color: #262626;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 400;
    background: #fff;
    box-shadow: 0 1px 3px 0 rgba(38, 38, 38, 0.5);
    border-radius: 4px;
    width: 32px;
}

    button#reset.selected {
        background: #3588fd;
        color: white;
    }


div#place-details-wrapper.show, .right-sidebar.show {
    width: 100%;
    opacity: 1;
}

.right-sidebar.show {
    width: 350px;
    opacity: 1;
}

#closeForMobile {
    display: none;
    border: none;
    background: whitesmoke;
    z-index: 2;
    width: 30px;
    height: 30px;
    position: absolute;
    left: 50px;
    top: 5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    left: 7px !important;
}


div#place-details-wrapper.show button.closeBox {
    display: block;
    position: absolute;
}


input#endPoint {
}

div#directionsSearchBox .autoComplete_wrapper {
    top: 0;
    height: 45px;
}

div#directionsSearchBox input {
    border: none;
    padding: 0 10px;
    background: none;
    height: 100%;
    width: 100%;
}


input#startPoint::after {
    display: block;
}

div#directionsSearchBox > div.autoComplete_wrapper:nth-child(2):after {
    content: "A";
    position: absolute;
    left: -25px;
    top: 13px;
    background: #40a3fe;
    width: 20px;
    height: 20px;
    border: thin solid white;
    box-shadow: 0 0 3px gray;
    border-radius: 50%;
    color: white;
    font-size: 8pt;
    text-align: center;
    z-index: 2;
}

div#directionsSearchBox > div.autoComplete_wrapper:last-child:after {
    content: "B";
    position: absolute;
    left: -25px;
    top: 13px;
    background: #56b517;
    width: 20px;
    height: 20px;
    border: thin solid white;
    box-shadow: 0 0 3px gray;
    border-radius: 50%;
    color: white;
    font-size: 8pt;
    text-align: center;
    z-index: 2;
}

div#directionsSearchBox > div:last-child:before {
    content: "";
    height: 29px;
    left: -17px;
    border-left: 5px dotted gray;
    position: absolute;
    top: -14px;
    z-index: 1;
    width: 0px;
}

div#directionsSearchBox .autoComplete_wrapper:last-child input {
    border: none;
    width: 100%;
}

ul.route-wrapper li {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

ul#route-wrapper li:last-child {
    border: none;
}

ul.route-wrapper li:nth-last-child(2) {
    border: none;
}

ul#route-wrapper li button#addPlace {
    border: thin solid silver;
    background: whitesmoke;
    width: 100%;
    height: 40px;
}

div.directions-search-box header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

ul#route-wrapper li directions-input-wrapper {
    flex-grow: 1;
}

ul#route-wrapper li .directions-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: whitesmoke;
    gap: 10px;
    padding-left: 10px;
}

ul.route-wrapper li .directions-input-wrapper .autoComplete_wrapper {
    flex-grow: 1;
}

ul#route-wrapper li:first-child .directions-input-wrapper {
    border-radius: 7px 7px 0 0;
}

ul#route-wrapper li:nth-child(2) .directions-input-wrapper {
    border-radius: 0 0 7px 7px;
}

.mark, mark {
    padding: 0
}


button.closeBox {
    border: none;
    background: whitesmoke;
    border-radius: 20px;
    color: black;
    width: 30px;
    height: 30px;
}

#photos div#carousel div#carouselTrack {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    padding: 10px;
}

    #photos div#carousel div#carouselTrack img {
        height: 160px;
        width: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 18px;
    }

.carousel-expanded .carousel-wrapper {
    position: relative;
}

.carousel-expanded .carousel-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid #ccc;
}

.carousel-expanded .carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
    direction: ltr;
}

    .carousel-expanded .carousel-track img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        flex-shrink: 0;
    }

.carousel-expanded .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-1 .arrow {
    display: none;
}

.carousel-expanded .arrow.left {
    left: 10px;
}

.carousel-expanded .arrow.right {
    right: 10px;
}

/* Expanded view styles */
.carousel-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90vw;
    height: 90vh;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .carousel-expanded .carousel-container {
        width: 100%;
        height: 100%;
        cursor: auto;
    }

.carousel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10000;
}


.container section {
    border-bottom: thin solid silver;
    border-right: none;
    border-left: none;
    padding: 10px 0;
    position: relative;
}

    .container section .distance-wrapper img {
        height: 12px;
        margin: 0 10px;
    }

    .container section .distance-wrapper, .container section .distance {
        display: inline-block;
        position: absolute;
        left: 0;
    }

    .container section .distance {
        bottom: 5px;
    }

section.features ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

    section.features ul li {
        margin: 0 10px;
    }

        section.features ul li:first-child {
            margin-right: 0;
        }

        section.features ul li img {
            margin-left: 5px;
            height: 15px;
        }

div#place-details-wrapper .place-details div#infoWrapper {
    overflow: auto;
}

div#place-details-wrapper .place-details .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

section.share-location img {
    width: 30px;
    margin: 5px;
}

section.share-location a.goto-mobile {
    display: none;
}



.container h2, .container h3 {
    margin: 0;
}


div#moreCat {
    display: flex;
    flex-wrap: wrap;
}


div#perspectiveTools button {
    /* 2D */
    /* Auto layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7px;
    gap: 10px;
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
    border: none;
}

button.perspective-button.\33 d .\32 d {
    display: none;
}

div#perspectiveTools button .\33 d {
    display: none;
}

button.perspective-button.\33 d .\33 d {
    display: block !important;
}



div#baseMaps {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 80px;
    height: 80px;
    padding: 5px;
    background: white;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 5px silver;
    z-index: 3;
}

    div#baseMaps > div {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        position: absolute;
        border-radius: 5px;
        transition: transform 0.4s ease, opacity 0.4s ease;
        opacity: 0;
        transform: translateX(100%);
        cursor: pointer;
        z-index: 0;
        overflow: hidden;
    }

        div#baseMaps > div.active {
            opacity: 1;
            transform: translateX(0);
            z-index: 1;
        }

        div#baseMaps > div.exit-left {
            transform: translateX(-100%);
            opacity: 0;
            z-index: 0;
        }

        div#baseMaps > div.exit-right {
            transform: translateX(100%);
            opacity: 0;
            z-index: 0;
        }


div#place-details-wrapper .place-details {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

div#place-details-wrapper button.closeBox {
    top: calc(50% - 12.5px);
    left: -30px;
    border-radius: 0;
    border: none;
    border-radius: 5px 0 0 5px;
    display: none;
}

section.share-location a:first-child {
    margin: 0;
}

section.share-location a {
    background: #2fcdc2;
    display: inline-block;
    border-radius: 3px;
    height: fit-content;
    border: thin solid var(--balady-main-cyan);
    color: white;
}

    section.share-location a img {
        height: 100%;
    }

    section.share-location a.add-to-balady span {
        border: none;
    }

    section.share-location a span {
        border-right: thin solid #ffffff6b;
        padding: 5px;
        display: inline-block;
    }

div#place-details-wrapper .container .section span:not(.coords) {
    display: block;
    font-weight: normal;
    margin-bottom: 5px;
}

div#place-details-wrapper .container .section p {
    font-weight: bold;
}

section.share-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


section.address-section {
    display: flex;
}

    section.address-section > div {
        margin-left: 15px;
        border-left: thin solid silver;
        padding-left: 13px;
    }

button#navigateFromAddress {
}

section.address-section button#navigateFromAddress {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

    section.address-section button#navigateFromAddress img {
        height: 30px;
    }

section.address-section > div:last-child {
    border: none;
    padding: 0;
}

/**Tree simulation*/

.tree {
    list-style: none;
    padding: 0;
    margin: 0;
    direction: rtl;
}

    .tree li {
        position: relative;
        margin: 0.5em 0;
        text-align: right;
        background: whitesmoke;
        padding: 5px;
    }

        /* Dynamic depth using nth-child */
        .tree li:nth-child(n) {
            --level: 0;
        }

        .tree li:nth-child(2) {
            --level: 1;
        }

        .tree li:nth-child(3) {
            --level: 2;
        }

        .tree li:nth-child(4) {
            --level: 3;
        }

.section ul.tree li {
    display: flex;
    justify-content: space-between;
}

    .section ul.tree li span.category {
        background: silver;
        color: white;
        padding: 0 5px;
        width: 55px;
        border-radius: 10px;
        text-align: center;
    }

    .section ul.tree li span {
        margin: 0 !important;
    }
/* Extend as needed */

.tree li {
    margin-right: calc((var(--level) + 1) * 1em);
}

    /* Connector lines */
    .tree li::before,
    .tree li::after {
        content: "";
        position: absolute;
        background: #888;
    }

    /* Vertical line (on the right) */
    .tree li::before {
        top: -4px;
        bottom: 15px;
        width: 1px;
        right: calc(var(--level) * -15px);
    }

    /* Horizontal line to the item text */
    .tree li::after {
        top: 15px;
        height: 1px;
        width: calc(15px * var(--level));
        right: calc(var( --level) * -15px);
    }

    .tree li:first-child:after, .tree li:first-child:before {
        display: none;
    }


/**Culture switch*/

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50px;
    background-color: white;
    min-width: 100px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    top: 0;
}

    .dropdown-content a {
        color: black;
        padding: 8px 12px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #f0f0f0;
        }

.dropdown.show .dropdown-content {
    display: block;
}

.flag-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.flag-img {
    width: 20px;
    height: auto;
}

button.myLocation img {
    width: 100%;
}


/**Search resutls*/

.list-wrapper {
    padding-top: 100px;
    height: 100%;
}

    .list-wrapper ul#result-list {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        overflow: auto;
    }

        .list-wrapper ul#result-list li {
            display: flex;
            border-bottom: thin solid silver;
        }

            .list-wrapper ul#result-list li button#directions {
                background: none;
                border: none;
                padding: 10px;
            }

            .list-wrapper ul#result-list li:last-child {
                border: none;
            }

        .list-wrapper ul#result-list .list_item {
            padding: 10px;
            transition: all 0.3s ease;
            position: relative;
            min-height: 100px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex-grow: 1;
        }

            .list-wrapper ul#result-list .list_item span.name {
                font-weight: bold;
                max-width: 230px;
            }

            .list-wrapper ul#result-list .list_item span.type, .list-wrapper ul#result-list .list_item span.address {
                font-size: calc(15px/1.31);
            }

            .list-wrapper ul#result-list .list_item span.address {
                color: gray;
                width: calc(100% - 70px);
            }

            .list-wrapper ul#result-list .list_item:hover, .list-wrapper ul#result-list .list_item *:hover {
                background: whitesmoke;
                cursor: pointer;
            }

            .list-wrapper ul#result-list .list_item span {
                display: block;
                margin: 10px 0;
            }

.keywordWrapper {
    display: flex;
    border-top: thin solid whitesmoke;
    max-width: 240px;
}

    .keywordWrapper span.keywordTags {
        font-size: 8pt;
        font-family: tahoma;
        background: gray;
        padding: 0 10px;
        border-radius: 10px;
        color: white;
        margin-right: 10px !important;
        display: inline-block !important;
    }

.list-wrapper ul#result-list .list_item span.type, .list-wrapper ul#result-list .list_item span.distance-span {
    position: absolute;
    left: 10px;
    top: 3px;
    background: #6dc234;
    color: white;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 8pt;
    white-space: nowrap; /* Prevents line break */
    overflow: hidden; /* Hides overflow text */
    text-overflow: ellipsis; /* Adds ... */
    max-width: 70px;
}

.list-wrapper ul#result-list .list_item span.distance-span {
    top: auto;
    bottom: 0;
    padding: 2px 10px;
    background: whitesmoke;
    color: gray;
}

div#searchBox.loading .autoComplete_wrapper, div#searchBox.loading .autoComplete_wrapper input {
    background: whitesmoke !important;
}

    div#searchBox.loading .autoComplete_wrapper:after {
        content: "";
        width: 25px;
        height: 25px;
        position: absolute;
        z-index: 11;
        left: 10px;
        top: 7px;
        background: url(../img/loading.png);
        background-size: contain;
        background-color: whitesmoke;
        animation: spin 4s linear infinite;
    }

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.accordion .accordion-header {
    position: relative;
    padding: 0;
    border-radius: 5px 5px 0 0;
    margin-bottom: 10px;
    display: flex;
    gap: 16px;
    margin: 0;
}

.accordion-header:after {
    content: "\F128";
    display: inline-block;
    position: absolute;
    left: 10px;
    font-family: bootstrap-icons !important;
}

div#place-details-wrapper .container > .poi-card section.time-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

    div#place-details-wrapper .container > .poi-card section.time-box .accordion {
        width: 100%;
    }

.accordion .accordion-header:hover, .accordion .accordion-header * :hover {
    cursor: pointer;
}

.accordion .accordion-content {
    border-radius: 0 0 5px 5px;
    height: 0;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
    border: none;
    width: 100%;
}

    .accordion .accordion-content.active {
        padding: 0;
        border-top: 0;
    }


li.useMyLocation-wrapper {
    height: 50px;
    display: flex;
    margin: 10px 0;
    padding: 10px;
    background: whitesmoke;
}

    li.useMyLocation-wrapper button {
        margin: 0;
        width: 100%;
        text-align: right;
        background: none;
        border: none;
    }


.routes-wrapper {
    display: none;
}

    .routes-wrapper.show {
        display: flex;
    }

    .routes-wrapper button {
        width: 100%;
        background: none;
        padding: 10px;
        margin: 10px;
        border: none;
    }

button#switchLocation {
    border: thin solid silver;
    margin-right: 0;
    padding: 0;
    background: whitesmoke;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

li.useMyLocation-wrapper button#useMyLocation {
    background: #003449;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    color: white;
    border-radius: 8px;
    width: auto;
    flex-grow: 1;
}


ul.route-wrapper-extended, ul.route-wrapper-extended li {
    padding: 0;
    margin: 0;
    background: none;
    gap: 10px;
}


.routes-wrapper button.active {
    background: whitesmoke;
}

.container section strong {
    display: block;
}

.container section span.openUntil {
    position: absolute;
    left: 0;
    top: 13px;
    background: #2fcdc2;
    padding: 5px 10px;
    color: white;
    border-radius: 10px;
    font: bold 8pt tahoma;
}


.container section.entrances-section {
    display: flex;
    justify-content: space-between;
    position: relative;
}

    .container section.entrances-section span.entrances-count {
        background: var(--balady-main-cyan);
        color: white;
        width: 20px;
        height: 20px;
        text-align: center;
        border-radius: 20px;
    }

section.entrances-section:after {
    content: "";
    position: absolute;
    height: 1px;
    right: 0;
    left: 30px;
    top: 20px;
    border: thin dashed var(--balady-main-cyan);
    z-index: -1;
}

.container section.entrances-section label {
    background: white;
    padding: 0 0 0 10px;
}


a.share-poi-location {
    background: none !important;
}

button.share-poi-location {
    background: none;
}

#copy-message {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #e5e0e0;
    color: #003449;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    font-size: 8pt;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

    #copy-message.show {
        opacity: 1;
        z-index: 1;
    }


/**Context Menu*/
#custom-menu, .context {
    position: absolute;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

ul.custom-menu-list {
    padding: 0;
    margin: 0;
}

.custom-menu-list-item {
    -webkit-box-align: center;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 8px 8px 12px;
    list-style-type: none;
    user-select: none;
    transition: all 0.3s ease;
}



    .custom-menu-list-item:hover {
        background: whitesmoke;
        cursor: pointer;
    }

        .custom-menu-list-item:hover * {
            cursor: pointer;
        }

.custom-menu-list-item-icon {
    -webkit-box-pack: center;
    -webkit-box-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
}


/*Tray*/

.tray {
    display: none;
}


/**Pulsing my location*/

.pulse-outer,
.pulse-inner,
.pulse-center {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -100%);
}

.pulse-outer {
    width: 24px;
    height: 24px;
    background-color: #0e8989;
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

.pulse-inner {
    width: 14px;
    height: 14px;
    background-color: #0e8989;
    border-radius: 50%;
    opacity: 0.8;
    animation: pulse-inner 1.5s infinite;
}

.pulse-center {
    width: 8px;
    height: 8px;
    background-color: #0e8989;
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        width: 24px;
        height: 24px;
        opacity: 0.5;
        transform: translate(-50%,-60%);
    }

    100% {
        width: 72px;
        height: 72px;
        opacity: 0;
        transform: translate(-50%,-60%);
    }
}

@keyframes pulse-inner {
    0%, 100% {
        transform: translate(-50%, -80%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -80%) scale(1.3);
        opacity: 1;
    }
}


.basemaps-wrapper {
    display: flex;
    justify-content: space-evenly;
}

    .basemaps-wrapper > div {
        width: 120px;
        height: 120px;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 0 5px gray;
        border: 4px solid white;
    }

        .basemaps-wrapper > div img {
            height: 100%;
        }

.splash-screen-bg {
    display: none;
}

.copyright {
    position: absolute;
    bottom: 5px;
    right: 10px;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    font-size: 12px;
    font-family: sans-serif;
    border-radius: 4px;
    z-index: 1;
}

.map-button.light .light {
    display: block
}

.map-button.light .dark {
    display: none
}

.map-button.dark .light {
    display: none;
}

.map-button.dark .dark {
    display: block;
}

.map-style-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .map-style-wrapper button {
        width: 60px;
        padding: 10px;
        background: whitesmoke;
        border-radius: 10px;
    }

        .map-style-wrapper button img {
            width: 100%;
        }


.container {
    max-width: 500px;
    margin: auto;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header {
    position: relative;
    height: 230px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: white;
    padding: 80px 10px 10px 10px;
    overflow: hidden;
}

    .header img {
        width: 100%;
        height: auto;
        display: block;
    }

.poi-card .content {
    padding: 16px;
    background: white;
    flex-shrink: 0;
}

.title {
    font-size: 1.5em;
    font-weight: bold;
}

.subtitle {
    color: gray;
    font-size: 0.9em;
    margin-top: 4px;
}

.poi-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.85em;
    position: relative;
    justify-content: space-evenly;
}

.poi-tag {
    border-radius: 8px;
    padding: 4px 10px;
    display: flex;
    gap: 5px;
    align-items: center;
    cursor: pointer;
}

.poi-card .card {
    margin: 16px;
    background-color: #e0f6f8;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: #1c7c84;
    font-weight: bold;
    position: relative;
}

.mall-card .info-section {
    background: #fff;
    padding: 16px;
    border-top: 1px solid #ddd;
}

.info-section h3 {
    margin: 0;
    font-size: 1.1em;
}

.info-section p {
    font-size: 0.9em;
    color: #666;
}

.poi-card .stats {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.9em;
}

.stat {
    background: #E6EBED;
    padding: 4px 10px;
    border-radius: 8px;
    color: #007d9c;
    display: flex;
    gap: 10px;
    align-items: center;
}

.description {
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.6;
}

.time-box {
    background: #fff;
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    font-size: 0.95em;
}

.contact {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
}

    .contact a {
        text-decoration: none;
        color: #007d9c;
        display: flex;
        gap: 10px;
    }

div#place-details-wrapper .container > .poi-card section.contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact a#phone span {
    direction: ltr;
}

.footer {
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #888;
    font-size: 0.85em;
}


div#place-details-wrapper .container .poi-card .img-wrapper {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

div#place-subtitle.subtitle img {
    height: 15px;
    margin: 10px;
}


div#place-subtitle.subtitle label {
    margin: 10px;
    margin-right: 0;
}

span.count {
    /* Frame 8 */
    /* Auto layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    background: #C4C4C4;
    border-radius: 5px;
    /* Inside auto layout */
    color: white;
}

.active span.count {
    background: #003449
}



.poi-tag.active {
    box-shadow: 0px 0px 4px -1px rgb(12 12 13 / 35%);
}

div#place-details-wrapper .container > .poi-card {
    background: whitesmoke;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

poi-card .section {
    background: white;
}

div#place-details-wrapper .container > .poi-card section {
    background: white;
    margin: 10px;
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.poi-card section span.distance {
    position: absolute;
    top: 20px;
    left: 20px;
}

.stats span.count {
    background: var(--balady-main-cyan);
}

.search-box button#startDirection img {
    height: 50%;
}

div#social-icons, div#social-icons a {
    /* height: 50px; */
}

    div#social-icons a img {
        height: 50%;
    }

div#social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.details-wrapper {
    flex: 1;
    overflow: auto;
}

div#place-details-wrapper .container > .poi-card .header {
    flex-shrink: 0;
}

/* Chrome, Edge, Safari */
.poi-card > .details-wrapper::-webkit-scrollbar {
    width: 4px;
    translate: all 0.3s ease;
}

.poi-card > .details-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.poi-card > .details-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    visibility: hidden;
}

.poi-card > .details-wrapper:hover::-webkit-scrollbar-thumb {
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.4);
}


.poi-tags.nav.nav-tabs {
    border: none;
}

section a.contribute {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    position: relative;
    color: black;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

a.contribute span {
    flex-grow: 1;
}

section a.contribute img.edit {
    width: 15px;
}


.goto-mobile {
    display: none;
}

.controls-wrapper {
    display: flex;
    gap: 20px;
}

    .controls-wrapper button {
        height: 50px;
        border: none;
        background: none;
        padding: 3px 18px;
        gap: 9px;
        display: flex;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        background: #F3F3F3;
        position: relative;
    }

        .controls-wrapper button img {
            height: 60%;
        }

.card-footer {
    background: white;
}

button#directions {
    background: #003449;
    color: white;
}

    button#directions img svg {
        fill: white;
    }

#photos div#carousel div#carouselTrack img:hover {
    transform: scale(1.04);
}


.autoComplete_result {
    padding: 10px;
}
