/* ==========================================================================
   FUSH app surfaces (feed, map, gigs, explore, profiles, posts): the product
   register from DESIGN.md. Loaded instead of style.css on these pages.
   Phones follow the mobile app 1:1 (header, bottom tabs, "+"); desktop is a
   desktop app (left navigation, content that uses the width).
   ========================================================================== */

:root {
  --accent: #9B72AA;          /* the app accent (ThemeContext.accent) */
  --accent-deep: #86609B;     /* small accent text (links, meta) */
  --accent-soft: #B89BC8;
  --accent-tint: #F4F0FF;
  --ink: #414552;
  --ink-2: #666666;
  --ink-3: #6B6B73;
  --surface: #F7F7F9;
  --card: #FFFFFF;
  --line: #EEEEEE;
  --line-strong: #DDDDDD;
  --chip: #F0F0F0;
  --hover: #F3F1F6;
  --success: #1F7A47;
  --success-signal: #27AE60;
  --danger: #E74C3C;
  --danger-text: #B3261E;

  /* One type scale for every app page (DESIGN.md): caption, meta, body, title, headline, display. */
  --fs-cap: 12px;
  --fs-meta: 13px;
  --fs-body: 14px;
  --fs-title: 16px;
  --fs-head: 20px;
  --fs-display: 24px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 12px;
  --r-card: 14px;
  --r-md: 20px;
  --r-sheet: 28px;
  --r-full: 9999px;

  --sh-rest: 0 2px 8px rgba(62, 67, 82, 0.08);
  --sh-raised: 0 4px 20px rgba(62, 67, 82, 0.12);
  --sh-overlay: 0 8px 40px rgba(62, 67, 82, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-w: 0px;
  --top-h: 52px;
  --tabs-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px)  { :root { --nav-w: 72px; } }
@media (min-width: 1264px) { :root { --nav-w: 244px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.fx {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
/* :where() keeps these at zero specificity: component classes always win. */
:where(.fx) img { max-width: 100%; display: block; }
:where(.fx) a { color: inherit; text-decoration: none; }
:where(.fx) button { font: inherit; color: inherit; }
:where(.fx) :is(h1, h2, h3) { margin: 0; line-height: 1.25; }
:where(.fx) p { margin: 0; }
.fx :focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fx-skip {
  position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px;
  background: var(--ink); color: #fff; border-radius: var(--r-sm);
  transform: translateY(-150%); transition: transform 150ms var(--ease);
}
.fx-skip:focus { transform: none; }

/* ---------- Main area ---------- */
.fx-main {
  min-height: 100vh;
  padding-top: var(--top-h);
  padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 24px);
}
@media (min-width: 768px) {
  .fx-main { margin-left: var(--nav-w); padding-top: 0; padding-bottom: 48px; }
}

/* ---------- Desktop navigation ---------- */
.fx-nav { display: none; }
@media (min-width: 768px) {
  .fx-nav {
    display: flex; flex-direction: column;
    position: fixed; inset: 0 auto 0 0; z-index: 50;
    width: var(--nav-w);
    padding: 20px 12px 16px;
    background: var(--card);
    border-right: 1px solid var(--line);
  }
}
.fx-nav-logo { display: flex; align-items: center; height: 44px; padding: 0 12px; margin-bottom: 18px; }
.fx-nav-logo img { height: 24px; width: auto; }
.fx-nav-mark { display: none; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 20px; font-weight: 700; align-items: center; justify-content: center; letter-spacing: -0.02em; }
.fx-nav-list { display: flex; flex-direction: column; gap: 4px; }
.fx-nav-item {
  display: flex; align-items: center; gap: 14px;
  height: 44px; padding: 0 12px; border-radius: 10px;
  font-size: var(--fs-body); font-weight: 500; color: var(--ink);
  transition: background-color 150ms var(--ease);
}
.fx-nav-item svg { flex: 0 0 auto; width: 22px; height: 22px; }
.fx-nav-item:hover { background: var(--hover); }
.fx-nav-item.is-active { background: var(--accent-tint); color: var(--accent-deep); font-weight: 700; }
.fx-nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.fx-nav-cta { justify-content: center; }
.fx-nav-lang { display: flex; gap: 4px; padding: 4px 12px 0; font-size: var(--fs-meta); }
.fx-nav-lang a { padding: 6px 8px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.fx-nav-lang a[aria-current="true"] { color: var(--ink); background: var(--chip); }
.fx-nav-links { display: flex; flex-wrap: wrap; gap: 0 10px; padding: 8px 12px 0; font-size: var(--fs-cap); line-height: 1.8; color: var(--ink-3); }
.fx-nav-links a:hover { color: var(--ink); text-decoration: underline; }

/* Icon rail 768–1263: labels become tooltips */
@media (min-width: 768px) and (max-width: 1263px) {
  .fx-nav { padding: 20px 12px 16px; align-items: center; }
  .fx-nav-logo { padding: 0; justify-content: center; }
  .fx-nav-logo img { display: none; }
  .fx-nav-mark { display: inline-flex; }
  .fx-nav-item { width: 48px; padding: 0; justify-content: center; position: relative; }
  .fx-nav-item span { position: absolute; left: 58px; top: 50%; transform: translateY(-50%); padding: 5px 9px; border-radius: 8px;
    background: var(--ink); color: #fff; font-size: var(--fs-meta); font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 150ms var(--ease); }
  .fx-nav-item:hover span, .fx-nav-item:focus-visible span { opacity: 1; }
  .fx-nav-foot .fx-btn span, .fx-nav-lang, .fx-nav-links { display: none; }
  .fx-nav-foot .fx-btn { width: 44px; height: 44px; padding: 0; border-radius: var(--r-full); }
}

/* ---------- Phone header, tabs, "+" (the app's chrome) ---------- */
.fx-top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--top-h);
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: 0 8px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.fx-top-logo { justify-self: center; display: flex; }
.fx-top-logo img { height: 20px; width: auto; }
.fx-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: var(--r-full);
  background: transparent; cursor: pointer; color: var(--ink);
}
.fx-icon-btn:hover { background: var(--hover); }
.fx-avatar-btn { overflow: hidden; }
.fx-avatar-btn svg { width: 32px; height: 32px; }

.fx-tabs {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--tabs-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--card);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.06);
}
.fx-tab {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: var(--fs-cap); font-weight: 600; color: var(--ink-3);
}
.fx-tab svg { width: 23px; height: 23px; }
.fx-tab.is-active { color: var(--accent); font-weight: 700; }
.fx-fab {
  position: fixed; z-index: 41;
  right: 16px; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px);
  width: 52px; height: 52px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; box-shadow: var(--sh-raised);
}
.fx-fab svg { width: 24px; height: 24px; }
@media (min-width: 768px) {
  .fx-top, .fx-tabs, .fx-fab { display: none; }
}

