/* El Galeria directory — Gate 12b look (owner-approved mockup 2026-12-05). Mobile first; Rubik; logical properties
   keep Arabic (RTL) and English (LTR) identical. Calm teal system: one filled button per card, green only for
   WhatsApp, line icons, 46px buttons, radius 12–18, per-category tile colours (also the map pins). No warm accent colour. */
:root {
	--ink: #0f2a31; --muted: #5d747b; --line: #e3eaec; --bg: #f5f7f7; --card: #fff; --surface: #fff;
	--brand: #033a46; --brand2: #0b5566; --sky: #90e1f2; --soft: #eef3f4; --tint: #eaf3f5;
	--wa: #1a9e55; --wa-l: #cfe9da; --open: #1f8a52; --open-bg: #e7f5ec; --closed: #8a4b4b; --closed-bg: #f5ecec;
	--teal: var(--brand); --sky-l: var(--tint);
	--r: 16px; --font: Rubik, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.ico-svg { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -.2em; }
.ico-svg.flip { transform: scaleX(-1); }
[dir="ltr"] .ico-svg.flip, html[dir="ltr"] .ico-svg.flip { transform: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- header ---------- */
.g-top { position: sticky; top: 0; z-index: 1000; background: var(--brand); color: #fff; }
.g-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.g-top .g-in { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-logo { display: flex; align-items: baseline; gap: 6px; color: #fff; font-weight: 700; font-size: 19px; white-space: nowrap; text-decoration: none; min-width: 0; }
.g-logo small { font-size: 11px; font-weight: 500; color: var(--sky); letter-spacing: .02em; white-space: nowrap; }
.g-tact { display: flex; gap: 8px; align-items: center; flex: none; }
.g-ib { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .18); display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; }
.g-ib:hover, .g-add:hover { background: rgb(255 255 255 / .08); }
.g-add { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .35); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.g-add .ico-svg { width: 16px; height: 16px; }
@media (max-width: 400px) { html[dir="ltr"] .g-logo small { display: none; } }
@media (max-width: 359px) { .g-logo small { display: none; } .g-top .g-in { padding: 0 12px; } }
@media (max-width: 330px) { .g-add span { display: none; } .g-add { padding: 0 9px; } }

/* ---------- footer ---------- */
.g-foot { margin-top: 32px; background: #0c2228; color: #b7c7cb; font-size: 12.5px; line-height: 1.9; text-align: center; }
.g-foot .g-in { padding: 22px 16px 30px; display: grid; gap: 8px; justify-items: center; }
.g-foot .g-logo { font-size: 16px; }
.g-flinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
.g-flinks a { color: #d9e5e8; text-decoration: none; }
.g-flinks a:hover { text-decoration: underline; }
.g-flinks span { color: #b7c7cb; }
.g-copy b, .g-copy .g-credit { font-weight: 600; color: #d9e5e8; }
.g-copy .g-credit { text-decoration: none; border-bottom: 1px solid rgba(217,229,232,.4); }
.g-copy .g-credit:hover { color: #fff; border-bottom-color: #fff; }
.g-rm { color: #8ea3a8; text-decoration: underline; }
.socials { display: flex; gap: 10px; justify-content: center; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgb(255 255 255 / .08); color: #fff; }
.socials a:hover { background: rgb(255 255 255 / .16); }

/* ---------- layout + shared pieces ---------- */
.wrap { max-width: 960px; margin: 0 auto; padding: 16px; }
.wrap.wide { max-width: 1200px; }
.block { margin-block-end: 24px; }
.block h2, section > h2, .plans h2, .faq h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.btn, .search button { height: 46px; padding-inline: 18px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.pri, .search button { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.wa, .btn.wa-btn { color: var(--wa); border-color: var(--wa-l); background: #fff; }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn.ghost.light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .45); }
.btn.wide { width: 100%; }
.btn.big { height: 50px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: 14px; color: var(--ink); cursor: pointer; }
.chip b { font-weight: 500; color: var(--muted); font-size: 12px; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip.on b { color: var(--sky); }
.chips.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips.grid .chip { display: flex; width: 100%; height: 100%; white-space: normal; line-height: 1.3; min-height: 52px; border-radius: 14px; padding: 8px 10px; }
.chips.grid .chip > span:not(.tile) { flex: 1; min-width: 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 4px; scrollbar-width: none; }
.tile { width: 46px; height: 46px; border-radius: 12px; background: var(--tb, var(--tint)); color: var(--tf, var(--brand)); display: grid; place-items: center; flex: none; overflow: hidden; }
.tile .ico-svg { width: 22px; height: 22px; }
.tile.sm { width: 34px; height: 34px; border-radius: 10px; }
.tile.sm .ico-svg { width: 18px; height: 18px; }
/* Review D: category count badge tinted with the category colour; centre (markaz) cards get a pin; last row balanced. */
.chip.cat b { background: var(--tb, var(--tint)); color: var(--tf, var(--brand)); font-weight: 700; font-size: 12px; min-width: 26px; padding: 2px 8px; border-radius: 999px; text-align: center; font-variant-numeric: tabular-nums; }
.chip.mk .tile { --tb: var(--tint); --tf: var(--brand); }
.chips.grid { --cols: 2; display: flex; flex-wrap: wrap; justify-content: center; }
.chips.grid > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap, 8px)) / var(--cols)); min-width: 0; }
.tile.has-logo { background: #fff; border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-block-end: 8px; }
.crumbs a { color: var(--brand2); text-decoration: none; }
.list-head { margin-block-end: 14px; }
.list-head h1 { font-size: 22px; line-height: 1.3; }
.list-head > p { color: var(--muted); margin-block-start: 4px; }
.list-head .count { color: var(--muted); margin-block: 2px 12px; font-size: 13px; }
.filters { display: grid; gap: 8px; margin-block-end: 14px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 13px; }
.panel { background: #fff; border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--r); border: 1px dashed #c9d8dc; }

/* ---------- home ---------- */
.hero { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 16px; margin-block-end: 20px; }
.hero h1 { font-size: 22px; line-height: 1.3; }
.hero p { color: var(--muted); margin-block: 6px 14px; font-size: 14px; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 46px; padding-inline: 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.search input:focus { border-color: var(--brand2); outline: none; }
.block.biz { background: var(--tint); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.block.biz p { margin-block-end: 12px; color: var(--muted); }
.share-hub { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--wa-l); background: #fff; color: var(--wa); font-weight: 600; font-size: 13px; text-decoration: none; }
.pill-link .ico-svg { width: 16px; height: 16px; }
.featured-strip { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.strip-ad { text-align: center; font-size: 13px; margin: 12px 0 0; color: var(--muted); }
.strip-ad a { color: var(--brand); font-weight: 600; }
.more { text-align: center; margin-block-start: 14px; }

/* ---------- result cards + quick view ---------- */
.cards { display: grid; gap: 10px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.card.featured { border-color: #bcd6dc; box-shadow: 0 0 0 1px #bcd6dc inset; }
.card-main { display: flex; gap: 12px; align-items: center; padding: 14px; text-decoration: none; color: inherit; border-radius: 16px; }
.card-main:hover { background: #fafcfc; }
.card-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.card .name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card .meta, .qv-h + .meta { color: var(--muted); font-size: 12.5px; }
.card .addr { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; flex: none; align-self: flex-start; }
.badge.open { color: var(--open); background: var(--open-bg); }
.badge.closed { color: var(--closed); background: var(--closed-bg); }
.feat { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--brand); background: var(--tint); padding: 1px 8px; border-radius: 999px; }
.feat .ico-svg { width: 12px; height: 12px; }
.feat.partner { color: #fff; background: var(--brand); }
.duty { font-size: 12.5px; font-weight: 600; }
.duty.now { color: var(--open); }
.duty.later { color: var(--closed); }
.duty-block .empty { margin: 0 0 8px; }
.card-qv[hidden] { display: none; }
.hrow { display: flex; gap: 14px; align-items: center; }
.hrow .tile { width: 56px; height: 56px; border-radius: 16px; }
.hrow .tile .ico-svg { width: 26px; height: 26px; }
.qv-h { font-size: 19px; font-weight: 700; line-height: 1.3; }
.chips .chip.open, .chip.open { background: var(--open-bg); color: var(--open); font-weight: 600; border: 0; }
.chip.closed { background: var(--closed-bg); color: var(--closed); font-weight: 600; border: 0; }
.chip.open i, .chip.closed i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.partner { background: var(--brand); color: #fff; border: 0; font-weight: 600; }
.qv .chips { margin-top: 12px; }
.qv .chips .chip { font-size: 12px; padding: 5px 10px; }
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.acts.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acts.n1 { grid-template-columns: 1fr; }
.acts .btn { padding-inline: 6px; min-width: 0; }
.act.site { margin-top: 14px; }
.qv-rows { margin-top: 12px; }
.qv-rows .row, .row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.qv-rows .row:first-child { border-top: 0; }
.row .ico-svg { color: var(--muted); margin-top: 1px; }
.qv-links { margin-top: 12px; display: flex; justify-content: center; }
.act.share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: none; }
.act.share:hover { border-color: var(--brand2); background: var(--soft); }
.act.share .ico-svg { width: 17px; height: 17px; }
.qv .more { display: flex; justify-content: center; align-items: center; gap: 6px; height: 46px; margin-top: 12px; border-radius: 12px; background: #f1f5f6; font-weight: 600; font-size: 14px; color: var(--brand); text-decoration: none; }
.qv-dim { position: fixed; inset: 0; z-index: 2000; background: rgb(9 25 30 / .45); display: flex; align-items: flex-end; justify-content: center; }
.qv-dim[hidden] { display: none; }
.qv { position: relative; width: 100%; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 18px 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); animation: qvUp .2s ease-out; }
.qv-grab { width: 40px; height: 4px; border-radius: 4px; background: #d4dde0; margin: 0 auto 14px; }
.qv-x { position: absolute; inset-inline-end: 14px; top: 14px; width: 32px; height: 32px; border-radius: 10px; background: #f1f4f5; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.qv .hrow { padding-inline-end: 40px; }
@keyframes qvUp { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) {
	.qv-dim { align-items: center; padding: 24px; }
	.qv { max-width: 460px; border-radius: 20px; padding: 22px; }
	.qv-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .qv { animation: none; } }
body.qv-open { overflow: hidden; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-block: 20px; }

/* ---------- map ---------- */
.map-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px; }
.map-filter select { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding-inline: 12px; font: inherit; background: #fff; min-width: 0; max-width: 100%; }
.map-legend { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 8px; margin-block-end: 6px; scrollbar-width: none; }
.map-legend .chip { font-size: 13px; padding: 7px 12px; }
.map-legend .chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--tf, var(--open)); }
.map-legend .chip.open-now i { background: var(--open); }
.map-legend .chip.lg[aria-pressed="false"] { opacity: .45; }
.map-legend .chip.open-now[aria-pressed="true"] { background: var(--open-bg); color: var(--open); border-color: var(--open-bg); font-weight: 600; }
.map { height: 70vh; min-height: 360px; border-radius: 18px; border: 1px solid var(--line); z-index: 0; }
.leaflet-popup-content { font-family: var(--font); line-height: 1.5; }
.leaflet-popup-content a { color: var(--brand); font-weight: 600; }
.pop-acts { display: flex; gap: 6px; margin-top: 8px; }
.leaflet-popup-content .pop-acts .btn { height: 38px; padding-inline: 12px; font-size: 13px; flex: 1; }
.leaflet-popup-content .pop-acts .btn.pri { color: #fff; }
.leaflet-popup-content .pop-acts .btn:not(.pri) { color: var(--ink); }
.pop-acts .ico-svg { width: 16px; height: 16px; }
.bhn-pin { background: none; border: 0; }
.bhn-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--tf); border: 2px solid #fff; box-shadow: 0 3px 8px rgb(0 0 0 / .3); }
.bhn-pin span .ico-svg { width: 17px; height: 17px; color: #fff; transform: rotate(45deg); }
.bhn-pin.is-closed span { opacity: .5; filter: grayscale(.4); }
.bhn-cluster { background: none; border: 0; }
.bhn-cluster span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; border: 3px solid rgb(255 255 255 / .9); box-shadow: 0 0 0 4px rgb(3 58 70 / .2); cursor: pointer; }

/* ---------- forms (join / claim / remove) ---------- */
.bhn-signup { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.bhn-signup label, .seedform label { display: grid; gap: 4px; font-weight: 500; font-size: 14px; min-width: 0; }
.bhn-signup input, .bhn-signup select, .seedform input, .seedform textarea { width: 100%; min-width: 0; max-width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); }
.bhn-signup input:focus, .bhn-signup select:focus, .seedform input:focus, .seedform textarea:focus { border-color: var(--brand2); outline: none; }
.bhn-signup button, .seedform button { height: 46px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.bhn-signup button[disabled] { opacity: .6; cursor: progress; }
.bhn-signup .err, #bhn-slug-msg.err { color: #a3261b; }
.bhn-signup .ok, #bhn-slug-msg.ok { color: #0b6b3a; }
.bhn-signup .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.bhn-signup label span[dir="ltr"] { overflow-wrap: anywhere; font-weight: 400; color: var(--muted); }
.bhn-signup .bad { border-color: #a3261b; }
.bhn-signup .privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.bhn-signup [hidden] { display: none !important; }
#bhn-slug-msg { margin-block-start: -6px; }
.slug-preview { display: block; font-weight: 400; font-size: 13px; color: var(--muted); background: var(--bg); border: 1px dashed #c9d8dc; border-radius: 10px; padding: 6px 10px; overflow-wrap: anywhere; text-align: start; }
.slug-preview b { color: var(--brand); }
.signup-preview { padding: 8px 12px; border-radius: 10px; background: var(--tint); color: var(--brand); }
.signup-preview bdi { font-weight: 700; overflow-wrap: anywhere; }
.signup-done { display: grid; gap: 8px; text-align: center; padding: 18px 8px; }
.signup-done h2 { font-size: 20px; color: var(--brand); }
.signup-done h3 { margin: 8px 0 0; font-size: 15px; }
.signup-done b { overflow-wrap: anywhere; }
.next-steps { text-align: start; margin: 0 auto; max-width: 440px; display: grid; gap: 6px; padding-inline-start: 22px; list-style: decimal; }
.seedform { display: grid; gap: 12px; max-width: 460px; }
.seedform .hint { margin: 0; }
.hp { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* no offset: left:-9999px widened RTL pages (blank claim/remove on phones) */
.note { padding: 10px 12px; border-radius: 12px; margin: 0 0 12px; font-size: 14px; }
.note.ok { background: var(--open-bg); color: var(--open); }
.note.err { background: var(--closed-bg); color: var(--closed); }
.done-ico { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 4px; border-radius: 18px; background: var(--tint); color: var(--brand); }
.done-ico .ico-svg { width: 28px; height: 28px; }
.ready-card { max-width: 560px; margin: 8px auto 24px; text-align: center; display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 18px; }
.ready-card h1 { font-size: 22px; color: var(--brand); }
.ready-card .done-ico.ok { background: var(--open-bg); color: var(--open); }
.ready-link { font-weight: 600; color: var(--brand); background: var(--bg); border: 1px dashed #c9d8dc; border-radius: 10px; padding: 6px 10px; overflow-wrap: anywhere; }
.ready-forgot a { color: var(--brand); font-size: 13px; }

/* ---------- join + advertise ---------- */
.join-head .pill { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 8px; font-size: 13px; font-weight: 500; color: var(--brand); background: var(--tint); padding: 4px 12px; border-radius: 999px; }
.join-head .pill .ico-svg { width: 16px; height: 16px; }
.join-form { margin-block-end: 24px; }
.adv-steps, .faq, .gets { margin-block-end: 24px; }
.tiles, .wins { display: grid; gap: 10px; }
.wins li, .tiles li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.wins .num, .tiles .ico { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--brand); font-weight: 700; }
.wins .num .ico-svg, .tiles .ico .ico-svg { width: 22px; height: 22px; }
.wins li > span:last-child, .tiles li > span:last-child { color: var(--muted); font-size: 13.5px; }
.steps { display: grid; gap: 10px; counter-reset: st; margin: 0 0 24px; }
.steps li { counter-increment: st; position: relative; display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; padding-inline-start: 58px; }
.steps li::before { content: counter(st); position: absolute; inset-inline-start: 14px; top: 14px; width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps li span { color: var(--muted); font-size: 13.5px; }
.adv-hero { background: var(--brand); color: #fff; border-radius: 18px; padding: 26px 18px; margin-block-end: 20px; }
.adv-hero .kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--sky); padding: 3px 12px; border-radius: 999px; margin-block-end: 10px; }
.adv-hero .kicker .ico-svg { width: 15px; height: 15px; }
.adv-hero h1 { font-size: 26px; line-height: 1.25; }
.adv-hero p { opacity: .92; margin-block: 8px 18px; max-width: 46ch; }
.adv-hero .btn.wa-btn, .adv-final .btn.wa-btn { background: var(--wa); border-color: var(--wa); color: #fff; }
.adv-grid { display: grid; gap: 20px; margin-block-end: 24px; }
.adv h2 { margin: 18px 0 8px; }
.adv .price { font-size: 17px; font-weight: 600; color: var(--brand); }
.mock { margin: 0; display: grid; gap: 10px; justify-items: center; }
.mock figcaption { color: var(--muted); font-size: 13px; text-align: center; max-width: 34ch; }
.mock-phone { width: min(100%, 290px); border: 8px solid #10181b; border-radius: 30px; background: var(--bg); overflow: hidden; }
.mock-top { background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 14px; }
.mock-body { padding: 10px; display: grid; gap: 8px; }
.mock-h { font-weight: 700; font-size: 13px; }
.mock-card { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px; opacity: .55; }
.mock-card.on { opacity: 1; border-color: var(--brand2); box-shadow: 0 0 0 1px var(--brand2) inset; }
.mock-logo { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--brand); font-weight: 700; }
.mock-text { display: grid; font-size: 12.5px; min-width: 0; }
.mock-text small { color: var(--muted); }
.price-card { position: relative; background: #fff; border: 1.5px solid var(--brand2); border-radius: 18px; padding: 22px 18px; margin-block-end: 24px; text-align: center; }
.price-card .ticks { text-align: start; margin: 14px auto 18px; max-width: 360px; }
.price-label { color: var(--muted); font-size: 13px; }
.price-big { font-size: 32px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--open-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-block-end: 8px; }
.faq summary { cursor: pointer; font-weight: 500; padding: 14px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 14px 14px; color: var(--muted); }
.plans { margin-block-end: 24px; }
.plans-sub { color: var(--muted); margin: -6px 0 14px; font-size: 14px; }
.plans-grid { display: grid; gap: 14px; }
.plan { position: relative; display: grid; gap: 10px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; }
.plan h3 { font-size: 17px; }
.plan-price { font-size: 19px; font-weight: 700; color: var(--brand); }
.plan-lead { color: var(--muted); font-size: 14px; }
.plan .btn { justify-self: stretch; }
.plan.pro { border: 1.5px solid var(--brand2); background: linear-gradient(180deg, #f3f8f9, #fff); }
.plan-tag { position: absolute; top: -12px; inset-inline-start: 18px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--brand); }
.plan-ico .ico-svg { width: 24px; height: 24px; }
.adv-final { text-align: center; background: var(--tint); border-radius: 18px; padding: 22px 16px; margin-block-end: 8px; }
.reach { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto; padding: 10px 16px; max-width: 520px; border-radius: 999px; background: var(--tint); color: var(--brand); }
.reach b { font-size: 17px; }

/* button pairs: stacked full width on phones, side by side from 600px */
.nf-links { display: grid; grid-template-columns: 1fr; gap: 10px; }
.nf-links .btn { width: 100%; }
@media (min-width: 600px) {
	.nf-links { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 520px; }
	.nf-links:has(> :only-child) { max-width: 300px; }
	.adv-final .nf-links, .ready-card .nf-links { margin-inline: auto; }
}
.nf-search { margin-block: 16px; max-width: 560px; }
.nf-cats { margin-top: 18px; }

/* ---------- legal / empty / duty / install ---------- */
.legal { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; line-height: 1.8; max-width: 760px; margin: 0 auto; }
.legal h1 { color: var(--brand); font-size: 22px; }
.legal h2 { font-size: 16px; margin: 22px 0 6px; color: var(--brand); }
.legal ul { padding-inline-start: 20px; list-style: disc; }
.legal a { color: var(--brand); font-weight: 500; }
.legal { overflow-wrap: anywhere; }
.legal h2 { scroll-margin-top: 84px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.legal-meta .ico-svg { width: 15px; height: 15px; }
.legal .toc { background: var(--tint); border-radius: 14px; padding: 12px 16px; margin: 0 0 18px; font-size: 14px; }
.legal .toc b { display: block; color: var(--brand); margin-bottom: 4px; }
.legal .toc ol { margin: 0; padding-inline-start: 22px; list-style: decimal; columns: 2 220px; column-gap: 24px; }
.legal .toc li { margin: 0 0 4px; break-inside: avoid; }
.legal[lang="ar"] .toc ol { list-style: arabic-indic; }
.legal .toc a { font-weight: 500; text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal-more { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .legal { padding: 16px 14px; border-radius: 14px; line-height: 1.75; } .legal h1 { font-size: 20px; } }
.contact-list { list-style: none !important; padding: 0 !important; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 6px; }
.empty-state { display: grid; gap: 10px; }
.empty-state .try { padding-inline-start: 20px; display: grid; gap: 6px; list-style: disc; }
.empty-state .try a { color: var(--brand); font-weight: 500; }
.empty-state h2 { font-size: 15px; margin: 8px 0 0; }
.empty-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; margin: 6px 0 0; color: var(--muted); }
.open-hint { margin-top: 6px; }
.duty-submit { margin-top: 22px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: center; }
.duty-submit h2 { margin: 0 0 6px; font-size: 16px; }
.duty-submit p { color: var(--muted); }
.install { position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--brand); color: #fff; border-radius: 16px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .4); }
.install[hidden] { display: none; }
.install span { flex: 1; font-size: 14px; line-height: 1.5; }
.install .btn { height: 40px; background: #fff; color: var(--brand); border-color: #fff; }
.install .x { background: transparent; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }

@media (min-width: 640px) {
	.hero { padding: 30px 28px; }
	.hero h1 { font-size: 28px; }
	.chips.grid { --cols: 3; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.adv-hero { padding: 40px 34px; }
	.adv-hero h1 { font-size: 34px; }
	.plans-grid, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.steps li { padding-inline-start: 14px; padding-block-start: 56px; }
	.btn.wide { width: auto; min-width: 280px; }
	.qv .btn.wide, .hero-card .btn.wide { width: 100%; }
}
@media (min-width: 860px) { .adv-grid { grid-template-columns: 1.2fr 1fr; align-items: center; } }
@media (min-width: 960px) { .chips.grid { --cols: 5; } }

/* /advertise/ packages (Network Admin → Billing settings → Featured packages) */
.pkgs { display: grid; gap: 10px; margin: 16px auto 4px; max-width: 640px; padding: 0; list-style: none; }
.pkgs .pkg { position: relative; display: grid; gap: 2px; padding: 14px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--soft); text-align: center; }
.pkgs .pkg b { font-size: 15px; }
.pkgs .pkg-price { font-size: 22px; font-weight: 700; color: var(--brand); }
.pkgs .pkg small { color: var(--muted); font-size: 12.5px; }
.pkgs .pkg.best { border-color: var(--brand2); background: #fff; }
.pkgs .pkg-tag { position: absolute; top: -10px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 11.5px; padding: 2px 10px; border-radius: 999px; }
[dir="rtl"] .pkgs .pkg-tag { transform: translateX(50%); }
@media (min-width: 600px) { .pkgs.n2 { grid-template-columns: repeat(2, 1fr); } .pkgs.n3 { grid-template-columns: repeat(3, 1fr); } .pkgs.n4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .pkgs.n4 { grid-template-columns: repeat(4, 1fr); max-width: 820px; } }

/* App install banner: a small corner card on wide screens, never a full-width bar over content */
@media (min-width: 720px) { .install { inset-inline: auto 16px; max-width: 380px; bottom: 16px; } }
.price-card, [id] { scroll-margin-top: 84px; }

/* Listing card cover thumbnail (first photo), in place of the category tile. Owner item 6, 2026-12-05. */
.card .thumb { width: 76px; height: 60px; border-radius: 12px; overflow: hidden; flex: none; background: var(--soft, #f1f6f7); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
