/* =====================================================================
   Skelbiu24 – dizaino sistema
   Spalvos: gilus eglės žalias + signalinė geltona. Firminis elementas –
   įpjauta kainos etiketė, kaip ant turgaus prekės.
   ===================================================================== */

:root {
  /* Spalvos */
  --green-900: #0B3B2E;
  --green-800: #0F4A39;
  --green-700: #136049;
  --green-600: #1A7A5E;
  --green-100: #E4F0EA;
  --green-050: #F1F7F4;

  --yellow:    #F4C025;
  --yellow-dk: #D9A408;
  --yellow-lt: #FDF3D3;

  --clay:      #B7442A;
  --clay-lt:   #FBEDE9;

  --ink:       #14181A;
  --ink-2:     #364241;
  --muted:     #66756F;
  --line:      #E1E8E3;
  --line-2:    #F0F4F1;
  --surface:   #F4F7F4;
  --paper:     #FFFFFF;

  /* Tipografija */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Erdvė */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-pill: 100px;
  --shadow-1: 0 1px 2px rgba(11, 59, 46, .05);
  --shadow-2: 0 6px 18px -6px rgba(11, 59, 46, .18), 0 2px 6px rgba(11, 59, 46, .06);
  --shadow-3: 0 16px 40px -12px rgba(11, 59, 46, .26);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --wrap: 1320px;
}

