@import url(main.css);

html,
body {
    overscroll-behavior-y: none;
    --header-height: 60px;
}

.header-logo img {
    max-width: 80px;
}

.restaurants-section {
    display: flex;
    flex-direction: row-reverse;
    transform: translateY(var(--header-height));
}

.info-container {
    width: 400px;
    background-color: var(--c-background-main);
    box-shadow: var(--small-shadow);
}

.info-search-box {
    background-color: var(--c-background-light);
    width: 100%;
}

.info-search-box-content {
    padding: var(--general-padding) var(--general-padding);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-search-header {
    font-size: var(--fs-content);
    font-weight: 700;
    border-bottom: 1px solid var(--c-background-section-dim);
}

.info-search-box-wrapper {
    position: relative;
    width: 100%;
}

.info-search-input {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--c-background-main);
    border-radius: 12px;
    width: 100%;
}

.search-suggestions-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: var(--c-background-light);
    border: 1px solid var(--c-border-accent);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--small-shadow);
    display: none;
    z-index: 9999;
}

.sugg {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    border: 0;
    background: #fff;
    cursor: pointer;
}

.sugg-name {
    font-size: var(--fs-content-small);
    font-weight: 700;
    color: var(--c-text-main);
    margin-bottom: 4px;
}

.sugg-address {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-dim);
}

#info-box-panel {
    position: relative;
    transform: none;
}

.info-box-content {
    padding: calc(var(--general-padding) / 1.5);
}

.info-box-close i {
    font-size: var(--fs-content-strong);
    color: var(--c-text-dim);
    margin-bottom: 12px;
    cursor: pointer;
}

.info-box-horizontal-line {
    width: 100%;
    height: 2px;
    background-color: var(--c-border-accent);
    margin: 12px 0px;
}

.info-box-restaurant-name {
    font-size: var(--fs-content-strong);
    font-weight: 700;
    color: var(--c-theme-main);
    margin-bottom: 12px;
}

.info-box-restaurant-address {
    font-size: var(--fs-content-small);
    font-weight: 700;
    color: var(--c-text-main);
}

.info-box-restaurant-phone a {
    font-size: var(--fs-content-strong);
    font-weight: 700;
    color: var(--c-text-main) !important;
    text-decoration: none;
}

.info-box-text-1 {
    font-size: var(--fs-content-small);
    font-weight: 500;
    color: var(--c-text-main);
    margin-bottom: 8px;
}

.info-box-text-2 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-text-dim);
    margin-top: 4px;
}

.info-box-text-3 {
    font-size: var(--fs-content-small);
    font-weight: 700;
    color: var(--c-text-main);
    margin-bottom: 12px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    font-weight: 500;
    font-size: var(--fs-content);
    padding-bottom: 10px;
}

.hours-table td:nth-child(1) {
    width: 50%;
    color: var(--c-text-main);
}

.hours-table td:nth-child(2) {
    width: 50%;
    text-align: right;
    color: var(--c-theme-main);
}

.map {
    width: calc(100% - 400px);
    height: calc(100vh - var(--header-height));
}

@media only screen and (max-width: 768px) {
    .restaurants-section {
        flex-direction: column;
        max-height: calc(100vh - var(--header-height));
        max-height: calc(var(--mobile-real-vh, 100vh) - var(--header-height));
    }

    .restaurants-section {
        flex-direction: column;
        gap: 0px;
        position: relative;
        overflow: hidden;
    }

    .info-container {
        width: 100%;
        box-shadow: none;
    }

    .info-search-box {
        width: calc(100% - 24px);
        border-radius: var(--general-border-radius);
        position: absolute;
        z-index: 10000;
        left: 50%;
        top: 12px;
        transform: translateX(-50%);
        box-shadow: var(--block-shadow);
    }

    .info-search-input {
        font-size: 16px !important;
    }

    .info-box-content {
        padding-top: 6px;
    }

    #info-box-panel {
        overscroll-behavior: contain;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        /* height: calc(100dvh - var(--header-height, 60px)); */
        background: var(--c-background-light);
        border-radius: var(--general-border-radius) var(--general-border-radius) 0px 0px;
        box-shadow: var(--block-shadow);
        z-index: 9999;
        transform: translateY(100%);
        transition: transform 220ms ease;
        overflow: hidden;
    }

    #info-box-panel .info-box-close {
        display: none;
    }

    #info-box-panel .sheet-handle {
        padding: 10px 0px;
        display: flex;
        justify-content: center;
        cursor: grab;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }

    #info-box-panel .sheet-handle::before {
        content: "";
        width: 44px;
        height: 6px;
        border-radius: 999px;
        background: rgba(0, 0, 0, .18);
    }

    #info-box-panel .sheet-content {
        height: 100%;
        overflow: auto;
        padding: 8px 16px 18px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .map {
        width: 100%;
        touch-action: none;
        height: calc(100vh - var(--header-height));
        height: calc(var(--mobile-real-vh, 100vh) - var(--header-height));
    }

    body {
        height: var(--mobile-real-vh);
    }
}