body {
    background: url(/templates/Multiblog14/images/bg.png);
	font-family: Tahoma, Arial;
	font-size: 10pt;
	margin: 0;
	padding: 0;
}

/* Фиксированная карта при скролле */
#map-container {
/*	position: sticky;
	top: 0;
	z-index: 1000;*/
	position: relative;
	background: white;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#map {
	width: 100%;
	height: 400px;
}

.events-info {
	background: white;
	border-collapse: collapse;
	margin-bottom: 20px;
	border: 1px solid #dddddd;
    padding: 15px;
    border-radius: 6px;
}

/* Стили для панели сезонов */
.seasons-panel {
	background: white;
	padding: 5px;
	border-bottom: 1px solid #ddd;
	display: flex;
	flex-wrap: wrap;
	gap: 0 5px;
	align-items: center;
}

.season-filter {
	display: flex;
	gap: 5px;
	align-items: center;
}

.season-btn {
/*            padding: 8px 15px;*/
	border: 2px solid #e0e0e0;
	background: white;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
}

.season-btn:hover {
	border-color: #4CAF50;
}

.season-btn.active {
	background: #4CAF50;
	color: white;
	border-color: #4CAF50;
}

.time-slider-container {
	flex: 1;
	min-width: 300px;
	padding: 0 15px;
}

/* Стили для двойного слайдера */
.range-slider {
	position: relative;
	width: 100%;
	height: 20px;
}

.slider-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 6px;
	background: #e0e0e0;
	border-radius: 3px;
	transform: translateY(-50%);
}

.slider-range {
	position: absolute;
	top: 50%;
	height: 6px;
	background: #4CAF50;
	border-radius: 3px;
	transform: translateY(-50%);
}

.slider-thumb {
	position: absolute;
	top: 50%;
	width: 20px;
	height: 20px;
	background: white;
	border: 2px solid #4CAF50;
	border-radius: 50%;
	cursor: pointer;
	transform: translate(-50%, -50%);
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-thumb:hover {
	background: #f5f5f5;
}

.month-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 0px;
	font-size: 11px;
	color: #666;
}

.month-label {
	text-align: center;
	flex: 1;
}

.month-label.active {
	font-weight: bold;
	color: #4CAF50;
}

.current-range {
	text-align: center;
	margin-top: 5px;
	font-size: 12px;
	color: #4CAF50;
	font-weight: bold;
}

/* Легенда сезонов */
.season-legend {
	display: none;
	gap: 15px;
	margin-top: 0px;
	flex-wrap: wrap;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
}

.legend-color {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}	 