/* Phone menu sheet */
.fx-sheet[hidden] { display: none; }
.fx-sheet { position: fixed; inset: 0; z-index: 100; }
.fx-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); border: 0; width: 100%; }
.fx-sheet-panel {
  position: absolute; inset: 0 auto 0 0; width: min(84vw, 340px);
  display: flex; flex-direction: column; gap: 4px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 12px calc(var(--safe-b) + 16px);
  background: var(--card); box-shadow: var(--sh-overlay);
  overflow-y: auto;
}
.fx-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px 12px; }
.fx-sheet-head img { height: 22px; width: auto; }
.fx-sheet-sep { height: 1px; background: var(--line); margin: 8px 12px; }

/* ---------- Buttons ---------- */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px;
  font-size: var(--fs-meta); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.fx-btn:active { transform: scale(0.98); }
.fx-btn--primary { background: var(--ink); color: #fff; }
.fx-btn--primary:hover { background: #33363f; }
.fx-btn--accent { background: var(--accent); color: #fff; }
.fx-btn--accent:hover { background: var(--accent-deep); }
.fx-btn--secondary { background: var(--chip); color: var(--ink); }
.fx-btn--secondary:hover { background: #e6e6e9; }
.fx-btn--ghost { background: transparent; color: var(--ink); }
.fx-btn--ghost:hover { background: var(--hover); }
.fx-btn--block { width: 100%; }

/* ---------- Chips and search ---------- */
.fx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.fx-chips::-webkit-scrollbar { display: none; }
.fx-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border: 0; border-radius: var(--r-full); background: var(--chip); color: var(--ink);
  font-size: var(--fs-meta); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.fx-chip:hover { background: #e6e6e9; }
.fx-chip.active, .fx-chip[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (pointer: coarse) { .fx-chip { min-height: 34px; } }

.fx-search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 6px 0 12px; border-radius: 10px;
  background: var(--chip); color: var(--ink-3);
}
.fx-search input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent;
  font: inherit; font-size: var(--fs-body); color: var(--ink); outline: none;
}
.fx-search input::placeholder { color: var(--ink-3); }
.fx-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.fx-search input:focus-visible { outline: none; }
.fx-search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.fx-search .search-bar-clear { border: 0; background: transparent; font-size: 20px; color: var(--ink-3); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.search-bar-clear[hidden] { display: none; }

/* ---------- Avatars, badges ---------- */
.fx-avatar { flex: 0 0 auto; border-radius: var(--r-full); object-fit: cover; background: var(--chip); }
.fx-avatar--fallback { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.afb-0 { background: #7B5A8F; } .afb-1 { background: #97583D; } .afb-2 { background: #2B6F99; }
.afb-3 { background: #1F7A47; } .afb-4 { background: #A15E00; } .afb-5 { background: #5A5F6E; }
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: var(--r-full); background: var(--success); color: #fff;
}
.verified-badge--lg { width: 20px; height: 20px; }

/* ---------- Page header ---------- */
.fx-page-head { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 12px; }
.fx-page-title { font-size: var(--fs-head); font-weight: 700; letter-spacing: -0.01em; }
.fx-page-sub { font-size: var(--fs-meta); color: var(--ink-2); }
@media (min-width: 768px) {
  .fx-page-head { padding: 32px 0 16px; }
  .fx-page-title { font-size: var(--fs-display); }
}

/* ---------- Feed ---------- */
.fx-feed-layout { width: 100%; max-width: 944px; margin: 0 auto; }
@media (min-width: 1160px) {
  .fx-feed-layout { display: grid; grid-template-columns: minmax(0, 560px) 320px; gap: 64px; justify-content: center; }
}
.fx-feed-col { width: 100%; max-width: 560px; margin: 0 auto; }
@media (min-width: 768px) { .fx-feed-col { padding: 0 16px; } }
@media (min-width: 1160px) { .fx-feed-col { padding: 0; } }
.fx-feed-tools { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
@media (min-width: 768px) { .fx-feed-tools { padding: 28px 0 16px; } }
.fx-feed-list { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .fx-feed-list { gap: 20px; } }

.feed-card { background: var(--card); }
@media (min-width: 768px) { .feed-card { border-radius: var(--r-card); box-shadow: var(--sh-rest); overflow: hidden; } }
.feed-card-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.feed-card-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.feed-card-author .fx-avatar { width: 34px; height: 34px; font-size: 14px; }
.feed-card-author-meta { display: flex; flex-direction: column; min-width: 0; }
.feed-card-name-row { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-body); }
.feed-card-name-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-card-sub { font-size: var(--fs-meta); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Media: portrait clamps to 4:5, landscape to 1.91:1 (same rule as the app) */
.feed-card-media { position: relative; }
.feed-card-media img { width: 100%; height: 100%; object-fit: cover; }
.feed-card-media .gig-carousel { position: relative; }
.feed-card-media .gig-carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.feed-card-media .gig-carousel-track::-webkit-scrollbar { display: none; }
.feed-card-media .gig-carousel-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.feed-card-media .ratio { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #ececef; }
.feed-card-media .ratio img { position: absolute; inset: 0; }
.gig-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 32px; height: 32px; border: 0; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.92); box-shadow: var(--sh-rest); color: var(--ink);
  display: none; align-items: center; justify-content: center; cursor: pointer;
}
.gig-carousel-arrow svg { width: 18px; height: 18px; }
.gig-carousel-arrow--prev { left: 10px; }
.gig-carousel-arrow--next { right: 10px; }
.gig-carousel-arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) { .feed-card-media:hover .gig-carousel-arrow { display: inline-flex; } }
.gig-carousel-counter {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 3px 9px; border-radius: var(--r-full); background: rgba(0, 0, 0, 0.55); color: #fff; font-size: var(--fs-cap); font-weight: 700;
}
.gig-carousel-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 0; }
.gig-carousel-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: var(--r-full); background: var(--line-strong); cursor: pointer; }
.gig-carousel-dot.active { background: var(--accent); }

.feed-card-actions { display: flex; align-items: center; gap: 4px; padding: 6px 6px 0; }
.feed-card-actions .fx-icon-btn svg { width: 22px; height: 22px; }
.feed-card-likes { padding: 0 12px; font-size: var(--fs-body); font-weight: 600; }
.feed-card { padding-bottom: 12px; }
.feed-card-caption { padding: 4px 12px 2px; font-size: var(--fs-body); line-height: 1.45; overflow-wrap: anywhere; }
.feed-card-caption b { font-weight: 700; margin-right: 4px; }

.fx-feed-end { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 16px; text-align: center; color: var(--ink-2); }
.fx-feed-end-mark { width: 40px; height: 40px; border-radius: var(--r-full); border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.fx-empty { margin: 24px 16px; padding: 24px; border-radius: var(--r-card); background: var(--card); text-align: center; color: var(--ink-2); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.fx-empty[hidden] { display: none; }
.fx-empty h2 { font-size: var(--fs-title); color: var(--ink); }

/* ---------- Right rail ---------- */
.fx-rail { display: none; }
@media (min-width: 1160px) {
  .fx-rail { display: block; padding-top: 28px; }
  .fx-rail-inner { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 20px; }
}
.fx-rail-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-rest); padding: 16px; }
.fx-rail-title { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-meta); font-weight: 700; margin-bottom: 10px; }
.fx-rail-title a { font-size: var(--fs-meta); color: var(--accent); }
.fx-rail-gig { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: var(--r-sm); }
.fx-rail-gig:hover { background: var(--hover); }
.fx-rail-gig img, .fx-rail-gig .fx-rail-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--chip); }
.fx-rail-gig-text { min-width: 0; display: flex; flex-direction: column; }
.fx-rail-gig-title { font-size: var(--fs-meta); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-rail-gig-sub { font-size: var(--fs-cap); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-rail-gig-price { font-size: var(--fs-meta); font-weight: 700; color: var(--accent-deep); }
.fx-rail-foot { font-size: var(--fs-cap); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 0 4px; }
.fx-rail-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Toast ---------- */
.fx-toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 20px); z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(420px, calc(100vw - 32px)); padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-size: var(--fs-meta); font-weight: 600; box-shadow: var(--sh-raised);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.fx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .fx-toast { bottom: 24px; left: calc(50% + var(--nav-w) / 2); } }

/* Lightbox (main.js) */
.fush-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.88); display: none; align-items: center; justify-content: center; }
.fush-lightbox.is-open { display: flex; }
.fush-lightbox-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.fush-lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fush-lightbox-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 26px; cursor: pointer; }
body.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Stacked actions in the navigation and the phone menu share one shape. */
.fx-nav-foot .fx-btn, .fx-sheet-panel .fx-btn { min-height: 36px; }

