/* Доп. стили: лента, походы, участники, посты (префикс .tr-). Цвета — только переменные из app.css. */

/* ---------- общее ---------- */
.tr-pad{padding:0 16px}
.tr-h1{font-size:1.45rem;margin:0 0 8px}
.tr-title{margin:0 0 6px;font-size:1.1rem;font-weight:700}
.tr-who{font-weight:650;color:var(--ink)}
.tr-plain{text-decoration:none;display:block}
.tr-text{white-space:pre-wrap}
.tr-clamp{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.tr-meta{display:flex;align-items:center;gap:6px;color:var(--muted)}
.tr-res{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px}
.tr-res .res svg{width:1.05em;height:1.05em}
.tr-chev{color:var(--muted);flex-shrink:0}
.tr-quote{margin:8px 0 0;padding:8px 12px;border-left:3px solid var(--primary);background:var(--surface-2);border-radius:0 10px 10px 0;white-space:pre-wrap;font-size:.95rem}
.tr-step{min-width:48px;padding:0;font-size:1.3rem}
.tr-past{margin:20px 0 12px}
.tr-past>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px;font-weight:600;color:var(--muted)}
.tr-past>summary::-webkit-details-marker{display:none}
.tr-past .tr-sum-ico{transition:transform .15s}
.tr-past[open] .tr-sum-ico{transform:rotate(90deg)}

