/* Bevri.ge — colours and shapes follow the original 2017 design */
:root {
    --primary: #1f2a3d;
    --primary-hover: #33415a;
    --accent: #2f6fbf;
    --link: #2f6fbf;
    --header: #5da7fd;
    --hero: #dbeafc;
    --hero-line: #c2d9f5;
    --yellow: #f8e71c;
    --yellow-soft: #f9fbbc;
    --text: #4a4a4a;
    --muted: #9b9b9b;
    --line: #e8e8e8;
    --bg: #eef4fb;
    --ink: #1f2a3d;
    --soft: #f1f3f6;
    --soft-line: #e6e9ee;
    --white: #fff;
    --danger: #e0454f;
    --success: #2fa36b;
    --radius: 24px;
    --radius-sm: 10px;
    --shadow: 0 2px 10px rgba(0, 0, 0, .06);
    --font: "Noto Sans Georgian", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: #333; }
h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header { background: var(--header); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 4px 14px rgba(47, 111, 191, .18); }
.header-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo img { height: 40px; width: auto; }
.cat-toggle { display: flex; align-items: center; gap: 8px; border: 0; border-radius: var(--radius); color: var(--white); background: rgba(255, 255, 255, .16); padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s; }
.cat-toggle:hover, .cat-toggle[aria-expanded=true] { background: rgba(255, 255, 255, .26); text-decoration: none; }
.header-search.search-box { box-shadow: none; }
.header-search.search-box button[type=submit] { background: transparent; color: #5b6472; }
.header-search.search-box button[type=submit]:hover { color: var(--primary); }
.header-search { flex: 1; max-width: 460px; }
.header-search.reveal-on-scroll { visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.header-search.reveal-on-scroll.shown { visibility: visible; opacity: 1; transform: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-post { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: #333; font-weight: 700; border-radius: var(--radius); padding: 9px 18px; white-space: nowrap; }
.btn-post:hover { text-decoration: none; filter: brightness(.96); }
.btn-post .plus { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #333; font-size: 16px; line-height: 1; }
.header-icon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--white); transition: background .15s; }
.header-icon:hover { background: rgba(255, 255, 255, .16); }
.header-icon svg { width: 26px; height: 26px; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #7ed321; color: var(--white); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.user-menu { position: relative; }
.user-menu > button { background: none; border: 0; color: var(--white); font: inherit; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius); transition: background .15s, color .15s; }
.user-menu > button:hover { background: rgba(255, 255, 255, .16); }
.user-menu > button[aria-expanded=true] { background: var(--white); color: var(--ink); }
.user-chevron { transition: transform .15s; }
.user-menu > button[aria-expanded=true] .user-chevron { transform: rotate(180deg); }
.user-menu .dropdown { top: calc(100% + 10px); }
.user-menu .dropdown::before { content: ""; position: absolute; top: -6px; right: 14px; width: 12px; height: 12px; background: var(--white); transform: rotate(45deg); border-radius: 2px 0 0 0; box-shadow: -2px -2px 4px rgba(31, 42, 61, .06); }
.user-menu .dropdown::after { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); color: var(--text); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(31, 42, 61, .16); min-width: 260px; padding: 6px 0; display: none; z-index: 60; }
.dropdown.open { animation: mega-in .14s ease-out; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 16px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); text-decoration: none; }
.btn-login { background: var(--white); color: var(--ink); border: 0; border-radius: var(--radius); padding: 8px 20px; font-weight: 700; transition: background .15s, border-color .15s; }
.btn-login:hover { text-decoration: none; background: var(--soft); }

.mega-menu { position: absolute; top: 100%; left: 0; right: 0; max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; background: var(--white); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: 0 18px 36px rgba(31, 42, 61, .16); display: none; }
.mega-menu.open { display: block; animation: mega-in .14s ease-out; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mega-menu.open { animation: none; } }
.mega-grid li a:hover { color: var(--link); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 28px; padding: 16px 16px 8px; }
.mega-grid h3 { font-size: 14px; line-height: 1.35; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.mega-grid h3 img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.mega-grid ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 32px; }
.mega-grid li { padding: 2px 0; }
.mega-grid li a { color: var(--text); font-size: 13.5px; line-height: 1.35; }

/* ---------- Search ---------- */
.search-box { display: flex; align-items: center; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.search-box input[type=search] { flex: 1; border: 0; padding: 10px 14px; font: inherit; min-width: 0; outline: none; color: var(--text); }
.search-box select { border: 0; border-left: 1px solid var(--line); padding: 10px; font: inherit; color: var(--text); background: var(--white); max-width: 150px; }
.search-box .city-pick { display: flex; align-items: center; gap: 4px; align-self: stretch; padding-left: 12px; border-left: 1px solid var(--line); color: var(--link); cursor: pointer; flex: none; }
.search-box .city-pick svg { width: 18px; height: 18px; flex: none; }
.search-box .city-pick select { border-left: 0; padding-left: 2px; max-width: none; width: 148px; cursor: pointer; }
.search-box button[type=submit] { border: 0; background: var(--primary); color: var(--white); padding: 0 18px; align-self: stretch; cursor: pointer; display: grid; place-items: center; }
.search-box button[type=submit] svg { width: 20px; height: 20px; }
.geo-toggle { border: 0; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; padding: 4px 8px; margin-left: 8px; border-radius: 6px; cursor: pointer; }
.geo-toggle[aria-pressed=true] { background: var(--yellow-soft); }

.hero { color: var(--ink); padding: 20px 0 0; text-align: center; }
.hero > .container > .hero-card { padding: 34px 24px 36px; border-radius: 14px; background: var(--hero); border: 1px solid var(--hero-line); }
.hero h1 { color: var(--ink); font-size: 28px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.hero .search-box { max-width: 720px; margin: 0 auto; border: 1px solid #b7d0ef; box-shadow: 0 1px 2px rgba(31, 42, 61, .06); }
.hero .search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 111, 191, .12); }
.hero .search-box button[type=submit] { margin: 6px; border-radius: 18px; padding: 0 20px; background: var(--primary); }
.hero .search-box button[type=submit]:hover { background: var(--primary-hover); }
.hero .search-box input[type=search] { padding: 15px 18px; font-size: 16px; }

/* ---------- Category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 26px; }
.cat-tile { background: var(--white); border-radius: 10px; border: 1px solid var(--soft-line); padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: 12.5px; line-height: 1.3; display: flex; align-items: center; gap: 9px; min-height: 58px; transition: border-color .12s, background .12s; }
.cat-tile:hover { text-decoration: none; border-color: #b9c2cf; background: var(--white); }
.cat-tile img { width: 30px; height: 30px; flex: none; object-fit: contain; }
.cat-tile span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile-wrap { position: relative; }
.cat-tile-wrap > .cat-tile { height: 100%; }
.cat-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 100%; width: max-content; max-width: 300px; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--soft-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(31, 42, 61, .14); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .12s, transform .12s, visibility 0s .12s; }
.cat-pop.two-cols { columns: 2; column-gap: 4px; max-width: 460px; }
.cat-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.cat-pop li { break-inside: avoid; }
.cat-pop a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink); font-size: 13px; line-height: 1.3; }
.cat-pop a:hover { background: var(--bg); color: var(--link); text-decoration: none; }
.cat-tile-wrap:hover .cat-pop, .cat-tile-wrap:focus-within .cat-pop { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, .15s; }
.cat-tile-wrap:nth-child(5n) .cat-pop, .cat-tile-wrap:nth-child(5n-1) .cat-pop { left: auto; right: 0; }

/* ---------- Ad cards ---------- */
.section { margin: 26px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head h2 { font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.section-head a { font-size: 13px; font-weight: 600; }
.ad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ad-grid.wide { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ad-card { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--soft-line); display: flex; flex-direction: column; color: var(--text); position: relative; transition: border-color .12s, box-shadow .12s; }
.ad-card:hover { text-decoration: none; border-color: #c9d1dc; box-shadow: 0 4px 14px rgba(31, 42, 61, .08); }
.ad-card .thumb { aspect-ratio: 4 / 3; background: #eee center / cover no-repeat; position: relative; overflow: hidden; }
.ad-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-track { position: absolute; inset: 0; display: block; }
.thumb.multi .thumb-track img { position: absolute; inset: 0; opacity: 0; transition: opacity .12s; }
.thumb.multi .thumb-track img.on { opacity: 1; }
.thumb-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.thumb-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .5); box-shadow: 0 0 3px rgba(0, 0, 0, .35); transition: background .12s; }
.thumb-dots i.on { background: var(--white); }
.thumb-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 28, 40, .45); color: var(--white); font-weight: 700; font-size: 16px; opacity: 0; transition: opacity .12s; pointer-events: none; }
.thumb.at-end .thumb-more { opacity: 1; }
@media (hover: none) {
    .thumb.multi .thumb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
    .thumb.multi .thumb-track::-webkit-scrollbar { display: none; }
    .thumb.multi .thumb-track img { position: static; opacity: 1; flex: 0 0 100%; scroll-snap-align: start; }
}
.no-photo { width: 100%; height: 100%; display: grid; place-items: center; color: #c4c4c4; background: #f0f0f0; }
.no-photo svg { width: 48px; height: 48px; }
.ad-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.ad-card .title { font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card .price { font-weight: 700; font-size: 16px; color: var(--primary); }
.ad-card .meta { margin-top: auto; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--bg); color: var(--text); }
.tag.new { background: #e7f6ec; color: var(--success); }
.tag.warn { background: #fdecee; color: var(--danger); }

/* ---------- Listing page ---------- */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin: 24px 0; }
.panel { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 18px; }
.filters { padding: 14px; }
.filters h3 { margin: 0 0 4px; }
.filters label { display: block; font-weight: 600; font-size: 12.5px; margin: 8px 0 2px; color: #4d5b6e; }
.filters .input { padding: 6px 10px; font-size: 13.5px; border-radius: 8px; }
.filters .search-box { border-radius: 8px; }
.filters .search-box input[type=search] { padding: 6px 10px; font-size: 13.5px; }
.filters p { margin: 12px 0 6px; }
.filters .row { display: flex; gap: 6px; }
.listing-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.listing .ad-grid { grid-template-columns: repeat(3, 1fr); }
.breadcrumbs { font-size: 13px; margin: 18px 0 0; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; font-size: 13px; color: var(--text); }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.quick-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.quick-filter::-webkit-scrollbar { display: none; }
.quick-chip { flex: none; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 7px 16px; font-size: 14px; color: var(--text); }
.quick-chip:hover { border-color: var(--accent); text-decoration: none; }
.quick-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty { text-align: center; padding: 48px 16px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid #c4c4c4; border-radius: var(--radius); padding: 10px 16px; font: inherit; color: var(--text); background: var(--white); }
textarea.input { border-radius: 16px; min-height: 140px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 111, 191, .14); }
.input.is-invalid { border-color: var(--danger); }
.error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); padding: 11px 26px; font: inherit; font-weight: 700; cursor: pointer; background: var(--primary); color: var(--white); text-align: center; transition: background .12s; }
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn-block { width: 100%; }
.btn-light { background: var(--white); color: var(--primary); border: 1px solid var(--primary); }
.btn-yellow { background: var(--yellow); color: #333; }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-link { background: none; border: 0; color: var(--primary); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.btn-link.danger { color: var(--danger); }
.auth-card { max-width: 440px; margin: 40px auto; }
.auth-card h1 { text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-facebook { background: #3b5998; }

/* ---------- Ad form ---------- */
.form-card { max-width: 860px; margin: 24px auto; }
.form-step { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.form-step:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.photo-grid figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eee; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .main-label { position: absolute; left: 6px; top: 6px; background: var(--yellow); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.photo-grid label.remove { position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, .65); color: var(--white); font-size: 11px; padding: 2px 6px; border-radius: 6px; cursor: pointer; display: flex; gap: 4px; align-items: center; }
.photo-grid figure.removing { opacity: .35; }
.upload-drop { display: block; border: 2px dashed #c4c4c4; border-radius: 16px; padding: 22px; text-align: center; cursor: pointer; color: var(--muted); }
.upload-drop:hover { border-color: var(--accent); color: var(--primary); }
.upload-drop input { display: none; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span { display: inline-block; border: 1px solid #c4c4c4; border-radius: var(--radius); padding: 8px 18px; cursor: pointer; }
.radio-pill input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--white); }
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(93, 167, 253, .35); }
.char-count { float: right; font-weight: 400; color: var(--muted); font-size: 12px; }

/* ---------- Ad page ---------- */
.ad-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin: 20px 0 32px; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: #fff; border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; }
.gallery-main img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.gallery-open { position: absolute; inset: 0; display: grid; place-items: center; cursor: zoom-in; }
.gallery-open img { width: 100%; height: 100%; }
.gallery-zoom-hint { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
.gallery-zoom-hint svg { width: 20px; height: 20px; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #222; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.gallery-nav:hover { background: #fff; }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-count { position: absolute; left: 12px; bottom: 12px; padding: 4px 11px; border-radius: 14px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; pointer-events: none; }
.lightbox { width: min(1240px, calc(100vw - 48px)); height: min(780px, calc(100dvh - 48px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 10px; background: #fff; color: var(--text); overflow: hidden; }
.lightbox[open] { display: grid; grid-template: "photo zoom info" minmax(0, 1fr) / minmax(0, 1fr) 72px 300px; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #222; cursor: pointer; }
.lightbox-close:hover { background: #f0f1f3; }
.lightbox-close svg { width: 24px; height: 24px; }
.lightbox-photo { grid-area: photo; position: relative; min-width: 0; min-height: 0; margin: 20px 0 20px 20px; }
.lightbox-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.lightbox-stage.zoomed { cursor: grab; }
.lightbox-stage.zoomed.dragging { cursor: grabbing; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .16s ease-out; will-change: transform; }
.lightbox-stage.dragging img { transition: none; }
.lightbox-zoom { grid-area: zoom; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 24px; }
.lightbox-zoom button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid #c9ccd1; border-radius: 50%; background: #fff; color: #222; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.lightbox-zoom button:hover:not(:disabled) { background: #f0f1f3; }
.lightbox-zoom button:disabled { opacity: .4; cursor: default; box-shadow: none; }
.lightbox-zoom svg { width: 26px; height: 26px; }
.lightbox-info { grid-area: info; min-height: 0; overflow-y: auto; padding: 56px 20px 20px 4px; }
.lightbox-info h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.lightbox-price { margin: 0 0 18px; color: var(--primary); font-size: 20px; font-weight: 700; }
.lightbox-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lightbox-thumbs button { aspect-ratio: 1; padding: 0; border: 2px solid #e1e3e6; border-radius: 6px; overflow: hidden; background: #fff; cursor: pointer; }
.lightbox-thumbs button:hover { border-color: var(--accent); }
.lightbox-thumbs button.active { border-color: var(--primary); }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
    .lightbox { width: calc(100vw - 16px); height: calc(100dvh - 32px); }
    .lightbox[open] { grid-template: "photo" minmax(0, 1fr) "info" auto / minmax(0, 1fr); }
    .lightbox-photo { margin: 56px 8px 8px; }
    .lightbox-zoom { grid-area: photo; z-index: 2; flex-direction: row; align-self: start; justify-self: start; padding: 6px 0 0 8px; }
    .lightbox-zoom button { width: 44px; height: 44px; }
    .lightbox-info { padding: 10px 14px 14px; max-height: 40dvh; border-top: 1px solid var(--line); }
    .lightbox-info h2 { font-size: 15px; margin-bottom: 2px; }
    .lightbox-price { font-size: 16px; margin-bottom: 10px; }
    .lightbox-thumbs { display: flex; overflow-x: auto; gap: 8px; }
    .lightbox-thumbs button { flex: none; width: 58px; height: 58px; }
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 84px; height: 64px; flex: none; cursor: pointer; background: #eee; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ad-price { font-size: 28px; font-weight: 700; color: var(--primary); margin: 4px 0 12px; }
.ad-facts { list-style: none; padding: 0; margin: 0 0 16px; }
.ad-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ad-facts li span:first-child { color: var(--muted); }
.ad-desc { margin-top: 20px; }
.ad-description { white-space: pre-line; word-wrap: break-word; }
.side-actions { display: flex; flex-direction: column; gap: 10px; }
.fav-btn[aria-pressed=true] { background: #fdecee; color: var(--danger); border-color: var(--danger); }
details.report summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.owner-bar { background: var(--yellow-soft); border-radius: var(--radius-sm); padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.owner-bar form { display: inline; }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin: 24px 0; }
.account-nav { padding: 0; overflow: hidden; border: 1px solid var(--soft-line); }
.account-nav h2 { background: var(--primary); color: var(--white); padding: 14px 18px; margin: 0; font-size: 18px; }
.account-nav a { display: block; padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--primary); }
.account-nav a.active { color: #333; font-weight: 700; background: var(--bg); }
.my-ad { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.my-ad img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.my-ad .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.my-ad .actions form { display: inline; }

/* ---------- Flash ---------- */
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0 0; font-weight: 600; }
.flash.success { background: #e7f6ec; color: #1d7a4c; }
.flash.error { background: #fdecee; color: #b3262f; }

/* ---------- Pagination (Laravel default markup) ---------- */
nav[role=navigation] { margin: 24px 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; }
.pagination li > * { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 19px; background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.pagination li.active > * { background: var(--primary); color: var(--white); }
.pagination li.disabled > * { opacity: .45; }

/* ---------- Static pages ---------- */
.prose { max-width: 820px; margin: 28px auto; }
.prose .body { white-space: pre-line; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-row img.footer-logo { height: 34px; width: auto; opacity: .8; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.social { display: flex; gap: 12px; }
.social a { color: var(--muted); }
.social svg { width: 22px; height: 22px; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-nav { background: #2d3748; padding: 16px 0; }
.admin-nav a { display: block; color: #cbd5e0; padding: 9px 20px; font-size: 14px; }
.admin-nav a.active, .admin-nav a:hover { background: #4a5568; color: var(--white); text-decoration: none; }
.admin-main { padding: 24px; min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 16px; }
.stat b { display: block; font-size: 26px; color: #333; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #fafafa; font-weight: 700; white-space: nowrap; }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.actions form { display: inline; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .input { max-width: 320px; }
.admin .input { border-radius: 8px; }
.admin textarea.input { border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .ad-grid, .ad-grid.wide { grid-template-columns: repeat(3, 1fr); }
    .listing .ad-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-tiles { grid-template-columns: repeat(3, 1fr); }
    .cat-tile-wrap:nth-child(n) .cat-pop { left: 0; right: auto; }
    .cat-tile-wrap:nth-child(3n) .cat-pop { left: auto; right: 0; }
    .ad-layout { grid-template-columns: 1fr; }
    .header-search { display: none; }
}
@media (max-width: 760px) {
    body { font-size: 14px; }
    .header-row { height: 56px; gap: 8px; }
    .logo img { height: 34px; }
    .cat-toggle .label, .btn-post .label, .user-menu .user-name, .user-chevron { display: none; }
    .cat-toggle { padding: 8px 10px; }
    .btn-post { padding: 6px; border-radius: 50%; }
    .btn-post .plus { width: 26px; height: 26px; }
    .btn-login { padding: 6px 12px; }
    .hero { padding: 28px 0 48px; }
    .hero h1 { font-size: 22px; }
    .hero .search-box { flex-wrap: wrap; border-radius: 16px; }
    .hero .search-box input[type=search] { flex-basis: calc(100% - 60px); }
    .hero .search-box .city-pick { flex: 1; border-left: 0; border-top: 1px solid var(--line); }
    .hero .search-box .city-pick select { flex: 1; }
    .hero .search-box button[type=submit] { padding: 10px 18px; border-top: 1px solid var(--line); }
    .ad-grid, .ad-grid.wide, .listing .ad-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .listing, .account, .admin { grid-template-columns: 1fr; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .my-ad { grid-template-columns: 90px 1fr; }
    .my-ad img { width: 90px; height: 70px; }
    .my-ad .actions { grid-column: 1 / -1; justify-content: flex-start; }
    .admin-nav { display: flex; overflow-x: auto; padding: 0; }
    .admin-nav a { white-space: nowrap; }
    .footer-row { flex-direction: column; align-items: flex-start; }
}

/* ===================================================================
   Original 2017 mobile design: shared components
   =================================================================== */
.m-only, .m-only-inline, .m-only-block, .m-only-flex { display: none; }
.m-cats, .m-back.m-only-block { display: none; }

.cat-rows { list-style: none; margin: 0; padding: 0 16px; background: var(--white); }
.cat-rows li { border-bottom: 1px dashed #dcdcdc; }
.cat-rows li:last-child { border-bottom: 0; }
.cat-rows a, .cat-rows button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 62px; padding: 10px 0; background: none; border: 0; font: inherit; font-size: 16px; color: #333; text-align: left; cursor: pointer; }
.cat-rows a:hover, .cat-rows button:hover { text-decoration: none; color: var(--primary); }
.cat-rows img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.cat-rows .chev { width: 20px; height: 20px; margin-left: auto; color: #666; flex: none; }
.m-back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 18px 16px; font: inherit; font-size: 16px; color: var(--primary); cursor: pointer; }
.m-back:hover { text-decoration: none; }

/* Login / sign-up (all screen sizes) */
.auth-card { max-width: 420px; margin: 32px auto; padding: 0 4px; }
.auth-card h1 { text-align: center; font-weight: 400; font-size: 26px; margin-bottom: 22px; }
.btn-big { min-height: 50px; font-size: 16px; font-weight: 600; }
.btn-big svg { width: 18px; height: 18px; }
.btn-facebook { background: #3b5998; }
.btn-facebook svg { width: 20px; height: 20px; }
.social-buttons { display: grid; gap: 10px; }
.btn-google { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.btn-google:hover { background: #f7f8f8; color: #3c4043; }
.btn-google svg { width: 20px; height: 20px; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #9b9b9b; pointer-events: none; }
.input-icon > .input { padding-left: 50px; min-height: 50px; }
.field-link { text-align: right; margin-top: 6px; font-size: 14px; }
.auth-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.auth-switch .btn { min-width: 112px; }

/* Add-ad steps (all screen sizes) */
.form-card { padding: 0; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 16px; padding: 20px; }
.post-head h1 { margin: 0; font-size: 24px; font-weight: 400; }
.post-head p { margin: 2px 0 0; }
.post-head-plus { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); font-size: 30px; color: #b8a900; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08); }
.step-bar { display: flex; justify-content: space-between; align-items: center; background: #eee; font-weight: 700; font-size: 14px; position: relative; overflow: hidden; }
.step-bar > span:first-child { padding: 16px 20px; }
.step-bar .step-num { padding: 16px 20px 16px 36px; font-weight: 400; background: #f6f6f6; position: relative; white-space: nowrap; }
.step-bar .step-num::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--white); transform: skewX(-12deg); transform-origin: top; }
.step-bar .step-num b { font-size: 20px; }
.post-step[data-step="3"] > .field, .post-step[data-step="3"] > .error, .post-step[data-step="3"] > .hint, .post-step[data-step="3"] > .photos-title, .post-step[data-step="3"] > .chosen-cat { margin-left: 16px; margin-right: 16px; }
.post-step[data-step="3"] > .step-bar { margin-bottom: 16px; }
@media (min-width: 761px) { .auth-card { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 28px 32px; } }
.js-steps .post-step:not(.active) { display: none !important; }
.needs-js { display: none; }
.js-steps .needs-js { display: revert; }
.js-steps .cat-rows.hidden { display: none; }
.chosen-cat { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--yellow-soft); border-radius: 10px; padding: 10px 14px; margin-top: 16px; font-size: 14px; }
label.req::before { content: "* "; color: var(--danger); }
.price-row { display: grid; grid-template-columns: 150px 96px; justify-content: start; gap: 12px; }
.price-row select.input { min-height: 50px; }
.negotiable-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.negotiable { flex: none; display: inline-flex; align-items: center; gap: 14px; background: #d9f7c9; border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.negotiable input { width: 24px; height: 24px; accent-color: var(--success); }
.negotiable.checked { box-shadow: inset 0 0 0 2px var(--success); }
.input-icon > select.input { appearance: none; -webkit-appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 14px center / 22px; padding-right: 44px; }
.photos-title { font-size: 18px; font-weight: 400; margin-top: 24px !important; }
.photo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #eee; padding: 12px; margin: 10px 0; }
@media (min-width: 761px) { .photo-tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { position: relative; aspect-ratio: 1; margin: 0; background: #f8f8f8; border: 1px solid #e3e3e3; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d6d6d6; color: var(--white); font-size: 26px; line-height: 1; }
.tile-add { background: #e2f3c4; }
.tile-add .tile-plus { background: var(--primary); }
.tile-camera svg { width: 48px; height: 48px; color: #c8c8c8; }
.tile .main-label { position: absolute; left: 6px; top: 6px; background: var(--yellow); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.tile label.remove { position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, .65); color: var(--white); font-size: 11px; padding: 2px 6px; border-radius: 6px; cursor: pointer; display: flex; gap: 4px; align-items: center; }
.tile.removing { opacity: .35; }
.tile.hidden { display: none; }
.tile.preview, .tile.existing { cursor: grab; }
.tile.dragging { opacity: .4; }
.tile-tool { position: absolute; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .62); color: var(--white); font: inherit; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 7px; cursor: pointer; }
.tile-tool:hover { background: rgba(0, 0, 0, .82); }
.tile-make-main { left: 6px; top: 6px; font-size: 11px; font-weight: 600; }
.tile-left { left: 6px; bottom: 6px; font-size: 15px; padding: 3px 9px; }
.tile-right { left: 40px; bottom: 6px; font-size: 15px; padding: 3px 9px; }
.tile-remove { right: 6px; top: 6px; font-size: 15px; padding: 3px 8px; }
.btn-submit-big { display: flex; align-items: center; justify-content: center; gap: 18px; width: calc(100% - 32px); margin: 8px 16px 8px; min-height: 68px; border: 0; border-radius: 34px; background: var(--yellow); color: #333; font: inherit; cursor: pointer; }
.btn-submit-big:hover { filter: brightness(.96); }
.btn-submit-big .check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: #333; font-size: 22px; font-weight: 700; }
.btn-submit-big b { display: block; font-size: 22px; font-weight: 400; line-height: 1.2; }
.btn-submit-big small { display: block; font-size: 15px; opacity: .95; }
.dropdown-head { padding: 10px 16px 8px; border-bottom: 1px solid var(--line); font-size: 14px; color: #333; }
.footer-brand { display: flex; align-items: center; gap: 18px; }

/* ===================================================================
   Phone layout (original 2017 mobile mockups)
   =================================================================== */
@media (max-width: 760px) {
    .m-only { display: block; }
    .m-only-inline { display: inline; }
    .m-only-block { display: block; }
    .m-only-flex { display: flex; }
    .d-only { display: none !important; }
    .m-cats { display: inline-grid; }
    .m-back.m-only-block { display: inline-flex; }
    .m-cats[aria-current=page] { background: rgba(255, 255, 255, .22); }
    .m-all-cats { display: block; margin: 0 16px; padding: 14px 0 4px; font-size: 15px; font-weight: 600; color: var(--link); }
    .directory-head { margin-top: 0; }

    /* Header: logo | + | heart | person */
    .site-header { box-shadow: none; }
    .header-row { height: 60px; }
    .logo img { height: 40px; }
    .cat-toggle, .mega-menu { display: none !important; }
    .header-actions { gap: 6px; }
    .btn-post { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
    .btn-post .plus { width: 26px; height: 26px; border-width: 1.5px; font-size: 18px; color: #b8a900; border-color: #b8a900; }
    .header-icon { width: 44px; height: 44px; }
    .header-icon svg { width: 30px; height: 30px; stroke-width: 1.6; }
    .badge { top: 4px; right: 2px; }
    .btn-login { background: none; border: 0; padding: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); }
    .btn-login:hover { background: rgba(255, 255, 255, .16); }
    .btn-login .label { display: none; }
    .user-menu > button { width: 44px; height: 44px; justify-content: center; padding: 0; }
    .user-menu > button svg { width: 28px; height: 28px; stroke-width: 1.6; }
    .dropdown { position: fixed; left: 10px; right: 10px; top: 10px; min-width: 0; border-radius: 16px; padding: 4px 0 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
    .dropdown-head { font-size: 16px; padding: 16px 20px 12px; }
    .dropdown a, .dropdown button { padding: 14px 20px; font-size: 16px; }

    /* Search strip + big yellow button */
    .m-top { background: var(--bg); padding: 10px 10px 0; }
    .m-search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid #c4c4c4; border-radius: 22px; padding: 0 6px 0 14px; height: 44px; }
    .m-search svg { width: 22px; height: 22px; color: #9b9b9b; flex: none; }
    .m-search input { flex: 1; border: 0; outline: none; font: inherit; font-size: 16px; min-width: 0; background: none; color: var(--text); }
    .m-search .geo-toggle { margin: 0; }
    .m-add { display: flex; align-items: center; justify-content: center; position: relative; margin: 10px 0 0; height: 58px; border-radius: 29px; background: var(--yellow); color: #555; font-size: 17px; box-shadow: 0 0 0 10px var(--bg); }
    .m-add:hover { text-decoration: none; }
    .m-add-plus { position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #f1dc00; color: #b8a900; font-size: 30px; }
    .m-top + .m-only, .m-top + .container { margin-top: 10px; }
    .m-cat-head { display: flex; align-items: center; gap: 16px; background: #e8f2fe; padding: 12px 16px; font-size: 16px; color: #333; }
    .m-cat-head img { width: 40px; height: 40px; object-fit: contain; }
    .m-cat-head .chev { width: 22px; height: 22px; margin-left: auto; color: var(--primary); }

    /* Listings: one ad per row, photo on the left */
    .listing { margin-top: 12px; gap: 12px; }
    .listing .panel.filters { display: none; margin-top: 10px; }
    .listing .panel.filters.open { display: block; }
    .listing-head h1 { font-size: 18px; }
    .ad-grid, .ad-grid.wide, .listing .ad-grid { grid-template-columns: 1fr !important; gap: 0; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
    .ad-card { flex-direction: row; border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px dashed #dcdcdc; }
    .ad-card:hover { box-shadow: none; }
    .ad-card .thumb { width: 120px; flex: none; aspect-ratio: 1; }
    .ad-card .body { padding: 10px 12px; }
    .ad-card .title { order: -1; font-weight: 400; font-size: 15px; }
    .ad-card .price { font-size: 16px; }
    .section-head h2 { font-size: 18px; }

    /* Ad page: sticky call bar */
    .ad-layout { margin-top: 12px; gap: 14px; }
    .gallery-main { border-radius: 0; margin: 0 -16px; }
    .ad-main { display: contents; }
    .ad-layout .gallery-main { order: 1; }
    .ad-layout .gallery-thumbs { order: 2; margin-top: 0; }
    .ad-layout > aside { order: 3; }
    .ad-layout .ad-desc { order: 4; margin-top: 0; }
    .side-actions .btn-yellow, .side-actions .fav-form, .side-actions > a.btn-light:not([target]) { display: none; }
    .m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -2px 12px rgba(0, 0, 0, .12); }
    .m-bar > .btn, .m-bar > a.btn { flex: 1; min-height: 48px; font-size: 16px; }
    .m-bar .fav-form .btn, .m-bar > a.btn-light { width: 56px; flex: none; font-size: 20px; }
    .m-bar .fav-form { flex: none; }
    body:has(.m-bar) .site-footer { padding-bottom: 90px; }

    /* Forms */
    .auth-card { margin: 20px auto; background: var(--white); padding: 24px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
    .auth-switch span { font-size: 15px; }
    .form-card { margin: 0 -16px; border-radius: 0; box-shadow: none; }
    .post-head h1 { font-size: 22px; }
    .step-bar > span:first-child { padding: 16px; }
    .price-row { grid-template-columns: 150px 96px; }

    /* Account */
    .account { gap: 12px; }
    .account-nav { display: flex; overflow-x: auto; border: 0; border-radius: 10px; }
    .account-nav h2 { display: none; }
    .account-nav a { white-space: nowrap; border-bottom: 3px solid transparent; padding: 12px 14px; }
    .account-nav a.active { border-bottom-color: var(--primary); background: none; }

    /* Footer: icons and logo left, links right */
    .site-footer { background: var(--bg); border-top: 0; margin-top: 24px; padding: 16px 0; }
    .footer-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .footer-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-links { flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; text-align: right; }
}

/* ---------- All-categories landing page ---------- */
.directory-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 22px; }
.directory-head h1 { margin: 0 0 4px; font-size: 30px; color: var(--ink); }
.directory-head p { margin: 0; }
.directory-total { display: inline-grid; place-items: center; min-width: 26px; height: 22px; margin-left: 6px; padding: 0 7px; border-radius: 11px; background: rgba(255, 255, 255, .25); font-size: 13px; }
.directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.directory-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--soft-line); border-radius: 16px; padding: 18px 18px 14px; transition: box-shadow .15s, border-color .15s; }
.directory-card:hover { border-color: #c9d1dc; box-shadow: 0 10px 26px rgba(31, 42, 61, .08); }
.directory-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--soft-line); color: var(--ink); }
.directory-card-head:hover { text-decoration: none; }
.directory-card-head:hover strong { color: var(--primary); }
.directory-card-head img { width: 48px; height: 48px; object-fit: contain; flex: none; padding: 6px; border-radius: 12px; background: var(--soft); }
.directory-card-head strong { display: block; font-size: 17px; line-height: 1.3; }
.directory-card-head small { color: var(--muted); font-size: 13px; }
.directory-card ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.directory-card li a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text); font-size: 14px; }
.directory-card li a:hover { background: var(--soft); color: var(--primary); text-decoration: none; }
.directory-card .count { color: var(--muted); font-size: 13px; }
.directory-more { margin-top: 10px; font-size: 14px; font-weight: 600; }
@media (max-width: 1000px) { .directory { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .directory { grid-template-columns: 1fr; gap: 12px; }
    .directory-head h1 { font-size: 24px; }
    .directory-head .btn { width: 100%; justify-content: center; }
}

/* Search suggestions under the search bar */
.suggest { position: fixed; z-index: 60; background: var(--white); border: 1px solid var(--soft-line); border-radius: 16px; box-shadow: 0 14px 40px rgba(31, 42, 61, .16); padding: 6px; overflow-y: auto; overscroll-behavior: contain; color: var(--text); font-size: 14px; }
.suggest[hidden] { display: none; }
.suggest-heading { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 10px 10px 4px; }
.suggest-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.suggest-item:hover, .suggest-item.active { background: var(--soft); }
.suggest-item mark { background: none; color: var(--primary); font-weight: 700; }
.suggest-all { color: var(--link); }
.suggest-all b { color: var(--ink); margin-left: 4px; }
.suggest-category small { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.suggest-thumb { flex: 0 0 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.suggest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-text small { color: var(--muted); font-size: 12px; }
.suggest-price { flex: 0 0 auto; color: var(--ink); font-size: 13px; }
.suggest-empty { padding: 12px 10px; color: var(--muted); }

@media (max-width: 480px) {
    .auth-card { margin: 0 -16px; max-width: none; border-radius: 0; box-shadow: none; }
}
