.container {
	width: 100%;
	margin: 0 auto;
}

.page-title {
	text-align: center;
	margin-bottom: 40px;
	color: var(--panel-text);
	font-size: 2.5rem;
}

/* Сетка для карточек (Адаптивная) */
.routes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
}

/* Карточка маршрута */
.route-card {
	background: var(--card-bg);
	border: 1px solid #ddd;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}

.route-card:hover  {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	opacity: 1;
	visibility: visible;
}

/* Изображение и бейдж сложности */
.route-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.badge-easy { background-color: #2ecc71; }
.badge-medium { background-color: #f39c12; }
.badge-hard { background-color: #e74c3c; }

/* Содержимое карточки */
.route-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.route-title {
    font-size: 1.4rem;
    color: var(--route-card);
    margin-bottom: 10px;
}

.route-desc {
    font-size: 0.95rem;
    color: var(--subtext-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Выталкивает блок характеристик вниз, если текст короткий */
}

/* Блок технических характеристик */
.route-meta {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	background: var(--meta-bg);
	padding: 12px;
	border-radius: 10px;
	margin-bottom: 20px;
}

.meta-item {
	text-align: center;
	flex: 1 33%;
	padding: 10px 0;
}

.meta-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--subtext-color);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--panel-text);
}

/* Кнопка */
.route-btn {
    display: block;
    text-align: center;
    background: #3498db;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.route-btn:hover {
    background: #2980b9;
}

.supernav {
	position: absolute; 
	right: 8px; 
	top: 8px; 
	z-index: 9;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.morebutton {
	color:#fff;
}
.morebutton:hover {
	color: lime;
}

/* Список регионов */
.regions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	padding: 20px;
}

/* Карточка региона */
.region-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	overflow: hidden;
	background-color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.region-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Обертка для картинки и счетчика */
.region-image-wrapper {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.region-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.region-card:hover .region-image {
	transform: scale(1.05);
}

/* Бейдж с количеством маршрутов */
.routes-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background-color: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
}

/* Блок с названием региона */
.region-content {
	padding: 16px;
}

.region-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a1a1a;
}



@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.03); }
	100% { transform: scale(1); }
}