/* --- Bazė ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 18px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--yellow); color: var(--green-900); padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --- Antraštė ------------------------------------------------------ */
.site-header {
  background: var(--green-900);
  color: #fff;
  position: sticky; top: 0; z-index: 60;
}
.header-top {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
}
.logo {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em;
  color: #fff; text-decoration: none; flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--yellow); }

/* Paieška antraštėje */
.header-search {
  flex: 1 1 auto;
  display: flex;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.header-search input[type="search"] {
  flex: 1 1 auto; min-width: 0;
  border: 0; padding: 11px 14px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: transparent;
}
.header-search input:focus { outline: none; }
.header-search select {
  border: 0; border-left: 1px solid var(--line);
  background: #fff; font: inherit; font-size: .9rem;
  padding: 0 10px; color: var(--ink-2); max-width: 170px;
}
.header-search button {
  border: 0; background: var(--yellow); color: var(--green-900);
  font-weight: 700; padding: 0 20px; cursor: pointer; font-size: .95rem;
}
.header-search button:hover { background: var(--yellow-dk); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.header-link {
  color: #d7e6df; font-size: .92rem; font-weight: 600;
  padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap;
}
.header-link:hover { color: #fff; background: rgba(255,255,255,.09); text-decoration: none; }

.btn-post {
  background: var(--yellow); color: var(--green-900);
  font-weight: 800; padding: 10px 18px; border-radius: var(--r-sm);
  white-space: nowrap; border: 0; cursor: pointer; font-size: .95rem;
  font-family: var(--font-body);
}
.btn-post:hover { background: #fff; text-decoration: none; }
.lbl-short { display: none; }
.lbl-full { display: inline; }

/* Kategorijų juosta */
.header-nav {
  background: var(--green-800);
  border-top: 1px solid rgba(255,255,255,.08);
  overflow-x: auto; scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav ul {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
  white-space: nowrap;
}
.header-nav a {
  display: block; color: #cfe2da; font-size: .88rem; font-weight: 600;
  padding: 10px 13px;
}
.header-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }

.burger {
  display: none; background: none; border: 0; color: #fff;
  font-size: 1.5rem; cursor: pointer; padding: 4px 8px;
}

/* --- Mygtukai ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 11px 20px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-accent { background: var(--yellow); color: var(--green-900); }
.btn-accent:hover { background: var(--yellow-dk); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-danger { background: var(--clay); color: #fff; }
.btn-danger:hover { background: #9c3722; }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* --- Kortelė ------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.card-pad { padding: 20px; }

/* --- Skelbimų tinklelis: tankus išdėstymas, minkšti paviršiai ------- */
.grid-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 12px;
}

.listing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.listing-card:hover {
  box-shadow: var(--shadow-2);
  border-color: transparent;
  transform: translateY(-3px);
}
.listing-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--green-050) 0%, var(--line-2) 100%);
  overflow: hidden;
}
.listing-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease);
}
.listing-card:hover .thumb img { transform: scale(1.045); }
.listing-card .thumb::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(11,59,46,.28), transparent);
  opacity: 0; transition: opacity .25s var(--ease); pointer-events: none;
}
.listing-card:hover .thumb::after { opacity: 1; }
.listing-card .thumb .no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #b9c6c0; font-size: 1.7rem;
}
.listing-card .body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.listing-card .title {
  font-size: .92rem; font-weight: 600; line-height: 1.32; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card a.stretched::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.listing-card .meta {
  font-size: .75rem; color: var(--muted);
  display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto;
}

/* Firminis elementas: įpjauta kainos etiketė */
.price-tag {
  display: inline-block;
  background: var(--green-900);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem;
  padding: 4px 14px 4px 11px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
  align-self: flex-start;
  letter-spacing: -.01em;
}
.price-tag.free { background: var(--green-600); color: #fff; }
.price-tag.lg { font-size: 1.6rem; padding: 7px 22px 7px 16px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }

/* Ženkliukai ant nuotraukos */
.badges { position: absolute; top: 7px; left: 7px; display: flex; gap: 4px; z-index: 2; flex-wrap: wrap; }
.badge {
  font-size: .66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; padding: 3px 8px; border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 3px rgba(11,59,46,.18);
}
.badge-featured { background: var(--yellow); color: var(--green-900); }
.badge-new { background: rgba(26,122,94,.94); color: #fff; }
.badge-sold { background: rgba(183,68,42,.94); color: #fff; }
.badge-free { background: rgba(20,24,26,.86); color: var(--yellow); }
.badge-photos {
  position: absolute; bottom: 7px; right: 7px; z-index: 2;
  background: rgba(11,59,46,.7); backdrop-filter: blur(6px); color: #fff;
  font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill);
}

.fav-btn {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.86); backdrop-filter: blur(6px);
  border: 0; box-shadow: 0 1px 4px rgba(11,59,46,.16);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem; color: var(--muted); padding: 0;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.fav-btn:hover { background: #fff; color: var(--clay); transform: scale(1.1); }
.fav-btn.on { background: var(--clay); color: #fff; }

/* --- Būsenos žymos -------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 100px;
}
.chip-active   { background: var(--green-100); color: var(--green-800); }
.chip-pending  { background: var(--yellow-lt); color: #8a6a00; }
.chip-rejected { background: var(--clay-lt); color: var(--clay); }
.chip-expired  { background: #EEF1EF; color: var(--muted); }
.chip-sold     { background: #E7E4F5; color: #4E3F9B; }
.chip-draft    { background: #EEF1EF; color: var(--muted); }

/* --- Titulinis ------------------------------------------------------ */
.hero {
  background: linear-gradient(170deg, var(--green-900) 0%, var(--green-700) 100%);
  color: #fff;
  padding: 44px 0 52px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,192,37,.18) 0%, transparent 70%);
}
.hero h1 { color: #fff; margin-bottom: 8px; max-width: 18ch; }
.hero .lead { color: #c7dcd3; font-size: 1.05rem; max-width: 56ch; margin-bottom: 24px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; position: relative; z-index: 2; }
.hero-stat .n {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--yellow);
  line-height: 1;
}
.hero-stat .l { font-size: .82rem; color: #b6cdc3; text-transform: uppercase; letter-spacing: .06em; }

.hero-search {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(255,255,255,.1); padding: 10px; border-radius: var(--r-lg);
  position: relative; z-index: 2; max-width: 760px;
  backdrop-filter: blur(4px);
}
.hero-search input, .hero-search select {
  border: 0; border-radius: var(--r-sm); padding: 13px 15px;
  font: inherit; font-size: 1rem; min-width: 0;
}
.hero-search input { flex: 2 1 240px; }
.hero-search select { flex: 1 1 150px; background: #fff; color: var(--ink); }
.hero-search button { flex: 0 0 auto; }

/* Populiarios paieškos */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; position: relative; z-index: 2; }
.tag-cloud a {
  font-size: .83rem; color: #d5e7df; background: rgba(255,255,255,.1);
  padding: 5px 12px; border-radius: 100px;
}
.tag-cloud a:hover { background: var(--yellow); color: var(--green-900); text-decoration: none; }

/* --- Kategorijų katalogas per visą plotį ----------------------------- */
.cat-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 26px 26px;
}

.cat-col { padding: 12px 0 14px; min-width: 0; }

.cat-col__head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .97rem; font-weight: 800;
  margin: 0 0 8px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--green-100);
}
.cat-col__head a { color: var(--ink); }
.cat-col__head a:hover { color: var(--green-700); text-decoration: none; }
.cat-col__ico { font-size: 1.05rem; line-height: 1; }
.cat-col__n {
  margin-left: auto; font-size: .74rem; font-weight: 700;
  color: var(--green-700); background: var(--green-050);
  padding: 1px 8px; border-radius: 100px;
}

.cat-col__list { list-style: none; margin: 0; padding: 0; }
.cat-col__list li { margin: 0; }
.cat-col__list a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 4px 6px; margin-left: -6px;
  border-radius: 6px;
  font-size: .89rem; color: var(--ink-2);
  line-height: 1.45;
}
.cat-col__list a:hover { background: var(--green-050); color: var(--green-800); text-decoration: none; }
.cat-col__list .n { color: #97a8a1; font-size: .8rem; flex-shrink: 0; }
.cat-col__more a { color: var(--green-700); font-weight: 700; font-size: .84rem; }

@media (max-width: 1100px) { .cat-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .cat-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; padding: 16px 18px 20px; } }
@media (max-width: 480px)  { .cat-directory { grid-template-columns: 1fr; } }

/* --- Kategorijų lenta ---------------------------------------------- */
.cat-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 12px;
}
.cat-tile {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 14px 14px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-tile:hover {
  text-decoration: none; border-color: var(--green-600);
  box-shadow: var(--shadow-2); transform: translateY(-2px);
}
.cat-tile::before {
  content: ""; position: absolute; top: 0; right: 0;
  border-width: 0 26px 26px 0; border-style: solid;
  border-color: transparent var(--green-050) transparent transparent;
  transition: border-color .15s;
}
.cat-tile:hover::before { border-right-color: var(--yellow); }
.cat-tile .ico { font-size: 1.7rem; line-height: 1; margin-bottom: 4px; }
.cat-tile .nm { font-weight: 700; font-size: .96rem; color: var(--ink); line-height: 1.25; }
.cat-tile .ct { font-size: .78rem; color: var(--muted); }
.cat-tile .subs { font-size: .78rem; color: var(--muted); line-height: 1.5; margin-top: 4px; }

/* --- Sekcijos ------------------------------------------------------- */
.section { padding: 32px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 700; font-size: .9rem; }
.eyebrow {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--green-600); margin-bottom: 4px;
}

