@charset "UTF-8";
/*
Theme Name: BikeVisit
Theme URI: https://bikevisit.ru
Author: ВелоДневник
Author URI: https://bikevisit.ru
Description: Тема для личного дневника велопутешествий. Custom Post Types: Дни, Снаряжение. Карта CyclOSM. Адаптивная админка.
Version: 5.24.0
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bikevisit
*/

/* ============================================================
   ПАЛИТРА
   Тёплый кремовый фон вместо голого белого/серого — читается
   мягче на большом количестве текста и фото, ближе к travel-
   журналам (Komoot, AllTrails, Cereal), а не к техническому SaaS.
   Акцент — терракотовый (не чистый красный), тёплый тёмный текст
   вместо чёрного. Заголовки — Manrope (геометричный, дружелюбный),
   текст — Inter (нейтральный, отлично читается мелким кеглем).
   ============================================================ */
:root {
  --bg: #faf7f2;
  --surface: #fffdf9;
  --border: #e7e0d2;
  --text: #2b2420;
  --text-muted: #8a8070;
  --accent: #d8563d;
  --accent-dark: #b8422c;
  --accent-soft: #f4e2dc;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  line-height: 1.6; color: var(--text); background: var(--bg);
}
/* Если в Внешний вид → Фон загружена картинка, WordPress добавит
   background-image на <body> сам — оставляем фон полупрозрачным
   поверх, чтобы текст не терялся. */
body.custom-background .site-container,
body.custom-background .site-nav,
body.custom-background .site-footer { position: relative; }

