/* FreeCouchSurf — web layout pass (2026-11-05). Loaded after fcs-v2.css.
   1. Category bar fits (no cut-off "Phot…"), fades at the edge on small screens
   2. Filter chips: one swipeable row instead of 2–6 wrapped rows
   3. Host grid: equal-height cards, tidy badges, 2-line bios
   4. Search hero + profile hero buttons behave on phones
   5. Hangout / generic chip links look tappable */

/* 1 ── Category bar ─────────────────────────────────────────────── */
.category-nav-inner {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
@media (min-width: 1200px) {
  .category-nav-inner { -webkit-mask-image: none; mask-image: none; justify-content: flex-start; }
}
.cat-pill { flex-shrink: 0; }
.cat-pill.is-safety i { color: #C62845 !important; }

/* 2 ── Filter chips: single swipeable row ────────────────────────── */
.filter-bar {
  flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none;
  gap: 8px !important; padding: 10px 16px !important;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar > * { flex-shrink: 0; }
.filter-bar > span:first-child { display: none; }   /* "Show:" label — the chips speak for themselves */
.filter-chip { border-width: 1.5px !important; white-space: nowrap; min-height: 36px; padding: 0 14px !important; color: var(--ink-2, #33463B); }
.filter-chip.active { background: var(--ink, #13241B) !important; border-color: var(--ink, #13241B) !important; color: #fff !important; }
.filter-bar > span:last-child { margin-left: auto; padding-left: 12px; padding-right: 30px; white-space: nowrap; }

/* 3 ── Host grid ─────────────────────────────────────────────────── */
.masonry-grid { align-items: stretch !important; gap: 18px 16px !important; padding: 18px 16px !important; }
.masonry-grid > .host-card { display: flex; flex-direction: column; }
.host-card { border-radius: 18px !important; }
.host-card:hover { transform: translateY(-2px) !important; }
.host-card-cover, .host-card-cover.no-photo { aspect-ratio: 4 / 3; min-height: 0 !important; }
.host-card-cover > img:not([style]) { height: 100%; }
.host-card-cover.no-photo { background: linear-gradient(160deg, #EAF4EE, #F6EFE6) !important; }
.host-card-cover.no-photo img { width: 88px !important; height: 88px !important; }
/* At most three badges on the photo; everything is on the profile anyway. */
.host-card-badges > :nth-child(n+4):not(.badge-verified) { display: none !important; }
.badge-hosting, .badge-female, .badge-verified { font-size: .68rem !important; padding: 4px 8px !important; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.badge-hosting.no { background: rgba(30, 40, 35, .72) !important; }
.host-card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px !important; }
.host-card-name { font-size: 1rem !important; min-width: 0; }
.host-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-card-location { min-height: 1.2em; }
.host-card-about { -webkit-line-clamp: 2 !important; margin-bottom: 8px !important; }
.host-card-footer { margin-top: auto; }
/* Skill tags: one or two neat lines, never a wall of text */
.host-card-body > div[style*="flex-wrap"] { max-height: 52px; overflow: hidden; }
.host-card-body > div[style*="flex-wrap"] > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host-card-actions { display: flex; gap: 6px; margin-top: 10px; }
.host-card-actions > a { flex: 1; justify-content: center; text-align: center; }

/* Sidebar country list on search: compact + scrolls on its own */
@media (min-width: 992px) {
  .search-country-list, .col-lg-2 .card-clean { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; }
}

/* 4 ── Search hero on phones ─────────────────────────────────────── */
.search-hero { padding-left: 16px !important; padding-right: 16px !important; }
@media (max-width: 600px) {
  .search-hero h1 { font-size: 1.6rem !important; }
  .search-hero p { font-size: .9rem !important; }
  .search-big-bar { padding: 6px 6px 6px 16px !important; gap: 8px !important; }
  .search-big-bar input { min-width: 0; font-size: .95rem !important; }
  .search-big-bar .btn-search { padding: 10px 14px !important; white-space: nowrap; }
  .search-big-bar .btn-search i { margin: 0 !important; }
}

/* Profile hero buttons: wrap in tidy rows on phones, safety buttons smaller */
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) {
  .hero-actions .hero-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .hero-actions .hero-btn.hero-btn-safety { flex: 0 1 auto; font-size: .8rem; padding-left: 12px; padding-right: 12px; }
}

/* 5 ── Chips that are links ──────────────────────────────────────── */
a.hg-chip, a.fx-chip, a.gp-chip { cursor: pointer; }

/* Wider screens: keep reading width sane on content pages */
@media (min-width: 1600px) {
  .masonry-grid { max-width: 1680px; margin-left: auto; margin-right: auto; }
}

/* Phones: two columns of cards so you can actually browse */
@media (max-width: 480px) {
  .masonry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; padding: 10px !important; }
  .host-card-cover.no-photo img { width: 64px !important; height: 64px !important; }
  .host-card-body { padding: 10px !important; }
  .host-card-name { font-size: .88rem !important; }
  .host-card-avatar { display: none; }
  .host-card-badges > :nth-child(n+3):not(.badge-verified) { display: none !important; }
  .host-card-actions { flex-direction: column; }
}
