@font-face {
    font-family: "SpriteGraffiti";
    src: url("SpriteGraffiti-Regular.otf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Comfortaa", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-image: url("t.png");
    background-size: cover;
    background-color: rgba(36, 52, 255, 100);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 1rem 2rem 1rem 2rem;
    border-radius: 20px;
}

h1 {
    font-family: "SpriteGraffiti";
    font-size: 2.5em;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: 85vh;
}

.map {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.location-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.location-point:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background: #ff5252;
}

.location-info {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 20px;
    overflow-y: auto;
}

.info-content h2 {
    color: #000;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.user-content h3 {
    margin: 15px 0 10px 0;
}

.user-content ul {
    list-style: none;
    padding-left: 0;
}

.user-content li {
    background: #f8f9fa;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    border-left: 3px solid rgba(36, 52, 255, 100);
}

.user-description {
    background: #f8f9fa;
    padding: 12px;
    margin: 8px 0;
    border-radius: 5px;
    border-left: 3px solid rgba(36, 52, 255, 100);
}

.suggest-btn {
    width: 100%;
    padding: 12px;
    background: rgba(36, 52, 255, 100);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: transform 0.2s;
}

.suggest-btn:hover {
    transform: translateY(-2px);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: rgba(36, 52, 255, 100);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .map-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .location-info {
        max-height: 400px;
    }

    h1 {
        font-size: 2em;
    }
}

#svgContainer {
    width: 100%;
    height: 100%;
    position: relative;
}

#svgContainer svg {
    width: 100%;
    height: 100%;
    display: block;
}

.interactive-point {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #ff6b6b;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.interactive-point:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background: #ff5252;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.interactive-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    animation: pulse 2s infinite;
    transform: translate(-50%, -50%);
}

@keyframes pulse {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}

/* Адаптивность для точек */
@media (max-width: 768px) {
    .interactive-point {
        width: 20px;
        height: 20px;
    }
}

/* Стили для карты Leaflet */
.map {
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.leaflet-container {
    background: #f8f9fa;
    border-radius: 15px;
}

/* Стили для маркеров */
.location-marker {
    background: transparent;
    border: none;
}

.marker-point {
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}

.marker-point:hover {
    transform: scale(1.3);
    background: #ff5252;
}

.marker-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    animation: pulse 2s infinite;
    transform: translate(-50%, -50%);
}

@keyframes pulse {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}

/* Улучшаем форму загрузки файлов */
.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #667eea;
    background: #f8f9fa;
}

.form-group input[type="file"]:hover {
    background: #e9ecef;
}

.leaflet-container .leaflet-control-attribution {
    display: none !important;
}