/* --- Duonos trupiniai ----------------------------------------------- */
.breadcrumbs {
  font-size: .84rem; color: var(--muted);
  padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green-700); }
.breadcrumbs .sep { color: #b8c5bf; }
.breadcrumbs span[aria-current] { color: var(--ink-2); font-weight: 600; }

/* --- Katalogo išdėstymas -------------------------------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 262px 1fr;
  gap: 24px;
  align-items: start;
  padding: 20px 0 40px;
}
.sidebar { position: sticky; top: 118px; }

.filter-block { padding: 16px; border-bottom: 1px solid var(--line-2); }
.filter-block:last-child { border-bottom: 0; }
.filter-block h3 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 10px; font-family: var(--font-body); font-weight: 800;
}
.filter-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.filter-list li { margin-bottom: 3px; }
.filter-list a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 5px 8px; border-radius: var(--r-sm); color: var(--ink-2);
}
.filter-list a:hover { background: var(--green-050); color: var(--green-800); text-decoration: none; }
.filter-list a.current { background: var(--green-900); color: #fff; font-weight: 700; }
.filter-list .n { color: var(--muted); font-size: .82rem; }
.filter-list a.current .n { color: #a9c9bd; }

/* Sutraukiamas filtrų blokas (svarbu telefonuose) */
.filter-acc > summary {
  display: none;
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 700;
  font-size: .93rem;
  color: var(--green-800);
  list-style: none;
}
.filter-acc > summary::-webkit-details-marker { display: none; }
.filter-acc > summary::after { content: " ▾"; color: var(--muted); }
.filter-acc[open] > summary::after { content: " ▴"; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.toolbar .count { font-size: .9rem; color: var(--muted); }
.toolbar .count strong { color: var(--ink); }

/* --- Formos --------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field > label, .label {
  display: block; font-weight: 700; font-size: .9rem;
  margin-bottom: 6px; color: var(--ink-2);
}
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.req { color: var(--clay); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%;
  font: inherit; font-size: .97rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-100);
}
textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2366756F' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}

.check { display: flex; align-items: flex-start; gap: 9px; font-size: .93rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green-700); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.radio-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-cards label {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 15px; cursor: pointer; font-size: .9rem; font-weight: 600;
  background: #fff; color: var(--ink-2);
}
.radio-cards input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-cards input:checked + span { color: var(--green-800); }
.radio-cards label:has(input:checked) {
  border-color: var(--green-700); background: var(--green-050);
  box-shadow: inset 0 0 0 1px var(--green-700);
}

/* Nuotraukų įkėlimas */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r);
  padding: 28px 20px; text-align: center; background: var(--green-050);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--green-600); background: var(--green-100); }
