/* =========================================================
   blog-post.css — нэг нийтлэлийн хуудас (бүх нийтлэлд нэг загвар)
   Бүтэц: толгой + том зураг, нийтлэл + дагаж явдаг widget-ууд,
   хуваалцах товч, санал болгох аяллууд
   ========================================================= */

/* ===== Толгой ===== */
.bp-head { padding: 28px 0 8px; }
.bp-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #5d6460;
  text-decoration: none;
}
.bp-back:hover { color: var(--altai-forest); }
.bp-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-head h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: var(--charcoal);
}
.bp-sub { max-width: 820px; margin-top: 14px; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: #3a403d; }
.bp-meta-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 14px 24px;
  margin: 26px 0 20px;
}
.bp-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  list-style: none;
  font-size: 0.92rem; color: #5d6460;
}
.bp-meta li { display: flex; align-items: center; gap: 8px; }
.bp-meta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bp-author img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e6e8df; background: #fff; object-fit: contain; }
.bp-author img.is-person { object-fit: cover; }
.bp-author strong { color: var(--charcoal); }
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tag {
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--altai-forest);
  color: var(--ivory);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
}
.bp-tag:hover { background: #154b2f; }
.bp-cover { margin: 0; }
.bp-cover img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 2.3 / 1;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== Нийтлэл + sidebar ===== */
.bp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
  padding: 24px 0 64px;
}
.bp-article { font-size: 1.06rem; line-height: 1.65; color: #2f3532; }
.bp-article > * + * { margin-top: 0.8em; }
.bp-article h2 { margin-top: 1.2em; line-height: 1.25; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.bp-article h3 { margin-top: 1.1em; font-size: 1.2rem; color: var(--charcoal); }
.bp-article .bp-kicker:first-child { margin-top: 0; }
.bp-article .bp-kicker { color: var(--sand-gold); font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.bp-lead {
  padding: 18px 24px;
  border-left: 4px solid var(--altai-forest);
  border-radius: 0 10px 10px 0;
  background: var(--ivory);
  font-style: italic;
  color: #3a403d;
}
.bp-article ul { padding-left: 1.2em; }
.bp-article h2 + *, .bp-article h3 + * { margin-top: 0.45em; }
.bp-article li + li { margin-top: 0.15em; }
.bp-article li::marker { color: var(--steppe-green); }
.bp-article figure { margin: 1em 0; }
.bp-article figure img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}
.bp-article figcaption { margin-top: 8px; font-size: 0.85rem; color: #6b716d; text-align: center; }

/* ===== Хуваалцах товчнууд: нэртэй, сошиал өнгөтэй ===== */
.bp-share {
  margin-top: 40px !important;
  padding-top: 24px;
  border-top: 1px solid #e6e8df;
}
.bp-share-label {
  display: block;
  margin-bottom: 14px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--charcoal);
}
.bp-share-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bp-share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 1px solid #d9dcd2; border-radius: 6px;
  background: #fff;
  font: inherit; font-size: 0.9rem; font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
}
.bp-share-btn svg { width: 17px; height: 17px; fill: currentColor; }
.bp-share-btn svg.is-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bp-share-btn:hover { transform: translateY(-2px); border-color: var(--altai-forest); color: var(--altai-forest); }
.bp-share-btn.is-fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.bp-share-btn.is-x { background: #111; border-color: #111; color: #fff; }
.bp-share-btn.is-pin { background: #E60023; border-color: #E60023; color: #fff; }
.bp-share-btn.is-fb:hover, .bp-share-btn.is-x:hover, .bp-share-btn.is-pin:hover { color: #fff; filter: brightness(1.1); }
.bp-share-btn:focus-visible { outline: 2px solid var(--sand-gold); outline-offset: 2px; }
.bp-copied { font-size: 0.85rem; font-weight: 700; color: var(--altai-forest); }
.bp-lead a { color: var(--altai-forest); font-weight: 700; }

/* ===== Widget-ууд ===== */
/* Бүх widget нэг дор наалдана. Дэлгэцээс өндөр бол blog-post.js доод талаар нь наалдуулна */
.bp-aside {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 16px;
}
.bp-sticky { display: flex; flex-direction: column; gap: 16px; }
.bp-widget {
  padding: 18px 20px;
  border: 1px solid #e6e8df;
  border-radius: 14px;
  background: #fff;
}
.bp-widget-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--charcoal);
}
.bp-widget-title svg { width: 20px; height: 20px; fill: none; stroke: var(--altai-forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-widget-title--split { display: block; font-weight: 400; padding-bottom: 10px; border-bottom: 2px solid transparent; border-image: linear-gradient(to right, var(--charcoal) 40%, transparent 40%) 1; }
.bp-widget-title--split span { font-weight: 700; color: var(--sand-gold); }

.bp-latest, .bp-tours { list-style: none; display: grid; gap: 10px; }
.bp-latest a, .bp-tours a {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center;
  color: inherit; text-decoration: none;
}
.bp-tours a { grid-template-columns: 64px 1fr; align-items: start; }
.bp-latest img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.bp-tours img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.bp-latest strong, .bp-tours strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem; line-height: 1.35;
  transition: color 0.2s;
}
.bp-latest small, .bp-tours small { display: block; margin-top: 4px; font-size: 0.8rem; color: #6b716d; }
.bp-tours b { color: var(--altai-forest); }
.bp-latest a:hover strong, .bp-tours a:hover strong { color: var(--altai-forest); }

/* Create my trip маягт */
.bp-trip { display: grid; gap: 8px; }
.bp-input {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #d6d9cf;
}
.bp-input svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #6b716d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bp-input input, .bp-trip textarea {
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: none;
  font: inherit; font-size: 0.92rem;
  color: var(--charcoal);
}
.bp-trip textarea {
  padding: 10px 12px;
  border: 1px solid #d6d9cf;
  border-radius: var(--radius);
  resize: vertical;
}
.bp-input:focus-within { border-color: var(--altai-forest); }
.bp-input input:focus, .bp-trip textarea:focus { outline: none; }
.bp-trip textarea:focus { border-color: var(--altai-forest); }
.bp-trip .btn { justify-content: center; margin-top: 4px; }
.bp-trip-done { font-size: 0.88rem; font-weight: 700; color: var(--altai-forest); }

/* ===== Санал болгох аяллууд ===== */
.bp-recommended { padding: 64px 0 80px; background: var(--ivory); }
.bp-rec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 24px; }
.bp-rec-head h2 { margin: 0; }
.bp-rec-all { font-weight: 700; color: var(--altai-forest); text-decoration: none; white-space: nowrap; }
.bp-rec-all:hover { text-decoration: underline; }
.bp-rec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bp-rec-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.bp-rec-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(31, 35, 35, 0.15); }
.bp-rec-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.bp-rec-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 20, 16, 0) 40%, rgba(12, 20, 16, 0.8));
}
.bp-rec-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; }
.bp-rec-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--charcoal);
  font-size: 0.75rem; font-weight: 700;
}
.bp-rec-body h3 { font-size: 1.1rem; line-height: 1.3; }
.bp-rec-body p { margin-top: 6px; font-size: 0.9rem; opacity: 0.92; }

