/* VINDE.ONLINE web v4 — one design system for every page.
   Same world as the app: true black, glass that shows what is behind it,
   orange only for the ".online" of the logo, listing cards as the hero material. */

:root {
  --bg: #000;
  --s1: #0b0b0d;
  --s2: #111113;
  --s3: #1c1c1f;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f5f5f7;
  --ink-2: #d2d2d7; /* secondary text (labels, previews) */
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --brand: #f97800; /* only the ".online" of the logo */
  --accent: #f5f5f7;
  --accent-2: #ffffff;
  --blue: #1570ef;
  --green: #30d158;
  --ok-ink: #30d158; /* "confirmat", "activ" */
  --danger-ink: #ff6b6b; /* "șterge", required star */
  --fav: #ff375f;
  --glass: rgba(17, 17, 19, .58);
  --glass-hi: rgba(255, 255, 255, .06);
  --r-card: 20px;
  --r-ctl: 14px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .9);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f7fa; --s1: #fff; --s2: #fff; --s3: #eef0f3;
  --line: rgba(16, 24, 40, .09); --line-2: rgba(16, 24, 40, .16);
  --ink: #101828; --ink-2: #344054; --muted: #5d6675; --faint: #6b7483; --green: #15803d; --ok-ink: #15803d; --danger-ink: #d92d20;
  --glass: rgba(255, 255, 255, .62); --glass-hi: rgba(255, 255, 255, .7); --accent: #101828; --accent-2: #000;
  --shadow: 0 18px 44px -20px rgba(16, 24, 40, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* a visited link keeps its own colour (01.10.2026: a visited "Contul meu" avatar showed its initial in
   the page's navy on its dark disc; the store badges and dark buttons that are links did the same) */
:where(a:visited) { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
/* Focus: no white frames (owner). Fields show focus with their own lighter border; buttons and
   links reached with the keyboard get a soft halo instead of an outline. */
:focus, :focus-visible { outline: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, summary:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: var(--bg); }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
/* The header is built by shell.js; until then its 68 px + 1 px border stay reserved, so the
   page does not jump down when it appears (PageSpeed layout shift, 28.09.2026). */
body:not(:has(> .hdr)) { padding-top: 69px; }
.hdr__in { height: 68px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 8px; font: 800 23px/1 var(--font); letter-spacing: -.035em; }
.logo img { width: 40px; height: auto; }
.logo b { color: var(--brand); font-weight: 700; }
.logo span { white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.nav a[aria-current] { color: var(--ink); background: var(--glass-hi); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--glass-hi); } }
.hdr__sp { flex: 1; }
.hdr__actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px; height: var(--h); padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-hi); color: var(--ink);
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); border-color: var(--line-2); } }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--pub {
  background: var(--accent); border-color: transparent; color: var(--bg);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .23), inset 0 1px 0 rgba(255, 255, 255, .35);
}
@media (hover: hover) and (pointer: fine) { .btn--pub:hover { background: var(--accent-2); box-shadow: 0 14px 38px -10px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .4); } }
.btn--solid { background: var(--ink); color: var(--bg); border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .btn--solid:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); } }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--icon { width: var(--h); padding: 0; }
.btn--lg { --h: 56px; padding: 0 26px; font-size: 16px; }

/* Store badges: black glass, lit hairline, colored marks, a light sweep on hover */
.store { position: relative; display: inline-flex; align-items: center; gap: 13px; height: 62px; padding: 0 24px 0 18px; border-radius: 18px; overflow: hidden; isolation: isolate;
  color: #fff; background: linear-gradient(180deg, #1d1d20, #0a0a0b); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 20px 40px -22px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.store::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.04) 40%, rgba(255, 255, 255, .16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; transition: opacity .4s; }
.store::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg); transition: left .8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .store:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 26px 50px -20px rgba(255, 255, 255, .15), 0 0 0 1px rgba(255,255,255,.2); } }
@media (hover: hover) and (pointer: fine) { .store:hover::before { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .store:hover::after { left: 120%; } }
.store:active { transform: scale(.97); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: grid; line-height: 1.05; }
.store small { font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.62); letter-spacing: .01em; }
.store strong { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
:root[data-theme="light"] .store { background: linear-gradient(180deg, #1d1d20, #000); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Search (pill with category dropdown) ---------- */
.search {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  /* The blur makes the bar its own layer: without a place above the page, the cards that follow were drawn over its
     category menu (owner 02.10.2026, Anunțuri: "categoriile vin în spate la carduri"). Below the header (z 50+). */
  position: relative; z-index: 30;
}
.search:has(.dd[open]) { z-index: 45; }
.search__q { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; }
.search__q svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { width: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 500 16px var(--font); height: 46px; }
.search input::placeholder { color: var(--faint); }
.search__sep { width: 1px; height: 26px; background: var(--line-2); }

.dd { position: relative; }
.dd__btn { height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 999px; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .dd__btn:hover { background: var(--glass-hi); } }
.dd__btn svg { width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease); }
.dd[open] .dd__btn svg { transform: rotate(180deg); }
.dd__menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 280px; max-height: 360px; overflow: auto; padding: 8px; z-index: 60;
  border-radius: 20px; background: color-mix(in srgb, var(--s2) 96%, transparent); border: 1px solid var(--line-2);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--shadow);
  transform-origin: top left; animation: pop .28s var(--ease);
}
.dd__menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 11px 12px; border: 0; background: none; border-radius: 12px; cursor: pointer; font-size: 15px; }
.dd__menu button[aria-selected="true"] { background: var(--glass-hi); }
@media (hover: hover) and (pointer: fine) { .dd__menu button:hover { background: var(--glass-hi); } }
.dd__menu small { color: var(--faint); font-variant-numeric: tabular-nums; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-6px); filter: blur(6px); } }

