/* =====================================================================
   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; white-space: nowrap;
  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(3, minmax(0, 1fr));
  gap: 4px 34px;
  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: 900px) { .cat-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 22px; } }
@media (max-width: 560px) { .cat-directory { grid-template-columns: 1fr; padding: 16px 18px 20px; } }

/* --- 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; }
}

/* --- Papildomi laukai ------------------------------------------------ */
.attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 16px;
}
.attr-grid .field { margin-bottom: 14px; }

/* Techniniai duomenys skelbime – dviem stulpeliais */
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.spec-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
  font-size: .92rem;
}
.spec-row__k { color: var(--muted); }
.spec-row__v { font-weight: 600; color: var(--ink); text-align: right; }

/* --- Žemėlapiai ------------------------------------------------------ */
.map-pick, .map-show {
  height: 320px; width: 100%;
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--line-2);
  z-index: 0;
}
.map-pick { cursor: crosshair; }

.map-wrap {
  height: 560px; width: 100%;
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--line-2);
  margin-bottom: 16px; position: relative; z-index: 0;
}
.map-loading, .map-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .93rem; text-align: center; padding: 20px;
  z-index: 500; pointer-events: none;
}

/* Rodinio perjungiklis */
.view-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--line-2); border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.view-switch button {
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 700; color: var(--muted);
  padding: 7px 18px; border-radius: var(--r-pill);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.view-switch button:hover { color: var(--green-800); }
.view-switch button.on { background: var(--paper); color: var(--green-900); box-shadow: var(--shadow-1); }

/* Iškylantis langelis žemėlapyje */
.map-pop { min-width: 168px; font-family: var(--font-body); }
.map-pop img { width: 100%; height: 92px; object-fit: cover; border-radius: 8px; margin-bottom: 7px; }
.map-pop strong { display: block; color: var(--green-800); font-size: 1rem; margin-bottom: 3px; }
.map-pop a { display: block; font-weight: 600; font-size: .88rem; line-height: 1.35; color: var(--ink); }
.map-pop span { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.leaflet-popup-content { margin: 10px 12px; }

@media (max-width: 700px) {
  .spec-cols { grid-template-columns: 1fr; }
  .map-wrap { height: 420px; }
  .map-pick, .map-show { height: 260px; }
}

/* --- Laukų grupės formoje -------------------------------------------- */
.attr-group { padding-top: 6px; margin-bottom: 6px; }
.attr-group + .attr-group { border-top: 1px solid var(--line-2); padding-top: 18px; margin-top: 12px; }
.attr-group__title {
  font-family: var(--font-body); font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin: 0 0 12px;
}
.check-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 7px 18px;
}
.check-grid .check { font-size: .89rem; padding: 3px 0; }

/* --- Ypatybių sąrašas skelbime --------------------------------------- */
.feature-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 20px;
}
.feature-list li {
  position: relative; padding-left: 22px; font-size: .92rem; color: var(--ink-2);
  line-height: 1.6;
}
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-600); font-weight: 800;
}

