@font-face {
    font-family: "TTNormsPro";
    src: url("https://db.onlinewebfonts.com/t/3a3cf05c9023b2262a388c6fe5c9eba4.woff2") format("woff2"),
        url("https://db.onlinewebfonts.com/t/3a3cf05c9023b2262a388c6fe5c9eba4.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TTNormsPro";
    src: url("https://db.onlinewebfonts.com/t/1f3770651b913d542f4e5fc03aedd525.woff2") format("woff2"),
        url("https://db.onlinewebfonts.com/t/1f3770651b913d542f4e5fc03aedd525.woff") format("woff");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TTNormsPro";
    src: url("https://db.onlinewebfonts.com/t/0e94dfaa68fd5bdea6c87629842de8f3.woff2") format("woff2"),
        url("https://db.onlinewebfonts.com/t/0e94dfaa68fd5bdea6c87629842de8f3.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TTNormsPro";
    src: url("https://db.onlinewebfonts.com/t/3a0d2649ae5188fe47c26703fc45721f.woff2") format("woff2"),
        url("https://db.onlinewebfonts.com/t/3a0d2649ae5188fe47c26703fc45721f.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

.liveage-map-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-family: "TTNormsPro", sans-serif;
    background-color: #000;
    background-image: var(--liveage-map-bg-image, url('https://liveage.pl/mapa/nowa/wp-content/uploads/2025/08/1.svg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#createOwnMapBanner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10010;
    background: linear-gradient(135deg, rgba(65, 255, 210, 0.15) 0%, rgba(128, 104, 233, 0.15) 100%);
    border: 1px solid rgba(65, 255, 210, 0.4);
    border-radius: 30px;
    padding: 12px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#createOwnMapBanner:hover {
    background: linear-gradient(135deg, rgba(65, 255, 210, 0.25) 0%, rgba(128, 104, 233, 0.25) 100%);
    border-color: rgba(65, 255, 210, 0.7);
    transform: translateX(-50%) scale(1.02);
}

#createOwnMapBanner a {
    color: #41FFD2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

#createOwnMapBanner a:hover {
    color: #fff;
}

.liveage-map-container * {
    box-sizing: border-box;
}


.corner-border {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 2;
    pointer-events: none;
}

.corner-border::before,
.corner-border::after {
    content: "";
    position: absolute;
    background: #fff;
}

.corner-top-left {
    top: 12%;
    left: 5%;
}

.corner-top-left div {
    color: #41FFD2;
    font-weight: 200;
    font-size: 12px;
    letter-spacing: 2px;
    position: absolute;
    top: calc(50% - 4px);
    left: 20px;
    display: block;
    width: 200px;
}

.corner-top-left::before {
    width: 50px;
    height: 5px;
    top: 0;
    left: 0;
    background-color: #19FF00;
}

.corner-top-left::after {
    width: 5px;
    height: 50px;
    top: 0;
    left: 0;
    background-color: #19FF00;
}

.corner-top-right {
    top: 12%;
    right: 5%;
    display: block;
    width: 200px;
}

.corner-top-right div {
    color: #41FFD2;
    font-weight: 200;
    font-size: 12px;
    letter-spacing: 2px;
    position: absolute;
    top: calc(50% - 4px);
    right: 20px;
}

.corner-top-right::before {
    width: 50px;
    height: 5px;
    top: 0;
    right: 0;
    background-color: #8068e9;

}

.corner-top-right::after {
    width: 5px;
    height: 50px;
    top: 0;
    right: 0;
    background-color: #8068e9;
}

.corner-bottom-left {
    bottom: 12%;
    left: 5%;
    display: block;
    width: 200px;
}

.corner-bottom-left div {
    color: #41FFD2;
    font-weight: 200;
    font-size: 12px;
    letter-spacing: 2px;
    position: absolute;
    top: 35%;
    left: 20px;
}

.corner-bottom-left::before {
    width: 50px;
    height: 5px;
    bottom: 0;
    left: 0;
    background-color: #007AFF;
}

.corner-bottom-left::after {
    width: 5px;
    height: 50px;
    bottom: 0;
    left: 0;
    background-color: #007AFF;
}

.corner-bottom-right {
    bottom: 12%;
    right: 5%;
    display: block;
    width: 200px;
}

.corner-bottom-right div {
    color: #41FFD2;
    font-weight: 200;
    font-size: 12px;
    letter-spacing: 2px;
    position: absolute;
    top: 35%;
    right: 20px;
}

.corner-bottom-right::before {
    width: 50px;
    height: 5px;
    bottom: 0;
    right: 0;
    background-color: #FFA300;
}

.corner-bottom-right::after {
    width: 5px;
    height: 50px;
    bottom: 0;
    right: 0;
    background-color: #FFA300;
}

#linesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#mapContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transition: transform 0.3s ease;
    will-change: transform;
}

#mapContainer.shifted {
    margin-right: 250px;
}

.star {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 100;
    background: transparent !important;
    will-change: transform, filter;
}

.star.circle.a:hover,
.star.diamond.a:hover {
    transform: scale(1.7);
    filter: drop-shadow(0 0 12px #19FF00) invert(50%) sepia(94%) saturate(2099%) hue-rotate(76deg) brightness(134%) contrast(119%) !important;
}

.star.circle.b:hover,
.star.diamond.b:hover {
    transform: scale(1.7);
    filter: drop-shadow(0 0 12px #8068e9) invert(52%) sepia(88%) saturate(3653%) hue-rotate(227deg) brightness(95%) contrast(92%) !important;
}

.star.circle.c:hover,
.star.diamond.c:hover {
    transform: scale(1.7);
    filter: drop-shadow(0 0 12px #007AFF) brightness(0.4) sepia(1) saturate(1000%) hue-rotate(200deg) contrast(1.2) !important;
}

.star.circle.d:hover,
.star.diamond.d:hover {
    transform: scale(1.7);
    filter: drop-shadow(0 0 12px #FFA300) invert(60%) sepia(91%) saturate(1978%) hue-rotate(24deg) brightness(144%) contrast(100%) !important;
}

.star.circle.a.selected,
.star.diamond.a.selected {
    animation: starPulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px #19FF00) invert(50%) sepia(94%) saturate(2099%) hue-rotate(76deg) brightness(134%) contrast(119%) !important;
}

.star.circle.b.selected,
.star.diamond.b.selected {
    animation: starPulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px #8068e9) invert(52%) sepia(88%) saturate(3653%) hue-rotate(227deg) brightness(95%) contrast(92%) !important;
}

.star.circle.c.selected,
.star.diamond.c.selected {
    animation: starPulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px #007AFF) brightness(0.4) sepia(1) saturate(1000%) hue-rotate(200deg) contrast(1.2) !important;
}

.star.circle.d.selected,
.star.diamond.d.selected {
    animation: starPulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px #FFA300) invert(60%) sepia(91%) saturate(1978%) hue-rotate(24deg) brightness(144%) contrast(100%) !important;
}

.star-tooltip {
    position: absolute;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 12px;
    z-index: 1000;
}

.tooltip-text {
    background: rgba(0, 0, 0, 0);
    padding: 2px 4px;
    border-radius: 3px;
    color: #fff;
    white-space: normal;
    max-width: 300px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.tooltip-line {
    height: 1px;
    background: #fff;
    width: 0;
    transition: width 0.3s ease;
}

.persistent-tooltip {
    position: absolute;
    pointer-events: none;
    white-space: nowrap;
    color: #fff;
    font-size: 11px;
    z-index: 99;
}

#centerPlus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.big-plus.horizontal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 0.5px;
    background-color: #fff;
    transform: translate(-50%, -50%);
}

.big-plus.vertical {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5px;
    height: 600px;
    background-color: #fff;
    transform: translate(-50%, -50%);
}

.small-plus.horizontal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 1.5px;
    background-color: #fff;
    transform: translate(-50%, -50%);
}

.small-plus.vertical {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5px;
    height: 100px;
    background-color: #fff;
    transform: translate(-50%, -50%);
}

#menu2 {
    position: absolute;
    bottom: 20px;
    left: 2%;
    z-index: 9999;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    width: 96%;
    background-image: url('https://liveage.pl/mapa/nowa/wp-content/uploads/2025/10/bg-mapa.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    padding: 20px 40px;
}

.fs-men {
    display: flex;
    gap: 10px;
    justify-content: start;
    align-items: center;
}

.fs-men img {
    height: 25px !important;
    width: auto !important;
}

#buttonContainer {
    display: flex;
    gap: 10px;
}

.buttonContainer,
#buttonContainer button {
    display: inline-block;
    padding: 10px;
    background: transparent;
    color: #41FFD2;
    border: 0.5px solid #41FFD2;
    font-size: 12px;
    cursor: pointer;
    border-radius: 0;
    position: relative;
    transition: all 0.85s;
    letter-spacing: 1px;
    font-weight: 200;
    text-transform: uppercase;
    text-decoration: none;
    font-family: "TTNormsPro", sans-serif;
}

.buttonContainer span,
#buttonContainer button span {
    position: relative;
    z-index: 5;
}

.buttonContainer::after,
#buttonContainer button::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #41FFD2;
    transition: all 0.85s;
    z-index: 1;
}

.buttonContainer:hover::after,
#buttonContainer button:hover::after {
    width: 100%;
}

