/* Общие визуальные компоненты, используемые в нескольких разделах */

.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; margin: 0 0 20px;
  display: flex; align-items: center; gap: 10px;
}
.sun-dot { width: 9px; height: 9px; border-radius: 50%; background: #c58a36; }

.status-badge {
  display: inline-block; padding: .3rem .65rem;
  border-radius: 2rem; background: #e4ece7;
  font-size: .75rem;
}

.pagination {
  display: flex; gap: 1.5rem; margin-top: 2rem; text-decoration: underline;
}

.view-switch {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin: 20px 0 28px;
  background: #e9ede3; border-radius: 10px;
}
.view-switch a {
  padding: 9px 14px; text-decoration: none; border-radius: 6px; font-size: .9rem;
}
.view-switch a[aria-current] {
  background: white; box-shadow: 0 2px 6px #183c3710; font-weight: 650;
}

/* Section toggle (переключатель trail / drive) */
.section-toggle {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 4px; gap: 3px;
  border: 1px solid #dce2d8; background: #eeeee7; border-radius: 999px;
}
.section-toggle a {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 13px; border-radius: 999px;
  color: #59685f; font-size: .8rem; font-weight: 650;
  text-decoration: none; white-space: nowrap;
}
.section-toggle svg { width: 21px; height: 21px; flex-shrink: 0; }
.section-toggle a:hover { background: #e0e5db; }
.section-toggle a[aria-current] { color: #fff; background: #244f3b; box-shadow: 0 2px 5px #183c3717; }

/* Карточка маршрута (используется на главной и в каталоге) */
.route-card {
  border: 1px solid #dfe5d9; border-radius: 14px; overflow: hidden;
  background: #fff; transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.route-card:hover { border-color: #98ae92; box-shadow: 0 6px 24px #244f3b0b; }
.route-card-art { height: 165px; background: #e3ebde; overflow: hidden; }
.route-card-art svg, .route-card-art img { width: 100%; height: 100%; object-fit: cover; }
.route-card-body { padding: 22px; }
.route-card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.pet-badge {
  font-size: .7rem; border: 1px solid #d7dfd0; padding: 5px 9px;
  border-radius: 20px; color: #5b6d52;
}
.route-card h2 {
  font-size: 1.25rem; line-height: 1.3; font-weight: 650;
  margin-bottom: 12px; overflow-wrap: anywhere;
}
.route-card h2 a { text-decoration: none; }
.route-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.route-card-description {
  font-size: .86rem; color: #68756b; line-height: 1.65; overflow-wrap: anywhere;
}
.route-card-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px;
  padding-top: 18px; border-top: 1px solid #e6ebe1;
}
.route-card-metrics strong { display: block; font-size: 1.1rem; font-weight: 650; }
.route-card-metrics small { font-size: .7rem; color: #68756b; }
.route-card-activity { font-size: .72rem; color: #68756b; margin-top: 18px; }

/* Хиро / ландшафт (используется home и drive) */
.home-hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  min-height: 580px;
  background: var(--cream);
  border-radius: 18px; overflow: hidden;
}
.hero-copy { padding: 58px 42px; align-self: center; }
.home-hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1.05; font-weight: 650; letter-spacing: -.055em;
  margin-bottom: 24px;
}
.hero-description { color: var(--muted); font-size: 1.04rem; line-height: 1.7; max-width: 370px; }
.hero-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin: 30px 0 36px;
}
.hero-details {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: .72rem; color: var(--muted);
}
.hero-details span::before { content: '•'; color: #aa7834; margin-right: 7px; }
.hero-landscape { position: relative; min-height: 540px; overflow: hidden; }
.hero-landscape svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.landscape-caption {
  position: absolute; bottom: 30px; left: 28px; right: 20px;
  color: #f1f0df; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.caption-line { height: 1px; width: 30px; background: #e2c48e; }
.landscape-note {
  position: absolute; right: 22px; top: 24px;
  border-radius: 30px; padding: 9px 15px;
  background: #f9f6e7d9; color: #395744;
  font-size: .74rem; display: flex; align-items: center; gap: 9px;
}

@media (max-width: 900px) {
  .hero-copy { padding: 35px 28px; }
  .home-hero { min-height: 520px; }
  .hero-landscape { min-height: 520px; }
}
@media (max-width: 600px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 26px; }
  .home-hero h1 { font-size: 2.8rem; }
  .hero-landscape { min-height: 320px; }
  .hero-actions { margin-bottom: 25px; }
}

/* Markdown (юридические и информационные страницы) */
.markdown-content { line-height: 1.7; overflow-wrap: anywhere; }
.markdown-content p { margin: 0 0 1em; }
.markdown-content h1, .markdown-content h2,
.markdown-content h3, .markdown-content h4 { font-weight: 700; line-height: 1.3; margin: 1.4em 0 .65em; }
.markdown-content h1 { font-size: 1.5rem; }
.markdown-content h2 { font-size: 1.3rem; }
.markdown-content h3 { font-size: 1.15rem; }
.markdown-content ul, .markdown-content ol { padding-left: 1.6em; margin: .8em 0 1.2em; }
.markdown-content ul { list-style: disc; }
.markdown-content ol { list-style: decimal; }
.markdown-content li { margin: .4em 0; }
.markdown-content a { color: #166348; text-decoration: underline; text-underline-offset: 3px; }
.markdown-content blockquote { border-left: 3px solid #b3c8b3; padding-left: 1em; margin: 1em 0; color: #59665c; }
.markdown-content pre { overflow-x: auto; padding: 16px; background: #f2f4ee; border-radius: 10px; }
.markdown-content code { font-family: monospace; background: #f2f4ee; padding: 2px 4px; }
.markdown-content table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1em 0; }
.markdown-content th, .markdown-content td { border: 1px solid #d5ded2; padding: 8px 12px; }
.markdown-content th { font-weight: 700; background: #f2f4ee; }
.markdown-content input[type=checkbox] { width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: middle; }

/* Переключатель стилей карты */
.map-style-picker {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #f4f2e9;
  border-radius: 12px 12px 0 0;
}
.map-style-picker label { font-weight: 650; }
.map-style-picker select {
  margin: 0; width: auto; min-width: 160px;
  padding: 8px 12px; border: 1px solid #cdd6ce; border-radius: 8px;
  background: white; color: #183d30;
}

/* Google map credit */
.google-map-credit {
  position: absolute; bottom: 28px; right: 8px; z-index: 2; max-width: 85%;
  background: #fff; color: #222; padding: 6px 10px; border-radius: 4px;
  font: 12px Arial, sans-serif; box-shadow: 0 1px 5px #0003;
}
.google-map-credit[hidden] { display: none; }
.google-map-credit strong { display: block; font-size: 14px; margin-bottom: 3px; }
.google-map-credit span { overflow-wrap: anywhere; }
