/* Общие стили страницы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-main {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Секция с кнопкой и информацией о выбранном пункте */
.map-trigger-section {
    text-align: center;
    margin-bottom: 30px;
}

.map-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.map-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

.map-trigger-btn:active {
    transform: translateY(0);
}

.selected-point-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    text-align: left;
}

.selected-point-info h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.selected-point-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.point-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
}

.point-address {
    color: #6b7280;
    font-size: 0.95rem;
}

.point-info {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Стили для контейнера карты (без popup) */
.map-container {
    display: flex;
    height: 700px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.map-sidebar {
    width: 380px;
    background: #f8f9fa;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.map-search {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.map-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.map-search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.map-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.map-list-loading {
    padding: 30px 20px;
    text-align: center;
    color: #6b7280;
}

.map-point-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-point-item:hover {
    background: #e9ecef;
}

.map-point-item.selected {
    background: linear-gradient(to right, #e8f5e8, #f8f9fa);
    border-left: 4px solid #4CAF50;
    padding-left: 16px;
}

.map-point-item__name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.map-point-item__address {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    line-height: 1.4;
}

.map-point-item__info {
    font-size: 12px;
    color: #9ca3af;
}

.map-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
}

#yandex-map {
    width: 100%;
    height: 100%;
}

/* Адаптивность для карты */
@media (max-width: 1024px) {
    .map-container {
        height: 600px;
    }
    
    .map-sidebar {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
        height: 800px;
    }
    
    .map-sidebar {
        width: 100%;
        height: 350px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .map-wrapper {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 700px;
    }
    
    .map-sidebar {
        height: 300px;
    }
    
    .map-wrapper {
        height: 400px;
    }
}

/* Адаптивность для основной страницы */
@media (max-width: 768px) {
    .page-container {
        padding: 10px;
    }
    
    .page-header {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-main {
        padding: 20px;
    }
    
    .map-trigger-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Скрытие кнопок Яндекс.Карт - более агрессивный подход */
.ymaps-2-1-79-gotoymaps,
.ymaps-2-1-79-gototaxi,
.ymaps-2-1-79-gototech,
.ymaps-2-1-78-gotoymaps,
.ymaps-2-1-78-gototaxi,
.ymaps-2-1-78-gototech,
.ymaps-2-1-80-gotoymaps,
.ymaps-2-1-80-gototaxi,
.ymaps-2-1-80-gototech {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Скрытие блока с кнопками */
.ymaps-2-1-79-map-copyrights-promo,
.ymaps-2-1-78-map-copyrights-promo,
.ymaps-2-1-80-map-copyrights-promo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Дополнительные селекторы для разных версий */
[class*="gotoymaps"],
[class*="gototaxi"],
[class*="gototech"],
[class*="map-copyrights-promo"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}




