body {
    font-family: Arial, sans-serif;
    display: flex;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

#sidebar {
    width: 350px;
    height: 100%;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
    overflow-y: auto;
}

#sidebar.collapsed {
    width: 0;
}

.search-container {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

#search-input {
    width: calc(100% - 100px);
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

#search-button {
    padding: 8px 12px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

#search-results {
    flex-grow: 1;
    overflow-y: auto;
}

.result-item {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
}

.result-item:hover {
    background-color: #e9ecef;
}

.result-item h5 {
    margin: 0 0 5px 0;
}

.result-item p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

#map-container {
    flex-grow: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

#sidebar-toggle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 20px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1001;
    border-radius: 0 4px 4px 0;
    padding: 0;
    font-size: 16px;
}

#sidebar h1 {
    font-size: 20px;
    text-align: center;
    padding: 15px 0;
}

.info-window-content {
    padding: 15px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    max-width: 300px;
}

.info-window-content h5 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.info-window-content p {
    font-size: 14px;
    color: #555;
    margin: 0 0 8px 0;
    display: flex;
    align-items: flex-start;
}



.info-window-content p i {
    margin-right: 8px;
    color: #007bff;
}

.info-window-content h6 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 15px 0 10px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.info-window-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-window-content li {
    font-size: 14px;
    color: #555;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.info-window-content li:hover {
    background-color: #f0f0f0;
}

.reading-room-name {
    font-weight: bold;
    color: #333;
    flex-shrink: 1;
    margin-right: 10px;
    word-break: keep-all;
}

.reading-room-seats {
    flex-shrink: 0;
}

.reading-room-seats {
    text-align: right;
    flex-shrink: 0;
}

.reading-room-seats .status {
    font-size: 12px;
    color: #888;
}

.reading-room-seats .count {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

@media (max-width: 600px) {
    .info-window-content {
        max-width: 250px;
    }


}

#bubble-container {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #dee2e6;
}

.bubble-button {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bubble-button:hover {
    background-color: #f1f3f5;
}

#status {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    text-align: center;
    z-index: 1002;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        position: relative;
    }

    #sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60vh;
        max-height: 60vh;
        background-color: white;
        border-right: none;
        border-top: 1px solid #dee2e6;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        z-index: 1000;
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
    }

    #sidebar.collapsed {
        transform: translateY(calc(100% - 60px));
        height: 60vh;
        min-height: auto;
        overflow: hidden;
        border-bottom: none;
    }

    #sidebar h1 {
        font-size: 18px;
        padding: 12px 0 8px 0;
        position: relative;
        background-color: white;
        border-radius: 16px 16px 0 0;
    }

        #sidebar h1 {
        cursor: grab;
    }

    #sidebar h1:active {
        cursor: grabbing;
    }

    #sidebar h1::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: #dee2e6;
        border-radius: 2px;
    }

    #map-container {
        flex-grow: 1;
        height: 100vh;
    }

    #sidebar-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background-color: #00C851;
        color: white;
        border: none;
        border-radius: 50%;
        z-index: 1001;
        cursor: pointer;
        font-size: 24px;
        line-height: 56px;
        text-align: center;
        box-shadow: 0 6px 20px rgba(0,200,81,0.3);
        /* Reset properties from desktop view */
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
        transition: all 0.3s ease;
    }

    #sidebar-toggle:hover {
        background-color: #00A041;
        transform: scale(1.05);
    }

    .search-container {
        padding: 16px;
        background-color: white;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    #search-input {
        width: calc(100% - 20px);
        padding: 12px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 24px;
        font-size: 16px;
        background-color: #f8f9fa;
    }

    #search-input:focus {
        outline: none;
        border-color: #00C851;
        background-color: white;
    }

    #search-button {
        display: none;
    }

    #bubble-container {
        padding: 12px 16px;
        background-color: white;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 80px;
        z-index: 9;
    }

    .bubble-button {
        padding: 8px 16px;
        font-size: 14px;
        background-color: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        color: #333;
        transition: all 0.2s ease;
    }

    .bubble-button:hover,
    .bubble-button:active {
        background-color: #00C851;
        color: white;
        border-color: #00C851;
    }

    #search-results {
        padding-bottom: 20px;
    }

    .result-item {
        padding: 16px;
        border-bottom: 1px solid #f0f0f0;
        margin: 0 8px;
        border-radius: 8px;
        margin-bottom: 4px;
    }

    .result-item:hover {
        background-color: #f8f9fa;
    }

    .result-item h5 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }

    .result-item p {
        font-size: 14px;
        color: #666;
        line-height: 1.4;
    }

    #status {
        display: none;
    }
}