h1, h2, h3, h4 { font-family: var(--font-heading); }
a { color: var(--text); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* === NAVBAR === */
.site-nav {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 4px; min-height: 60px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 800; margin-right: auto;
  display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px;
  color: var(--text);
}
.nav-logo svg { width: 26px; height: 26px; color: var(--accent); }
.nav-link {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-link.current { background: var(--text); color: #fff; }
.nav-caret { width: 14px; height: 14px; }

/* Выпадающий список стран */
.nav-item-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(43,36,32,.12);
  min-width: 200px; padding: 6px; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .15s ease;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 7px; font-size: 14px; color: var(--text);
}
.nav-dropdown-menu a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-dropdown-menu a span { color: var(--text-muted); font-size: 12px; }

/* === FILTER BAR === */
.filter-bar {
  display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s; color: var(--text-muted);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-btn.active { background: var(--text); color: #fff; border-color: var(--text); }

/* === ACTIVITY GRID (homepage) === */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.activity-card {
  background: var(--surface); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow .2s, transform .2s;
}
.activity-card:hover { box-shadow: 0 10px 30px rgba(43,36,32,.1); transform: translateY(-2px); }
.activity-image {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
}
.activity-body { padding: 18px; }
.activity-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.activity-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.activity-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity-subtitle { font-size: 14px; color: var(--accent); margin-bottom: 14px; }
.activity-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.activity-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.activity-meta svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }
.activity-country {
  font-size: 11px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); padding: 3px 9px; border-radius: 20px;
  white-space: nowrap;
}
.activity-divider { height: 1px; background: var(--border); margin-bottom: 12px; }
.activity-type {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; padding: 4px 12px; border-radius: 4px;
  border-left: 3px solid var(--accent);
}
.activity-type.bike { border-left-color: #d8563d; color: #d8563d; }
.activity-type.hike { border-left-color: #4a8c5f; color: #4a8c5f; }
.activity-type.bike-hike { border-left-color: #c98a2c; color: #c98a2c; }

/* === SINGLE DAY LAYOUT === */
.day-layout {
  display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 28px; margin-bottom: 8px;
  align-items: start;
}
.day-layout.no-photo { grid-template-columns: 1fr 0.9fr; }
.day-media {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  /* Не даём картинке растягиваться под высоту соседней (текстовой) колонки —
     иначе aspect-ratio у img перебивается реальной высотой ячейки грида,
     и фото становится квадратным/портретным вместо заданных пропорций. */
  align-self: start;
}
.day-media img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }

.day-extra {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px; color: var(--text-muted);
}

.day-address-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.day-country-badge {
  font-size: 11px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); padding: 3px 10px; border-radius: 20px;
}
.day-title-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.day-date { font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.day-info h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.day-address {
  font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.day-gps {
  font-family: monospace; font-size: 14px; color: var(--text-muted); margin-bottom: 16px;
}
.day-gpx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--accent); color: #fff;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  margin-bottom: 20px; transition: background .15s;
}
.day-gpx-btn:hover { background: var(--accent-dark); }

.day-metrics { display: none; } /* оставлено для обратной совместимости, больше не используется */

.day-route-summary {
  font-size: 15px; line-height: 1.6; color: var(--text-muted);
  margin: 4px 0 20px; max-width: 640px;
}

.day-summary-bar {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0;
  font-size: 16px; font-weight: 700; color: var(--text);
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.day-summary-bar > div { display: flex; align-items: baseline; gap: 6px; }
.day-summary-bar > div:not(:last-child)::after {
  content: '|'; margin: 0 14px; font-weight: 400; color: var(--border);
}
.day-summary-bar dt { font-weight: 700; margin: 0; }
.day-summary-bar dd { margin: 0; font-weight: 400; }

.day-text { font-size: 15px; line-height: 1.8; color: var(--text); }
.day-text p { margin-bottom: 14px; }
.day-text ul { margin-left: 20px; margin-bottom: 14px; }
.day-text li { margin-bottom: 6px; }
.day-text img { max-width: 100%; width: auto; max-height: 420px; height: auto; border-radius: 12px; display: block; margin: 4px 0 16px; }

/* Сплит-макет страницы дня: контент слева, карта с треком — справа.
   Карта "прилипает" (position: sticky) только сама по себе (#day-map),
   а не вся колонка — благодаря этому она тянется на всю высоту
   контента и доходит ровно до футера, а не обрывается на 100vh. */
.day-page {
  display: flex;
  align-items: stretch;
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.day-col-content {
  flex: 1 1 55%;
  min-width: 0;
  padding: 32px clamp(20px, calc((100vw - 1200px) / 2 + 20px), 140px) 60px clamp(20px, calc((100vw - 1200px) / 2 + 20px), 140px);
}
.day-col-map {
  flex: 1 1 45%;
  min-width: 0;
  position: relative;
}
#day-map {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
}
/* Карта на других страницах, вне сплит-макета */
#map { height: 500px; border-radius: 12px; border: 1px solid var(--border); }

/* Убираем флаг Украины из подписи авторства Leaflet — это добавляет сама
   библиотека в свою стандартную подпись (не наш код), начиная с версии 1.9.1.
   Сама подпись "Leaflet | CyclOSM | OSM" остаётся — это требование лицензии
   данных карты, флаг же — необязательное решение авторов библиотеки. */
.leaflet-attribution-flag { display: none !important; }

/* === PHOTO GALLERY (только компактные превью, крупных версий нет) === */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-top: 20px;
}
.photo-grid img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; transition: opacity .15s; }
.photo-grid img:hover { opacity: 0.85; }

/* === LIGHTBOX (увеличенный просмотр фото по клику) === */
.bv-lightbox-overlay {
  position: fixed; inset: 0; background: rgba(20,16,12,.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; visibility: hidden; transition: opacity .2s ease;
  padding: 40px;
}
.bv-lightbox-overlay.open { opacity: 1; visibility: visible; }
.bv-lightbox-img {
  max-width: 100%; max-height: 100%; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.bv-lightbox-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: #fff; font-size: 40px;
  line-height: 1; cursor: pointer; opacity: .8; transition: opacity .15s;
}
.bv-lightbox-close:hover { opacity: 1; }

/* === VIDEO === */
.video-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; background: var(--surface); }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; background: #ece5d8; }
.video-wrap iframe, .video-wrap a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-caption { padding: 10px 14px; font-size: 13px; color: var(--text-muted); }
.video-caption a:hover { color: var(--accent-dark); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

/* === STATS === */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 32px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; text-align: center;
}
.stat-value { font-family: var(--font-heading); font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-dark); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* === WISHLIST (Хочу поехать) === */
.wish-card {
  position: relative;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow .2s, transform .2s;
}
.wish-card:hover { box-shadow: 0 10px 30px rgba(43,36,32,.1); transform: translateY(-2px); }
.wish-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.wish-priority {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  padding: 5px 12px; border-radius: 20px; color: #fff;
  background: var(--text-muted);
}
.wish-priority-booked { background: #4a8c5f; }
.wish-priority-soon { background: var(--accent); }
.wish-priority-someday { background: #a89f8e; }
.wish-body { padding: 18px; }
.wish-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.wish-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.wish-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* === WEATHER (страница отдельной мечты) === */
.weather-block {
  margin-top: 24px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  max-width: 560px;
}
.weather-current { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.weather-icon { font-size: 40px; line-height: 1; }
.weather-temp { font-family: var(--font-heading); font-size: 28px; font-weight: 700; }
.weather-desc { font-size: 13px; color: var(--text-muted); }
.weather-days { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.weather-day { flex: 1; text-align: center; font-size: 12px; }
.weather-day-date { color: var(--text-muted); margin-bottom: 4px; }
.weather-day-icon { font-size: 20px; margin-bottom: 2px; }
.weather-day-temp { font-weight: 600; }
.weather-note { font-size: 11px; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }

/* === Страница отдельной мечты: правая колонка той же высоты, что и фото слева ===
   Блоки (заголовок, цифры, кнопка, погода) равномерно распределяются по высоте
   колонки: верх заголовка совпадает с верхом фото, низ погоды - с низом фото. */
.wish-layout { align-items: stretch; }
/* Фото растягивается по высоте правой колонки (object-fit: cover), но не ниже
   своих обычных пропорций 3:2 - так и с блоком цифр из GPX, и без него обе
   колонки заканчиваются на одной линии. */
.wish-layout .day-media { align-self: stretch; display: flex; }
.wish-layout .day-media img { width: 100%; height: auto; flex: 1; min-width: 0; object-fit: cover; }
.wish-layout .day-info { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.wish-layout .day-info > * { margin: 0 !important; }
.wish-layout .day-summary-bar { padding-bottom: 14px; }
.wish-head > * { margin-bottom: 0; }
.wish-head h1 { margin-bottom: 6px; }
.wish-follow a { display: inline-block; }

/* Колонки мечты задаются классами из шаблона (wish-cols-2 с фото, wish-cols-1
   без фото), а не инлайн-стилем: иначе инлайн перебивает медиаправило внизу
   файла и на мобильных сетка не складывается в одну колонку. */
.wish-layout.wish-cols-2 { grid-template-columns: 1.1fr 1fr; }
.wish-layout.wish-cols-1 { grid-template-columns: 1fr; }

/* Компактная погода: текущая температура слева, прогноз на 4 дня справа */
.weather-block.weather-compact {
  margin-top: 0; max-width: none; padding: 14px 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; align-items: center;
}
.weather-compact .weather-current { margin: 0; }
.weather-compact .weather-icon { font-size: 34px; }
.weather-compact .weather-temp { font-size: 24px; }
.weather-compact .weather-days { border-top: 0; padding-top: 0; border-left: 1px solid var(--border); padding-left: 20px; }
.weather-compact .weather-note { grid-column: 1 / -1; margin-top: 0; }
.weather-compact .weather-day-temp { white-space: nowrap; }
@media (max-width: 700px) {
  .weather-block.weather-compact { grid-template-columns: 1fr; }
  .weather-compact .weather-days { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; }
}

/* === COUNTRIES === */
.country-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.country-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; transition: box-shadow .2s, transform .2s;
}
.country-card:hover { box-shadow: 0 10px 30px rgba(43,36,32,.1); transform: translateY(-2px); }
.country-name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.country-stats { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* === GEAR (простой список) === */
.gear-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gear-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.gear-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.gear-row-body { flex: 1; min-width: 0; }
.gear-name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.gear-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.gear-desc p { margin-bottom: 8px; }
/* Если фото вставлено прямо в текст описания (а не как "Изображение записи") —
   не даём ему растягиваться на всю ширину карточки, держим компактным. */
.gear-desc img { max-width: 140px; height: auto; border-radius: 8px; display: block; margin-bottom: 8px; }
.gear-buy-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent-dark); }
.gear-buy-link:hover { text-decoration: underline; }
.gear-section-title {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.gear-section-title:first-of-type { margin-top: 0; }

/* === BUDGET (расходы за день / на поездку) === */
.budget-block {
  margin-top: 20px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.budget-rows { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted); }
.budget-rows strong { color: var(--text); font-weight: 600; }

/* === SOCIAL LINKS (страница Контакты) === */
.contacts-layout { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.social-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; flex: 1 1 420px; max-width: 700px; margin-bottom: 12px;
}
.social-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(43,36,32,.1);
  border-color: var(--social-color, var(--accent));
}
.social-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--social-color, var(--accent)); color: #fff;
}
.social-icon svg { width: 24px; height: 24px; }
.social-name { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.social-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.contact-qr-block {
  flex: 0 0 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; text-align: center;
}
.contact-qr-block #bv-contact-qr { display: flex; justify-content: center; margin-bottom: 10px; }
.contact-qr-block #bv-contact-qr img, .contact-qr-block #bv-contact-qr canvas { border-radius: 8px; }
.contact-qr-block p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* === BREADCRUMBS === */
.bv-breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.bv-breadcrumbs a { color: var(--text-muted); }
.bv-breadcrumbs a:hover { color: var(--accent-dark); }
.bv-breadcrumbs span { color: var(--text-muted); }
.bv-breadcrumb-sep { margin: 0 8px; opacity: .5; }

/* === BRAND BLOCK (авиакомпания/оператор в статье) === */
.brand-block {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  max-width: 400px;
}
.brand-logo {
  width: 96px; height: 56px; border-radius: 10px; flex-shrink: 0;
  background: #f0ede6; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 6px;
}
.brand-logo-placeholder { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--text-muted); }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }

.card-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card-brand-logo {
  width: 56px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: #f0ede6; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 4px;
}
.card-brand-logo .brand-logo-placeholder { font-size: 14px; }
.card-brand-name { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* === GUIDE LIST (Полезное) — компактные карточки в 2 колонки === */
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.guide-row {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.guide-row:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(43,36,32,.08); }
.guide-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.guide-photo-empty {
  background: #efe9df; display: flex; align-items: center; justify-content: center;
  color: #a89f8e; font-size: 11px; text-align: center; padding: 4px;
}
.guide-row-body { flex: 1; min-width: 0; }
.guide-name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.guide-meta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.guide-type-tag {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: #f0ede6; padding: 3px 9px; border-radius: 20px;
}

/* === AIRLINES BIKE POLICY TABLE === */
.airlines-table-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 28px;
  font-weight: 700; color: var(--accent-dark); font-size: 15px;
  max-width: 640px;
}
.airlines-table-promo:hover { background: #f0d5cd; }
.airlines-table-promo-arrow { font-size: 18px; flex-shrink: 0; }

.bike-policy-table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); margin-bottom: 24px;
}
.bike-policy-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bike-policy-table th {
  text-align: left; font-family: var(--font-heading); font-size: 12px;
  text-transform: uppercase; letter-spacing: .3px; color: var(--text-muted);
  padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.bike-policy-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.bike-policy-table tr:last-child td { border-bottom: none; }
.bike-policy-logo { width: 76px; }
.bike-policy-name { font-weight: 700; color: var(--text); }
.bike-policy-empty { color: var(--text-muted); font-style: italic; }

/* === DAY NAV (соседние дни маршрута) === */
.day-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
  max-width: 640px;
}
.day-nav-link {
  font-size: 14px; font-weight: 600; color: var(--text);
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .15s, color .15s; max-width: 48%;
}
.day-nav-link:hover { border-color: var(--accent); color: var(--accent-dark); }
.day-nav-next { margin-left: auto; text-align: right; }

/* === COMMENTS (Вопрос автору) === */
.day-comments { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); max-width: 640px; }
.comments-heading { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.bv-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.bv-comment-list li { margin-bottom: 16px; }
.bv-comment-list .comment-body {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px;
}
.bv-comment-list .comment-author { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.bv-comment-list .comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.bv-comment-list .comment-metadata { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.bv-comment-list .comment-metadata a { color: var(--text-muted); }
.bv-comment-list p { font-size: 14px; line-height: 1.6; margin: 0; }
.bv-comment-list ol.children { list-style: none; margin: 12px 0 0 24px; padding: 0; }
.bv-comments-closed { color: var(--text-muted); font-size: 14px; }
.bv-comment-nav { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 20px; }

#respond { margin-top: 8px; }
#respond .comment-reply-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: block; }
.comment-form-comment textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; resize: vertical;
}
.comment-form-author input, .comment-form-email input, .comment-form-url input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 14px; margin-bottom: 10px;
}
#respond label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.day-comments .day-gpx-btn { border: none; cursor: pointer; margin-top: 8px; }

/* === FOOTER === */
.footer-social {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 12px;
}
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border: 1px solid var(--border);
  transition: all .15s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 17px; height: 17px; }