/* --- Verslo pardavėjo kortelė ---------------------------------------- */
.biz-card {
  background: linear-gradient(160deg, var(--green-050) 0%, var(--paper) 60%);
  border: 1px solid var(--green-100);
  border-radius: var(--r); padding: 16px;
}
.biz-card--compact { padding: 13px; margin-bottom: 14px; }
.biz-card__top { display: flex; gap: 12px; align-items: center; }
.biz-card__logo {
  width: 52px; height: 52px; flex-shrink: 0;
  object-fit: cover; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
}
.biz-card__logo--empty {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--green-700); background: #fff;
}
.biz-card__id { min-width: 0; }
.biz-card__name {
  display: block; font-weight: 800; font-size: 1rem; color: var(--ink);
  line-height: 1.25; margin-bottom: 3px;
}
.biz-card__name:hover { color: var(--green-700); text-decoration: none; }
.biz-badge {
  display: inline-block; font-size: .7rem; font-weight: 800;
  background: var(--green-700); color: #fff;
  padding: 2px 9px; border-radius: var(--r-pill);
}
.biz-type { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.biz-card__promo {
  margin: 11px 0 0; font-size: .88rem; line-height: 1.5; color: var(--ink-2);
  padding-left: 11px; border-left: 3px solid var(--yellow);
}
.biz-card__about { margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.biz-card__about p { margin-bottom: .6em; }
.biz-card__hours { margin: 12px 0 0; font-size: .85rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.biz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.biz-dot.on { background: var(--green-600); box-shadow: 0 0 0 3px rgba(26,122,94,.18); }
.biz-hours-toggle {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .82rem; color: var(--green-700); text-decoration: underline;
}
.biz-card__meta { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.biz-hours { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .85rem; }
.biz-hours th, .biz-hours td { padding: 5px 0; text-align: left; font-weight: 400; color: var(--ink-2); }
.biz-hours td { text-align: right; }
.biz-hours tr.on th, .biz-hours tr.on td { font-weight: 800; color: var(--green-800); }

/* Darbo valandų redagavimas */
.hours-edit { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hours-edit th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 5px 10px 5px 0; white-space: nowrap; }
.hours-edit td { padding: 4px 6px 4px 0; }
.hours-edit input[type="time"] { width: 116px; padding: 7px 9px; }

@media (max-width: 560px) {
  .hours-edit th { font-size: .8rem; }
  .hours-edit input[type="time"] { width: 92px; padding: 6px; font-size: .85rem; }
}

/* --- Audito pataisymai ----------------------------------------------- */

/* Galerija: šviesus fonas vietoj juodo, prisitaikantis aukštis */
.gallery--light { background: #f2f5f3; }
.gallery--light .main {
  background: #f2f5f3;
  aspect-ratio: auto;
  min-height: 280px;
  max-height: 62vh;
  padding: 10px;
}
.gallery--light .main img { max-height: 62vh; width: auto; max-width: 100%; margin: 0 auto; }
.gallery--light .thumbs { background: #e8ede9; }
.gallery--light .thumbs button.on { border-color: var(--green-700); }

/* Pardavėjo patikimumo ženklai */
.seller-type {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--line-2);
  padding: 2px 8px; border-radius: var(--r-pill); margin-left: 6px;
}
.trust-list { list-style: none; margin: 10px 0 12px; padding: 0; font-size: .82rem; color: var(--muted); }
.trust-list li { position: relative; padding-left: 20px; line-height: 1.75; }
.trust-list li::before { content: "•"; position: absolute; left: 4px; color: #b8c5bf; }
.trust-list li.ok { color: var(--ink-2); }
.trust-list li.ok::before { content: "✓"; left: 2px; color: var(--green-600); font-weight: 800; }

/* Slaptažodžio rodymas */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 74px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700; color: var(--green-700);
  padding: 6px 8px; border-radius: 6px;
}
.pw-toggle:hover { background: var(--green-050); }

/* Antrasis kelias hero bloke */
.hero-alt {
  position: relative; z-index: 2; margin: 14px 0 0;
  font-size: .95rem; color: #c7dcd3;
}
.hero-alt a { color: var(--yellow); }
.hero-alt a:hover { color: #fff; text-decoration: none; }

/* --- Galerijos valdikliai --------------------------------------------- */
.gallery .main { position: relative; }

.gallery-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  border: 0; background: rgba(11,59,46,.78); backdrop-filter: blur(6px);
  color: #fff; font: inherit; font-size: .8rem; font-weight: 700;
  padding: 7px 13px; border-radius: var(--r-pill); cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s var(--ease);
}
.gallery-zoom:hover { background: var(--green-900); }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(11,59,46,.18);
  color: var(--green-900); font-size: 1.6rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0 0 3px; transition: background .2s, transform .2s;
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-nav--prev { left: 12px; }
.gallery-nav--next { right: 12px; }

.gallery-count {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  background: rgba(11,59,46,.72); backdrop-filter: blur(6px); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill);
}

/* Miniatiūrų juosta – su 32 nuotraukomis turi slinkti sklandžiai */
.gallery .thumbs { scroll-behavior: smooth; padding: 9px; gap: 7px; }
.gallery .thumbs button { flex: 0 0 74px; height: 56px; border-radius: 7px; }

/* --- Nuotraukų peržiūra per visą ekraną ------------------------------- */
body.lb-lock { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(9,13,11,.94);
  display: none; align-items: center; justify-content: center;
  padding: 56px 16px 68px;
}
.lightbox.on { display: flex; animation: lbIn .18s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage img {
  max-width: 100%; max-height: calc(100vh - 130px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lb-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 0 4px;
}
.lb-close:hover { background: rgba(255,255,255,.26); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 50px; height: 50px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 0 5px;
  display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-bar {
  position: absolute; bottom: 20px; left: 0; right: 0;
  text-align: center; color: #cfe0d8; font-size: .88rem; font-weight: 600;
}

@media (max-width: 700px) {
  .lightbox { padding: 50px 8px 60px; }
  .lb-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-stage img { max-height: calc(100vh - 116px); }
  .gallery-nav { width: 36px; height: 36px; font-size: 1.35rem; }
  .gallery-zoom { font-size: .75rem; padding: 6px 11px; }
}

/* Hero – nauda kompaktiškai (vietoj didelio skaičių bloko) */
.hero-perks {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  position: relative; z-index: 2;
}
.hero-perks li {
  position: relative; padding-left: 22px;
  font-size: .92rem; color: #cfe3da;
}
.hero-perks li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--yellow); font-weight: 800;
}

/* --- Slapukų juosta --------------------------------------------------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(11,59,46,.12);
  padding: 16px;
}
.cookie-bar__inner { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cookie-bar__text { flex: 1 1 320px; min-width: 0; }
.cookie-bar__text strong { display: block; margin-bottom: 3px; }
.cookie-bar__text p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.cookie-bar__opts { flex: 1 1 100%; display: grid; gap: 7px; padding: 4px 0; }
.cookie-bar__opts .check { font-size: .85rem; }
.cookie-bar__btns { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

/* --- Prilipusi kontaktų juosta telefone -------------------------------- */
.sticky-contact { display: none; }
@media (max-width: 760px) {
  .sticky-contact {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(11,59,46,.12);
  }
  .sticky-contact .btn { flex: 1; padding: 13px 10px; font-size: .95rem; }
  body { padding-bottom: 66px; }
  .cookie-bar__btns .btn { flex: 1 1 auto; }
}

/* hidden atributas turi veikti ir su display:grid/flex elementais */
[hidden] { display: none !important; }

/* --- Paieškos pasiūlymai ---------------------------------------------- */
.header-search { position: relative; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 80;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-3);
  max-height: 62vh; overflow-y: auto; padding: 6px;
}
.suggest__group {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
  padding: 9px 10px 5px;
}
.suggest__row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink); font-size: .92rem; text-decoration: none;
}
.suggest__row:hover, .suggest__row.on { background: var(--green-050); text-decoration: none; }
.suggest__ico { width: 22px; text-align: center; flex-shrink: 0; }
.suggest__n { margin-left: auto; font-size: .78rem; color: var(--muted); }
.suggest__row--l img {
  width: 40px; height: 32px; object-fit: cover; border-radius: 5px; flex-shrink: 0;
}
.suggest__t {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;
}
.suggest__p { font-weight: 700; color: var(--green-700); font-size: .85rem; flex-shrink: 0; }

/* --- Aktyvių filtrų žymos --------------------------------------------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-050); border: 1px solid var(--green-100);
  color: var(--green-800); font-size: .84rem; font-weight: 600;
  padding: 5px 10px 5px 12px; border-radius: var(--r-pill);
}
.filter-chip a {
  color: var(--muted); font-size: 1rem; line-height: 1; text-decoration: none;
  width: 17px; height: 17px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.filter-chip a:hover { background: var(--clay); color: #fff; text-decoration: none; }
.filter-chips__clear { font-size: .84rem; font-weight: 700; align-self: center; }

/* Paieškos laukas nebegali kirpti turinio – kitaip pasiūlymų sąrašas nematomas */
.header-search { overflow: visible; }
.header-search input[type="search"] { border-radius: var(--r) 0 0 var(--r); }
.header-search button { border-radius: 0 var(--r) var(--r) 0; }
.header-search select { border-radius: 0; }
.site-header { overflow: visible; }

/* --- Rekomendacijos: aiškiai atskirtos nuo kategorijos rezultatų -------- */
.reco {
  margin-top: 34px;
  padding: 22px;
  background: var(--line-2);
  border: 1px dashed #c9d5ce;
  border-radius: var(--r-lg);
}
.reco__head { margin-bottom: 16px; }
.reco__title {
  font-size: 1.05rem; margin: 0 0 4px;
  font-family: var(--font-body); font-weight: 800;
}
.reco__note { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.reco .listing-card { background: var(--paper); }

/* --- Skelbimo uždarymo priežastis ------------------------------------- */
.close-box { position: relative; display: inline-block; }
.close-box > summary { list-style: none; cursor: pointer; }
.close-box > summary::-webkit-details-marker { display: none; }
.close-form {
  position: absolute; z-index: 20; right: 0; top: calc(100% + 6px);
  width: 230px; padding: 13px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-3);
}
.close-form .check { margin-bottom: 5px; }
@media (max-width: 700px) { .close-form { right: auto; left: 0; } }

/* --- Kategorijos SEO turinys ir DUK ----------------------------------- */
.seo-block {
  margin-top: 34px; padding: 26px 28px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); max-width: 82ch;
}
.seo-block p { font-size: .95rem; line-height: 1.75; color: var(--ink-2); }
.seo-block p:last-child { margin-bottom: 0; }
.seo-block h2 { font-size: 1.15rem; margin-bottom: 14px; }

.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: 0; }
.faq-item > summary {
  cursor: pointer; padding: 13px 26px 13px 0; position: relative;
  font-weight: 700; font-size: .95rem; color: var(--ink); list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; position: absolute; right: 4px; top: 11px;
  font-size: 1.3rem; font-weight: 400; color: var(--green-600);
}
.faq-item[open] > summary::after { content: "−"; }
.faq-item > p {
  margin: 0 0 15px; font-size: .92rem; line-height: 1.7; color: var(--ink-2);
  padding-right: 26px;
}