.dropzone .big { font-size: 1.9rem; margin-bottom: 6px; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.preview-item { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .rm {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  border-radius: 50%; border: 0; background: rgba(20,24,26,.75); color: #fff;
  cursor: pointer; font-size: .8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}

/* --- Pranešimai ----------------------------------------------------- */
.alert {
  padding: 13px 16px; border-radius: var(--r-sm); margin-bottom: 14px;
  font-size: .93rem; border-left: 4px solid;
}
.alert-success { background: var(--green-050); border-color: var(--green-600); color: var(--green-800); }
.alert-error   { background: var(--clay-lt); border-color: var(--clay); color: #8f331e; }
.alert-info    { background: #EEF4FB; border-color: #3B7EA1; color: #1F5771; }
.alert-warn    { background: var(--yellow-lt); border-color: var(--yellow-dk); color: #7d5f00; }

/* --- Skelbimo puslapis ---------------------------------------------- */
.listing-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 26px;
  align-items: start; padding: 18px 0 44px;
}
.gallery { background: #10151a; border-radius: var(--r); overflow: hidden; }
.gallery .main {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: #0d1114;
}
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #161c21; }
.gallery .thumbs button {
  flex: 0 0 76px; height: 58px; border: 2px solid transparent; border-radius: 6px;
  padding: 0; overflow: hidden; cursor: pointer; background: none;
}
.gallery .thumbs button.on { border-color: var(--yellow); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }

.desc { font-size: 1rem; line-height: 1.75; color: var(--ink-2); word-break: break-word; }
.desc p:last-child { margin-bottom: 0; }

.seller-box { position: sticky; top: 118px; }
.phone-reveal {
  display: block; width: 100%; text-align: center;
  background: var(--green-700); color: #fff; font-weight: 800; font-size: 1.15rem;
  padding: 14px; border-radius: var(--r-sm); border: 0; cursor: pointer;
  font-family: var(--font-display); letter-spacing: .01em;
}
.phone-reveal:hover { background: var(--green-800); }
.phone-reveal small { display: block; font-size: .74rem; font-weight: 600; opacity: .75; letter-spacing: 0; }

/* --- Reklamos vietos ------------------------------------------------ */
.ad-slot {
  margin: 22px 0; text-align: center; overflow: hidden;
  min-height: 0;
}
.ad-slot--placeholder {
  border: 1px dashed #cdd8d2; border-radius: var(--r);
  background: repeating-linear-gradient(45deg, #fafcfa, #fafcfa 10px, #f4f7f4 10px, #f4f7f4 20px);
  color: #97a8a1; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
}
.ad-slot--header { min-height: 90px; }
.ad-slot--infeed { min-height: 110px; grid-column: 1 / -1; }
.ad-slot--sidebar { min-height: 250px; margin-top: 16px; }
.ad-slot--listing { min-height: 250px; }
.ad-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: #9aa8a2; margin-bottom: 4px; display: block; text-align: left;
}

/* --- Puslapiavimas -------------------------------------------------- */
.pagination { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin: 30px 0 10px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink-2); font-weight: 600; font-size: .92rem;
}
.pagination a:hover { border-color: var(--green-600); color: var(--green-700); text-decoration: none; }
.pagination .current { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.pagination .gap { border: 0; background: none; }

/* --- Tuščia būsena --------------------------------------------------- */
.empty {
  text-align: center; padding: 56px 20px; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}
.empty .big { font-size: 2.6rem; margin-bottom: 10px; }
.empty h3 { margin-bottom: 6px; }

/* --- Poraštė --------------------------------------------------------- */
.site-footer { background: var(--green-900); color: #b9cec5; margin-top: 40px; padding: 40px 0 24px; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em;
  font-family: var(--font-body); font-weight: 800; margin-bottom: 12px; }
.site-footer a { color: #b9cec5; }
.site-footer a:hover { color: var(--yellow); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .84rem; color: #8ba79b;
}

/* --- Paskyros ir administravimo išdėstymas --------------------------- */
.panel-layout { display: grid; grid-template-columns: 236px 1fr; gap: 24px; align-items: start; padding: 24px 0 50px; }
.panel-nav { list-style: none; margin: 0; padding: 8px; }
.panel-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2);
  font-weight: 600; font-size: .93rem;
}
.panel-nav a:hover { background: var(--green-050); text-decoration: none; }
.panel-nav a.on { background: var(--green-900); color: #fff; }
.panel-nav .pill {
  background: var(--yellow); color: var(--green-900); font-size: .74rem;
  font-weight: 800; padding: 1px 8px; border-radius: 100px;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
}
.stat .n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--green-800); }
.stat .l { font-size: .82rem; color: var(--muted); margin-top: 5px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs a {
  padding: 9px 14px; font-size: .9rem; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--green-700); text-decoration: none; }
.tabs a.on { color: var(--green-900); border-bottom-color: var(--yellow); }

/* Lentelė */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 700px; }
table.data th {
  text-align: left; padding: 11px 14px; background: var(--green-050);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fbfdfb; }
table.data .thumb-xs { width: 52px; height: 40px; object-fit: cover; border-radius: 5px; background: var(--line-2); }

.actions-inline { display: flex; gap: 5px; flex-wrap: wrap; }
.actions-inline form { display: inline; }

/* Mini diagrama */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.bars .b { flex: 1; background: var(--green-600); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.bars .b:hover { background: var(--yellow); opacity: 1; }

/* --- Pagalbinės klasės ----------------------------------------------- */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny  { font-size: .78rem; }
.bold  { font-weight: 700; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.wrap-flex { flex-wrap: wrap; }
.text-center { text-align: center; }
.hide { display: none; }
.only-sm { display: none; }

/* --- Prisitaikymas ekranams ------------------------------------------ */
@media (max-width: 1024px) {
  .catalog-layout, .panel-layout { grid-template-columns: 1fr; }
  .sidebar, .seller-box { position: static; }
  .listing-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filter-acc > summary { display: block; border-top: 1px solid var(--line-2); }
}

@media (max-width: 760px) {
  .only-sm { display: block; }

  /* Antraštė: logotipas ir mygtukai vienoje eilutėje */
  .header-top {
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 0;
  }
  .logo { font-size: 1.12rem; letter-spacing: -.04em; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-search select { display: none; }
  .header-search input[type="search"] { padding: 9px 12px; font-size: .88rem; }
  .header-search button { padding: 0 14px; font-size: .88rem; }

  .header-actions { margin-left: auto; gap: 4px; }
  .header-actions .header-link.hide-sm { display: none; }
  .header-link { padding: 6px 7px; font-size: .84rem; }

  .btn-post { padding: 8px 12px; font-size: .84rem; gap: 4px; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }

  .burger { display: block; font-size: 1.3rem; padding: 2px 4px; }

  .header-nav { display: none; }
  .header-nav.open { display: block; }
  .header-nav ul { flex-direction: column; white-space: normal; }
  .header-nav li + li { border-top: 1px solid rgba(255,255,255,.07); }
  .header-nav a { padding: 12px 4px; }
  .grid-listings { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
  .cat-board { grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 9px; }
  .cat-tile .subs { display: none; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .hero { padding: 30px 0 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .listing-card .body { padding: 10px; }
  .price-tag.lg { font-size: 1.3rem; }
  .section { padding: 24px 0; }
}

@media (max-width: 420px) {
  .grid-listings { grid-template-columns: 1fr 1fr; }
  .logo { font-size: 1.02rem; }
  .header-link { padding: 6px 5px; font-size: .8rem; }
  .btn-post { padding: 7px 10px; font-size: .8rem; }
  .header-search input[type="search"] { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .listing-card:hover, .cat-tile:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .ad-slot, .sidebar, .fav-btn { display: none !important; }
}