/* ---------- Listing card (the app's card) ----------
   Grid: the photo fills the card, a soft black veil rises from the bottom and the title, price and
   place sit on it in white (vinde_premium_listing_card.dart). List view (list.css) puts them beside it. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; border-radius: var(--r-card); background: var(--s2);
  overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); isolation: isolate; color: #fff; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--line); pointer-events: none; z-index: 3; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -28px rgba(0, 0, 0, .95), 0 0 0 1px var(--line-2); } }
.card__img { position: absolute; inset: 0; overflow: hidden; background: var(--s3); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__img img { transform: scale(1.06); } }
.card__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .2) 28%, rgba(0, 0, 0, .7) 70%, #000 100%); }
/* Promoted listing (owner's choice): a lit white-gold outline that breathes, a light sweep across the
   photo now and then, and a starred badge. Calm, on black; still under the reduced-motion rule. */
.card__promo { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px 6px 9px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 16, 8, .82), rgba(0, 0, 0, .78)); color: #ffe7a8; font: 800 11.5px/1 var(--font); letter-spacing: .02em;
  box-shadow: 0 0 0 1px rgba(255, 214, 120, .45), 0 6px 18px -6px rgba(255, 196, 80, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.card__promo svg { width: 13px; height: 13px; color: #ffd166; filter: drop-shadow(0 0 4px rgba(255, 209, 102, .8)); }
.card.is-promo { box-shadow: 0 0 0 1px rgba(255, 222, 150, .55), 0 18px 50px -20px rgba(255, 190, 70, .45); animation: promoglow 3.2s ease-in-out infinite; }
.card.is-promo::after { border: 1px solid transparent; background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 214, 120, .75) 30%, rgba(255, 255, 255, .15) 55%, rgba(255, 214, 120, .8)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.card__sheen { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.card__sheen::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; transform: skewX(-18deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); animation: promosheen 4.8s ease-in-out infinite; }
@keyframes promoglow { 50% { box-shadow: 0 0 0 1px rgba(255, 230, 170, .85), 0 22px 60px -18px rgba(255, 196, 80, .65); } }
@keyframes promosheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; transition: transform .3s var(--ease); z-index: 2; }
.fav svg { width: 19px; height: 19px; }
.fav:active { transform: scale(.85); }
.fav.is-on { color: var(--fav); }
.fav.is-on svg { fill: currentColor; animation: heart .5s var(--ease); }
@keyframes heart { 30% { transform: scale(1.35); } }
.card__body { position: relative; z-index: 1; padding: 14px 14px 14px; display: grid; gap: 3px; pointer-events: none; }
.card__body > * { text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.card__cat, .card__facts { display: none; }
.card__t { font: 700 15px/1.2 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__p { font: 800 18px/1.15 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card__meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: #fff; font: 700 12px/1.2 var(--font); min-width: 0; }
.card__meta svg { width: 14px; height: 14px; flex: none; }
.card__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__f1 { font-style: normal; }
.card__facts span { font-size: 12px; color: var(--muted); padding: 3px 8px; border-radius: 999px; background: var(--glass-hi); border: 1px solid var(--line); }
@media (max-width: 600px) { .card__body { padding: 10px 11px 11px; gap: 2px; } .card__t { font-size: 12.5px; } .card__p { font-size: 14px; } .card__meta { font-size: 10px; margin-top: 2px; } .card__meta svg { width: 12px; height: 12px; } .card__promo { top: 9px; left: 9px; padding: 5px 9px 5px 7px; font-size: 10px; } .card__promo svg { width: 11px; height: 11px; } .fav { width: 32px; height: 32px; top: 8px; right: 8px; } .fav svg { width: 16px; height: 16px; } }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-hi); font-weight: 500; font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); } }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }
.chip small { color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- Section heading ---------- */
.sec { padding-block: clamp(56px, 9vw, 120px); }
.h2 { font: 700 clamp(28px, 4.2vw, 52px)/1.05 var(--display); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 60ch; margin: 14px 0 0; text-wrap: pretty; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
/* 22.10.2026: a long heading („Alte apartamente de închiriat în Timișoara”) squeezed „Vezi toate” onto two lines; on a
   phone the link goes under the heading on every page, as on the home page (home.css). */
.sec__head > .link { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 560px) { .sec__head { flex-direction: column; align-items: flex-start; gap: 10px; } }
.link { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .link:hover svg { transform: translateX(4px); } }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 1; }
.js .rv { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; filter: none; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 56px 0 110px; color: var(--muted); font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ftr h3 { color: var(--ink); font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
@media (hover: hover) and (pointer: fine) { .ftr a:hover { color: var(--ink); } }
.ftr__bottom { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Mobile app bar (drives to the stores) ---------- */
.appbar { display: none; }

@media (max-width: 900px) {
  .nav, .hdr__actions .hide-m { display: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .appbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 22px;
    background: color-mix(in srgb, var(--s2) 72%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: var(--shadow);
    transform: translateY(140%); transition: transform .6s var(--ease); }
  .appbar.in { transform: none; }
  .appbar img { width: 40px; height: 40px; object-fit: contain; padding: 4px; border-radius: 11px; background: #fff; }
  .appbar div { flex: 1; min-width: 0; line-height: 1.25; }
  .appbar b { display: block; font-size: 14.5px; }
  .appbar small { color: var(--muted); font-size: 12.5px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; filter: none; }
}

/* anything marked hidden stays hidden, whatever its display rule (buttons, chips, panels) */
[hidden] { display: none !important; }