.fx-feed-end-title { font-size: var(--fs-title); color: var(--ink); }

/* ---------- Map ----------
   Desktop: gig list panel + map filling the rest (like a maps app).
   Phone: the app's map screen; search and chips float over a full map,
   the list only drops down while searching. */
.fx-map { padding: 0; min-height: 0; }
.fx-map-stage { position: relative; min-height: 0; }
.fx-map-tiles { position: absolute; inset: 0; z-index: 0; background: #e8e6e1; }
.fx-map-panel { display: flex; flex-direction: column; min-height: 0; }
.fx-map-head { display: flex; flex-direction: column; gap: 12px; }
.fx-map-title { font-size: var(--fs-head); font-weight: 700; letter-spacing: -0.01em; }
.fx-map-list { overflow-y: auto; overscroll-behavior: contain; }
.fx-map-count { font-size: var(--fs-meta); color: var(--ink-2); padding: 0 8px 6px; }
.fx-map-count strong { color: var(--ink); }
.fx-map-note { font-size: var(--fs-cap); color: var(--ink-3); line-height: 1.5; padding: 12px 8px 0; }
.fx-map-note[hidden] { display: none; }

.fx-gig-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px; border-radius: var(--r-sm);
}
.fx-gig-row:hover { background: var(--hover); }
.fx-gig-row.is-active { background: var(--accent-tint); }
.fx-gig-row img, .fx-gig-row-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--chip); }
.fx-gig-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-gig-row-title { font-size: var(--fs-body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-gig-row-sub { font-size: var(--fs-meta); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-gig-row-price { font-size: var(--fs-body); font-weight: 700; color: var(--accent-deep); }

@media (min-width: 768px) {
  .fx-map {
    display: grid; grid-template-columns: 300px minmax(0, 1fr);
    height: 100vh; height: 100dvh; padding: 0;
  }
  .fx-map-panel { background: var(--card); border-right: 1px solid var(--line); }
  .fx-map-head { padding: 24px 16px 14px; border-bottom: 1px solid var(--line); }
  .fx-map-list { flex: 1 1 auto; padding: 12px 8px 24px; }
}
@media (min-width: 1024px) { .fx-map { grid-template-columns: 360px minmax(0, 1fr); } }
@media (min-width: 1264px) {
  .fx-map { grid-template-columns: 400px minmax(0, 1fr); }
  .fx-map-head { padding: 28px 20px 16px; }
  .fx-map-list { padding: 12px 12px 24px; }
}

@media (max-width: 767px) {
  /* The map runs under the tab bar's rounded corners, as in the app. */
  .fx-map { position: fixed; top: var(--top-h); left: 0; right: 0; bottom: calc(var(--tabs-h) + var(--safe-b) - 28px); }
  .fx-map-stage { position: absolute; inset: 0; }
  .fx-map-panel { position: absolute; inset: 0 0 auto 0; z-index: 20; pointer-events: none; }
  .fx-map-panel > * { pointer-events: auto; }
  .fx-map-head { padding: 10px 12px 0; gap: 8px; }
  .fx-map-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fx-map-head .fx-search { background: var(--card); box-shadow: var(--sh-raised); }
  .fx-map-head .fx-chips { margin: 0 -12px; padding: 2px 12px 6px; }
  .fx-map-head .fx-chip { box-shadow: var(--sh-rest); }
  .fx-map-head .fx-chip:not(.active) { background: var(--card); }
  .fx-map-list { display: none; margin: 4px 12px 0; max-height: 52vh; padding: 10px 6px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-overlay); }
  .fx-map.is-searching .fx-map-list { display: block; }
  .fx-map .leaflet-control-zoom { display: none; }
  .fx-map .leaflet-bottom { bottom: 28px; }
  /* Clear the + button that floats over the map. */
  .fx-map .leaflet-bottom.leaflet-right { bottom: 112px; }
}

/* Pins: the app's price pill (white ring, accent fill, "25€"). */
.fush-pin-wrap { background: none; border: 0; }
.fush-pin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -80%);
  display: inline-flex; padding: 2.5px; border-radius: 20px; background: #fff;
  box-shadow: 0 2px 6px rgba(40, 30, 60, 0.28); cursor: pointer; white-space: nowrap;
}
.fush-pin-tag { display: block; padding: 5px 10px; border-radius: 16px; background: var(--accent); color: #fff; font: 700 13px/1.15 var(--font); }
.leaflet-marker-icon:hover .fush-pin-tag { background: var(--accent-deep); }
.leaflet-marker-icon:focus-visible { outline: none; }
.leaflet-marker-icon:focus-visible .fush-pin { box-shadow: 0 0 0 3px var(--ink); }
.fush-pin-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  border: 2px solid #fff; border-radius: var(--r-full); background: var(--ink); color: #fff;
  font: 700 11px/16px var(--font); text-align: center;
}
.fush-user-pin { background: none; border: 0; }
.fx-map-locate {
  width: 34px; height: 34px; margin-bottom: 8px; border: 0; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink); box-shadow: var(--sh-raised); cursor: pointer;
}
.fx-map-locate:hover { color: var(--accent); }
@media (pointer: coarse) { .fx-map-locate { width: 40px; height: 40px; } }
.fx-map-locate svg { width: 17px; height: 17px; }
/* Quieter tiles so the price pills carry the map. */
.fx-map .leaflet-tile-pane { filter: saturate(0.55) brightness(1.03); }
.fx-map .leaflet-control-zoom { border: 0; box-shadow: var(--sh-raised); border-radius: var(--r-sm); overflow: hidden; }
.fx-map .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; font-size: 18px; color: var(--ink); }

