* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;}
html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;}
ul, ol {list-style: none;}
a {
    text-decoration: none;
    color: inherit;}
img {
    max-width: 100%;
    height: auto;}
table {
    border-collapse: collapse;
    width: 100%;}
button {
    border: none;
    background: none;
    cursor: pointer;}

@font-face {
    font-family: "Natasha";
    src: url("../assets/fonts/Natasha/Natasha.woff") format("woff2"),
    url("../assets/fonts/Natasha/Natasha.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

:root {
    --white: #ffffff;
    --black: #000000;
    --gray: #cccccc;
    --orange: #E55137;
    --red_usssr: #b02d23;
    --red_light: #c93227;
}

.point-info-header {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    margin-bottom: 15px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
}

.map-container {
    position: absolute;
    top: -1000px;
    left: -280px;
    width: 3000px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    z-index: 0;        
    transform: translate(-280px, -1000px) scale(1.2);
    -webkit-transform: translate(-280px, -1000px) scale(1.2);
    transform-origin: top left;
    animation: map-into-view 1.3s ease-in-out forwards;
    -webkit-animation: map-into-view 1.3s ease-in-out forwards;
}
  
@keyframes map-into-view {
    to {
        transform: translate(80px, 0) scale(1);
        -webkit-transform: translate(80px, 0) scale(1);
    }
}
@-webkit-keyframes map-into-view {
    to {
        -webkit-transform: translate(80px, 0) scale(1);
    }
}
  
.map-container:active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}
  
.map {
    display: block;
    width: 100%;
    height: auto;
    transform: translate(0, 500px);
    -webkit-transform: translate(0, 500px);
}
  
.point {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--black);
    border: 3px solid var(--white);
    box-shadow: 
        0 0 0 2px var(--black),
        0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%) rotate(45deg);
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    cursor: pointer;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease, background-color 0.3s ease;
    /* animation: point-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    -webkit-animation: point-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; */
    z-index: 2;
}

.point:hover {
    background-color: rgb(205,19,45);
    transform: translate(-50%, -50%) rotate(45deg);
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 
        0 0 0 3px var(--black),
        0 6px 15px rgba(0, 0, 0, 0.4);
}

.point:active {
    transform: translate(-50%, -50%) rotate(45deg);
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
}

.point-info {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 20px;
    padding: 25px;
    width: 400px;
    height: fit-content;
    z-index: 5;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    -webkit-transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.point-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.36),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 10px;
}

.point-info::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background: linear-gradient(
        135deg, 
        rgba(230, 230, 230, 0.4) 0%, 
        rgba(200, 200, 200, 0.2) 50%, 
        rgba(180, 180, 180, 0.1) 100%
    );
    border-radius: 10px;
}

.point-info.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 600px) {
    .point-info {
        margin: 50px 10px;
        width: calc(100% - 20px);
    }
}

.point-info .close-btn {
    left: 0;
    z-index: 2;
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.point-info .close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.point-info .close-btn::after,
.point-info .close-btn::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--black);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.3s ease;
}

.point-info .close-btn::before {
    transform: translate(-50%, -50%) rotate(-45deg);
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
}

.point-info .point-name {
    position: absolute;
    font-size: 2.2em;
    font-family: 'Natasha', Arial, sans-serif;
    color: var(--black);
    width: 100%;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    margin: 10px 10px 15px 65px;
}

.point-info .line {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        transparent 100%
    );
    margin: 15px 0;
    position: relative;
}

.point-info .line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%
    );
}

.point-info .number-of-party-members {
    position: relative;
    font-size: 1.2em;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    color: var(--black);
    width: 100%;
    text-align: center;
    margin: 20px 0;
    padding: 10px 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.point-info .number-of-party-members::before,
.point-info .number-of-party-members::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: transparent;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    -webkit-transform: translateY(-50%) rotate(45deg);
    border: 2px solid var(--black);
}

.point-info .number-of-party-members::before {
    right: 7px;
}

.point-info .number-of-party-members::after {
    left: 7px;
}

.point-info .point-description {
    font-size: 1.1em;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    color: var(--black);
    width: 100%;
    text-align: left;
    line-height: 1.4;
    padding: 0 10px;
    margin-bottom: 10px;
    font-weight: 400;
}

@media (max-width: 390px) {
    .point-info .point-description {
        font-size: 1em;
    }
}

.point,
.point-info,
.map-container {
    will-change: transform, opacity;
}