.ce-map {
    position: relative;

    .map {
        width: 100%;
        height: auto;
        position: relative;

        @media screen and (min-width: 768px) {
            width: 80%;
            max-width: 975px;
            top: 2.5rem;
        }

        .desktop {
            display: none;

            @media screen and (min-width: 768px) {
                display: block;
                width: 100%;
                height: auto;
            }
        }

        .mobile {
            display: block;
            width: 100%;
            height: auto;

            @media screen and (min-width: 768px) {
                display: none;
            }
        }

        .marker {
            position: absolute;
            display: flex;
            gap: .5rem;
            z-index: 1;

            /* Mobile positioning using CSS Custom Properties */
            left: var(--mobile-x, 0%);
            top: var(--mobile-y, 0%);

            /* Desktop positioning */
            @media screen and (min-width: 768px) {
                left: var(--desktop-x, 0%);
                top: var(--desktop-y, 0%);
            }

            /* Pin styling */
            .pin {
                width: 2rem;
                transition: transform 0.2s ease;
                cursor: pointer;

                &:hover {
                    transform: scale(1.1);
                }
            }

            /* Hidden marker text by default */
            .marker-text {
                opacity: 0;
                visibility: hidden;
                background-color: var(--magenta);
                color: white;
                padding: 0.5rem 1rem;
                border-radius: 0.5rem;
                text-decoration: none;
                display: flex;
                align-items: center;
                gap: 1rem;
                max-width: 20ch;
                transform: translateX(-20px);
                transition: all 0.3s ease;
                pointer-events: none;

                .text {
                    font-size: .7rem;
                    line-height: 1.2;
                    /* font-weight: bold; */
                }

                .icon {
                    font-size: 1.2rem;
                }

                &:hover {
                    background-color: color-mix(in srgb, var(--magenta) 85%, black);
                }
            }

            /* Show state - when marker has 'show' class */
            &.show {
                z-index: 10;
                /* Bring to front */

                .pin {
                    transform: scale(1.15);
                    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
                }

                .marker-text {
                    opacity: 1;
                    visibility: visible;
                    transform: translateX(0);
                    /* Position above pin */
                    pointer-events: auto;
                }
            }
        }
    }

    .textbox {


        @media screen and (min-width: 768px) {
            position: absolute;
            top: 0;
            right: 0;
            width: 50%;
            max-width: 536px;
        }
    }
}