/**
 * @file        sg-cotravel.css
 * @description Styles of the co-travel module: W-04 co-travelers and pool, W-05 tag approval, author line and filter on trip pages, "traveling now" strip (mobile first, light and dark through the sg.css tokens)
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         e2d5a1b7-6c49-4f83-9a1e-0b7c3f58d2a6
 * @version     0.1.0.1
 * @created     2026-12-01
 * @updated     2026-12-01
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* Author line and "with" line on joint trip pages (FR-230, FR-235). */
.sg-cot-by { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 0.875rem; color: var(--ink-muted); }
.sg-cot-by .sg-avatar-img { width: 24px; height: 24px; }
.sg-cot-with { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--ink-muted); }
.sg-cot-with .sg-icon { width: 18px; height: 18px; }
.sg-cot-linked li { position: relative; }
.sg-cot-credit { display: block; font-size: 0.75rem; color: var(--ink-muted); margin-top: 4px; }

/* Travelers block and author filter in the trip header (FR-236). */
.sg-cot-head { margin: 16px 0 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.sg-cot-head__title { font-family: var(--font-head); font-size: 1rem; margin: 0 0 8px; }
.sg-cot-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sg-cot-person { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sg-cot-person:last-child { border-bottom: 0; }
.sg-cot-person__name { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.sg-cot-person form { margin: 0; }
.sg-cot-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.sg-cot-filter button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.sg-cot-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; color: var(--ink-muted); }
.sg-cot-link .sg-icon { width: 20px; height: 20px; }

/* W-04 page. */
.sg-cot-crumb { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sg-cot-section { margin-top: 16px; }
.sg-cot-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sg-cot-alert p { flex: 1 1 200px; margin: 0; }
.sg-cot-alert form { margin: 0; }
.sg-cot-tabs { margin: 0 0 16px; }
.sg-cot-tabs__bar { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 12px; }
.sg-cot-tabs__bar button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; min-height: 44px; color: var(--ink-muted); font: inherit; cursor: pointer; }
.sg-cot-tabs__bar button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.sg-cot-tab + .sg-cot-tab { margin-top: 16px; }
.sg-cot-tabs--js .sg-cot-tab + .sg-cot-tab { margin-top: 0; }
.sg-cot-links li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.sg-cot-pool { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.sg-cot-photo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sg-cot-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.sg-cot-photo--out img { opacity: 0.55; }
.sg-cot-photo__by { margin: 0; font-size: 0.8rem; color: var(--ink-muted); }
.sg-cot-photo form { margin: 0; }
.sg-cot-add select { max-width: 100%; }
.sg-cot-tagbox summary { cursor: pointer; font-size: 0.875rem; min-height: 32px; }
.sg-cot-tagbox .sg-check { display: block; }
.sg-cot-authors { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-cot-steps { list-style: none; margin: 0; padding: 0; }
.sg-cot-step { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sg-cot-step:last-child { border-bottom: 0; }
.sg-cot-step__title { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sg-cot-step__title .sg-mono { color: var(--ink-muted); margin-right: 4px; }
.sg-cot-step p { margin: 4px 0; }
.sg-cot-step form { margin: 4px 0 0; }
.sg-cot-step--hidden { opacity: 0.7; }
.sg-cot-invite .sg-actions { margin-top: 16px; }

/* W-05 tag approval. */
.sg-cot-picks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sg-cot-picks form { margin: 0; }
.sg-cot-pick { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.sg-cot-pick .sg-icon { width: 18px; height: 18px; }
.sg-cot-pick--on { border-color: var(--accent); color: var(--accent); }
.sg-cot-requests { display: flex; flex-direction: column; gap: 12px; }
.sg-cot-request { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sg-cot-request img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.sg-cot-request__body { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.sg-cot-request__body p { margin: 0 0 4px; }
.sg-cot-request__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; flex: 1 1 100%; justify-content: flex-end; }

/* "Traveling now" strip in the feed (FR-240): scrolls inside itself, never the page. */
.sg-cot-now { margin: 0 0 16px; }
.sg-cot-now__title { font-family: var(--font-head); font-size: 1rem; margin: 0 0 8px; }
.sg-cot-now__list { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 12px; overflow-x: auto; max-width: 100%; scroll-snap-type: x proximity; }
.sg-cot-now__item { flex: 0 0 auto; scroll-snap-align: start; }
.sg-cot-now__item a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; padding: 8px 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: center; }
.sg-cot-now__name { font-size: 0.8rem; font-weight: 600; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-cot-now__country { display: inline-flex; align-items: center; gap: 2px; font-size: 0.75rem; color: var(--ink-muted); }
.sg-cot-now__country .sg-icon { width: 14px; height: 14px; }

@media (min-width: 720px) {
  .sg-cot-pool { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .sg-cot-request__actions { flex: 0 0 auto; }
}
