/**
 *
 * @Copyright 2025 VOID SOFTWARE, S.A.
 *
 */

/* ==========================================================================
   Compass/Orientation component
   ========================================================================== */
   .property-compass-field {
    grid-column: 1 / 3;
}

.property-compass-field__inner {
    position: relative;
    width: min-content;
    display: grid;
    grid-template-areas:
        ". north ."
        "west . east"
        ". south .";
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, auto);
    place-items: center;
}

.property-compass-field__inner button,
.property-compass-field__inner div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.3rem;
    background-color: transparent;
    border: none;
    border-radius: 0.375rem;
    font-weight: 700;
}

.property-compass-field__inner div span {
    font-size: 1.4rem;
    font-weight: 700;
}

.property-compass-field__inner button {
    cursor: pointer;
}

.property-compass-field__inner button svg,
.property-compass-field__inner div svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-purple);
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.property-compass-field__inner button svg .arrow-fill,
.property-compass-field__inner div svg .arrow-fill {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: all 0.3s ease-in-out;
}

.property-compass-field__inner button.selected svg .arrow-fill,
.property-compass-field__inner div.selected svg .arrow-fill {
    transform: scaleY(1);
}

.property-compass-field__inner button.selected svg,
.property-compass-field__inner div.selected svg {
    opacity: 1;
}

.property-compass-field__inner button:hover svg {
    opacity: 1;
}

.property-compass-field__inner button:hover svg .arrow-fill {
    transform: scaleY(1);
}

.property-compass-field__inner button:nth-child(1),
.property-compass-field__inner div:nth-child(1) {
    grid-area: north;
    flex-direction: column;
    margin-bottom: -0.5rem;
}

.property-compass-field__inner button:nth-child(2),
.property-compass-field__inner div:nth-child(2) {
    grid-area: east;
    flex-direction: row-reverse;
    margin-left: -0.5rem;
}

.property-compass-field__inner button:nth-child(3),
.property-compass-field__inner div:nth-child(3) {
    grid-area: south;
    flex-direction: column-reverse;
    margin-top: -0.5rem;
}

.property-compass-field__inner button:nth-child(4),
.property-compass-field__inner div:nth-child(4) {
    grid-area: west;
    flex-direction: row;
    margin-right: -0.5rem;
}

.property-compass-field__inner button:nth-child(2) svg,
.property-compass-field__inner div:nth-child(2) svg {
    transform: rotate(90deg);
}

.property-compass-field__inner button:nth-child(3) svg,
.property-compass-field__inner div:nth-child(3) svg {
    transform: rotate(180deg);
}

.property-compass-field__inner button:nth-child(4) svg,
.property-compass-field__inner div:nth-child(4) svg {
    transform: rotate(270deg);
}