/* Skelbimo tipo ženkliukai */
.badge-want    { background: rgba(59,126,161,.94); color: #fff; }
.badge-swap    { background: rgba(120,90,170,.94); color: #fff; }
.badge-service { background: rgba(26,122,94,.94); color: #fff; }

/* Kaina už kvadratinį metrą */
.ppsqm { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* --- „Jus taip pat gali sudominti" ------------------------------------- */
.suggested {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px solid var(--line-2);
}
.suggested .section-head { margin-bottom: 14px; }

/* --- Nuotraukų ruošimas prieš siuntimą --------------------------------- */
.shrink-note {
  margin: 10px 0 0; font-size: .87rem; font-weight: 600; color: var(--green-700);
}
.dropzone.busy { opacity: .55; pointer-events: none; }

.upload-note {
  margin: 12px 0 0; font-size: .88rem; color: var(--ink-2);
  display: flex; align-items: center; gap: 9px;
}
.spin {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--green-100); border-top-color: var(--green-700);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Lentelės telefone virsta kortelėmis ------------------------------- */
@media (max-width: 760px) {
  .table-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }

  table.data { min-width: 0; display: block; font-size: .92rem; }
  table.data thead { display: none; }
  table.data tbody { display: block; }

  table.data tr {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px 14px;
    margin-bottom: 11px;
    box-shadow: var(--shadow-1);
  }
  table.data tr:hover td { background: none; }

  table.data td {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 7px 0; border-bottom: 1px solid var(--line-2);
    width: auto !important;
  }
  table.data tr td:last-child { border-bottom: 0; padding-bottom: 0; }

  /* Etiketė kairėje, reikšmė dešinėje */
  table.data td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 92px;
    font-size: .74rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted);
    padding-top: 2px;
  }

  /* Nuotrauka viršuje per visą plotį */
  table.data td.cell-thumb { border-bottom: 0; padding: 0 0 10px; }
  table.data td.cell-thumb::before { display: none; }
  table.data .thumb-xs { width: 100%; height: 130px; border-radius: var(--r-sm); }

  /* Veiksmai apačioje mygtukų eilute */
  table.data td[data-label="Veiksmai"] { flex-direction: column; align-items: stretch; }
  table.data td[data-label="Veiksmai"]::before { margin-bottom: 6px; }
  table.data .actions-inline { gap: 6px; }
  table.data .actions-inline .btn { flex: 1 1 auto; min-width: 84px; }

  /* Skirtukai telefone slenka horizontaliai */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; }
}