/* Загруженные свои иконки (не наши встроенные SVG) не красятся через currentColor —
   поэтому обесцвечиваем их через фильтр, чтобы футер оставался единообразным,
   и возвращаем цвет при наведении, как у остальных иконок. */
.footer-social img { width: 17px; height: 17px; object-fit: contain; filter: grayscale(1) opacity(0.55); transition: filter .15s; }
.footer-social a:hover img { filter: grayscale(0) opacity(1); }
.site-footer {
  border-top: 1px solid var(--border); margin-top: 48px; padding: 24px 0;
  text-align: center; font-size: 13px; color: var(--text-muted);
}


/* === Карта на странице планируемой поездки («Хочу поехать») ===
   Отличие от карты дня: не липкая и не на весь экран, а обычный блок
   под текстом. Селектор с id нужен, чтобы перебить #day-map {100vh/sticky}. */
#day-map.wish-map {
  position: static;
  height: 400px;
  width: 100%;
  margin-top: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  z-index: 0;
}
@media (max-width: 768px) {
  #day-map.wish-map { height: 320px; }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .day-page { flex-direction: column; width: auto; margin-left: 0; margin-right: 0; }
  .day-col-content { padding: 24px 20px 40px; }
  .day-col-map { position: static; }
  #day-map { position: static; height: 400px; width: 100%; }
  .day-layout, .day-layout.no-photo { grid-template-columns: 1fr; }
  /* Те же две колонки мечты на мобильных: одна колонка, инлайн-стиля больше нет,
     поэтому здесь достаточно обычного переопределения по классу. */
  .wish-layout.wish-cols-2, .wish-layout.wish-cols-1 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-nav-inner { flex-wrap: wrap; gap: 2px; min-height: auto; padding: 10px 16px; }
  .nav-logo { width: 100%; margin-bottom: 6px; font-size: 18px; }
  .nav-link { padding: 6px 10px; font-size: 13px; }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
  .nav-item-dropdown:hover .nav-dropdown-menu, .nav-item-dropdown:focus-within .nav-dropdown-menu { display: block; }
  .activity-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gear-list { grid-template-columns: 1fr; }
  .gear-row { flex-direction: column; }
  .guide-list { grid-template-columns: 1fr; }
  #map { height: 350px; }
}
