html, body {
    margin: 0;
    overflow-x: hidden;
    padding: 0;
    height: 100%;
    width: 100%;
}

#main {
    position: relative;
    overflow: hidden;
    display: flex;
    height: calc(100% - 60px);
}

#map {
    flex: 1;
    position: relative;
}

#sidebar {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 350px;
    background: #fff;
    overflow-y: auto;
    transition: transform 0.3s ease;
    padding-top: 40px;
}
#sidebar.hidden {
    transform: translateX(100%);
}

#closeSidebar {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

.sidebar-header {
    padding: 16px;
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

.info-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
}
.info-tabs .tab {
    padding: 8px 12px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
}
.info-tabs .tab.active {
    border-bottom-color: #333;
    font-weight: bold;
}

#sidebar-content {
    margin-top: 8px;
}

#gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
    gap: 10px;
}

#gallery img {
    flex-shrink: 0;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

#description {
    padding: 10px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lightbox img {
    max-width: 80%;
    max-height: 80%;
}
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}