/* --- Gautos žinutės ---------------------------------------------------- */
.msg {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px; margin-bottom: 14px;
}
.msg--new { border-left: 4px solid var(--green-600); background: var(--green-050); }

.msg__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.msg__who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26,122,94,.18); flex-shrink: 0;
}
.msg__listing { flex-shrink: 0; }
.msg__body { font-size: .94rem; line-height: 1.65; color: var(--ink-2); }
.msg__body p:last-child { margin-bottom: 0; }
.msg__contacts { margin-top: 10px; }

.msg__thread { margin-top: 14px; padding-left: 16px; border-left: 3px solid var(--line); }
.msg__reply {
  background: var(--line-2); border-radius: var(--r-sm);
  padding: 11px 13px; margin-bottom: 8px; font-size: .9rem;
}
.msg__reply p:last-child { margin-bottom: 0; }

.msg__actions {
  display: flex; gap: 7px; flex-wrap: wrap; align-items: flex-start;
  margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line-2);
}
.msg__actions form { display: inline; }

.reply-box { position: relative; }
.reply-box > summary { list-style: none; cursor: pointer; }
.reply-box > summary::-webkit-details-marker { display: none; }
.reply-form { margin-top: 10px; }
.reply-form textarea { min-height: 110px; font-size: .93rem; }

