/* Основной контейнер блока на фронтенде */
/* .gtgroup-image-hotspots-block {
    margin-bottom: 0;
} */


.gtgroup-hotspots-image-wrapper {
    position: relative;
    max-width: 100%; 
    display: inline-block; 
}


.gtgroup-hotspots-image {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100%;
}


.gtgroup-hotspot-item {
    position: absolute;
    transform: translate(-50%, -50%); 
    cursor: pointer;
    z-index: 5; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.gtgroup-hotspot-pin {
    display: block;
    width: 20px;
    height: 20px;
    background-color: var(--wp--preset--color--gt-black); 
    border-radius: 50%;
    border: 2px solid var(--wp--preset--color--gt-white); 
    box-shadow: 0 0 0 2px rgba(var(--wp--preset--color--gt-black-rgb),0.2); 
    transition: background-color 0.2s ease, transform 0.2s ease;
}


.gtgroup-hotspot-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + .5em);
    transform: translateX(-50%);
    background-color: var(--wp--preset--color--gt-white);
    color: var(--wp--preset--color--gt-black);
    padding: .5em .75em .4em;
    border-radius: .25rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(1, 1 ,1 , .5); 
    font-family: Arial, sans-serif;
    font-size: var(--wp--preset--font-size--medium);
}

.gtgroup-hotspot-tooltip:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.3em;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.5em solid transparent;
    border-right: 0.5em solid transparent;
    border-top: 0.5em solid var(--wp--preset--color--gt-white);
}


.gtgroup-hotspot-item:hover .gtgroup-hotspot-tooltip,
.gtgroup-grid-item:hover + .gtgroup-hotspot-item .gtgroup-hotspot-tooltip, 
.gtgroup-hotspot-item.is-active .gtgroup-hotspot-tooltip {
    opacity: 1;
    visibility: visible;
}


.gtgroup-hotspot-item.is-active .gtgroup-hotspot-pin {
    background-color: var(--wp--preset--color--gt-black); 
    transform: scale(1.2);
}
.gtgroup-hotspot-item.is-active {
    z-index: 10; 
}


.gtgroup-hotspots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 1rem;
    /* margin-top: 1rem; */
    /* background-color: var(--wp--preset--color--gt-gray); GT Gray */

    @media (max-width: 991px) {
        grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
    }
}


.gtgroup-grid-item {
    background-color: var(--wp--preset--color--gt-gray); 
    color: var(--wp--preset--color--gt-black);
    text-align: center;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wp--preset--font-family--league-gothic);
    font-size: var(--wp--preset--font-size--xxx-large);
}

.gtgroup-grid-item:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.15); */
}

.gtgroup-grid-item.is-active {
    background-color: var(--wp--preset--color--gt-blue); 
    color: var(--wp--preset--color--gt-black); 
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.2); */
    /* transform: translateY(-1px); */
}