/* tatarinn-excursions — same tokens as tatarinn-sights; fonts inherit from the theme (Montserrat / Playfair Display). */
.tt-exc, .tt-esingle { --tt-accent: #a24924; --tt-green: #85a018; --tt-ink: #333; --tt-muted: #777; --tt-line: #e6e1dc; --tt-bg: #faf8f6; }

/* ---- toolbar ---- */
/* 100px before the theme's footer ornament (same spacing as the sights pages). */
.tt-exc:not(.tt-exc--single) { padding-bottom: 100px; }
.tt-esingle { padding-bottom: 100px; }
.tt-exc__bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.tt-exc__chips { display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.tt-exc__chips::-webkit-scrollbar { display: none; }
.tt-exc .tt-chip { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1px solid var(--tt-line); border-radius: 999px; background: #fff; color: var(--tt-ink); font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer; }
.tt-exc .tt-chip span { color: var(--tt-muted); font-size: 12px; }
.tt-exc .tt-chip:hover { border-color: var(--tt-accent); }
.tt-exc .tt-chip[aria-pressed="true"] { background: var(--tt-accent); border-color: var(--tt-accent); color: #fff; }
.tt-exc .tt-chip[aria-pressed="true"] span { color: rgba(255,255,255,.8); }
.tt-exc button:focus-visible, .tt-exc a:focus-visible, .tt-esingle a:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 2px; }
.tt-exc__toggle { display: none; border: 1px solid var(--tt-line); border-radius: 6px; overflow: hidden; }
.tt-exc__toggle button { padding: 0 16px; height: 38px; border: 0; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.tt-exc__toggle button[aria-pressed="true"] { background: var(--tt-accent); color: #fff; }

/* ---- layout: cards + sticky map ---- */
.tt-exc__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tt-exc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tt-exc__mapwrap { position: sticky; top: var(--tt-sticky-top, 84px); }
/* Fits under the fixed header + TravelLine bar (~178px on desktop) with room for the hint line. A constant on purpose:
   tying it to --tt-sticky-top would resize the map while scrolling, behind the Yandex API's back. */
.tt-exc__map { height: calc(100vh - 240px); min-height: 380px; max-height: 720px; border-radius: 10px; overflow: hidden; background: #eef0f2; }
.tt-exc__maphint { margin: 8px 0 0; font-size: 12px; color: var(--tt-muted); }

/* ---- card ---- */
.tt-ecard { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: #fff; border: 1px solid var(--tt-line);
  border-radius: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tt-ecard[hidden] { display: none; }
.tt-ecard:hover, .tt-ecard.is-active { border-color: var(--tt-green); box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.tt-ecard__media { position: relative; display: block; min-height: 190px; background: #eef0f2; }
.tt-ecard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt-ecard__from { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--tt-green);
  color: #fff; font-size: 13px; font-weight: 600; }
.tt-ecard__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.tt-ecard__cat { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tt-accent); }
.tt-ecard__title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 19px; line-height: 1.3; }
.tt-ecard__title a { color: var(--tt-ink); text-decoration: none; }
.tt-ecard__title a:hover { color: var(--tt-accent); }
.tt-ecard__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--tt-muted); }
.tt-ecard__meta li::before { content: "⏱ "; }
.tt-ecard__meta .tt-ecard__km::before { content: "🚌 "; }
.tt-ecard__prices { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--tt-ink); }
.tt-ecard__note { margin: 0; font-size: 12px; color: var(--tt-green); }
.tt-ecard__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }

.tt-exc .tt-btn, .tt-esingle .tt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--tt-line); border-radius: 6px; background: #fff; color: var(--tt-ink); font: inherit; font-size: 13px;
  text-decoration: none; cursor: pointer; }
.tt-exc .tt-btn:hover, .tt-esingle .tt-btn:hover { border-color: var(--tt-accent); color: var(--tt-accent); }
.tt-exc .tt-btn--primary, .tt-esingle .tt-btn--primary { background: var(--tt-green); border-color: var(--tt-green); color: #fff; }
.tt-exc .tt-btn--primary:hover, .tt-esingle .tt-btn--primary:hover { background: #6f8714; border-color: #6f8714; color: #fff; }

/* Yandex balloon */
.tt-exc__map .tt-bal__title { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 700; color: #333; text-decoration: none; }
.tt-exc__map .tt-bal__title:hover { color: #a24924; }
.tt-exc__map .tt-bal { font-family: Montserrat, Arial, sans-serif; font-size: 12px; color: #777; }
.tt-exc__map .tt-bal__img { display: block; width: 240px; height: 150px; max-width: none; object-fit: cover; margin: 6px 0 8px; border-radius: 6px; }

/* ---- single ---- */
.tt-esingle__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin: 10px 0 40px; }
.tt-esingle__back { margin: 0 0 16px; font-size: 13px; }
.tt-esingle__back a { color: var(--tt-accent); text-decoration: none; }
.tt-esingle__content img { max-width: 100%; height: auto; border-radius: 10px; }
.tt-esingle__content figure { margin: 2rem 0; }
/* minmax(0, 1fr): an auto track would grow to its content. When the map leaves Yandex fullscreen it briefly keeps
   the viewport width, and the sidebar would then push the whole page sideways. */
.tt-esingle__side { position: sticky; top: var(--tt-sticky-top, 84px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.tt-exc__map > ymaps { max-width: 100%; }
.tt-prices { border: 2px solid var(--tt-green); border-radius: 12px; padding: 16px 18px; background: #fff; }
.tt-prices h2 { margin: 0 0 10px; font-size: 20px; }
.tt-prices table { width: 100%; border-collapse: collapse; margin: 0; }
.tt-prices th, .tt-prices td { padding: 8px 0; border: 0; border-bottom: 1px solid var(--tt-line); text-align: left; vertical-align: top; font-size: 14px; }
.tt-prices td { text-align: right; white-space: nowrap; font-weight: 700; }
.tt-prices th small, .tt-prices td del { display: block; font-weight: 400; color: var(--tt-muted); font-size: 12px; }
.tt-prices__note { margin: 10px 0 0; font-size: 13px; color: var(--tt-green); white-space: pre-line; }
.tt-prices .tt-btn { width: 100%; margin-top: 12px; }
.tt-efacts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: 13px; }
.tt-efacts dt { color: var(--tt-muted); }
.tt-efacts dd { margin: 0; white-space: pre-line; }
.tt-esingle .tt-exc__mapwrap { position: static; }
.tt-esingle .tt-exc__map { height: 260px; min-height: 0; }
.tt-esingle__book { margin: 30px 0 50px; scroll-margin-top: 140px; }

@media (max-width: 991px) {
  .tt-exc__toggle { display: flex; }
  .tt-exc__body { grid-template-columns: minmax(0, 1fr); }
  .tt-exc[data-view="list"] .tt-exc__mapwrap { display: none; }
  .tt-exc[data-view="map"] .tt-exc__list { display: none; }
  .tt-exc__mapwrap { position: static; }
  .tt-exc__map { height: 70vh; }
  .tt-esingle__grid { grid-template-columns: minmax(0, 1fr); }
  .tt-esingle__side { position: static; }
}
@media (max-width: 600px) {
  .tt-ecard { grid-template-columns: minmax(0, 1fr); }
  .tt-ecard__media { min-height: 0; aspect-ratio: 16 / 9; }
}