.buttonContainer:hover,
.buttonContainer:hover span,
#buttonContainer button:hover {
    color: #000 !important;
    border-color: #41FFD2;
}

#moreActionsWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

#extraActions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-right: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#extraActions.show {
    opacity: 1;
    transform: translateX(0);
}

#mapLoader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    color: #41ffd2;
    font-size: 24px;
    z-index: 100000;
    letter-spacing: 2px;
}

#dragTooltip {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #fff;
    border-radius: 4px;
    pointer-events: none;
    z-index: 100002;
    top: -1000px;
    left: -1000px;
    display: block;
}

.main {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 1px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: -42vw -4vh 0px 0px rgba(255, 255, 255, 0.5), 25vw -41vh 0px 0px rgba(255, 255, 255, 0.5),
        -20vw 49vh 0px 1px rgba(255, 255, 255, 0.5), 5vw 40vh 1px 1px rgba(255, 255, 255, 0.5), 29vw 19vh 1px 0px rgba(255, 255, 255, 0.5),
        -44vw -13vh 0px 0px rgba(255, 255, 255, 0.5), 46vw 41vh 0px 1px rgba(255, 255, 255, 0.5), -3vw -45vh 0px 1px rgba(255, 255, 255, 0.5),
        47vw 35vh 1px 0px rgba(255, 255, 255, 0.5), 12vw -8vh 1px 0px rgba(255, 255, 255, 0.5), -34vw 48vh 1px 1px rgba(255, 255, 255, 0.5),
        32vw 26vh 1px 1px rgba(255, 255, 255, 0.5), 32vw -41vh 1px 1px rgba(255, 255, 255, 0.5), 0vw 37vh 1px 1px rgba(255, 255, 255, 0.5),
        34vw -26vh 1px 0px rgba(255, 255, 255, 0.5), -14vw -49vh 1px 0px rgba(255, 255, 255, 0.5), -12vw 45vh 0px 1px rgba(255, 255, 255, 0.5),
        -44vw -33vh 0px 1px rgba(255, 255, 255, 0.5), -13vw 41vh 0px 0px rgba(255, 255, 255, 0.5), -36vw -11vh 0px 1px rgba(255, 255, 255, 0.5),
        -23vw -24vh 1px 0px rgba(255, 255, 255, 0.5), -38vw -27vh 0px 1px rgba(255, 255, 255, 0.5), 16vw -19vh 0px 0px rgba(255, 255, 255, 0.5);
    animation: zoom 60s alternate infinite;
    z-index: 1;
}