.tooltip-image {
    position: absolute;
    top: var(--tooltip-top, 50%); /* Default to 50% */
    left: var(--tooltip-left, 50%); /* Default to 50% */
    transform: var(--tooltip-transform, translate(-50%, -50%)); /* Default transform */
}

.tooltip-image-wrapper {
    width: 40px;
    height: 30px;
    transform: translate(-50%, -50%);
    position: absolute;
    cursor: pointer;
    border-radius: 4px;
    border: 1.6px solid black;
    overflow: hidden;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    z-index: 9999;
}

.tooltip-image-wrapper.hovered {
    transform: translate(-50%, 50%);
    border-radius: 20px;
    height: 50px;
    width: 66.665px;
}


.tooltip-arrow {
    position: absolute;
    bottom: -22px; /* Position the arrow below the tooltip image */
    left: 50%; /* Center the arrow horizontally */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid black; /* The arrow's color */
    z-index: 1; /* Ensure the arrow is visible above other elements */
    transition: all 0.3s ease; /* Smooth transition for position, transform, and opacity */
    z-index: 9999;
}

.tooltip-image-wrapper.hovered + .tooltip-arrow {
    bottom: auto; /* Reset the bottom position */
    top: 18px; /* Position the arrow above the tooltip image */
    transform: translateX(-50%) rotate(180deg); /* Flip the arrow */
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: none; /* Remove the top border */
    border-top: 8px solid black; /* Flip the arrow color to point upwards */
}

.tooltip-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.tooltip-image .tooltip-content {
    text-align: center;
    padding: 20px 32px;
    display: none;
    position: absolute;
    top: 50px;
    left: 50%;
    width: 390px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.57);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.8px);
    -webkit-backdrop-filter: blur(10.8px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 30px;
    white-space: nowrap;
    z-index: 100;
    transition: all 0.3s ease; /* Smooth appearance */
}
.tooltip-image .tooltip-content img{
    width:172px;
}

.tooltip-image .tooltip-content p{
    text-wrap: auto;
    font-size: 1rem;
    font-weight: 500 ;
    color: #333333;
}

.tooltip-image .tooltip-content a{
    text-wrap: auto;
    font-size: 1rem;
    font-weight: 500 ;
    color: #668c01;
}

.tooltip-image .tooltip-content .icon{
    display: flex;
    justify-content: center;
    align-items: center;
}
.tooltip-image .tooltip-content span{
    color: #7A7C82;
    font-size: 0.8125rem;
}

.tooltip-image.hovered .tooltip-content {
    display: block; /* Show tooltip content on hover */
}


.tooltip-content img {
    max-width: 100%;
    margin-bottom: 8px;
}

.tooltip-content .tooltip-address {
    font-size: 14px;
    color: #333;
}

.tooltip-content .tooltip-contact {
    font-size: 13px;
    color: #555;
}

.tooltip-image:hover .tooltip-content {
    display: block; /* Show the tooltip on hover */
}