/* ---------- главная ---------- */
.tr-feed .photo-hero .chips{margin:0 -16px;padding-left:16px;padding-right:16px}
.tr-feed .photo-hero .chip:not(.on){background:var(--glass);border-color:rgba(255,255,255,.14);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.trip-card>a{display:block;color:inherit;text-decoration:none}
.trip-card .cover{border-radius:0}
.trip-card-title{display:block}
.tr-cover-badges{position:absolute;bottom:12px;left:12px;display:flex;flex-wrap:wrap;gap:6px;max-width:80%} /* верхний правый угол — под сердечко */
.tr-glass{background:var(--glass);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.tr-glass svg{width:1em;height:1em}
.tr-owner{display:flex;align-items:center;gap:8px;color:var(--muted);text-decoration:none;font-size:.9rem;min-height:36px;min-width:0}
.tr-owner b{color:var(--ink);font-weight:600}
.tr-feed .hscroll{scroll-padding-inline:16px}
.tr-dest{appearance:none;border:0;padding:0;font:inherit;cursor:pointer;text-align:left;display:block}
.tr-card{margin-bottom:14px}
.tr-head{display:flex;align-items:center;gap:10px;padding:14px 16px 0}
.tr-kindline{display:flex;align-items:center;gap:5px}
.tr-kindline svg{width:1em;height:1em}
.tr-post-body{padding-top:10px}
.tr-post-body .stat-row{margin-bottom:6px}
.tr-card .card-foot svg{width:1.1em;height:1.1em;flex-shrink:0}
.tr-photos{display:grid;gap:2px;background:var(--surface-2)}
.tr-photos img{width:100%;height:100%;object-fit:cover}
.tr-photos.one img{aspect-ratio:4/3}
.tr-photos.two{grid-template-columns:1fr 1fr}
.tr-photos.three{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}
.tr-photos.three .tr-ph:first-child{grid-row:span 2}
.tr-photos.four{grid-template-columns:1fr 1fr}
.tr-ph{position:relative;aspect-ratio:4/3;overflow:hidden}
.tr-photos.three .tr-ph:first-child{aspect-ratio:auto}
.tr-ph-more{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45);color:#fff;font-size:1.6rem;font-weight:700}

/* ---------- чаты (мои группы) ---------- */
.tr-chats .section-title:first-child{margin-top:4px}
.tr-thumb{position:relative;flex-shrink:0;width:56px;height:56px;border-radius:16px;overflow:hidden;background:var(--surface-2)}
.tr-thumb>img,.tr-thumb>.cover-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tr-chatrow{align-items:center}
.tr-chat-top{display:flex;align-items:baseline;gap:8px}
.tr-chat-title{flex:1;min-width:0;font-weight:650;color:var(--ink)}
.tr-chat-time{flex-shrink:0;font-size:.8rem;color:var(--muted)}
.tr-chat-last{color:var(--muted);font-size:.92rem;margin-top:2px}
.tr-chat-last b{color:var(--ink);font-weight:600}
.tr-chat-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.tr-chat-tags:empty{display:none}
.tr-past-link{display:flex;align-items:center;gap:12px;flex:1;min-width:0;color:inherit;text-decoration:none}
.tr-req{flex-direction:column;align-items:stretch}
.tr-req-actions{margin-top:2px}

/* ---------- обзор похода ---------- */
.tr-overview .section-title{margin-top:20px}
.tr-overview>.card:first-child{margin-top:4px}
.tr-status{display:flex;flex-direction:column;gap:10px}
.tr-status .hstack svg{color:var(--primary)}
.tr-status>.btn{align-self:flex-start}
.tr-owner-card{color:inherit;text-decoration:none}
.tr-people-row{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 14px;border-radius:var(--radius);background:var(--surface);color:inherit;text-decoration:none;min-height:52px}
.tr-people-row .muted{flex:1}
.tr-overview .note svg{vertical-align:-.2em}
.tr-overview .info-row .v a{display:inline-flex;align-items:center;gap:4px}

/* ---------- участники и транспорт ---------- */
.tr-people .section-title:first-child{margin-top:4px}
.tr-person{align-items:flex-start}
.tr-plink{text-decoration:none;flex-shrink:0}
.tr-pname-row{gap:6px}
.tr-pname{font-weight:650;color:var(--ink);text-decoration:none}
.tr-pactions{margin-top:10px}
.tr-pactions>.btn{flex:0 1 auto}
.tr-cap{display:flex;flex-direction:column;gap:6px;color:var(--muted);margin-bottom:12px}
.tr-cap>div{display:flex;align-items:center;gap:6px}
.tr-ride-head{display:flex;align-items:center;gap:12px}
.tr-ride-ico{width:44px;height:44px;border-radius:14px;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.tr-ride-ico svg{width:24px;height:24px}
.tr-slots{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tr-slot{width:36px;height:36px;border-radius:50%;border:2px dashed var(--line);display:flex;align-items:center;justify-content:center;color:var(--muted)}
.tr-slot svg{width:16px;height:16px}
.tr-slot.on{border:2px solid var(--primary)}
.tr-slot.on .avatar{width:100%;height:100%}
.tr-riders{margin-top:10px;border-top:1px solid var(--line)}
.tr-rider{display:flex;align-items:center;gap:8px;min-height:44px;border-bottom:1px solid var(--line)}
.tr-rider:last-child{border-bottom:0}
.tr-x{width:40px;height:40px;color:var(--muted)}
.tr-x svg{width:18px;height:18px}
.tr-unseated{display:flex;gap:8px;align-items:flex-start}
.tr-unseated>svg{margin-top:3px;color:var(--muted)}
.tr-offer-pick .hstack svg{color:var(--primary)}

/* ---------- формы похода и поста ---------- */
.tr-edit{display:flex;flex-direction:column;gap:12px}
.tr-fsec{margin:0}
.tr-fsec h2{margin:0}
.tr-fhint{margin:-6px 0 0}
.tr-fsec .note svg{vertical-align:-.2em}
.tr-fsec>a.small{display:inline-flex;align-items:center;gap:4px;min-height:44px}
.tr-coverbox-edit .cover{max-height:220px}
.tr-pick{padding:6px 0;border-bottom:1px solid var(--line)}
.tr-pick:last-of-type{border-bottom:0}
.tr-pick .check{align-items:flex-start}
.tr-pick .check>.grow{display:flex;flex-direction:column;gap:2px}
.tr-pick-seats{margin:4px 0 8px 34px}
.tr-danger{margin-top:28px;padding-top:16px;border-top:1px solid var(--line)}
.tr-pick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tr-pick-grid:empty{display:none}
.tr-pick-tile{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--surface-2)}
.tr-pick-tile img{width:100%;height:100%;object-fit:cover}
.tr-pick-x{position:absolute;top:4px;right:4px;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.tr-pick-x svg{width:18px;height:18px}
label.btn{cursor:pointer}

/* ---------- пост целиком ---------- */
.tr-post-text{margin-top:10px;font-size:1.02rem;line-height:1.55}
.tr-post .stat-row{margin-bottom:4px}
.tr-bigphotos{display:flex;flex-direction:column;gap:2px}
.tr-bigphoto img{width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--surface-2)}
.tr-tripmini{display:flex;align-items:center;gap:12px;padding:10px 14px 10px 10px;color:inherit;text-decoration:none;margin-top:12px}
.tr-tripmini-cover{width:72px;height:72px;aspect-ratio:auto;border-radius:14px;flex-shrink:0}
