* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: #CCCCCC;    
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #2c2c2c;
    overflow-x: hidden;
}

/* ====================== ЗАГОЛОВОК ====================== */
.title-block {
    text-align: center;
    padding: 35px 20px 25px;
    background: linear-gradient(135deg, #1e2a44, #0f1b33);
    color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.main-title {
    font-size: 3.4rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.sub-title {
    font-size: 1.45rem;
    opacity: 0.95;
}

/* ====================== КАРТА ====================== */
.map-stage {
    display: flex;
    justify-content: center;
    padding: 10px 0 20px;
    background: #CCCCCC;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
}

#map svg {
    width: 100%;
    max-width: none;           
    height: auto;
    min-height: 85vh;
    border: none;              
    border-radius: 0;
    box-shadow: none;
    background: #CCCCCC;
    transition: transform 0.3s ease;
}

/* Районы - анимация при наведении и выделение */
.district-group {
    transition: all 0.3s ease;
    cursor: pointer;
}

.district-group:hover path {
    filter: brightness(1.15) saturate(1.2);
    stroke: #ffeb3b;
    stroke-width: 3;
}

.district-group.active path {
    stroke: #e74c3c;
    stroke-width: 4;
    filter: brightness(1.2) saturate(1.3);
}

/* Анимация левитации при наведении */
.district-group:hover {
    animation: float 0.6s ease-in-out infinite;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ====================== ИНФО-ПАНЕЛЬ ====================== */
.info-panel {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 860px;
    background: #fffaf0;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -18px 50px rgba(0,0,0,0.28);
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1100;
    overflow: hidden;
    border-top: 7px solid #b36b4e;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.info-panel.active {
    bottom: 0;
}

.info-header {
    background: linear-gradient(90deg, #1e2a44, #2c3e50);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
}

.info-content {
    padding: 15px 20px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(92vh - 120px);
}

.info-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.info-map {
    height: 220px;
    margin: 10px 0;
    border-radius: 12px;
    overflow: hidden;
}

.info-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.info-gallery img,
.info-gallery video {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.favorite-btn {
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 15px;
    flex-shrink: 0;
}

/* Комментарии */
.comments-section {
    border-top: 1px solid #ddd;
    padding: 10px 15px;
    flex-shrink: 0;
    background: #fffaf0;
}

.comments-list {
    max-height: 140px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
}

/* Стилизация скроллбара для комментариев */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.comment-item {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
    font-size: 13px;
}

.comment-date {
    color: #999;
    font-size: 10px;
    margin-left: 8px;
}

.comment-text {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.3;
    word-wrap: break-word;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.comment-form button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
/* Ограничение высоты панели */
.info-panel {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.info-content {
    overflow-y: auto;
    flex: 1;
}

.comments-section {
    flex-shrink: 0;
}

.comments-list {
    max-height: 150px;
    overflow-y: auto;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Адаптив */
@media (max-width: 768px) {
    .main-title { font-size: 2.6rem; }
    #map svg { min-height: 65vh; }
}
/* ====================== ПОЛНОЭКРАННОЕ ФОТО ====================== */
.photo-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-fullscreen.show {
    display: flex;
    opacity: 1;
}

.photo-fullscreen img {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    object-fit: contain;
}

.close-photo {
    position: absolute;
    top: 25px;
    right: 35px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.3s;
}

.close-photo:hover {
    background: #e74c3c;
    transform: scale(1.1);
}
.favorite-btn {
    font-size: 18px; 
    cursor: pointer; 
    background: none; 
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s;
}
.favorite-btn:hover {
    background: #f0f0f0;
}
.favorite-btn.active { 
    color: #e74c3c; 
}
/* ====================== АДАПТИВНОСТЬ ====================== */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .sub-title {
        font-size: 1.2rem;
    }
    
    .info-title {
        font-size: 1.5rem;
    }
    
    .info-gallery {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .info-map {
        height: 220px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    /* Шапка */
    .title-block {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .sub-title {
        font-size: 1rem;
    }
    
    /* Карта */
    .map-stage {
        padding: 5px 0;
    }
    
    #map svg {
        min-height: 50vh;
    }
    
    /* Инфо-панель */
    .info-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
    
    .info-header {
        padding: 12px 15px;
    }
    
    .info-title {
        font-size: 1.2rem;
    }
    
    .close-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .info-content {
        padding: 12px 15px;
        max-height: 60vh;
    }
    
    .info-text {
        font-size: 13px;
    }
    
    .info-map {
        height: 180px;
        margin: 10px 0;
    }
    
    .info-gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .info-gallery img,
    .info-gallery video {
        max-height: 80px;
    }
    
    /* Кнопка избранного */
    .favorite-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    /* Комментарии */
    .comments-section {
        padding: 10px 12px;
    }
    
    .comments-section h4 {
        font-size: 14px;
    }
    
    .comments-list {
        max-height: 120px;
    }
    
    .comment-item {
        padding: 8px 10px;
    }
    
    .comment-author {
        font-size: 12px;
    }
    
    .comment-text {
        font-size: 12px;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 8px;
        font-size: 13px;
    }
    
    .comment-form button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Боковое меню */
    .sidebar {
        width: 280px;
    }
    
    .sidebar a {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Кнопка меню */
    .menu-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .menu-btn.menu-open {
        left: 250px;
    }
    
    /* Подвал */
    .footer-note {
        font-size: 10px;
        padding: 10px;
    }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.4rem;
    }
    
    .sub-title {
        font-size: 0.9rem;
    }
    
    .info-title {
        font-size: 1rem;
    }
    
    .info-content {
        padding: 10px 12px;
        max-height: 55vh;
    }
    
    .info-map {
        height: 150px;
    }
    
    .info-gallery {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .info-gallery img,
    .info-gallery video {
        max-height: 60px;
    }
    
    .favorite-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .comments-list {
        max-height: 100px;
    }
    
    .menu-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        left: 10px;
    }
    
    .menu-btn.menu-open {
        left: 240px;
    }
    
    .sidebar {
        width: 260px;
        padding: 15px;
    }
    
    .sidebar h2 {
        font-size: 18px;
    }
    
    .sidebar a {
        padding: 10px;
        font-size: 13px;
    }
}
/* Вкладки */
.info-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
    color: #666;
}

.tab-btn:hover {
    background: #f0f0f0;
}

.tab-btn.active {
    background: #2c3e50;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.info-sights {
    line-height: 1.5;
    font-size: 14px;
}

.sight-item {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.sight-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.sight-item p {
    font-size: 13px;
    color: #555;
}
