/*
Theme Name: عقار لايت - Aqar Lite
Description: قالب إعلانات عقارية مبوبة خفيف جدًا بتصميم مستوحى من دوبيزل. عربي RTL، بدون مكتبات خارجية، نوع محتوى "إعلان" مع بحث وفلاتر ونموذج إضافة إعلان من الواجهة.
Version: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aqarlite
License: GPL-2.0-or-later
*/

/* IBM Plex Sans Arabic, self-hosted (OFL, assets/fonts/OFL.txt). */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(assets/fonts/plex-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(assets/fonts/plex-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url(assets/fonts/plex-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(assets/fonts/plex-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(assets/fonts/plex-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url(assets/fonts/plex-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }

:root {
	--red: #e00000;
	--red-dark: #b80000;
	--red-soft: #fdecec;
	--ink: #2b2d2e;
	--muted: #565c63;
	--line: #e0e1e3;
	--bg: #f6f7f8;
	--card: #fff;
	--blue: #0f5dc4;
	--green: #1f8a4c;
	--radius: 8px;
	--font: "Plex Arabic", Tahoma, system-ui, sans-serif;
	--wrap: 1200px;
	--bn-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; text-wrap: balance; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 600; cursor: pointer; background: var(--card); line-height: 1.2; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { color: #fff; filter: brightness(.95); }
.btn-block { width: 100%; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: .85rem; font-weight: 600; }
.chips label, .tabs label { font-weight: inherit; font-size: inherit; }
.input, .field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.field textarea { min-height: 140px; resize: vertical; }
.input:focus, .field :is(input, select, textarea):focus { outline: none; border-color: var(--ink); }
.req { color: var(--red); }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--red); }
.logo img { max-height: 40px; width: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: var(--radius); font-weight: 400; }
.main-nav a:hover { background: var(--bg); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .link { display: inline-flex; align-items: center; gap: 6px; padding: 8px; font-weight: 400; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.cat-bar { border-top: 1px solid var(--line); }
.cat-bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; min-height: 44px; align-items: center; white-space: nowrap; font-size: .9rem; }
.cat-bar a { font-weight: 400; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { position: absolute; inset: 64px 0 auto; background: var(--card); border-bottom: 1px solid var(--line); display: none; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding: 8px 16px; }
	.header-actions .link span { display: none; }
	.header-actions .btn { padding: 9px 12px; }
}

/* Hero search */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding-block: 40px 28px; }
.hero h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); text-align: center; }
.hero p.sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.search-box { max-width: 860px; margin-inline: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 6px 24px rgba(43, 45, 46, .06); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs label { cursor: pointer; }
.tabs input { position: absolute; opacity: 0; }
.tabs span { display: block; padding: 7px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.tabs input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs input:focus-visible + span { outline: 2px solid var(--blue); }
.search-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; }
@media (max-width: 700px) { .search-row { grid-template-columns: 1fr 1fr; } .search-row .q, .search-row .btn { grid-column: 1 / -1; } }

/* Sections */
.section { padding-block: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a:not(.btn) { color: var(--blue); font-weight: 600; font-size: .9rem; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-weight: 600; }
.cat .icon { width: 30px; height: 30px; color: var(--red); stroke-width: 1.5; }
.cat small { color: var(--muted); font-weight: 400; }
.cat:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 640px) { .cats { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 108px; overflow-x: auto; padding-bottom: 6px; } .cat { padding: 14px 8px; } }

.slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.slider > * { scroll-snap-align: start; }
@media (min-width: 1000px) { .slider { grid-auto-columns: calc((100% - 42px) / 4); } }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 4px 18px rgba(43, 45, 46, .1); }
.card a:hover { color: inherit; }
.card-media { aspect-ratio: 4 / 3; background: #eef0f1; position: relative; max-width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .noimg { display: grid; place-items: center; height: 100%; color: #b8bcc1; }
.card-media .noimg .icon { width: 48px; height: 48px; stroke-width: 1.2; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--card); color: var(--ink); font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.badge.featured { background: #ffc800; }
.card-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.price { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-size: .78rem; font-weight: 400; color: var(--muted); }
.card-title { font-size: .95rem; font-weight: 400; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.specs { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .85rem; }
.specs span { display: inline-flex; align-items: center; gap: 4px; }
.specs .icon { width: 16px; height: 16px; }
.loc { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; }
.loc .icon { width: 15px; height: 15px; }
.stretched::after { content: ""; position: absolute; inset: 0; }

.card.row { flex-direction: row; }
.card.row .card-media { flex: 0 0 300px; aspect-ratio: auto; min-height: 210px; }
.card.row .card-body { flex: 1; min-width: 0; padding: 16px 18px; align-content: start; }
.card.row .card-title { font-size: 1.05rem; }
.card.row .card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) {
	.card.row { flex-direction: column; }
	.card.row .card-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

.cta-band { background: var(--ink); color: #fff; border-radius: 12px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: #c9ccd0; }

/* Archive */
.crumbs { font-size: .82rem; color: var(--muted); padding-block: 14px 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:not(.btn) { color: var(--blue); }
.archive-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; padding-bottom: 32px; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; position: sticky; top: 80px; }
.filters h3 { margin: 0; }
.filters .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head h1 { font-size: 1.25rem; margin: 0; }
.results-head .count { color: var(--muted); font-size: .9rem; font-weight: 400; }
.results-head select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.results { display: grid; gap: 12px; }
.head-tools { display: flex; gap: 8px; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
	.archive-layout { grid-template-columns: 1fr; }
	.filters { position: static; display: none; }
	.filters.open { display: grid; }
	.filters-toggle { display: inline-flex; }
}
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }

/* Single */
.single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; padding-bottom: 32px; }
.single-layout > * { min-width: 0; }
.gallery { background: #1d1f20; border-radius: var(--radius); overflow: hidden; }
.gallery-main { aspect-ratio: 16 / 10; max-width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .noimg { display: grid; place-items: center; height: 100%; color: #6b7178; }
.thumbs { display: flex; gap: 6px; padding: 6px; overflow-x: auto; }
.thumbs button { flex: 0 0 84px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 14px; }
.box h2 { font-size: 1.1rem; }
.ad-head .price { font-size: 1.6rem; }
.ad-head h1 { font-size: 1.25rem; font-weight: 600; margin: 4px 0 8px; }
.key-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.key-specs div { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; gap: 2px; }
.key-specs small { color: var(--muted); font-size: .78rem; }
.key-specs b { font-size: 1rem; }
.details { width: 100%; border-collapse: collapse; }
.details th, .details td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: start; font-size: .92rem; }
.details th { color: var(--muted); font-weight: 400; width: 40%; }
.details tr:last-child :is(th, td) { border-bottom: 0; }
.description { white-space: normal; overflow-wrap: anywhere; }
.seller { position: sticky; top: 80px; }
.seller .box:first-child { margin-top: 0; }
.seller-id { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; }
.seller-id small { color: var(--muted); display: block; }
.contact { display: grid; gap: 8px; }
.phone-num { direction: ltr; font-variant-numeric: tabular-nums; }
.safety { font-size: .82rem; color: var(--muted); }
.safety ul { margin: 6px 0 0; padding-inline-start: 18px; }
@media (max-width: 900px) {
	.single-layout { grid-template-columns: 1fr; }
	.seller { position: static; }
	.mobile-contact { position: fixed; inset: auto 0 calc(var(--bn-h) + env(safe-area-inset-bottom, 0px)); z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 8px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	body.single-listing { padding-bottom: 60px; }
}
@media (min-width: 901px) { .mobile-contact { display: none; } }

/* Post-ad form */
.form-wrap { max-width: 760px; margin-inline: auto; padding-block: 24px 40px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 16px; }
.form-card fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.form-card legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; } }
.upload { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.upload:hover { border-color: var(--ink); }
.upload input { position: absolute; opacity: 0; width: 1px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.previews img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.hint { font-size: .8rem; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 14px; font-weight: 400; }
.notice.ok { background: #e8f5ee; color: var(--green); }
.notice.err { background: var(--red-soft); color: var(--red-dark); }
.status { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--bg); }
.status.publish { background: #e8f5ee; color: var(--green); }
.status.pending { background: #fff5d6; color: #8a6400; }

/* Content pages */
.page-content { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-block: 24px; }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 24px; padding-block: 28px 20px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid h4 { font-size: .95rem; }
.copy { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; color: var(--muted); font-size: .82rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Promo banners (carousel) */
.promo { position: relative; }
.promo-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { --promo-bg: #eef3fb; --promo-ink: var(--ink); --promo-sub: #3d4248; scroll-snap-align: start; background: var(--promo-bg); color: var(--promo-ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; min-height: 170px; }
.promo-text { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.promo .promo-text h3 { font-size: 1.2rem; margin: 0; color: var(--promo-ink); }
.promo .promo-text p { margin: 0 0 8px; color: var(--promo-sub); max-width: 46ch; }
.promo-slide--indigo { --promo-bg: #3f6fd8; --promo-ink: #fff; --promo-sub: #fff; }
.promo-slide--pink { --promo-bg: #fdecec; }
.promo-slide--green { --promo-bg: #e8f5ee; }
.promo-slide--gray { --promo-bg: #eef0f1; }
.promo-slide--dark { --promo-bg: var(--ink); --promo-ink: #fff; --promo-sub: #eceef0; }
.promo-btn { color: var(--ink); }
.socials { display: flex; gap: 8px; margin-bottom: 14px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.socials a:hover { border-color: var(--red); }
.promo-btn { background: var(--card); border-color: var(--line); }
.promo-img { flex: 0 0 auto; max-width: 38%; }
.promo-img img { max-height: 140px; width: auto; }
.promo-dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.promo-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9ccd0; cursor: pointer; }
.promo-dots button[aria-current="true"] { background: var(--ink); width: 18px; border-radius: 4px; }
.results .promo, .archive-layout .promo { margin-bottom: 12px; }
.seller .promo { margin-top: 14px; }
.seller .promo-slide { flex-direction: column; align-items: stretch; min-height: 0; padding: 18px; }
.seller .promo-img { max-width: none; align-self: center; }
@media (max-width: 600px) {
	.promo-slide { padding: 18px; min-height: 150px; }
	.promo-img { max-width: 34%; }
	.promo-img img { max-height: 100px; }
}

/* Verification */
.verified { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-size: .78rem; font-weight: 600; }
.verified .icon { width: 16px; height: 16px; fill: var(--blue); stroke: #fff; stroke-width: 1.6; }
.verify-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(90deg, #eef3fb, #f7f9fd); border: 1px solid #d8e3f5; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.verify-card p { margin: 2px 0 0; color: #33383e; font-size: .9rem; }
.verify-card.done { justify-content: flex-start; background: #e8f5ee; border-color: #cfe9da; }
.verify-card.done .icon { width: 32px; height: 32px; fill: var(--green); stroke: #fff; }
.sheet { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink); }
.sheet::backdrop { background: rgba(20, 21, 22, .55); }
.sheet form { padding: 20px; display: grid; gap: 14px; }
.sheet h2 { margin: 0; font-size: 1.3rem; }
.sheet-hero { background: linear-gradient(135deg, #3f74e0, #6d9bf0); color: #fff; border-radius: 12px; display: grid; place-items: center; padding: 22px; }
.sheet-hero .icon { width: 64px; height: 64px; stroke-width: 1.4; }
.perks { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks li .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #eef3fb; color: var(--blue); flex: none; }
.perks b { display: block; }
.perks span { color: var(--muted); font-size: .92rem; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.sheet-actions .btn-block { grid-column: 1 / -1; }
@media (max-width: 600px) {
	.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* App download + install prompt */
.app-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.app-badge { display: inline-flex; align-items: center; gap: 8px; background: #111; color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; cursor: pointer; text-align: start; line-height: 1.15; font-weight: 600; }
.app-badge:hover { color: #fff; background: #000; }
.app-badge small { display: block; font-size: .68rem; font-weight: 400; opacity: .8; }
.store-icon { width: 24px; height: 24px; flex: none; }
.install-toast { position: fixed; z-index: 40; inset: auto 12px calc(var(--bn-h) + 12px + env(safe-area-inset-bottom, 0px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(43, 45, 46, .18); padding: 12px; display: flex; align-items: center; gap: 10px; }
.install-toast[hidden] { display: none; }
.install-toast img { border-radius: 10px; flex: none; }
.install-toast div { flex: 1; min-width: 0; }
.install-toast small { display: block; color: var(--muted); font-size: .8rem; }
.install-toast .btn { padding: 8px 14px; }
.install-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
@media (min-width: 861px) { .install-toast { inset: auto 24px 24px auto; max-width: 400px; } }
.ios-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--blue); border-radius: 5px; color: var(--blue); font-size: .8rem; }

/* Floating bottom menu (mobile) */
.bottom-nav { display: none; }
@media (max-width: 860px) {
	body { padding-bottom: calc(var(--bn-h) + env(safe-area-inset-bottom, 0px)); }
	body.single-listing { padding-bottom: calc(var(--bn-h) + 60px + env(safe-area-inset-bottom, 0px)); }
	.bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 35; inset: auto 0 0; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -4px 16px rgba(43, 45, 46, .06); }
	.bottom-nav a, .bottom-nav button { height: var(--bn-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .72rem; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
	.bottom-nav .icon { width: 24px; height: 24px; stroke-width: 1.6; }
	.bottom-nav [aria-current="page"] { color: var(--ink); }
	.bottom-nav [aria-current="page"] .icon { stroke-width: 2.2; }
	.bottom-nav .bn-add { color: var(--ink); }
	.bottom-nav .bn-add i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; }
	.bottom-nav .bn-add .icon { width: 20px; height: 20px; stroke-width: 2.6; }
	.header-actions .btn-red { display: none; }
	.main-nav.open { position: fixed; inset: auto 0 calc(var(--bn-h) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(43, 45, 46, .12); border-radius: 16px 16px 0 0; z-index: 34; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Core login form (wp_login_form) inside the post-ad page */
#loginform { display: grid; gap: 12px; }
#loginform p { margin: 0; display: grid; gap: 6px; }
#loginform label { font-size: .85rem; font-weight: 600; }
#loginform .login-remember label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
#loginform input[type=text], #loginform input[type=password] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
#loginform input[type=submit] { background: var(--red); color: #fff; border: 0; border-radius: var(--radius); padding: 11px 18px; font-weight: 600; cursor: pointer; width: 100%; }

/* Site chat */
.chat-fab { position: fixed; z-index: 45; inset-inline-end: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(224, 0, 0, .35); }
.chat-fab .icon { width: 26px; height: 26px; }
.chat-open .chat-fab { display: none; }
.chat-panel { position: fixed; z-index: 46; inset-inline-end: 20px; bottom: 20px; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(43, 45, 46, .2); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: #fff; }
.chat-head small { display: block; color: #c9ccd0; font-size: .75rem; }
.chat-head div { flex: 1; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }
.chat-msg a:not(.btn) { color: var(--blue); text-decoration: underline; }
.chat-msg--bot { background: var(--card); border: 1px solid var(--line); align-self: flex-start; border-start-start-radius: 4px; }
.chat-msg--user { background: var(--ink); color: #fff; align-self: flex-end; border-start-end-radius: 4px; }
.chat-typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: chatdot 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 50% { opacity: .2; } }
.chat-cards { display: grid; gap: 6px; align-self: stretch; }
.chat-card { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.chat-card img, .chat-card__noimg { width: 64px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; background: #eef0f1; }
.chat-card > span { min-width: 0; display: grid; font-size: .82rem; }
.chat-card > span > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-card small { color: var(--muted); }
.chat-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; background: var(--bg); }
.chat-sugg[hidden] { display: none; }
.chat-sugg button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: .8rem; cursor: pointer; }
.chat-sugg button:hover { border-color: var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }
.chat-form .btn { border-radius: 50%; width: 42px; height: 42px; padding: 0; }
@media (max-width: 860px) {
	.chat-fab { bottom: calc(var(--bn-h) + 14px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
	.single-listing .chat-fab { bottom: calc(var(--bn-h) + 74px + env(safe-area-inset-bottom, 0px)); }
	.chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom, 0px); }
	.install-toast:not([hidden]) ~ .chat-fab { display: none; }
}
