﻿/* typical phone screen resolution */
@media only screen and (max-width : 667px) {

    div#pageMaps, div#pageMaps > div {
        height: 95vh;
    }

    .tags {
        position: relative;
        right: auto;
        left: auto;
        top: auto;
        max-width: 100%;
        gap: 10px;
    }

    div#place-details-wrapper {
        max-width: 100%;
    }

    .right-sidebar.show {
        width: 100%;
        z-index: 10000;
    }

    div#place-details-wrapper.show button.closeBox {
        display: none;
    }

    section.share-location a.goto-mobile {
        display: inline-block;
    }

    #closeForMobile {
        display: none;
        justify-content: center;
        align-items: center;
        padding: 8px;
        height: 30px;
    }

    .search-box button#startDirection {
        display: none;
    }

    div#search-container {
        padding: 0;
        display: flex;
        align-items: center;
        left: 0;
        right: 0;
        width: 90vw;
    }

    .search-box, .directions-search-box {
        width: 100%;
    }

    div#baseMaps {
        left: auto;
        right: 20px;
        bottom: 10vh;
    }

    .tray {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 90vh;
        background: white;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        transform: translateY(50%);
        transition: transform 0.3s ease;
        touch-action: none;
        display: block;
        z-index: 1000;
    }

    .handle {
        width: 40px;
        height: 5px;
        background: #ccc;
        border-radius: 3px;
        margin: 10px auto;
    }

    .tray-content {
        overflow-y: auto;
        height: 100%;
    }

    .search-box button#search-button {
        left: 5px;
        height: 30px;
    }

    .dropdown.cultureDropdown .dropdown-content {
        position: relative;
        width: 100%;
        display: flex;
        box-shadow: none;
        justify-content: space-evenly;
        left: auto;
        right: auto;
    }

    .dropdown.cultureDropdown {
        width: 100%;
    }

        .dropdown.cultureDropdown button.flag-btn {
            display: none;
        }

        .dropdown.cultureDropdown .dropdown-content a {
            border-radius: 10px;
            box-shadow: rgb(230, 230, 230) 0px 0px 0px 1px inset;
            padding: 10px 30px;
        }

    .tray-content h3 {
        text-align: center;
        padding: 10px 0;
        font-size: 16px;
        font-weight: bold;
    }

    .tray-content > div {
        background: white;
        padding: 20px;
        border-top: 10px solid whitesmoke;
        margin-bottom: 20px;
    }

        .tray-content > div:first-child {
            border: none;
        }

    .dropdown.cultureDropdown {
        width: 100%;
    }

        .dropdown.cultureDropdown button.flag-btn {
            display: none;
        }

        .dropdown.cultureDropdown .dropdown-content a {
            border-radius: 10px;
            box-shadow: rgb(230, 230, 230) 0px 0px 0px 1px inset;
            padding: 10px 30px;
        }



    .tags .search-tag {
        flex: 1 1 30%; /* 3 per row with 10px gap */
        min-width: fit-content;
        flex-direction: column;
        height: fit-content;
        margin: 0;
    }

    a.search-tag img {
        margin: 10px 0;
    }

    button.directions-button {
        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: 100%;
        border: none;
        margin: 10px auto;
        justify-content: center;
    }

    .splash-screen-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #003449bf;
        z-index: 100000;
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;
    }

    .splash-screen {
        width: calc(100vw - 50px);
        height: calc(60vh - 20px);
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 10px;
    }

        .splash-screen h1 {
            font-size: 24px;
            margin-bottom: 20px;
            text-align: center;
        }

    .splash-buttons {
        display: flex;
        gap: 15px;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

        .splash-buttons button {
            padding: 12px;
            font-size: 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            width: 100%;
            position: relative;
            top: auto;
            right: auto;
            height: auto;
            left: auto;
        }

    .redirect-btn {
        background-color: #2cc0b6;
        color: white;
    }

    .close-btn {
        background-color: #6c757d;
        color: white;
    }

    div#searchBackButton img {
        border-radius: 20px;
        margin-left: 80px;
    }

    .goto-mobile {
        display: inline-block;
        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;
        text-decoration: none;
        color: #003449 !important;
    }

        .goto-mobile span {
            font-size: 8pt;
        }

    div#place-details-wrapper .place-details .container {
        height: 100vh;
    }
}
/* landscape orientation */
@media only screen and (min-width : 375px) and (max-width : 667px) and (orientation : landscape) {
}
/* portrait orientation */
@media only screen and (min-width : 375px) and (max-width : 667px) and (orientation : portrait) {
}