/* Preview card (pin or list tap) */
.map-preview[hidden] { display: none; }
.map-preview {
  position: absolute; z-index: 30; left: 16px; bottom: 16px; width: 340px;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-overlay); overflow: hidden;
  opacity: 0; transform: translateY(8px); transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.map-preview.is-open { opacity: 1; transform: none; }
.map-preview-close {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 30px; height: 30px; border: 0; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer; box-shadow: var(--sh-rest);
}
.map-preview-close svg { width: 15px; height: 15px; }
.map-preview-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--chip); }
.map-preview-thumb--empty { display: flex; align-items: center; justify-content: center; font-size: 28px; }
.map-preview-text { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-preview-title { font-size: var(--fs-title); font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-preview-meta { font-size: var(--fs-meta); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.map-preview-price { font-size: var(--fs-title); font-weight: 700; color: var(--accent-deep); }
.map-preview-cta { margin-left: auto; }
@media (max-width: 767px) {
  .map-preview { left: 12px; right: 12px; bottom: 40px; width: auto; }
  .map-preview-body { display: grid; grid-template-columns: 108px minmax(0, 1fr); }
  .map-preview-thumb { height: 100%; aspect-ratio: auto; min-height: 108px; }
  .map-preview-text { padding: 12px 14px; }
  .map-preview-title { padding-right: 32px; font-size: var(--fs-body); }
  .map-preview-foot { margin-top: 8px; }
}

.map-filter-empty[hidden] { display: none; }
.map-filter-empty {
  position: absolute; z-index: 25; left: 50%; top: 16px; transform: translateX(-50%);
  padding: 10px 16px; border-radius: var(--r-full); background: var(--card); box-shadow: var(--sh-raised);
  font-size: var(--fs-meta); font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
@media (max-width: 767px) {
  .map-filter-empty { top: 118px; }
  .fx-map.is-searching .map-filter-empty { display: none; }
  body:has(.map-preview.is-open) .fx-fab { display: none; }
}

/* ---------- Gigs (Oglasi) ----------
   Phone: the app's billboard, one row card per gig.
   Desktop: a grid of photo cards that fills the width. */
.fx-gigs { width: 100%; max-width: 975px; margin: 0 auto; }
.fx-gigs-head { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 12px; }
.fx-gig-grid { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.fx-gig-card {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh-rest);
}
.fx-gig-card-img { display: block; width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: var(--chip); }
.fx-gig-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-gig-card-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.fx-gig-card-title { flex: 1 1 auto; min-width: 0; font-size: var(--fs-body); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-gig-card-price { flex: 0 0 auto; font-size: var(--fs-body); font-weight: 700; color: var(--accent-deep); }
.fx-gig-card-sub { font-size: var(--fs-meta); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-gigs .fx-empty[hidden] { display: none; }
@media (min-width: 768px) {
  .fx-gigs { padding: 0 24px; }
  .fx-gigs-head { padding: 28px 0 20px; }
  .fx-gig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 20px; padding: 0; }
  .fx-gig-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .fx-gig-card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-card); transition: opacity 160ms var(--ease); }
  .fx-gig-card:hover .fx-gig-card-img { opacity: 0.9; }
  .fx-gig-card:hover .fx-gig-card-title { text-decoration: underline; }
  .fx-gig-card-body { padding: 0 2px; }
}
@media (min-width: 1264px) { .fx-gigs { padding: 0 40px; } }

/* Search and chips sitting on the grey page (not inside a white panel) turn white, like the app. */
.fx-on-surface .fx-search { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.fx-on-surface .fx-chip:not(.active):not([aria-selected="true"]) { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.fx-on-surface .fx-chip:not(.active):not([aria-selected="true"]):hover { background: var(--hover); }
@media (min-width: 768px) { .fx-gigs-head .fx-search { max-width: 560px; } }

/* ---------- Profile ----------
   Instagram's profile shape with the app's content: photo, name, stats,
   bio, categories, links, Follow / Message, then the 3-column grid. */
.fx-profile { width: 100%; max-width: 935px; margin: 0 auto; }
.fx-profile-head {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 20px; row-gap: 12px;
  grid-template-areas: "photo id" "photo stats" "bio bio" "actions actions";
  padding: 16px;
}
.fx-profile-photo { grid-area: photo; align-self: center; }
.fx-profile-avatar { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: var(--r-full); object-fit: cover; background: var(--chip); font-size: 34px; }
.fx-profile-id { grid-area: id; align-self: end; min-width: 0; }
.fx-profile-name { display: flex; align-items: center; gap: 6px; font-size: var(--fs-title); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.fx-profile-handle { font-size: var(--fs-meta); color: var(--ink-3); }
.fx-profile-stats, .fx-profile-cats { list-style: none; margin: 0; padding: 0; }
.fx-profile-stats { grid-area: stats; align-self: start; display: flex; gap: 20px; }
.fx-profile-stats li { display: flex; flex-direction: column; font-size: var(--fs-cap); color: var(--ink-2); line-height: 1.3; }
.fx-profile-stats b { font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
.fx-profile-bio { grid-area: bio; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-body); line-height: 1.45; }
.fx-profile-bio p { overflow-wrap: anywhere; white-space: pre-line; }
.fx-profile-meta { font-size: var(--fs-meta); color: var(--ink-2); }
.fx-profile-avail { color: var(--success); font-weight: 700; }
.fx-profile-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fx-profile-cats li { padding: 3px 9px; border-radius: var(--r-full); background: var(--accent-tint); color: var(--accent-deep); font-size: var(--fs-meta); font-weight: 700; }
.fx-profile-links { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--fs-meta); font-weight: 700; }
.fx-profile-links a { color: var(--accent-deep); }
.fx-profile-links a:hover { text-decoration: underline; }
.fx-profile-actions { grid-area: actions; display: flex; gap: 8px; }
.fx-profile-actions .fx-btn { flex: 1 1 0; padding: 0 12px; }
.fx-profile-actions .fx-btn--icon { flex: 0 0 34px; padding: 0; }
.fx-profile-actions .fx-btn--icon svg { width: 16px; height: 16px; }

.fx-profile-tab {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px;
  border-top: 1px solid var(--line-strong); font-size: var(--fs-cap); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.fx-profile-tab svg { width: 14px; height: 14px; }
.fx-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.fx-grid3-item { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--chip); }
.fx-grid3-item img { width: 100%; height: 100%; object-fit: cover; }
.fx-grid3-multi { position: absolute; top: 7px; right: 7px; opacity: 0.9; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.fx-grid3-multi svg { width: 15px; height: 15px; }
.fx-grid3-hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(0, 0, 0, 0.32); color: #fff; font-size: var(--fs-body); font-weight: 700; opacity: 0; transition: opacity 150ms var(--ease);
}
.fx-grid3-hover svg { width: 20px; height: 20px; fill: currentColor; }
@media (hover: hover) { .fx-grid3-item:hover .fx-grid3-hover { opacity: 1; } }
.fx-profile-empty { padding: 48px 16px; text-align: center; color: var(--ink-3); }

@media (min-width: 768px) {
  .fx-profile { padding: 0 20px; }
  .fx-profile-head {
    grid-template-columns: 150px minmax(0, 1fr); column-gap: 48px; row-gap: 16px;
    grid-template-areas: "photo id" "photo actions" "photo stats" "photo bio";
    padding: 40px 0 44px;
  }
  .fx-profile-photo { align-self: start; justify-self: center; }
  .fx-profile-avatar { width: 150px; height: 150px; font-size: 56px; }
  .fx-profile-name { font-size: var(--fs-head); }
  .fx-profile-actions { max-width: 380px; }
  .fx-profile-stats { gap: 32px; }
  .fx-profile-stats li { flex-direction: row; align-items: baseline; gap: 5px; font-size: var(--fs-body); }
  .fx-grid3 { gap: 4px; }
}
@media (min-width: 1024px) { .fx-profile-head { column-gap: 80px; grid-template-columns: 180px minmax(0, 1fr); } }

/* ---------- Detail pages (post, gig) ----------
   Desktop: Instagram's post layout, photo left, text and actions right.
   Phone: one column; the gig's actions stay reachable above the tab bar. */
.fx-btn--icon { flex: 0 0 auto; width: 34px; padding: 0; }
.fx-btn--icon svg { width: 17px; height: 17px; }
.fx-detail { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "foot" "body"; background: var(--card); }
.fx-detail--gig { grid-template-areas: "media" "head" "body" "foot"; }
.fx-detail-head { grid-area: head; padding: 12px 14px; min-width: 0; }
.fx-detail-media { grid-area: media; position: relative; min-width: 0; background: #ececef; }
.fx-detail-body { grid-area: body; padding: 4px 14px 16px; min-width: 0; }
.fx-detail-foot { grid-area: foot; min-width: 0; }
.fx-detail-caption { font-size: var(--fs-body); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.fx-detail-caption b { font-weight: 700; margin-right: 5px; }
.fx-detail-foot .feed-card-actions { padding: 6px 6px 0; }
.fx-detail-cta { display: none; }

.fx-gig-head { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 4px; }
.fx-gig-cat { font-size: var(--fs-meta); font-weight: 700; color: var(--accent-deep); }
.fx-gig-title { font-size: var(--fs-head); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.fx-gig-price { font-size: var(--fs-title); font-weight: 700; color: var(--accent-deep); }
.fx-gig-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: var(--fs-meta); color: var(--ink-3); }
.fx-gig-meta svg { flex: 0 0 auto; }
.fx-gig-time { font-size: var(--fs-cap); color: var(--ink-3); }
.fx-detail--gig .fx-detail-body { padding: 12px 16px 16px; }
.fx-gig-desc { font-size: var(--fs-body); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.fx-gig-desc.is-empty { color: var(--ink-3); }
.fx-gig-label { margin: 22px 0 6px; font-size: var(--fs-cap); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.fx-poster { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: var(--r-sm); }
a.fx-poster:hover { background: var(--hover); }
.fx-poster .fx-avatar { width: 40px; height: 40px; font-size: 16px; }
.fx-poster-text { display: flex; flex-direction: column; min-width: 0; }
.fx-poster > svg { width: 18px; height: 18px; color: var(--ink-3); }
.fx-gig-actions { display: flex; gap: 8px; }
.fx-gig-actions .fx-btn { min-height: 36px; }
.fx-gig-actions .fx-btn--icon { width: 36px; }
.fx-gig-actions .fx-btn--accent { flex: 1 1 auto; }
.fx-gig-note { margin-top: 8px; font-size: var(--fs-cap); color: var(--ink-3); line-height: 1.45; }
.fx-detail--gig .fx-detail-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }

@media (max-width: 1023px) {
  body:has(.fx-detail--gig) .fx-fab { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .fx-detail { max-width: 620px; margin: 32px auto; border-radius: var(--r-card); box-shadow: var(--sh-rest); overflow: hidden; }
}
@media (min-width: 1024px) {
  .fx-detail {
    max-width: 1100px; margin: 32px auto; border-radius: var(--r-card); box-shadow: var(--sh-rest); overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "media head" "media body" "media foot";
    height: min(calc(100vh - 64px), 820px);
  }
  .fx-detail--gig { grid-template-areas: "media head" "media body" "media foot"; }
  .fx-detail-head { border-bottom: 1px solid var(--line); }
  .fx-detail--gig .fx-detail-head { border-bottom: 0; padding: 24px 24px 4px; }
  .fx-detail-body { overflow-y: auto; padding: 14px 16px; }
  .fx-detail--gig .fx-detail-body { padding: 12px 24px 16px; }
  .fx-detail-foot { border-top: 1px solid var(--line); padding-bottom: 12px; }
  .fx-detail--gig .fx-detail-foot { padding: 16px 24px 20px; }
  .fx-detail-cta { display: flex; margin: 12px 14px 0; width: auto; }
  /* The photo fills its column, letterboxed like Instagram's post page. */
  .fx-detail-media { display: flex; align-items: center; justify-content: center; background: #111113; }
  .fx-detail-media > .ratio, .fx-detail-media .gig-carousel, .fx-detail-media .gig-carousel-track,
  .fx-detail-media .gig-carousel-slide, .fx-detail-media .gig-carousel-slide .ratio { width: 100%; height: 100%; }
  .fx-detail-media .ratio { aspect-ratio: auto !important; background: none; }
  .fx-detail-media .ratio img { object-fit: contain; }
  .fx-detail-media .gig-carousel-dots { position: absolute; left: 0; right: 0; bottom: 12px; padding: 0; }
  .fx-detail-media .gig-carousel-dot { background: rgba(255, 255, 255, 0.5); }
  .fx-detail-media .gig-carousel-dot.active { background: #fff; }
  .fx-detail-media .gig-carousel-arrow { display: inline-flex; }
}

/* ---------- Explore (Razišči) ---------- */
.fx-explore { width: 100%; max-width: 975px; margin: 0 auto; }
.fx-explore-head { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 8px; }
.fx-explore-search { position: relative; }
.fx-people-results {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 60vh; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-overlay);
}
.fx-people-results[hidden] { display: none; }
.fx-people-hit { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); }
.fx-people-hit:hover, .fx-people-hit:focus-visible { background: var(--hover); }
.fx-people-hit .fx-avatar { width: 40px; height: 40px; font-size: 16px; }
.fx-people-hit span { display: flex; flex-direction: column; min-width: 0; }
.fx-people-hit b { font-size: var(--fs-body); font-weight: 700; }
.fx-people-hit small { font-size: var(--fs-meta); color: var(--ink-3); }
.fx-people-none { padding: 12px; color: var(--ink-3); font-size: var(--fs-meta); }
.fx-people-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 8px 16px 14px; list-style: none; }
.fx-people-row::-webkit-scrollbar { display: none; }
.fx-person { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; font-size: var(--fs-cap); color: var(--ink); }
.fx-person .fx-avatar { width: 56px; height: 56px; font-size: 20px; box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--accent-soft); }
.fx-person span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-person:hover span { text-decoration: underline; }
.fx-explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 2px; }
.fx-explore-item { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--chip); }
.fx-explore-item img { width: 100%; height: 100%; object-fit: cover; }
.fx-explore-item.is-big { grid-column: 2 / span 2; grid-row: span 2; }
.fx-explore-item.is-big.is-left { grid-column: 1 / span 2; }
.fx-explore-item:hover .fx-grid3-hover { opacity: 1; }
@media (min-width: 768px) {
  .fx-explore { padding: 0 20px; }
  .fx-explore-head { padding: 28px 0 12px; }
  .fx-explore-search { max-width: 560px; }
  .fx-people-row { padding: 8px 0 20px; gap: 18px; }
  .fx-explore-grid { gap: 4px; }
}
.fx-notfound { max-width: 440px; margin: 64px max(16px, calc(50% - 220px)); }
.fx-notfound h1 { font-size: var(--fs-head); color: var(--ink); }

/* iOS zooms into inputs under 16px; phones keep 16. */
@media (pointer: coarse) { .fx-search input { font-size: 16px; } }
.fx-search > svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* The people row scrolls: fade the right edge so the cut-off reads as more. */
@media (min-width: 768px) { .fx-people-row { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 40px; } }

/* Cookie notice (main.js): a small floating bar above the tab bar on phones,
   bottom-left next to the navigation on desktop. */
.cookie-banner {
  position: fixed; z-index: 150; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + var(--safe-b) + 12px);
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px;
  background: var(--ink); color: #fff; border-radius: var(--r-card); box-shadow: var(--sh-overlay);
  font-size: var(--fs-meta);
}
.cookie-banner-text { flex: 1 1 auto; min-width: 0; }
.fx .cookie-banner-link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-accept {
  flex: 0 0 auto; min-height: 32px; padding: 0 14px; border: 0; border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
@media (min-width: 768px) {
  .cookie-banner { left: calc(var(--nav-w) + 16px); right: auto; bottom: 16px; max-width: 420px; }
}

/* Critique fixes */
.fx-feed-end[hidden] { display: none; }
@media (min-width: 768px) { .fx-gigs .fx-empty, .fx-feed-col .fx-empty { margin-left: 0; margin-right: 0; } }
@media (max-width: 767px) {
  /* Clear the floating + button at the end of every page. */
  .fx-main:not(.fx-map) { padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 84px); }
  /* The preview card owns the bottom of the map while open. */
  body:has(.map-preview.is-open) .fx-map .leaflet-bottom { display: none; }
}
@media (min-width: 768px) { .fx-map .map-filter-empty { display: none; } }
@media (max-width: 1023px) { .fx-detail-media { background: none; } }

/* ---------- Controls as in the app (styles/app.ts) ----------
   Buttons: ink primary, 12px corners; the tall 44px CTA on phones.
   Chips: 32px white pills, ink when active. Search: 40px white field.
   Cards: 14px corners with a hairline border instead of a shadow. */
.fx-btn { border-radius: 12px; font-size: var(--fs-body); font-weight: 600; min-height: 38px; padding: 0 16px; }
.fx-btn--secondary { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fx-btn--secondary:hover { background: var(--hover); }
.fx-btn--icon { width: 38px; }
.fx-nav-foot .fx-btn, .fx-sheet-panel .fx-btn { min-height: 40px; }
@media (max-width: 767px) {
  .fx-detail-foot .fx-btn, .fx-empty .fx-btn, .fx-notfound .fx-btn { min-height: 44px; }
  .fx-gig-actions .fx-btn--icon { width: 44px; }
}
.fx-profile-actions .fx-btn { min-height: 34px; font-size: var(--fs-meta); border-radius: 10px; }
.fx-profile-actions .fx-btn--icon { flex-basis: 34px; width: 34px; }

.fx-chip { min-height: 32px; padding: 0 14px; border-radius: 16px; font-size: var(--fs-body); font-weight: 600; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fx-chip:hover { background: var(--hover); }
.fx-chip.active, .fx-chip[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
@media (pointer: coarse) { .fx-chip { min-height: 34px; } }

.fx-search { height: 40px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fx-search:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-tint); }
.fx-on-surface .fx-search, .fx-on-surface .fx-chip:not(.active):not([aria-selected="true"]) { box-shadow: inset 0 0 0 1px var(--line-strong); }

.feed-card, .fx-rail-card, .fx-detail, .map-preview, .fx-empty { border-radius: 14px; }
@media (min-width: 768px) {
  .feed-card, .fx-rail-card { box-shadow: none; border: 1px solid var(--line); }
}
.fx-gig-card { box-shadow: none; border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 768px) { .fx-gig-card { border: 0; } }
/* Prices read in the app accent, as in the app. */
.fx-gig-card-price, .fx-gig-row-price, .fx-rail-gig-price, .fx-gig-price, .map-preview-price { color: var(--accent); }
