:root {
    --tg-theme-bg-color: #f0f0f0; /* Цвет фона по умолчанию */
    --tg-theme-text-color: #000000; /* Цвет текста по умолчанию */
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    overflow: hidden;
    font-family: Arial, sans-serif;
    padding-top: var(--tg-safe-area-inset-top);
    padding-right: var(--tg-safe-area-inset-right);
    padding-bottom: var(--tg-safe-area-inset-bottom);
    padding-left: var(--tg-safe-area-inset-left);
}

#tabs {
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    z-index: 20;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 16px;
    outline: none;
    color: black;
}

.tab.active {
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

#map-container {
    position: relative;
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    overflow-y: auto; /* Добавляем вертикальный скролл */
}
#map-image {
    width: 100%;
    height: auto; /* Убедимся, что изображение масштабируется правильно */
    object-fit: contain;
}
#place-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Чтобы клики проходили сквозь контейнер */
}

.place-button {
    position: absolute;
    background-color: rgba(0, 123, 255, 0.7);
    color: white;
    border: none;
    /*border-radius: 50%;*/
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    z-index: 10;
    pointer-events: auto; /* Чтобы кнопки были кликабельными */
}

.place-button.disabled {
    background-color: rgba(128, 128, 128, 0.7);
    cursor: not-allowed;
}
.place-button.selected {
    background-color: rgba(255, 193, 7, 0.7);
}
.place-button.reserved {
    background-color: rgba(255, 0, 0, 0.7); /* Красный цвет для зарезервированных мест */
}

.place-button.disabled {
    background-color: rgba(128, 128, 128, 0.7);
    cursor: not-allowed;
}

.place-button.selected {
    background-color: rgba(255, 193, 7, 0.7);
}

/* Дополнительные стили для адаптивности */
@media (max-width: 600px) {
    .place-button {
        width: 15px;
        height: 15px;
        font-size: 10px;
    }
}