/* 1. Фирменные цвета и общие настройки */
:root {
	--aquamarine: #004F59;   
	--amber: #F2A104;        
	--champagne: #F7F4EB;    
	--white: #FFFFFF;        
	--graphite: #2B2D2F;     
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--champagne);
	color: var(--graphite);
	line-height: 1.6;
}

h1, h2, h3 {
	font-family: 'Montserrat', sans-serif;
	color: var(--aquamarine);
	margin-bottom: 15px;
}

.container {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

/* 2. Шапка сайта (Header) */
.header {
	background-color: var(--white);
	padding: 15px 0;
	border-bottom: 1px solid rgba(0, 79, 89, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--aquamarine);
	text-decoration: none;
}

.logo span {
	color: var(--amber);
}

.btn-back {
	color: var(--aquamarine);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
}

/* 3. Интерактивная Галерея Слайдов */
.gallery-container {
	position: relative;
	width: 100%;
	height: 350px;
	margin-top: 20px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide {
	display: none;
	width: 100%;
	height: 100%;
	position: relative;
}

.slide.active {
	display: block;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 79, 89, 0.9));
	color: var(--white);
	padding: 40px 20px 20px 20px;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.4rem;
	font-weight: 600;
}

/* Навигация слайдера */
.slide-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.8);
	color: var(--aquamarine);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-weight: bold;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 10;
}

.slide-btn:hover {
	background-color: var(--white);
}

.slide-btn.prev { left: 15px; }
.slide-btn.next { right: 15px; }

/* 4. Быстрые факты */
.quick-facts {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	background-color: var(--white);
	padding: 20px;
	border-radius: 16px;
	margin-top: 20px;
	box-shadow: 0 4px 12px rgba(0, 79, 89, 0.04);
}

.fact-item {
	text-align: center;
	flex: 1;
}

.fact-icon {
	font-size: 1.5rem;
	margin-bottom: 5px;
	display: block;
}

.fact-label {
	font-size: 0.8rem;
	color: #70757a;
	display: block;
}

.fact-value {
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--aquamarine);
}

/* 5. Карточки контента и Интерактивная Карта */
.content-section {
	background-color: var(--white);
	padding: 30px;
	border-radius: 16px;
	margin-top: 20px;
	box-shadow: 0 4px 12px rgba(0, 79, 89, 0.04);
}

.content-section p {
	margin-bottom: 15px;
	font-size: 1rem;
}

/* Контейнер для Leaflet карты */
#map {
	width: 100%;
	height: 300px;
	border-radius: 12px;
	margin-top: 15px;
	border: 2px solid var(--champagne);
	z-index: 1;
}

/* 6. Кнопка триггера (CTA) */
.cta-box {
	text-align: center;
	margin-top: 30px;
	margin-bottom: 40px;
}

.btn-primary {
	display: inline-block;
	background-color: var(--amber);
	color: var(--graphite);
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	padding: 16px 32px;
	border-radius: 12px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(242, 161, 4, 0.4);
	cursor: pointer;
	border: none;
	font-size: 1rem;
	transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(242, 161, 4, 0.6);
}

/* --- СТИЛИ ДЛЯ ССЫЛОК И ИНТЕРАКТИВНЫХ ЭЛЕМЕНТОВ --- */

/* 1. Базовые текстовые ссылки в контенте */
a {
    color: #004F59; /* Фирменный глубокий аквамарин */
    text-decoration: none; /* Убираем стандартное жесткое подчеркивание */
    border-bottom: 1px dashed rgba(0, 79, 89, 0.4); /* Элегантное пунктирное подчеркивание */
    transition: all 0.25s ease-in-out; /* Плавный переход при наведении */
}

/* Состояние при наведении (Hover) */
a:hover {
    color: #F2A104; /* Цвет меняется на крымский янтарь */
    border-bottom-color: #F2A104; /* Подчеркивание тоже становится янтарным */
    opacity: 0.9;
}

/* Состояние в момент клика (Active) */
a:active {
    transform: scale(0.98); /* Легкий эффект нажатия */
}

/* Состояние фокуса для доступности с клавиатуры (Focus) */
a:focus-visible {
    outline: 2px solid #F2A104;
    outline-offset: 3px;
    border-radius: 4px;
}
/* 2. Ссылки, которые не нужно подчеркивать (Логотипы, карточки, обертки) */
.logo, 
.place-card, 
.btn-back {
    border-bottom: none !important; /* Отменяем подчеркивание */
}
/* 3. Навигационные ссылки назад/вперед (с иконками-стрелочками) */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #004F59;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: transparent;
}

.btn-back:hover {
    background-color: rgba(0, 79, 89, 0.06); /* Мягкий фон при наведении */
    color: #004F59;
}


/* 4. Ссылки, стилизованные под главные кнопки действия (CTA-кнопки) */
.btn-link-primary {
    display: inline-block;
    background-color: #F2A104; /* Янтарный фон */
    color: #2B2D2F; /* Графитовый читаемый текст */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    border-bottom: none; /* Убираем подчеркивание */
    text-align: center;
    box-shadow: 0 4px 14px rgba(242, 161, 4, 0.35); /* Фирменная тень */
    cursor: pointer;
}

.btn-link-primary:hover {
    color: #2B2D2F;
    background-color: #ffb41f; /* Чуть более яркий янтарный */
    box-shadow: 0 6px 20px rgba(242, 161, 4, 0.5); /* Тень становится глубже */
    transform: translateY(-2px); /* Кнопка слегка «приподнимается» */
}

.btn-link-primary:active {
    transform: translateY(1px); /* Эффект физического нажатия */
    box-shadow: 0 2px 8px rgba(242, 161, 4, 0.4);
}


/* 5. Настройки для мобильных устройств (увеличенная зона клика) */
@media (max-width: 768px) {
    a {
        padding: 2px 0; /* Облегчает попадание пальцем по ссылкам в тексте */
    }
    .btn-link-primary {
        width: 100%; /* На смартфонах кнопка растягивается на всю ширину экрана */
    }
	.header {padding: 0}	
}

        /* Мобильная адаптивность */
        @media (max-width: 600px) {
            .gallery-container { height: 220px; }
            .slide-caption { font-size: 1.1rem; padding: 15px; }
            .quick-facts { flex-direction: column; gap: 15px; }
            .fact-item { text-align: left; display: flex; align-items: center; gap: 15px; }
            .content-section { padding: 20px; }
        }