/* ===== Таблет: sidebar нийтлэлийн доор ===== */
@media (max-width: 1024px) {
  .bp-layout { grid-template-columns: 1fr; gap: 40px; }
  .bp-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .bp-aside { position: static; }
  .bp-sticky { display: contents; }
  .bp-rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-rec-card:nth-child(3) { display: none; }
}

/* ===== Гар утас ===== */
@media (max-width: 640px) {
  .bp-head { padding-top: 20px; }
  .bp-meta-row { margin: 20px 0 16px; }
  .bp-cover img { aspect-ratio: 4 / 3; }
  .bp-layout { padding-top: 20px; }
  .bp-article { font-size: 1rem; }
  .bp-aside { grid-template-columns: 1fr; }
  .bp-share-btn { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .bp-rec-grid { grid-template-columns: 1fr; }
  .bp-rec-card:nth-child(3) { display: block; }
  .bp-rec-card img { aspect-ratio: 4 / 3; }
}

/* Самбарын блокоор бичсэн нийтлэл: дугаартай жагсаалт, YouTube */
.bp-article ol { padding-left: 1.4em; }
.bp-article ol li::marker { color: var(--altai-forest); font-weight: 700; }
.bp-article a { color: var(--altai-forest); font-weight: 600; }
.bp-video { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; border-radius: 14px; overflow: hidden; background: #111; }
.bp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tour блок: нийтлэлийн дундах аяллын сурталчилгаа */
.bp-tour-promo {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 36px 0;
  border-radius: 16px; overflow: hidden;
  background: var(--ivory);
  border: 1px solid #e3e6dc;
  box-shadow: 0 10px 28px rgba(31, 35, 35, 0.08);
}
.bp-tour-promo-img { display: block; min-height: 220px; background: #e9ebe4; }
.bp-tour-promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.bp-tour-promo:hover .bp-tour-promo-img img { transform: scale(1.04); }
.bp-tour-promo-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; }
.bp-tour-promo-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #b9843f; }
.bp-tour-promo h3 { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.bp-tour-promo h3 a { color: var(--charcoal); text-decoration: none; }
.bp-tour-promo h3 a:hover { color: var(--altai-forest); }
.bp-tour-promo p { margin: 0; color: #4c5250; font-size: 0.98rem; }
.bp-tour-promo-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #e3e6dc; font-size: 0.9rem; color: #5b6060; }
.bp-tour-promo-foot strong { color: var(--altai-forest); }
.bp-tour-promo-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 8px; background: var(--altai-forest); color: var(--ivory); font-weight: 700; text-decoration: none; transition: background 0.2s; }
.bp-tour-promo-btn:hover { background: #154b2f; }
@media (max-width: 640px) {
  .bp-tour-promo { grid-template-columns: 1fr; }
  .bp-tour-promo-img { min-height: 0; aspect-ratio: 16 / 10; }
  .bp-tour-promo-body { padding: 18px; }
}
.bp-article .bp-tour-promo-btn, .bp-article .bp-tour-promo-btn:hover { color: var(--ivory); text-decoration: none; }
.bp-article .bp-tour-promo h3 a { color: var(--charcoal); font-weight: 700; }
.bp-article .bp-tour-promo h3 a:hover { color: var(--altai-forest); }
.bp-tour-promo { max-height: none; }
@media (min-width: 641px) { .bp-tour-promo-img { max-height: 340px; } }
