/* 
#right-panel {
  position: absolute;
  right: 15px;
  top: 15vh;
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#plan-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

#unit-details {
  border: 1px solid #ddd;
  padding: 15px;
  background: #f9f9f9;
  display: none;
  width: 100%;
}
#image-wrapper {
    position: relative;
    display: inline-block;
}
.unit-block {
    position: absolute;
    z-index: 10;
}
#building-image {
    display: block;
    max-width: 100%;
}


.filter-tabs {
    display: flex;
    justify-content: center; 
    gap: 10px;
    margin-bottom: 10px;
}

.filter-tabs button {
    padding: 6px 12px;
    cursor: pointer;
    background: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-tabs button.active {
    background: red;
    color: #fff;
    border-color: red;
}

  .unit-block {
    width: 30px;
    height: 30px;
    display: inline-block;
    margin: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
}


.unit-block.available {
    background-color: green;
}
.unit-block.reserved {
    background-color: yellow;
}
.unit-block.sold {
    background-color: red;
}


.unit-block.inactive {
    background-color: transparent !important;
    cursor: default;
    opacity: 0.4;
    pointer-events: none;
} */











.clickable path, .clickable rect, .clickable polygon, .clickable circle {
            fill: inherit !important;
            fill-opacity: 1 !important;
        }
        .svg-tooltip {
            position: absolute;
            background: #333;
            color: #fff;
            padding: 6px 10px;
            border-radius: 4px;
            font-size: 13px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s ease-in-out;
            white-space: nowrap;
            z-index: 900;
        }
        .main-heading-p {
            font-size: 19px;
            font-weight: 700;
            text-align: center;
            justify-content: center;
            display: flex;
        }
        #popup-image {
            display: flex;
            justify-content: center;
        }
        #popup-image img {
            width: 175px;
        }
        .filter-tabs {
            text-align: center;
            margin-bottom: 20px;
        }
        .filter-btn {
            padding: 10px 20px;
            margin: 0 5px;
            cursor: pointer;
            border: none;
            font-size: 16px;
        }
        .filter-btn[data-filter="all"] {
            background: white;
            border: 1px solid black;
            color: black;
        }
        .filter-btn[data-filter="sold"] {
            background: red;
            color: white;
        }
        .filter-btn[data-filter="reserved"] {
            background: yellow;
            color: black;
        }
        .filter-btn[data-filter="available"] {
            background: #5bb450 !important;
            color: black;
        }
        .filter-btn.active {
            font-weight: bold;
            box-shadow: 0 0 5px rgba(0,0,0,0.3);
        }



        .filter-btn-a {
            padding: 10px 20px;
            margin: 0 5px;
            cursor: pointer;
            border: none;
            font-size: 16px;
        }
        .filter-btn-a[data-filter="all"] {
            background: white;
            border: 1px solid black;
            color: black;
        }
        .filter-btn-a[data-filter="sold"] {
            background: red;
            color: white;
        }
        .filter-btn[data-filter="reserved"] {
            background: yellow;
            color: black;
        }
        .filter-btn-a[data-filter="available"] {
            background: gray;
            color: black;
        }
        .filter-btn-a.active {
            font-weight: bold;
            box-shadow: 0 0 5px rgba(0,0,0,0.3);
        }
        .clickable {
            pointer-events: all;
            transition: opacity 0.3s;
            cursor: pointer;
        }
        .clickable:hover {
            opacity: 0.8;
        }
        #svg-map-container svg {
            max-width: 100%;
            height: auto;
        }
        .clickable[title]:hover:after {
            content: attr(title);
            position: absolute;
            background: #333;
            color: white;
            padding: 5px 10px;
            border-radius: 3px;
            font-size: 14px;
            z-index: 1001;
            white-space: nowrap;
        }
        .popup-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
        }
        .popup-content {
            background-color: #061018;
            margin: 10% auto;
            padding: 50px;
            border: 1px solid #888;
            width: 80%;
            max-width: 500px;
            border-radius: 8px;
            position: relative;
        }
        .popup-close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        .popup-close:hover, .popup-close:focus {
            color: black;
            text-decoration: none;
        }
        #popup-image img {
            max-width: 100%;
            height: auto;
            margin-bottom: 15px;
            border-radius: 4px;
        }
        #popup-details {
            font-size: 16px;
            line-height: 1.5;
        }
        #popup-details p {
            margin: 5px 0;
            margin-bottom: 20px;
        }
        .detail-item {
            color: white !important;
            padding-bottom: 8px;
            margin-bottom: 8px;
            border-bottom: 1px solid #ddd;
            font-size: 15px;
            color: #333;
        }
        .highlight-text {
            color: #cbab77;
            font-weight: 600;
        }
        .main-heading-p {
            color: white !important;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 12px;
            color: #222;
            border-bottom: 1px solid;
        }
        @media (max-width: 768px) {
            .svg-tooltip {
                display: none;
            }
        }
        .map-and-details {
            display: flex;
            justify-content: space-between;
            gap: 20px;
        }
        #svg-map-container {
            flex: 1;
            max-width: 70%;
        }
        .unit-details {
            flex: 1;
            max-width: 30%;
            padding: 20px;
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 8px;
            display: none;
        }
        @media (min-width: 769px) {
            .popup-modal {
                display: none !important;
            }
            .unit-details {
                display: block;
            }
            #popup-image, #popup-details {
                display: none;
            }
        }
        div#unit-details
        {
            height: 800px;
            background-color: #0d2130;
        }
        div#unit-details-a
        {
            height: 800px;
            background-color: #0d2130;
        }





