:root{--blue:#1558a6;--ink:#1d2b3c;--muted:#6d7785;--soft:#f3f6fa;--line:#dfe6ef;--card:#fff}
*{box-sizing:border-box}html{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:#f8fafc}
body{margin:0;line-height:1.52}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%}
header{background:#fff;border-bottom:1px solid var(--line)}.wrap{width:min(1180px,94%);margin:auto}.header{padding:19px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.logo{font-weight:850;font-size:28px;letter-spacing:-1.3px;color:#0e3b73}.logo span{color:#f6a526}.lang{display:flex;gap:12px}.lang a{padding:5px 8px;border-radius:6px}.lang a.active{background:#e7f1ff;font-weight:750}
.hero{margin:24px auto 27px;background:linear-gradient(110deg,#134e93,#1e74bb);color:#fff;padding:28px 30px;border-radius:14px}.hero h1{font-size:29px;margin:0 0 15px}.form{display:grid;grid-template-columns:1fr 210px 135px;gap:9px}.form input,.form select{font-size:16px;background:#fff;border:1px solid #becfe3;border-radius:8px;padding:12px 13px;min-width:0}.btn{font-size:15px;font-weight:700;background:#ffbd4e;color:#213047;border:0;border-radius:8px;padding:12px 18px;cursor:pointer}.btn:hover{background:#ffce76}
.banner{background:#fff9e8;border:1px solid #ebd398;border-radius:7px;padding:10px 14px;margin:14px 0;color:#69531e;font-size:13px}.section{padding:10px 0 20px}.section h2{font-size:23px;margin:10px 0 17px}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.cat{border:1px solid var(--line);background:var(--card);border-radius:11px;padding:12px;display:flex;align-items:center;gap:10px;min-height:82px;font-weight:650;font-size:14px;color:var(--ink)}.cat img{height:46px;width:46px;object-fit:contain;flex-shrink:0}.cat:hover,.ad:hover{border-color:#8cbbe6;box-shadow:0 5px 18px #16365d13;text-decoration:none}.cat .symbol{width:42px;height:42px;display:grid;place-items:center;border-radius:7px;background:#e6f1fc;color:#2774b9;font-weight:800}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.ad{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;color:var(--ink);display:block}.thumb{height:178px;background:#f0f3f7;display:grid;place-items:center}.thumb img{height:100%;width:100%;object-fit:cover}.thumb img.icon-image{width:90px;height:90px;object-fit:contain}.thumb .no-photo{color:#7d8999;font-weight:700}.ad .content{padding:13px 14px}.ad h3{font-size:16px;margin:0 0 6px;line-height:1.35;min-height:43px}.price{font-size:18px;color:#0f6b4c;font-weight:800}.meta{font-size:12px;color:var(--muted);margin:9px 0 0}.crumb{font-size:14px;color:var(--muted);margin:22px 0}.detail{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px}.detail h1{font-size:27px;margin:0 0 10px}.detail .large-photo{width:100%;height:320px;object-fit:contain;background:var(--soft);border-radius:8px}.description{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:14px}.contact{margin-top:20px;padding:14px;border-radius:9px;background:#eff7ff}.contact a{overflow-wrap:anywhere}.pagination{display:flex;gap:10px;align-items:center;justify-content:center;margin:28px 0}.pagination a{padding:8px 13px;background:#fff;border:1px solid var(--line);border-radius:7px}.select-row{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap}.select-row select{padding:7px;border:1px solid var(--line);border-radius:8px}.muted{color:var(--muted)}.empty{padding:32px;text-align:center;background:#fff;border-radius:12px;border:1px solid var(--line)}footer{margin-top:36px;padding:21px 0;background:#eef2f7;color:#64748b;font-size:13px}
@media(max-width:960px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.header{padding:13px 0}.hero{padding:19px 17px}.hero h1{font-size:24px}.form{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:1fr}.detail{grid-template-columns:1fr}.thumb{height:210px}.cat{font-size:12px}.panel{padding:17px}}
/* CZ-only public site + account workflows */
.top-nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.top-nav a{font-size:14px;font-weight:650}.nav-cta{color:#213047!important}.inline-form{display:inline}.link-button{background:none;border:0;color:var(--blue);font:inherit;padding:4px;cursor:pointer;text-decoration:underline}.flash-holder .banner{margin:15px 0}.banner-warn{background:#fff0ef;border-color:#dca4a0}.account-form{margin:26px auto;max-width:760px}.account-form.narrow{max-width:480px}.account-form form{display:grid;gap:16px}.account-form label{font-weight:650;font-size:14px;display:grid;gap:6px}.account-form input,.account-form select,.account-form textarea{width:100%;border:1px solid #cbd6e2;border-radius:8px;padding:11px 13px;font:16px system-ui}.account-form .btn{justify-self:start}.data-table{width:100%;border-collapse:collapse}.data-table td,.data-table th{padding:11px;border-bottom:1px solid #e7edf4;text-align:left}.data-table{font-size:14px}.data-table th{font-weight:750}.data-table tr:last-child td{border-bottom:0}.hidden-honey{position:absolute;left:-99999px;height:0;overflow:hidden}.danger{background:#fce9e5;color:#8d241a}.top-label{font-weight:800;color:#b96d09}.image-placeholder{display:grid;place-items:center;color:#687a8e;background:#f0f3f7}.image-gallery,.manage-gallery{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.image-gallery img{width:95px;height:95px;object-fit:cover;border-radius:6px}.manage-photo{width:130px}.manage-photo img{width:130px;height:120px;object-fit:cover}.manage-photo form{display:block}.account-form hr{border:0;border-top:1px solid #dde5ee;margin:24px 0}.description{overflow-wrap:anywhere}.panel .data-table{overflow-x:auto}h1,h2,h3{overflow-wrap:anywhere}
@media(max-width:650px){.top-nav{gap:9px}.nav-cta{padding:9px}.data-table td,.data-table th{padding:6px;font-size:12px}.account-form{padding:16px}.header{align-items:flex-start}}

/* Original Inzertos.cz identity from the historical frontend, untouched artwork. */
a.logo{display:inline-flex;align-items:center;flex-shrink:0}
a.logo img{display:block;width:176px;height:auto;max-height:60px;object-fit:contain}
@media(max-width:650px){a.logo img{width:150px;max-height:52px}}

/* V08: odkaz pro obnovu hesla vpravo v horní navigaci. */
.top-nav{margin-left:auto;justify-content:flex-end}
.top-nav .nav-password{margin-left:auto;white-space:nowrap}
@media(max-width:650px){.top-nav{width:100%;margin-left:0;justify-content:flex-end}}

/* V14: masked public seller contacts, reveal via explicit POST only */
.contact-line{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:12px 0}
.contact-reveal-form{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin:0}
.contact-preview{font-weight:650;overflow-wrap:anywhere}
.contact-reveal-form .link-button{font-size:14px;white-space:normal}
.contact-reveal-form .link-button:disabled{opacity:.65;cursor:wait}

/* V15: legacy paragraph breaks, private seller email and GDPR page. */
.description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.seller-message-panel{margin:20px 0 0;max-width:850px}
.seller-message-panel h2{margin-top:0}
.seller-message-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.seller-message-form label{display:flex;flex-direction:column;gap:6px;font-weight:650;font-size:14px}
.seller-message-form input,.seller-message-form textarea{width:100%;min-width:0;border:1px solid #cbd6e2;border-radius:8px;padding:11px 13px;font:16px system-ui}
.seller-message-form .full{grid-column:1/-1}
.legal-page{margin:28px auto;max-width:960px;line-height:1.75}
.legal-page h1{margin-top:0}.legal-page p{margin:0 0 14px}.legal-page ul,.legal-page ol{padding-left:25px}
@media(max-width:650px){.seller-message-form{grid-template-columns:1fr}}

/* V16: progressive enhancement - native POST/303, independent of AJAX. */
.contact-reveal-native-form{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin:0}
.contact-reveal-native-form .link-button{font-size:14px;white-space:normal}

/* V17: restored Czech-only historic informational SEO and footer sections. */
.legacy-seo{background:#fff;text-align:center;padding:38px 0 25px;margin-top:40px}
.legacy-seo h2{color:#447af0;font-size:clamp(21px,2vw,33px);line-height:1.25;letter-spacing:-.02em;margin:4px 0 31px;text-transform:uppercase}
.legacy-seo p{color:#687588;font-size:16px;line-height:1.7;margin:0 auto 17px;max-width:1650px}
.legacy-seo p:last-child{font-size:19px;margin-bottom:0}
.legacy-footer{margin:0;background:#f1f5ff;color:#8c9aac;padding:77px 0 25px}
.legacy-footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px;min-height:166px;align-items:start}
.legacy-footer-menu h2{font-size:20px;font-weight:750;color:#447af0;margin:0 0 25px}
.legacy-footer-menu a{display:block;color:#8c9aac;text-decoration:none;margin:8px 0;font-size:15px;line-height:1.3}
.legacy-footer-menu a:hover,.legacy-footer-menu a:focus-visible{text-decoration:underline;color:#356ad0}
.legacy-footer-logo{justify-self:center;display:block;margin-top:5px}
.legacy-footer-logo img{width:200px;height:auto;object-fit:contain;display:block}
.legacy-copyright{text-align:center;margin:23px 0 0;font-size:15px;color:#92a1b5}
@media(max-width:650px){.legacy-seo{padding:28px 0 24px}.legacy-seo h2{font-size:23px;margin-bottom:19px}.legacy-seo p{font-size:14px}.legacy-seo p:last-child{font-size:16px}.legacy-footer{padding:36px 0 23px}.legacy-footer-grid{grid-template-columns:1fr;justify-items:center;text-align:center;gap:18px}.legacy-footer-menu h2{margin:0 0 12px}.legacy-footer-logo{margin-top:7px}.legacy-footer-space{display:none}.legacy-copyright{margin-top:25px}}

/* V19: výběr kategorií přes původní ikonky při vkládání i úpravě inzerátu. */
.ad-category-input{margin:14px 0 19px}
.ad-category-label{display:block;font-weight:700;margin:0 0 7px;color:var(--ink)}
.ad-category-input [hidden]{display:none!important}
.ad-category-picker{max-width:740px}
.ad-category-trigger{font:inherit;width:100%;min-height:81px;background:#f7faff;border:2px dashed #8fb6e5;border-radius:12px;padding:12px 16px;display:flex;align-items:center;gap:13px;text-align:left;cursor:pointer;color:var(--ink);transition:background .15s,border-color .15s}
.ad-category-trigger:hover,.ad-category-trigger:focus-visible{background:#ebf4ff;border-color:#236bbb;outline-offset:3px}
.ad-category-trigger.is-selected{background:#eff8f2;border:2px solid #72a88b}
.ad-category-trigger-icon{display:grid;place-items:center;background:#e4efff;color:#1b60ac;font-size:31px;width:57px;height:54px;flex-shrink:0;border-radius:9px}
.ad-category-trigger-content{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ad-category-trigger-content strong{font-size:17px}
.ad-category-trigger-content small{font-size:13px;color:#65778c;white-space:normal;overflow-wrap:anywhere}
.ad-category-trigger-arrow{font-size:36px;color:#49759e;line-height:1}
.ad-category-alternate{font:inherit;background:transparent;border:0;color:var(--blue);text-decoration:underline;cursor:pointer;padding:8px 1px;font-size:13px}
.ad-category-select-fallback select{display:block;width:min(100%,740px);padding:12px;font:16px system-ui;border:1px solid #b3c2d3;border-radius:8px;background:#fff}
.ad-category-dialog-open{overflow:hidden}
.ad-category-dialog{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:18px}
.ad-category-overlay{background:rgba(14,30,51,.72);border:0;position:absolute;inset:0;width:100%;cursor:default}
.ad-category-dialog-panel{position:relative;z-index:1;background:#fff;border-radius:13px;width:min(100%,1040px);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 17px 75px #061c3580;padding:24px}
.ad-category-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid #e4eaf1;padding-bottom:16px}
.ad-category-dialog-header h2{font-size:25px;color:#174f8e;margin:0 0 3px}
.ad-category-dialog-header p{font-size:14px;color:var(--muted);margin:0}
.ad-category-close{font:32px system-ui;border:0;background:#edf3fa;color:#264e7c;border-radius:8px;width:43px;height:43px;cursor:pointer;line-height:1}
.ad-category-dialog-navigation{display:flex;gap:15px;align-items:center;margin:16px 0;color:#3a5676;min-height:38px}
.ad-category-back{font:inherit;font-weight:700;color:var(--blue);background:#eff6ff;border:1px solid #bdd7ef;border-radius:8px;padding:8px 13px;cursor:pointer;white-space:nowrap}
.ad-category-path{font-size:14px;font-weight:700;overflow-wrap:anywhere}
.ad-category-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.ad-category-tile{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;min-height:142px;padding:14px 9px;border-radius:11px;background:#fff;border:1px solid #dfe5ed;color:#253a50;cursor:pointer;text-align:center;font:inherit;transition:border-color .15s,box-shadow .15s,transform .15s}
.ad-category-tile:hover,.ad-category-tile:focus-visible{border-color:#73ace8;box-shadow:0 5px 18px #2369ad20;transform:translateY(-2px);outline-offset:2px}
.ad-category-tile-picture{height:76px;width:100%;display:grid;place-items:center}
.ad-category-tile-picture img{display:block;max-width:100%;height:70px;width:95px;object-fit:contain}
.ad-category-tile-name{font-size:14px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.ad-category-no-icon{font-size:44px;color:#a8bed3}
.ad-category-dialog-bottom{padding-top:14px}
.ad-category-use-current{font:inherit;font-weight:700;background:#eaf4ff;color:#175495;padding:10px 15px;border:1px solid #b9d5f1;border-radius:8px;cursor:pointer}
.ad-category-dialog-bottom p{color:var(--muted);margin:5px 0}
@media(max-width:850px){.ad-category-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:580px){.ad-category-dialog{padding:7px}.ad-category-dialog-panel{padding:13px;max-height:calc(100dvh - 14px)}.ad-category-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ad-category-tile{min-height:128px;padding:10px 6px}.ad-category-tile-picture{height:61px}.ad-category-tile-picture img{height:58px;width:75px}.ad-category-tile-name{font-size:13px}.ad-category-dialog-header h2{font-size:20px}.ad-category-trigger-content strong{font-size:15px}}

/* V20: public search suggestions and legacy Czech region/district + numeric price filters. */
.ad-filter-form{grid-template-columns:minmax(0,1fr) minmax(170px,230px) 125px;align-items:start}
.search-suggest-wrap{position:relative;min-width:0}
.search-suggest-wrap>input{display:block;width:100%}
.search-suggest-list[hidden]{display:none!important}
.search-suggest-list{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #aac4df;border-radius:9px;box-shadow:0 12px 30px #0c2a4950;max-height:315px;overflow:auto}
.search-suggest-item{font:inherit;display:block;width:100%;background:#fff;border:0;border-bottom:1px solid #eaf0f8;color:#1a3552;text-align:left;padding:11px 13px;cursor:pointer;overflow-wrap:anywhere}
.search-suggest-item:hover,.search-suggest-item.is-active{background:#e7f2ff;color:#13518d}
.search-suggest-item:last-child{border-bottom:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ad-advanced-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ad-advanced-filters label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:13px;font-weight:650;color:#edf5ff}
.ad-advanced-filters select,.ad-advanced-filters input{width:100%;background:#fff;color:#1d2b3c;font-size:15px;padding:10px 12px}
.ad-advanced-filters select:disabled{opacity:.72;cursor:not-allowed}
.ad-location-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.ad-location-fields select:disabled{opacity:.68;background:#edf1f6}
.ad-location{color:#465f79;font-size:14px;margin:12px 0}
@media(max-width:850px){.ad-advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.ad-filter-form{grid-template-columns:1fr}.ad-advanced-filters{grid-template-columns:1fr 1fr}.search-submit{width:100%}.ad-location-fields{grid-template-columns:1fr}}
@media(max-width:390px){.ad-advanced-filters{grid-template-columns:1fr}}

/* V21: paid top-up checkout. No media/photo directories touched. */
.top-purchase{max-width:900px;margin:24px auto;padding:26px}
.top-purchase h1{margin-top:0}
.top-payment-form{display:grid;gap:15px;max-width:550px}
.top-payment-form label{font-weight:700;display:grid;gap:9px}
.top-payment-form select{min-height:48px;width:100%;max-width:100%;padding:9px 12px;border:1px solid #bac7df;border-radius:8px;background:#fff;font-size:15px}
.top-payment-form .btn{justify-self:start}
.payment-receipt{max-width:760px;margin:24px auto;padding:30px}
.payment-receipt .data-table th{text-align:left;width:36%}
@media(max-width:600px){.top-purchase,.payment-receipt{padding:16px}.top-payment-form select{font-size:14px}}
@media print{header,.hero,.top-nav,.site-footer,.no-print,.flash-holder,footer{display:none!important}.payment-receipt{max-width:none;margin:0;padding:0;border:none;box-shadow:none}body{background:#fff!important}}

/* V23: improved public search design + category filter with icons. */
.hero{background:linear-gradient(135deg,#14579f 0%,#1f70b8 58%,#2f8bd6 100%);padding:28px;border-radius:18px;box-shadow:0 18px 50px #0d3a6d21}
.hero-heading{max-width:920px;margin:0 0 18px}
.hero-heading h1{margin:0 0 8px;font-size:clamp(29px,3vw,43px);line-height:1.1}
.hero-heading p{margin:0;color:#e5f2ff;font-size:16px;line-height:1.65;max-width:880px}
.ad-filter-form{grid-template-columns:minmax(0,1.3fr) minmax(250px,320px) 145px;gap:12px;background:rgba(255,255,255,.14);padding:18px;border-radius:16px;backdrop-filter:blur(4px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.09)}
.ad-filter-form>input,.ad-filter-form>select,.ad-filter-form .search-suggest-wrap>input,.ad-filter-form .search-category-trigger,.ad-filter-form .search-category-picker select{min-height:58px;border-radius:12px;border:1px solid #d0def0;box-shadow:0 7px 22px #12396210}
.search-submit{min-height:58px;border-radius:12px;font-size:17px;align-self:stretch}
.search-suggest-wrap>input{padding-inline:17px}
.ad-advanced-filters{gap:12px;margin-top:2px}
.ad-advanced-filters label{gap:6px;font-size:12px;letter-spacing:.03em;text-transform:uppercase;color:#eff7ff}
.ad-advanced-filters select,.ad-advanced-filters input{min-height:52px;border-radius:11px;border:1px solid #d0def0;padding:11px 14px;box-shadow:0 7px 22px #12396210}

.search-category-picker{position:relative;min-width:0}
.search-category-picker select{display:block;width:100%;padding:12px 14px;background:#fff;font-size:16px}
.search-category-picker.is-enhanced select{position:absolute;inset:0;opacity:0;pointer-events:none}
.search-category-trigger{font:inherit;width:100%;display:flex;align-items:center;gap:12px;background:#fff;color:#183351;padding:9px 14px;text-align:left;cursor:pointer;border:1px solid #d0def0}
.search-category-trigger:hover,.search-category-trigger:focus-visible{border-color:#6da7de;outline-offset:2px}
.search-category-trigger.is-selected{background:#eff8f2;border-color:#72a88b}
.search-category-trigger-media,.search-category-option-media{width:48px;height:40px;border-radius:10px;background:#eff5fc;display:grid;place-items:center;flex-shrink:0;overflow:hidden}
.search-category-trigger-media img,.search-category-option-media img{display:block;width:100%;height:100%;object-fit:contain;padding:4px}
.search-category-trigger-media span,.search-category-option-generic{font-size:21px;color:#4576ab}
.search-category-trigger-copy{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.search-category-trigger-copy small{font-size:11px;font-weight:700;color:#69819a;letter-spacing:.05em;text-transform:uppercase}
.search-category-trigger-copy strong{font-size:15px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-category-trigger-arrow{font-size:18px;color:#5d7693;line-height:1;flex-shrink:0}
.search-category-dialog-bottom{display:flex;flex-direction:column;gap:10px}
.search-category-dialog-actions{display:flex;flex-wrap:wrap;gap:10px}

@media(max-width:860px){
  .hero{padding:22px}
  .ad-filter-form{grid-template-columns:minmax(0,1fr) minmax(220px,280px) 130px}
}
@media(max-width:650px){
  .hero{padding:18px;border-radius:14px}
  .hero-heading{margin-bottom:14px}
  .hero-heading p{font-size:14px}
  .ad-filter-form{grid-template-columns:1fr;padding:14px}
  .ad-advanced-filters{grid-template-columns:1fr 1fr}
  .search-submit{width:100%}
}
@media(max-width:450px){
  .search-category-trigger-copy strong{font-size:14px}
  .search-category-option{padding-inline:9px}
  .search-category-option.is-child{padding-left:15px}
}


/* V25: keep the public search category tree strictly hierarchical.
   The tile/dialog display rules above would otherwise override HTML [hidden]. */
.search-category-picker [hidden]{display:none!important}
.search-category-picker .ad-category-dialog-panel{scrollbar-gutter:stable}
.search-category-picker .ad-category-path{display:block}
.search-category-picker .ad-category-use-current{max-width:100%;overflow-wrap:anywhere}

/* V29: truthful ad expiration notice; original ad/photographs are not deleted. */
.ad-expiration-info{margin:3px 0 15px;padding:13px 15px;border:1px solid #bdd5ef;border-left:4px solid #276eb5;border-radius:9px;background:#f0f7ff;color:#27425f;font-size:14px;line-height:1.6}
.ad-expiration-info strong{color:#185491}

/* INZERTOS V32: visible photo upload and accessible photo sorting. */
.photo-upload-box{border:1px solid #d9e4ee;border-radius:12px;padding:18px;background:#f8fbff}
.photo-upload-box h2{margin:0 0 8px;font-size:19px}
.account-form .photo-dropzone{border:2px dashed #78a2cf;border-radius:12px;padding:22px 16px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;background:#fff;cursor:pointer;color:#24446d;font-size:16px}
.photo-dropzone span{font-size:13px;font-weight:400;color:#596e83}
.photo-dropzone:focus-within,.photo-dropzone.is-drag-over{outline:3px solid #8fb5df;outline-offset:2px;background:#f0f7ff}
.account-form .photo-dropzone input[type=file]{width:min(100%,500px);font-size:14px;background:#f9fbfd;cursor:pointer}
.photo-upload-status{font-size:13px;color:#4b657e;min-height:0}
.photo-upload-status.is-error{color:#9d2d1c;font-weight:700}
.photo-selection-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.photo-selection-preview[hidden]{display:none}
.photo-selected-thumb{border:1px solid #d1dbe8;border-radius:8px;overflow:hidden;width:94px;background:#fff}
.photo-selected-thumb img{width:92px;height:82px;object-fit:cover;display:block}
.photo-selected-thumb span{display:block;font-size:11px;text-align:center;padding:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-add-form{margin-top:12px}
.photo-sort-gallery{gap:12px;align-items:stretch;touch-action:pan-y}
.manage-gallery .photo-sort-item{display:flex;flex-direction:column;gap:6px;width:144px;border:1px solid #d8e1eb;border-radius:10px;padding:7px;background:#fff;box-sizing:border-box}
.photo-sort-item.is-moving{outline:2px solid #4382c8;box-shadow:0 8px 18px #1f52802b;opacity:.82}
.photo-sort-item img,.photo-sort-item .photo-missing{width:128px;height:112px;object-fit:cover;border-radius:6px}
.photo-sort-item .photo-missing{background:#f3f5f8;font-size:12px;display:grid;place-items:center;text-align:center}
.photo-sort-item .photo-sort-number{display:block;font-size:12px;font-weight:700;min-height:18px;color:#344b62;text-align:center}
.photo-sort-item:first-child .photo-sort-number{color:#195d38}
.photo-drag-handle{border:1px solid #c5d7eb;background:#edf5ff;border-radius:7px;cursor:grab;touch-action:none;font-size:19px;padding:4px 9px;line-height:1.2;color:#245584}
.photo-drag-handle:active{cursor:grabbing}
.photo-drag-handle span{font-size:12px;vertical-align:middle}
.photo-sort-actions{display:flex;gap:6px;justify-content:space-between}
.photo-sort-actions button{flex:1;cursor:pointer;border:1px solid #ccd8e5;background:#f6f9fc;border-radius:6px;padding:4px 8px;color:#365b80;font-size:18px}
.photo-sort-actions button:disabled{opacity:.3;cursor:default}
.photo-sort-item form{display:block;text-align:center}
.photo-sort-item .link-button{padding:3px 0;font-size:12px}
[data-photo-sort-form]{margin:12px 0;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
[data-photo-sort-form][hidden]{display:none}
[data-photo-sort-form] .btn{justify-self:auto}
@media(max-width:540px){.manage-gallery .photo-sort-item{width:calc(50% - 6px);max-width:190px}.photo-sort-item img,.photo-sort-item .photo-missing{width:100%;height:130px}.photo-upload-box{padding:12px}}

.photo-sort-item img[data-photo-drag-image]{cursor:grab;touch-action:none}.photo-sort-item img[data-photo-drag-image]:active{cursor:grabbing}
.account-form [data-photo-sort-form]{display:flex}

/* V33: reorder previews BEFORE first posting; handles usable by mouse, touch and keyboard. */
.photo-selection-preview{gap:12px;margin-top:14px}
.photo-selection-preview .photo-selected-thumb{display:flex;flex-direction:column;gap:4px;width:143px;min-width:0;box-sizing:border-box;padding:6px;border-radius:10px}
.photo-selection-preview .photo-selected-thumb img{width:100%;height:107px;object-fit:cover;border-radius:6px}
.photo-selection-preview .photo-selected-thumb.is-cover{border:2px solid #347f5c;background:#f0fbf5}
.photo-selection-preview .photo-selected-thumb.is-moving{opacity:.8;outline:3px solid #387bb9}
.photo-selection-preview .photo-selected-handle{display:block;width:100%;padding:6px 4px;border-radius:6px;border:1px solid #b1cee9;background:#e9f3ff;font-size:12px;font-weight:700;cursor:grab;touch-action:none;user-select:none}
.photo-selection-preview .photo-selected-handle:active{cursor:grabbing}
.photo-selection-preview [data-photo-position]{font-size:12px;color:#235736;text-align:center}
.photo-selection-preview .photo-selected-name{font-size:11px;padding:0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-selection-preview .photo-selected-actions{display:flex;justify-content:center;gap:5px;margin-top:auto}
.photo-selection-preview .photo-selected-actions button{background:#f4f8fe;border:1px solid #c0cede;border-radius:6px;cursor:pointer;min-width:32px;height:32px;font-size:18px}
.photo-selection-preview .photo-selected-actions button:disabled{opacity:.35;cursor:default}
.photo-selection-preview .photo-selected-actions .photo-selected-remove{color:#a32624;background:#fff3f3}
.photo-order-hint{font-size:13px;color:#365b80;margin:6px 0}
.photo-order-hint[hidden]{display:none}
@media(max-width:560px){.photo-selection-preview .photo-selected-thumb{width:calc(50% - 6px);max-width:190px}.photo-selection-preview .photo-selected-thumb img{height:126px}}

/* V34 – safe, accessible password reset overlay. The ad form never unmounts. */
.ad-submit-feedback,.password-recovery-feedback{padding:12px 14px;border:1px solid #b6d5c2;background:#effaf1;border-radius:9px;font-size:14px;color:#214d35}
.ad-submit-feedback.is-error,.password-recovery-feedback.is-error{border-color:#e9b0a5;background:#fff2ef;color:#882e24}
.password-recovery-dialog[hidden],.ad-submit-feedback[hidden],.password-recovery-feedback[hidden]{display:none!important}
.password-recovery-dialog{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:18px}
.password-recovery-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.password-recovery-panel{position:relative;max-width:580px;width:100%;background:#fff;border-radius:12px;box-shadow:0 16px 60px #0004;padding:25px;max-height:calc(100dvh - 36px);overflow-y:auto}
.password-recovery-panel h2{font-size:21px;margin:0}
.password-recovery-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.password-recovery-close{font-size:27px;line-height:1;background:none;border:0;color:#607087;cursor:pointer;padding:2px 8px}
.password-recovery-panel form{display:grid;gap:16px;margin-top:18px}
.password-recovery-panel label{display:grid;gap:5px;font-weight:650;font-size:14px}
.password-recovery-panel input[type="email"]{min-width:0;width:100%;padding:12px;font-size:16px;border:1px solid #cbd6e2;border-radius:8px}
.password-recovery-actions{display:flex;gap:12px;flex-wrap:wrap}
.password-recovery-actions .btn{flex:0 1 auto}
.btn-muted{background:#e8edf3;color:#243348}.btn-muted:hover{background:#d4dee8}
.account-signup-fields .link-button{font-size:inherit;font-weight:700}
@media(max-width:560px){.password-recovery-panel{padding:17px}.password-recovery-actions .btn{width:100%}}

/* V36 — homepage TOP placements directly below the category tiles. */
.featured-section{padding-top:30px;padding-bottom:34px}
.featured-section>h2{text-align:center;text-transform:uppercase;color:#477ef0;font-size:30px;font-weight:850;letter-spacing:.2px;margin:0 0 30px}
.featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.featured-card{display:flex;flex-direction:column;min-width:0;background:#fff;color:#243448;border-radius:31px;overflow:hidden;box-shadow:0 3px 18px rgba(23,37,59,.10);transition:box-shadow .15s ease,transform .15s ease;text-decoration:none}
.featured-card:hover{box-shadow:0 7px 22px rgba(23,37,59,.16);transform:translateY(-2px);text-decoration:none}
.featured-image{height:205px;position:relative;overflow:hidden;background:#f0f3f9;display:flex;align-items:center;justify-content:center}
.featured-image>img{width:100%;height:100%;display:block;object-fit:cover}
.featured-image>img.featured-image-logo{width:85%;height:auto;max-height:76%;object-fit:contain}
.featured-badge{position:absolute;top:0;right:0;background:#477ef0;color:#fff;border-radius:0 0 0 28px;padding:10px 19px;font-size:15px;font-weight:750;line-height:1.1}
.featured-content{padding:20px 20px 16px;flex:1;display:flex;flex-direction:column;gap:12px}
.featured-content h3{margin:0;color:#447cf0;font-size:18px;line-height:1.45;font-weight:800;min-height:53px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.featured-facts{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:9px 13px;font-size:13px;line-height:1.5;margin-top:auto}
.featured-facts span{min-width:0;overflow-wrap:anywhere}
.featured-facts strong{color:#233044;white-space:nowrap;margin-left:auto;font-weight:800}
.featured-footer{display:grid;grid-template-columns:1fr 1fr;align-items:center;text-align:center;border-top:1px solid #e0e0e0;color:#617087;font-size:12px;min-height:48px}
.featured-footer>span{padding:12px 5px}
.featured-footer>span+span{border-left:1px solid #ddd}
.featured-views>span{font-size:16px;vertical-align:-1px;margin-right:5px}
@media(max-width:1100px){.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.featured-image{height:230px}}
@media(max-width:650px){.featured-section{padding-top:23px}.featured-section>h2{font-size:24px;margin-bottom:22px}.featured-grid{grid-template-columns:1fr;gap:16px}.featured-image{height:220px}.featured-card{border-radius:24px}.featured-content h3{min-height:0}}
@media(prefers-reduced-motion:reduce){.featured-card{transition:none}.featured-card:hover{transform:none}}

/* Upozornění na dočasnou údržbu: viditelné také na mobilu. */
.site-maintenance-notice{padding:11px 14px;text-align:center;background:#fff0d0;color:#714400;border-bottom:1px solid #e9cb80;font-size:15px;line-height:1.4;font-weight:700}


/* V56: search submit follows ALL filters. PC: 2 rows with submit at bottom-right.
   Mobile: stacked search/category, 2-column filter pairs, full-width submit last. */
.ad-filter-form{grid-template-columns:minmax(0,1.75fr) minmax(240px,1fr);align-items:start}
.ad-advanced-filters{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(132px,.75fr);align-items:end}
.ad-advanced-filters .search-submit{grid-column:auto;width:100%;min-height:52px;align-self:end;margin:0;white-space:nowrap}
.ad-advanced-filters select,.ad-advanced-filters input{min-width:0;max-width:100%}
@media(max-width:1000px){
  .ad-filter-form{grid-template-columns:minmax(0,1.35fr) minmax(200px,1fr)}
  .ad-advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ad-advanced-filters .search-submit{grid-column:1/-1;min-height:55px}
}
@media(max-width:650px){
  .ad-filter-form{grid-template-columns:minmax(0,1fr)}
  .ad-advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ad-advanced-filters select,.ad-advanced-filters input{font-size:14px;padding-left:9px;padding-right:9px}
  .ad-advanced-filters .search-submit{min-height:58px}
}
@media(max-width:350px){
  .ad-advanced-filters{grid-template-columns:minmax(0,1fr)}
}

/* V57 - ad deletion confirmation and responsive photo gallery. */
.delete-ad-link{color:#9f2921;font-weight:650}
.delete-ad-link:hover,.delete-ad-link:focus-visible{color:#7a1915;text-decoration:underline}
.delete-ad-panel{max-width:780px;margin:30px auto}
.delete-ad-confirm-form{display:grid;gap:18px;margin-top:18px}
.delete-ad-check{display:flex;align-items:flex-start;gap:12px;font-weight:650;line-height:1.55}
.delete-ad-check input{width:19px;height:19px;flex:none;margin-top:3px;accent-color:#a52820}
.delete-ad-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.delete-ad-actions .btn{text-align:center}
.delete-ad-actions a.btn{display:inline-flex;align-items:center;justify-content:center}
.delete-ad-actions .btn.danger{background:#b82b24;color:#fff}
.delete-ad-actions .btn.danger:hover{background:#9b201a}
.ad-main-image-link{display:block;position:relative;border-radius:8px;overflow:hidden;background:var(--soft);cursor:zoom-in}
.ad-main-image-link .large-photo{display:block}
.ad-photo-open{position:absolute;bottom:12px;right:12px;background:#122b4bdd;color:white;font-size:13px;padding:7px 11px;border-radius:7px;font-weight:650;pointer-events:none}
.ad-photo-gallery .image-gallery a{display:block;border-radius:7px;border:2px solid transparent;overflow:hidden;transition:border-color .15s ease}
.ad-photo-gallery .image-gallery a:hover,.ad-photo-gallery .image-gallery a:focus-visible{border-color:#2473c6;outline-offset:2px}
.ad-photo-gallery .image-gallery img{display:block;width:95px;height:88px;object-fit:cover}
.ad-lightbox{background:#0c121c;color:#fff;border:none;padding:0;width:min(96vw,1240px);max-width:96vw;max-height:96vh;max-height:96dvh;border-radius:13px;box-shadow:0 18px 80px #000a}
.ad-lightbox::backdrop{background:rgba(3,9,18,.91)}
.ad-lightbox-layout{display:flex;flex-direction:column;gap:8px;padding:10px 12px 13px;max-height:96vh;max-height:96dvh}
.ad-lightbox-bar{min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 5px;color:#e8eef8;font-size:15px}
.ad-lightbox-close,.ad-lightbox-arrow{border:none;color:white;background:#36465bcf;cursor:pointer;display:grid;place-items:center;line-height:1}
.ad-lightbox-close{border-radius:50%;width:42px;height:42px;font-size:30px}
.ad-lightbox-stage{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:0;flex:1}
.ad-lightbox-stage img{min-width:0;max-width:calc(100% - 112px);max-height:calc(96dvh - 140px);height:auto;width:auto;object-fit:contain;margin:auto;touch-action:pan-y}
.ad-lightbox-arrow{flex:0 0 48px;width:48px;height:64px;border-radius:9px;font-size:44px}
.ad-lightbox-arrow[hidden]{visibility:hidden;display:block}
.ad-lightbox-close:hover,.ad-lightbox-arrow:hover{background:#596f91}
.ad-lightbox-hint{color:#b8c5d7;text-align:center;font-size:12px;margin:4px 0 0}
@media(max-width:650px){
 .ad-photo-gallery .image-gallery img{width:73px;height:73px}
 .ad-lightbox{width:100vw;max-width:100vw;max-height:100dvh;border-radius:0}
 .ad-lightbox-layout{padding:7px 6px 12px;max-height:100dvh}
 .ad-lightbox-stage{gap:3px}
 .ad-lightbox-stage img{max-width:calc(100% - 80px);max-height:calc(100dvh - 130px)}
 .ad-lightbox-arrow{flex-basis:37px;width:37px;height:60px;font-size:34px}
 .ad-lightbox-hint{font-size:11px}
 .delete-ad-actions{align-items:stretch;flex-direction:column}
 .delete-ad-actions .btn{width:100%}
}

/* V60: make delete option visible for both imported and newly uploaded pictures. */
.photo-sort-item form[data-photo-delete-form]{margin-top:auto;display:block;text-align:center}
.photo-sort-item .photo-remove-button{display:block;width:100%;min-height:36px;border:1px solid #e7aaa4;border-radius:7px;background:#fff1f0;color:#9c251e;font:600 13px system-ui,sans-serif;cursor:pointer;padding:7px 5px;touch-action:manipulation}
.photo-sort-item .photo-remove-button:hover,.photo-sort-item .photo-remove-button:focus-visible{background:#f8dedb;border-color:#b7463c;outline-offset:2px}

/* V61 — rychlá cookie lišta: bez blur, backdropu, animací a blokování webu. */
.inz-cookie-banner[hidden],.inz-cookie-preferences[hidden],.inz-cookie-actions[hidden]{display:none!important}
.inz-cookie-banner{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));right:14px;z-index:150;width:min(600px,calc(100vw - 28px));max-height:calc(100dvh - 25px);overflow:auto;background:#fff;color:#26384d;border:1px solid #bfcfe2;border-radius:12px;box-shadow:0 10px 32px rgba(17,45,76,.22);padding:16px 18px 13px;font:14px/1.48 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;overscroll-behavior:contain}
.inz-cookie-top strong{font-size:17px;color:#154e90;display:block;margin-bottom:5px}
.inz-cookie-top p{margin:0 0 13px;color:#435367}
.inz-cookie-actions{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:stretch}
.inz-cookie-button{font:700 13px/1.25 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;padding:11px 13px;min-height:44px;border-radius:7px;border:1px solid #8aa8c7;cursor:pointer;touch-action:manipulation;white-space:normal}
.inz-cookie-decline{background:#e9f0f8;color:#174d84}
.inz-cookie-accept{background:#ffbf51;color:#283647;border-color:#d39d3d}
.inz-cookie-settings-button{background:#fff;color:#245c97}
.inz-cookie-button:hover{filter:brightness(.97)}
.inz-cookie-button:focus-visible,.inz-cookie-footer-link:focus-visible,.inz-cookie-more:focus-visible{outline:3px solid #2f78cf;outline-offset:2px}
.inz-cookie-more{display:inline-block;margin-top:9px;color:#205c9d;font-size:12px;text-decoration:underline}
.inz-cookie-preferences{border-top:1px solid #e2e9f1;padding-top:9px;margin-top:4px}
.inz-cookie-type{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #ebeff5;padding:10px 0;color:#2c3e52}
.inz-cookie-type strong{display:block;font-size:14px}
.inz-cookie-type small{display:block;color:#647588;font-size:12px}
.inz-cookie-always{font-size:12px;color:#42637f;white-space:nowrap;font-weight:700}
.inz-cookie-type input[type=checkbox]{width:21px;height:21px;flex:none;accent-color:#1e66b1;cursor:pointer}
.inz-cookie-explain{margin:9px 0 12px;color:#647588;font-size:12px}
.inz-cookie-settings-actions{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.inz-cookie-footer-link{display:block;border:0;background:transparent;color:#6f829e;font:inherit;font-size:15px;line-height:1.3;padding:0;cursor:pointer;text-align:left;margin:8px 0}
.inz-cookie-footer-link:hover{text-decoration:underline;color:#356ad0}
@media(max-width:600px){.inz-cookie-banner{right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:calc(100vw - 16px);padding:12px 13px 10px;border-radius:10px}.inz-cookie-top strong{font-size:16px}.inz-cookie-top p{font-size:13px;line-height:1.4;margin-bottom:10px}.inz-cookie-actions{grid-template-columns:1fr 1fr;gap:7px}.inz-cookie-actions .inz-cookie-settings-button{grid-column:1/-1;min-height:38px}.inz-cookie-settings-actions .inz-cookie-settings-button{grid-column:auto;min-height:44px}.inz-cookie-button{padding:9px 7px;font-size:12px;min-height:45px}.inz-cookie-more{margin-top:7px}}
@media(prefers-reduced-motion:reduce){.inz-cookie-banner,.inz-cookie-button{scroll-behavior:auto}}

/* V62: bulk deletion of stored ad photos. No overlay or expensive effects. */
.photo-bulk-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0 4px}
.photo-bulk-select-all,.photo-bulk-item-check{display:flex;align-items:center;gap:7px;cursor:pointer;font-weight:650;font-size:13px}
.photo-bulk-select-all input,.photo-bulk-item-check input{width:18px;height:18px;accent-color:#1766a6;cursor:pointer;margin:0;flex:0 0 auto}
.photo-bulk-item-check{background:#edf5ff;border-radius:6px;padding:6px 7px;font-size:12px;line-height:1.25}
.photo-sort-item.is-selected-for-delete{border-color:#ba4e4e;background:#fff7f6}
.photo-bulk-delete-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0 18px}
.photo-bulk-delete-form button:disabled{opacity:.5;cursor:not-allowed}
.photo-bulk-delete-form .muted{font-size:12px}
@media(max-width:540px){.photo-bulk-delete-form button{width:100%;justify-content:center}}


/* V64 – jednotné fotografie a čitelný obsah inzerátu (běžné karty). */
.grid{align-items:stretch}
.grid>.ad{position:relative;display:flex;flex-direction:column;min-width:0;height:100%;background:#fff;color:var(--ink);overflow:hidden}
.grid>.ad>.thumb{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:100%;height:auto;aspect-ratio:4/3;overflow:hidden;background:#f0f3f7}
.grid>.ad>.thumb>img:not(.icon-image){display:block;position:static;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
.grid>.ad>.thumb>img.icon-image{display:block;position:static;width:96px;height:96px;max-width:50%;max-height:50%;object-fit:contain}
.grid>.ad>.thumb>.no-photo{padding:14px;text-align:center}
.grid>.ad>.content{position:static;display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:151px;padding:13px 15px 15px;gap:7px;background:#fff;color:var(--ink);text-align:left;opacity:1;transform:none;text-shadow:none}
.grid>.ad>.content>.top-label{position:absolute;top:12px;left:12px;z-index:2;align-self:flex-start;line-height:1.25;padding:4px 7px;border-radius:6px;background:#fff5db;color:#8c4a0c;border:1px solid #edcb7e;text-shadow:none}
.grid>.ad h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:43px;max-height:43px;margin:0;font-size:16px;font-weight:750;line-height:1.35;color:#233348;text-shadow:none}
.grid>.ad .price{position:static;margin-top:auto;font-size:18px;font-weight:800;line-height:1.3;color:#11623f;text-shadow:none}
.grid>.ad .meta{position:static;margin:1px 0 0;font-size:13px;line-height:1.45;color:#526277;overflow-wrap:anywhere;text-shadow:none}
/* TOP karty využívají stejný poměr fotografie; dlouhý text zůstává pod obrázkem. */
.featured-card>.featured-image{height:auto;aspect-ratio:4/3;flex:0 0 auto}
.featured-card>.featured-image>img:not(.featured-image-logo){width:100%;height:100%;object-fit:cover;object-position:center}
/* V editoru: stejná velikost náhledů i nedostupných fotografií. */
.manage-gallery.photo-sort-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;align-items:stretch;width:100%}
.manage-gallery.photo-sort-gallery>.photo-sort-item{width:100%;min-width:0;max-width:none;display:flex;flex-direction:column;align-items:stretch}
.photo-sort-gallery .photo-sort-item>img,.photo-sort-gallery .photo-sort-item>.photo-missing{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;border-radius:6px}
.photo-sort-gallery .photo-sort-item>.photo-missing{display:grid;place-items:center;padding:8px;text-align:center}
.photo-sort-gallery .photo-sort-item .photo-drag-handle{width:100%}
.photo-sort-gallery .photo-sort-item .photo-sort-actions{margin-top:auto}
/* Širší pravidlo .account-form label nesmí skládat checkbox nad jeho popisek. */
.account-form .photo-bulk-select-all,.account-form .photo-bulk-item-check{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;min-width:0;text-align:left;cursor:pointer}
.account-form .photo-bulk-select-all input[type=checkbox],.account-form .photo-bulk-item-check input[type=checkbox]{display:block;width:18px;height:18px;min-width:18px;min-height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:#1766a6}
.account-form .photo-bulk-select-all{font-size:14px}
.account-form .photo-bulk-item-check{font-size:12px;line-height:1.3;padding:6px 5px}
.account-form .photo-bulk-item-check>span{min-width:0}
@media(max-width:650px){
  .grid>.ad>.content{padding:13px 14px 15px;min-height:151px}
  .grid>.ad>.thumb{height:auto;aspect-ratio:4/3}
  .manage-gallery.photo-sort-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media(max-width:360px){.manage-gallery.photo-sort-gallery{gap:7px}.account-form .photo-bulk-item-check{font-size:11px}}


/* V65: kompaktní výpis inzerátů – fotografie menší, text blíž k názvu.
   Ikony kategorií (.cat img) a náhradní ikonky inzerátů (.icon-image)
   zůstávají ve stejné velikosti jako ve V64. Galerie v editoru beze změny. */
@media (min-width:1140px) {
  .grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
.grid>.ad { position:relative; }
.grid>.ad>.thumb { height:205px; aspect-ratio:auto; flex:0 0 205px; }
.grid>.ad>.content { min-height:0; gap:5px; padding:12px 14px 13px; }
.grid>.ad .price { margin-top:1px; }
.grid>.ad .meta { margin:0; }
/* TOP štítek nesmí přidávat prázdné místo pod fotografií. */
.grid>.ad>.content>.top-label {
  position:absolute; top:9px; left:9px; z-index:1;
  padding:3px 8px; border-radius:5px;
  background:#ffdd88; color:#654500; font-size:11px; line-height:1.3;
}
@media (max-width:650px) {
  .grid>.ad>.thumb { height:195px; aspect-ratio:auto; flex-basis:195px; }
  .grid>.ad>.content { min-height:0; padding:12px 14px 13px; }
}


/* V66: decentni stiny karet inzeratu, bez zasahu do kategorii a nahledovych ikon. */
.grid > .ad {
  box-shadow: 0 3px 12px rgba(27, 49, 76, .075);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.grid > .ad:hover,
.grid > .ad:focus-visible {
  border-color: #b6cadf;
  box-shadow: 0 10px 25px rgba(27, 49, 76, .15);
  text-decoration: none;
}
.grid > .ad:focus-visible {
  outline: 2px solid #317ac5;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .grid > .ad:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .grid > .ad { transition: none; }
  .grid > .ad:hover { transform: none; }
}


/* V67 – viditelnější, ale stále jemné stíny. TOP inzeráty zůstávají
   o stupeň výraznější. Neměníme poměr fotografií, ikony ani geometrii karet. */
.grid > .ad {
  box-shadow: 0 3px 8px rgba(23, 46, 74, .075),
              0 9px 24px rgba(23, 46, 74, .115);
}
.grid > .ad:hover,
.grid > .ad:focus-visible {
  box-shadow: 0 7px 14px rgba(23, 46, 74, .11),
              0 17px 34px rgba(23, 46, 74, .19);
}
.featured-card {
  box-shadow: 0 4px 9px rgba(23, 37, 59, .075),
              0 12px 28px rgba(23, 37, 59, .145);
}
.featured-card:hover,
.featured-card:focus-visible {
  box-shadow: 0 8px 15px rgba(23, 37, 59, .115),
              0 19px 39px rgba(23, 37, 59, .205);
}


/* V68 – kontrastnejsi karty beznych inzeratu. TOP blok beze zmeny.
   Vetsí hloubka stinu, jemne kontrastni ramecek a jasnejsi oddeleni fotky.
   Velikosti fotek ani ikon nemenime. */
.grid > .ad {
  border-color: #c2cedd;
  box-shadow: 0 4px 10px rgba(24, 44, 70, .12),
              0 15px 32px rgba(24, 44, 70, .16);
}
.grid > .ad > .thumb {
  background-color: #e9eef5;
  border-bottom: 1px solid #d9e2ed;
}
.grid > .ad:hover,
.grid > .ad:focus-visible {
  border-color: #8bafd2;
  box-shadow: 0 8px 17px rgba(24, 44, 70, .16),
              0 21px 42px rgba(24, 44, 70, .22);
}
@media (hover: hover) and (pointer: fine) {
  .grid > .ad:hover { transform: translateY(-3px); }
}


/* V71 – mobile-first compact marketplace cards. Desktop layout and category icon
   sizes are retained. Native horizontal scrolling means galleries work without JS. */
.thumb,.featured-image{isolation:isolate}
.card-swipe-track{position:absolute;inset:0;width:100%;height:100%;display:flex;overflow:hidden}
.card-swipe-slide{display:block;flex:0 0 100%;min-width:0;height:100%;overflow:hidden}
.card-swipe-slide:not(:first-child){display:none}
.card-swipe-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;user-select:none;-webkit-user-drag:none}
.card-swipe-count,.card-swipe-dots{display:none}
@media(max-width:650px){
  /* Two cards per row; more listings visible without tiny unreadable content. */
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .grid>.ad{border-radius:12px;box-shadow:0 4px 10px rgba(24,44,70,.13),0 10px 23px rgba(24,44,70,.13);transition:transform .17s ease,box-shadow .17s ease}
  .grid>.ad>.thumb{height:auto;aspect-ratio:4/3;flex:0 0 auto}
  .grid>.ad>.content{min-height:0;gap:5px;padding:10px 10px 12px}
  .grid>.ad h3{font-size:13.5px;line-height:1.33;min-height:2.66em;max-height:2.66em;font-weight:750}
  .grid>.ad .price{font-size:15.5px;line-height:1.3;margin-top:2px}
  .grid>.ad .meta{font-size:10.5px;line-height:1.38;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:2.76em}
  .grid>.ad>.content>.top-label{font-size:10px;top:6px;left:6px;padding:2px 6px}
  .grid>.ad>.thumb>img.icon-image{width:96px;height:96px;max-width:75%;max-height:75%}
  .grid>.ad:active{transform:scale(.986);box-shadow:0 2px 7px rgba(24,44,70,.16),0 7px 16px rgba(24,44,70,.19)}
  /* The homepage featured ads remain distinctive, but need less scroll. */
  .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .featured-card{border-radius:16px}
  .featured-image{height:auto;aspect-ratio:4/3}
  .featured-content{padding:11px 10px 9px;gap:6px}
  .featured-content h3{font-size:13.5px;line-height:1.35;min-height:2.7em;max-height:2.7em}
  .featured-facts{gap:3px 7px;font-size:11px;line-height:1.35}
  .featured-facts strong{margin-left:0}
  .featured-footer{min-height:32px;font-size:10px}
  .featured-footer>span{padding:7px 3px}
  .featured-badge{font-size:11px;padding:6px 12px;border-bottom-left-radius:14px}
  .featured-section>h2{font-size:23px;margin-bottom:15px}
  .featured-card:active{transform:scale(.987)}
  /* Native swipe with scroll snapping and minimal overlay indicators. */
  .card-swipe-track{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .card-swipe-track::-webkit-scrollbar{display:none}
  .card-swipe-slide{scroll-snap-align:start;scroll-snap-stop:always}
  .card-swipe-slide:not(:first-child){display:block}
  .card-swipe-count{position:absolute;top:7px;right:7px;display:block;z-index:2;border-radius:20px;background:rgba(17,34,52,.72);color:#fff;padding:3px 7px;font-size:10px;font-weight:700;line-height:1.2;pointer-events:none}
  .featured-image .card-swipe-count{right:auto;left:7px}
  .card-swipe-dots{position:absolute;z-index:2;bottom:8px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;gap:4px;pointer-events:none;padding:4px 6px;background:rgba(17,34,52,.27);border-radius:20px}
  .card-swipe-dot{display:block;flex:0 0 auto;width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.55);transition:background .18s,width .18s}
  .card-swipe-dot.is-current{width:11px;border-radius:4px;background:#fff}
}
@media(max-width:360px){
 .wrap{width:96%}
 .grid,.featured-grid{gap:8px}
 .grid>.ad>.content{padding:8px 8px 10px}
 .grid>.ad h3,.featured-content h3{font-size:12.5px}
 .grid>.ad .price{font-size:14.5px}
 .featured-content{padding:8px 8px}
 .featured-facts{font-size:10px}
 .featured-footer{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
 .grid>.ad,.featured-card,.card-swipe-dot{transition:none!important}
 .grid>.ad:active,.featured-card:active{transform:none}
 .card-swipe-track{scroll-behavior:auto}
}
