/* General Styles */
.imp-object-list-item-folder-icon {
  display: none !important;
}

.imp-container {
    padding: 0 !important;
    width: 100% !important;
}

.imp-object-menu {
  display: none !important;
}

.imp-canvas {
    width: auto !important;
    height: auto !important;
}

.imp-tooltip-content > div {
    color: #000 !important;
}

.imp-ui-light .imp-object-list-item:hover {
    background: rgba(255, 190, 152, 0.5) !important;
}

/* Flash animation for selected titles */
@keyframes flash {
    0%, 100% {
        background-color: rgb(255, 255, 255);
    }
    50% {
        background-color: transparent;
    }
}

/* Highlight animation on map objects */
.imp-object-highlighted {
    animation: flash 1s infinite;
}

/* Desktop-specific Styles */
@media (min-width: 767px) {
    .imp-object-list-item > p {
        position: relative;
        bottom: -10px;
    }
}

/* Mobile-specific Styles */
@media (max-width: 767px) {
    .imp-ui-bottom-left, .imp-menu-button {
        display: none !important;
    }

    .imp-ui-top-right, .imp-ui-bottom-right {
        left: 20px !important;
        right: auto !important;
    }

    .imp-canvas {
        height: 400px !important;
    }
}

/* Container and List Styles */
.map-container {
    position: relative;
    width: 100%;
    height: auto;
}

.building-list {
    position: absolute;
    top: 50px;
    left: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    z-index: 10;
    max-width: 300px;
    overflow-y: auto;
}

.building-list .list {
    float: left;
}

.building-list > h2,
.building-list .imp-object-list-item:first-child p {
    color: #dddddd;
}

.building-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.building-list li {
    margin-bottom: 10px;
    font-size: 14px;
}

.map img {
    width: 100%;
    display: block;
}

/* Group container styles */
.group-container {
    padding: 10px 10px 10px 0;
    float: left;
    width: 50%;
    margin-bottom: 20px;
}

.group-container .imp-object-list-item {
    padding: 5px;
    margin-left: 0 !important;
}

.imp-object-list-item p {
    color: #000000;
    margin-top: 10px;
    letter-spacing: 1px;
    font-weight: 200;
}
/* Item Styles */
.imp-object-list-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    line-height: 25px !important;
    height: 25px !important;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px !important;
    font-weight: 200 !important;
    user-select: none;
}

.imp-object-list-item:hover {
    text-decoration: underline;
}

/* Group Item Styling */
.imp-object-list-item-group {
    background-color: #1d1d1d;
    border-radius: 10px;
    display: flex !important;
    font-size: 16px !important;
    padding: 10px !important;
    height: 35px !important;
    line-height: 35px !important;
    color: #fff;
}

.imp-object-list-item-group:hover {
    text-decoration: none;
}

/* Selected title styling */
.selected-title {
    animation: flash 1s infinite;
}

/* Media query for mobile devices (less than 768px width) */
@media (max-width: 767px) {
    .building-list {
        position: static;
        width: 100%;
        margin-bottom: 20px;
        max-width: none;
    }

    .map img {
        width: 100%;
        height: auto;
    }

    .imp-object-list-item p {
        margin: 0;
        padding-left: 5px;
    }
}

/* Media query for medium and larger devices */
@media (min-width: 768px) {
    .building-list {
        position: absolute;
        top: 50px;
        left: 20px;
        max-width: 40%;
        max-height: 90%;
        overflow-y: auto;
    }

    .map img {
        width: 100%;
    }
}

/* For larger screens */
@media (min-width: 1345px) {
    .building-list {
        position: absolute;
        top: 50px;
        left: 20px;
        max-width: 40%;
        max-height: 90%;
        overflow-y: hidden;
    }
}