.vertigomap img {
    width: 100%;   /* Makes image fill its container */
    height: auto;  /* Maintains aspect ratio */
}

.vertigomap .overlay {
        position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.vertigomap .overlay-content {
    position: relative;
    background: white;
    border-radius: 5px;
    width: 80%;
    height: 95%;
}
.vertigomap .overlay-content h3{
    background: #8E171A;
    color: white;
    padding: 10px 40px;
}
.vertigomap #overlay-image {
    width: 800px;
    display: block;
}


.vertigomap .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}
.vertigomap .close-btn:hover {
    color: #fff;
    text-shadow:
  1px 1px 2px #fff,
  0 0 1em #fff,
  0 0 0.2em #fff;
}
.map-container {
    position: relative;
    width: 100%;
    max-width: 1120px; /* Set to your original image width */
    margin: auto;
}
#map-image {
    width: 100%;
    height: auto;
    display: block;
}
.overlay-content .col-lg-8:first-child {
    border-right: 1px solid #ccc;
}

#map-image, #overlay-image {
    width: 100%;
    height: auto;
    max-width: 100%;
}
#overlay-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh; /* Ensures it doesn't keep increasing */
    object-fit: contain; /* Keeps aspect ratio */
}
.infoCont {
    overflow-y: auto;
    max-height: 750px;
}
.infoCont li {
    font-size: 13px;
}
.w-8.text-center div {
    margin: auto;
}
.unitInfo {
    padding: 10px;
    border-radius: 15px;
}
.unitInfo:hover:not(:first-child),.unitInfo.hovered {
    cursor: pointer;
    background: #d3d3d378;
}
.image-container {
    overflow: auto;
    touch-action: pan-x pan-y;
}

#map-image {
    max-width: none;
    width: 1920px; /* or original image width */
    height: auto;
}


#overlay-image-wrapper {
    width: 100%;
    max-width: 727px;
    max-height: 500px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

#overlay-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.no-scroll {
    overflow: hidden;
    height: 100vh;
}
.custom-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
    display: none;
    z-index: 9999;
    pointer-events: none;
    transform: translateY(0);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.custom-tooltip.show {
    transform: translateY(-10px);
    opacity: 1 !important;
}
.infoCont h5{
    display: inline-block;
}
.downloadBtn.btn{
    display: inline-block;
    margin-left: 10px;
    color: white;
    background: #86181c;
}



@media (max-width: 768px) {
     #overlay-image-wrapper {
        max-width: 100%;
        height: auto;
    }

    #overlay-image {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    #building-controls {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 0;
        margin: 0;
        scrollbar-width: thin; /* For Firefox */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    div#mobile-controls::before {
        font-size: 11px;
    }
  #mobile-controls {
    display: block !important;
    padding: 10px;
    background: #f9f9f9;
    text-align: center;
  }

  #building-controls button {
    margin: 5px;
    padding: 8px 12px;
    border: 1px solid #8d3032;
    background-color: white;
    color: #8d3032;
    border-radius: 5px;
    font-size: 14px;
  }

  #building-controls button.active{
    background-color: #8d3032;
    color: white;
  }

  #view-overlay {
    padding: 10px 20px;
    background-color: #8d3032;
    color: white;
    border: none;
    border-radius: 5px;
  }
  .overlay-content .col-lg-8:first-child {
    border-right: 0;
   }
}








@media (max-width: 1280px) {
  .infoCont {
        overflow-y: auto;
        max-height: unset;
    }
    .vertigomap .overlay-content{
        width: 100%;
        height: 80%;
    }
    .vertigomap .row{
        max-height: 70vh;
        overflow-y: scroll;
        margin: 0;
    }
}