/* "classified-ads" template: classified-ads style directory layout.
   Dark blue top bar, orange accents, main categories in columns with round icons. */

:root {
	--navy: #1f3a8a;
	--navy-dark: #172c69;
	--orange: #f7811e;
	--orange-dark: #db6c0c;
	--link: #2a4d9b;
	--text: #2b2f36;
	--muted: #69707d;
	--line: #e3e7ee;
	--soft: #f5f7fb;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #fff; color: var(--text); font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { border: 0; max-width: 100%; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 22px; padding-bottom: 36px; min-height: 55vh; }

/* ---------- Top bar ---------- */
.topbar { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.topnav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topnav a { color: #fff; font-size: 15px; }
.topnav a:hover { text-decoration: none; opacity: 0.85; }

.btn-post { display: inline-block; background: var(--orange); color: #fff !important; font-weight: 700; padding: 8px 16px; border-radius: 4px; }
.btn-post:hover { background: var(--orange-dark); text-decoration: none; opacity: 1 !important; }

/* ---------- Search bar ---------- */
.searchbar { background: var(--soft); border-bottom: 1px solid var(--line); padding: 12px 0; }
.search { display: flex; align-items: stretch; background: #fff; border: 1px solid #cfd6e3; border-radius: 4px; overflow: hidden; }
.search-scope { display: flex; align-items: center; padding: 0 14px; background: #e9eef8; color: var(--navy); font-weight: 600; font-size: 14px; white-space: nowrap; border-right: 1px solid #cfd6e3; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font-size: 16px; outline: none; }
.search button { border: 0; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.5px; text-transform: uppercase; padding: 0 26px; cursor: pointer; }
.search button:hover { background: var(--orange-dark); }

/* ---------- Home: category columns ---------- */
.home-intro { margin-bottom: 18px; }
.home-intro h1 { font-size: 26px; margin: 0 0 4px; color: var(--navy); }
.home-intro p { margin: 0; color: var(--muted); }

.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px 30px; }
.catblock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--navy); }
.catblock-head:hover { text-decoration: none; }
.catblock-head:hover .catname { text-decoration: underline; }
.caticon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.caticon .ico { width: 27px; height: 27px; }
.catname { font-size: 21px; font-weight: 500; }
.c1 .caticon { background: #6cbd45; }
.c2 .caticon { background: #2d4f9e; }
.c3 .caticon { background: #f7811e; }
.c4 .caticon { background: #3db0c4; }
.c5 .caticon { background: #8a5cc2; }
.c6 .caticon { background: #e0524a; }
.sublist { list-style: none; margin: 0 0 0 8px; padding: 0; }
.sublist li { padding: 1px 0; font-size: 14.5px; }
.sublist .more a { color: var(--muted); font-size: 13.5px; }

/* ---------- Page heads and panels ---------- */
.pagehead { margin-bottom: 14px; }
.pagehead h1 { font-size: 26px; margin: 0 0 4px; color: var(--navy); }
.crumbs { color: var(--muted); font-size: 14px; }
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; background: #fff; }
.panel.notice { background: #fff8ec; border-color: #f3d9b1; }
.panel.empty { text-align: center; background: var(--soft); padding: 26px 16px; }
.panel.empty p { margin: 0 0 12px; color: var(--muted); }
.catdesc { margin: 0 0 18px; color: #3d434d; font-size: 15.5px; }

h2.sec { font-size: 18px; color: var(--navy); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.subgrid { list-style: none; margin: 0 0 8px; padding: 0; columns: 3 220px; column-gap: 28px; }
.subgrid li { padding: 3px 0; break-inside: avoid; }
.subgrid .count { color: var(--muted); font-size: 13px; }

/* ---------- Listings ---------- */
.listing { position: relative; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; margin-bottom: 12px; }
.listing h3 { margin: 0 0 2px; font-size: 17px; }
.listing-url { color: #2f7d32; font-size: 13px; word-break: break-all; }
.listing p { margin: 6px 0 4px; }
.listing-more { font-size: 13px; }
.listing.premium { border-color: #f6c38f; background: #fffaf3; }
.badge { position: absolute; top: 12px; right: 14px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 2px 8px; border-radius: 10px; }
.listcount { color: var(--muted); font-size: 13px; text-align: right; }
.pager { margin-top: 12px; }
.pager a, .pager .current { display: inline-block; padding: 3px 9px; margin: 0 2px 4px 0; border: 1px solid var(--line); border-radius: 4px; }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Category navigation box (from core/seo.php) ---------- */
.cattree { font-size: 15px; line-height: 1.6; }
.cattree-path { overflow: hidden; }
.cattree-path strong { color: var(--navy); }
.cattree-path .sep { color: #9aa4b5; margin: 0 7px; }
.cattree .addhere { float: right; background: var(--orange); color: #fff; padding: 3px 12px; border-radius: 4px; font-weight: 700; font-size: 13px; }
.cattree .addhere:hover { background: var(--orange-dark); text-decoration: none; }
.cattree-others { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.cattree-others summary { cursor: pointer; color: var(--link); font-weight: 600; }
.cattree-list { margin-top: 8px; }
.cattree-list a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; }
.cattree-list a:hover { background: #e9eef8; text-decoration: none; }

/* ---------- Forms (submit, contact) ---------- */
.panel input[type="text"], .panel input:not([type]), .panel textarea, .panel select {
	font: inherit; font-size: 15px; padding: 7px 9px; border: 1px solid #c9d0dc; border-radius: 4px; max-width: 100%; background: #fff;
}
.panel textarea { width: 100%; max-width: 560px; }
.panel select { max-width: 100%; }
.panel input[type="submit"], .panel .submit { background: var(--orange); color: #fff; border: 0; border-radius: 4px; font-weight: 700; font-size: 15px; padding: 9px 26px; cursor: pointer; }
.panel input[type="submit"]:hover { background: var(--orange-dark); }
.panel ul { margin: 6px 0 12px 20px; padding: 0; }
.agree-box { margin: 14px 0 4px; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; }
.agree-box label { cursor: pointer; }
.agree-error { color: #b00; font-weight: 700; }
.renew-link { margin: 12px 0; padding: 8px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; }

/* ---------- Legal pages ---------- */
.legal h3 { margin: 18px 0 4px; font-size: 16px; color: var(--navy); }
.legal p { margin: 0 0 8px; }
.legal ul { margin: 0 0 10px 20px; }
.legal li { margin-bottom: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #c9d3ea; font-size: 14px; }
.footer-inner { padding: 18px 16px; display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
	.topbar-inner { padding-top: 8px; padding-bottom: 8px; }
	.brand { font-size: 19px; }
	.topnav { gap: 14px; }
	.search-scope { display: none; }
	.search button { padding: 0 16px; }
	.catgrid { grid-template-columns: 1fr; }
	.pagehead h1, .home-intro h1 { font-size: 22px; }
	.cattree .addhere { float: none; display: inline-block; margin-bottom: 6px; }
	.badge { position: static; display: inline-block; margin-bottom: 4px; }
}

/* Premium option on the submit form (2026) */
.premium-box { margin: 4px 0 10px 26px; padding: 10px 12px; border: 1px solid #f3d3a8; background: #fffaf3; border-radius: 6px; max-width: 620px; }
.premium-perks { margin: 0 0 8px 18px; padding: 0; }
.premium-perks li { margin: 2px 0; }
.premium-preview .pp-label { font-size: 12px; color: #8a6d3b; margin-bottom: 4px; }
.premium-preview .listing { margin-bottom: 0; background: #fff; }
.premium-preview .listing h3 a { cursor: default; text-decoration: none; }

/* Business page add-on (2026) */
.bizpage-addon { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #f3d3a8; }
.bizpage-addon label { cursor: pointer; }
.bizpage-addon .premium-perks { margin-top: 6px; }
.bizpage-offer { padding: 10px 12px; border: 1px solid #f3d3a8; background: #fffaf3; border-radius: 6px; }
.listing-bizpage { display: inline-block; margin-left: 12px; font-weight: bold; }