/* Адаптивная таблица */
.events-table {
	background: white;
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.events-table th, .events-table td {
	border: 1px solid #ddd;
	padding: 5px;
	/*text-align: left;*/
}

.events-table th {
	background-color: #f2f2f2;
/*	position: sticky;
	top: 400px;  
	z-index: 999;*/
}

.events-table tr {
	background-color: #ffffff;
}
.events-table tr:hover {
/*	background-color: #f5f5f5;*/
}

.is_old {
    background: #ffdfdf!important;
}
.selected-event {
    background-color: #d6ffe1 !important;
}

.highlight-event {
	animation: highlight 2s ease;
}

@keyframes highlight {
	0% { background-color: #fffacd; }
	100% { background-color: transparent; }
}
      
.tr_info {
    background-color: #fff3cd;
}
tfoot {
	border-top: 2px solid #858585;
}
	  
 /* Стили для мобильных устройств */
@media screen and (max-width: 768px) {

	.season-btn {
		padding: 2px 4px;
	}
	.seasons-panel {
		flex-direction: column;
		align-items: stretch;
	}
	
	.time-slider-container {
		order: -1;
		padding: 0;
	}
	
	.season-filter {
		justify-content: center;
	}
	.month-labels {
		font-size: 10px;
	}					
    .events-table {
        display: block;
        width: 100%;
		background-color: transparent;
    }
    
    .events-table thead {
        display: none;
    }
    
    .events-table tbody {
        display: block;
        width: 100%;
    }
    
    .events-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .events-table td {
        display: block;
        width: 100%;
        border: none;
        padding: 6px 0;
    }
    
    .events-table tbody td:first-child {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 8px;
    }
    
    .event-checkbox {
        width: 22px;
        height: 22px;
        margin-right: 10px;
        vertical-align: middle;
    }
    
	.events-table tbody td:first-child label {
		display: inline-block;
		vertical-align: middle;
		font-weight: bold;
		color: #555;
		cursor: pointer;
	}

    /* Уменьшаем отступы на очень маленьких экранах */
	@media screen and (max-width: 480px) {

		#map {
			height: 300px;
		}

		.events-table tr {
			padding: 10px;
			margin-bottom: 10px;
		}
		
		.events-table td {
			padding: 5px 0;
			font-size: 14px;
		}
		
		.event-checkbox {
			width: 20px;
			height: 20px;
		}
	}

    .events-table th {
        position: static;
    }
}

/* Улучшенная читаемость на десктопах */
@media screen and (min-width: 769px) {

	.season-btn {
		padding: 8px 15px;
	}
    .events-table th:nth-child(1), 
    .events-table td:nth-child(1) {
        width: 60px;
        text-align: center;
    }
    
    .events-table th:nth-child(2), 
    .events-table td:nth-child(2) {
        width: 120px;
    }
    
    .events-table th:nth-child(3), 
    .events-table td:nth-child(3) {
        width: 150px;
    }
    
    .events-table th:nth-child(4), 
    .events-table td:nth-child(4) {
        min-width: 200px;
    }

	.events-table td:first-child label span {
        display: none;
    }
}

#download-calendar img {
	width: 30px;
    padding-right: 6px;
	vertical-align: middle; margin-right: 5px;
}
.balloon-checkbox {
	margin: 10px 0;
	padding: 8px;
	background: #f8f9fa;
	border-radius: 4px;
	border: 1px solid #e9ecef;
}

.balloon-checkbox label {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.balloon-checkbox input[type="checkbox"] {
	margin-right: 8px;
	width: 18px;
	height: 18px;
}

.info-panel {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1001;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-permission, .route-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
			 
    border-radius: 6px;
    color: #856404;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
}

.route-info {
    background: #ffffff;
    border: 1px solid #afafaf;
    color: #000;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #000;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
}

/* Контейнер для контента под картой */
.content-container {
	padding: 10px;
	max-width: 1200px;
	margin: 0 auto;
}

/* Улучшенные чекбоксы */
.event-checkbox {
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin: 1px 1px 1px 2px;
}

.info-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    color: #856404;
}

.text-left {
	text-align: left!important;
}


/* Для прошедших мероприятий в таблице */
.is_old .event-checkbox:not(:checked) {
    opacity: 0.6;
}
/* Стили для сезонных цветов */
.season-winter { background-color: #e3f2fd !important; }
.season-spring { background-color: #e8f5e8 !important; }
.season-summer { background-color: #fff3e0 !important; }
.season-autumn { background-color: #fbe9e7 !important; }

.hidden-event {
	display: none!important;
}
		
@media screen and (max-width: 768px) {
    .info-panel {
        left: 5px;
        right: 5px;
        bottom: 5px;
        max-width: none;
    }
    
    .location-permission, .route-info {
        padding: 12px 35px 12px 12px;
        font-size: 14px;
    }
} 
.text-center {
	text-align: center;
}

.action-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.buttons-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    max-width: 300px;
    width: 100%;
}

#build-route, #download-calendar {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    min-width: 250px;
    transition: all 0.3s ease;
}

#download-calendar {
	width: 100%;
}

#build-route {
    background-color: #4CAF50;
    color: white;
}

#build-route:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-2px);
}

#download-calendar {
    background: #28a745;
    color: white;
}

#download-calendar:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
}

#build-route:disabled, #download-calendar:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.reminder-settings {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    transition: all 0.3s ease;
}

.reminder-settings.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.reminder-checkboxes {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.reminder-checkboxes label {
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
	display: flex; align-items: center; gap: 5px;

}

.reminder-checkboxes label:hover {
    background: #e9ecef;
}

/* Адаптивность для мобильных */
@media screen and (max-width: 768px) {
    .buttons-column {
        max-width: 100%;
    }
    
    #build-route, #download-calendar {
        min-width: 280px;
        width: 100%;
        max-width: 300px;
    }
    
    .reminder-settings {
        padding: 12px;
    }
}