@media (max-width: 620px) {
  .msg__actions .btn { flex: 1 1 auto; }
  .msg__head { flex-direction: column; gap: 5px; }
  .reply-box { width: 100%; }
  .reply-box > summary .btn { width: 100%; }
}

/* --- Grid perpildymo taisymas ------------------------------------------
   `1fr` reiškia `minmax(auto, 1fr)`, o `auto` = min-content. Todėl platus
   turinys (lentelė, ilgas žodis) išplečia visą tinklelį ir atsiranda
   horizontalus slinkimas. `minmax(0, 1fr)` tai išsprendžia.
   ----------------------------------------------------------------------- */
.panel-layout, .catalog-layout, .listing-layout {
  grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
}
.listing-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.catalog-layout { grid-template-columns: minmax(0, 262px) minmax(0, 1fr); }

.panel-layout > *, .catalog-layout > *, .listing-layout > * { min-width: 0; }

@media (max-width: 1024px) {
  .panel-layout, .catalog-layout, .listing-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Ilgi žodžiai ir adresai nelaužo išdėstymo */
.panel-nav a, table.data td, .msg__body, .desc, .listing-card .title {
  overflow-wrap: anywhere;
}

/* Telefone lentelė tikrai neturi savo minimalaus pločio */
@media (max-width: 760px) {
  .table-wrap { max-width: 100%; }
  table.data { min-width: 0 !important; width: 100%; max-width: 100%; }
  table.data td { min-width: 0; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* Žinučių moderavimas */
.msg--spam { border-left: 4px solid var(--clay); background: var(--clay-lt); }
.msg--flag { border-left: 4px solid var(--yellow-dk); background: var(--yellow-lt); }
.msg code { background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 4px; font-size: .88em; }

/* --- Įsiminto skelbimo mygtukas --------------------------------------- */
.btn.on {
  background: var(--clay-lt);
  border-color: var(--clay);
  color: var(--clay);
  font-weight: 800;
}
.btn.on:hover { background: #f7ddd5; }

/* --- Trumpi pranešimai ------------------------------------------------- */
.toast-box {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 9997; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none;
}
.toast {
  background: var(--green-900); color: #fff;
  padding: 11px 20px; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-3);
  animation: toastIn .2s var(--ease);
  max-width: 90vw; text-align: center;
}
.toast--ok  { background: var(--green-700); }
.toast--err { background: var(--clay); }
.toast.out { animation: toastOut .4s var(--ease) forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(10px); } }

@media (max-width: 760px) {
  /* Virš prilipusios kontaktų juostos */
  .toast-box { bottom: 78px; }
}

/* --- Kaina už ploto vienetą ir skelbimo statistika --------------------- */
.ppsqm-big {
  margin: -4px 0 12px; font-size: .95rem; font-weight: 700; color: var(--green-700);
}
.listing-stats {
  display: flex; gap: 16px; margin: 0 0 10px;
  font-size: .85rem; color: var(--muted); font-weight: 600;
}
.listing-stats span { display: inline-flex; align-items: center; gap: 5px; }

.badge-autobump {
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
  background: var(--green-700);
  color: #fff;
  font-weight: 800;
}
