#map {
    height: 800px; /* Výška mapy */
    width: 100%;   /* Šířka mapy */
    position: relative;
}

.custom-popup {
    position: fixed;
    background: white;
    padding: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1001;
    width: 1035px;
    height: 90vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0 0 0 72px;

    @media (max-width: 1030px) {
        width: 100%;
        height: 100%;

        #close-box {
            display: flex;
            z-index: 100;
        }
    }
}

.shadow {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.scroll-container {
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 0 0 72px;
    overflow: auto;
    border: 0;
}

#close-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;           /* 👈 Required for centering */
    justify-content: center;     /* Horizontal center */
    align-items: center;         /* Vertical center */
    background: #fff;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    font-size: 30px;
    color: #000;
    display: none;
}

.select-type {
    position: relative;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

.reservation-box {
    background-color: #fdd7a6;
    margin-top: -7px !important;
    border-radius: 0 0 0 72px;
    padding: 72px;
}

.reservation-term {
    font-family: Fieldwork, Geo Bold, serif;
    display: flex;         /* Enables Flexbox */
    width: 100%;           /* Ensure it spans the parent container */
    text-align: center;    /* Centers text inside the divs */
    font-size: 12px;
    font-weight: 700;
    max-width: 100%;
    margin: 7px 0 0 14px;
    z-index: 1;
    align-items: center;
    box-sizing: border-box;
    .time {
        flex: 1;               /* Distributes equal width among divs */
        padding: 10px;         /* Optional: Adds some spacing inside */
        justify-content: center; /* Centers text horizontally */
        vertical-align: bottom; /* Centers text vertically */
    }
    .day {
        flex: 1;
        padding: 10px 14px 10px 10px;
        height: 64px;
        display: flex; /* Enables flexbox */
        justify-content: right; /* Ensures proper stacking of text */
        vertical-align: center; /* Centers text vertically */
        align-items: center; /* Centers text horizontally */
        z-index: 2;
    }
    .box {
        flex: 1;
        border: 2px solid #ff9b19;
        padding: 10px;
        height: 64px;
        background-color: #fdd7a6;
        text-align: center;
        vertical-align: center;
        color: #ff9b19;
        cursor: pointer;
        z-index: 3000;
        pointer-events: auto;  /* Ensure it's clickable */
        display: flex; /* Enables flexbox */
        justify-content: center; /* Centers text horizontally */
        align-items: center; /* Centers text vertically */

        .selected {
            background-color: #FFFFFF; /* Highlight the selected box */
            border: 2px solid #007bff; /* Add border to selected box */
            color: #302393 !important;
            display: flex; /* Enables flexbox */
            justify-content: center; /* Centers text horizontally */
            align-items: center; /* Centers text vertically */
        }
    }
}

.view-container-menu {
    width: 100%;
    display: flex; /* Enables flexbox */
    justify-content: space-between; /* Spaces them out */
    height: fit-content;
    margin: 48px 0 0 0;
    gap: 0;
}

.align-center {
    text-align: center;
    align-items: center;
    margin: 0 auto;
}

.map-additional {
    display: block;
}

.view-box-menu {
    display: flex; /* Enable flexbox */
    align-items: center; /* Align content vertically */
    justify-content: center; /* (Optional) Center horizontally */
    width: 50%;
    height: 60px;
    padding: 0;
    margin: 0;
}

.view-container {
    width: 100%;
    display: flex;  /* Enables flexbox */
    justify-content: space-between;  /* Spaces them out */
    height: fit-content;
    margin: 48px 0 0 0;
    gap: 36px;
    &.margin-side {
        margin: 0;
    }
    &.padding-side {
        padding: 0 36px 0 36px;
    }
    &.margin-zero {
        margin: 0;
    }
    .depo {
        font-size: 68px;
        font-weight: 700;
        padding-bottom: 0;
        margin-bottom: 0;
        padding-left: 60px;
    }
    .medium {
        font-size: 36px;
        font-weight: 700;
        padding-top: 0;
        margin-top: 0;
        margin-left: 60px;
    }
}

.view-box {
    display: flex;         /* Enable flexbox */
    align-items: center;   /* Align content vertically */
    justify-content: center; /* (Optional) Center horizontally */
    width: 50%;
    height: 60px;
    padding: 0;
    margin: 0;
    &.align-left {
        justify-content: flex-start;
    }
    &.height-auto {
        height: fit-content;
    }
}

.view-box-full {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.align-left {              /* Make sure it's a flex container */
    text-align: left !important;  /* Align children to the left */
}


.gap-zero {
    gap: 0 !important;
}

.week-move-term-box {
    display: inline;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    margin: 4px 0 0 0;
    border-top: solid 2px #ff9b19;
    border-bottom: solid 2px #ff9b19;
    white-space: nowrap;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 36px;
    .week-move-arrow {
        width: 32px;
        flex: 0 0 auto;
        margin-top: 0;
    }
    #week-range {
        flex: 0 1 auto;
        min-width: 0;
        white-space: nowrap;
        font-size: 16px;
        padding: 4px 8px;
    }
}

.map-page-block {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 1366px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    flex-direction: column;
    border: 0 solid var(--color-black);
    .subject {
        margin-top: 24px !important;
        margin-bottom: 0;
        font-size: 52px;
        font-weight: 700;
    }
}
