/* Personal area. Inherits the theme's fonts and colours where it can, and
   defines only what it must — the plugin renders content, not a site. */

/* ⚠️ 1120 ולא 760: מאז שיש תפריט צד, 760 השאיר לתוכן עצמו כ-540 פיקסלים —
   צר יותר משורות המודעות שהוא אמור להחזיק. */
.ar-account {
	max-width: 1120px;
	margin: 0 auto;
	line-height: 1.6;
}

/* רוחב מלא — אותה הגדרה של הלוחות, לא הגדרה שנייה. אז אלמנטור קובע. */
.ar-account.is-full { max-width: none; }

/* טפסים נשארים בעמודה קריאה גם במסך רחב: שדה טקסט ברוחב מטר אינו קל יותר
   למילוי, הוא רק ארוך יותר לעין. */
.ar-account .ar-form { max-width: 820px; }

.ar-account h2 {
	margin: 0 0 12px;
}

/* Honeypot: clipped rather than display:none, which some bots detect — and
   rather than left:-9999px, which in an RTL page gives the document a ten
   thousand pixel scrollbar. */
.ar-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
}

/* Notices */

.ar-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin: 0 0 16px;
	border-inline-start: 4px solid;
}

.ar-notice-ok {
	background: #edf7f0;
	border-color: #2e7d4f;
}

.ar-notice-error {
	background: #fdf0f0;
	border-color: #c0392b;
}

/* ⭐ "נשמר אבל לא עלה" — מצב שלישי שלא היה לו סגנון (2.5.0).
   זו אינה שגיאה של המפרסמת ואין לה מה לתקן, אבל גם אינה הצלחה. ענבר ולא
   אדום: אדום קורא "עשית משהו לא נכון", וירוק היה בדיוק השקר שתוקן. */
.ar-notice-warn {
	background: #fdf6e8;
	border-color: #c8871a;
}

/* Sections and two columns.
   Short fields pair up — city and neighbourhood, rooms and beds, the two
   prices — which is how they are read anyway, and it takes about a third off
   the height of the form. Long ones keep the full width. */

.ar-sec {
	padding: 16px 0;
	border-bottom: 1px solid #f0f2f5;
}

/* .is-last is set by the script on the last part still showing. :last-of-type
   alone counts parts that the category has closed, so the line stayed under a
   part that had become the last visible one. */
.ar-sec:last-of-type,
.ar-sec.is-last {
	border-bottom: 0;
}

.ar-sec > h3 {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	font-size: 16px;
	color: var(--ar-primary, #1596a8);
}

.ar-sec-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: var(--ar-primary, #1596a8);
	color: #fff;
	font-size: 12px;
	flex-shrink: 0;
}

.ar-sec-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 24px;
	align-items: start;
}

/* Label beside the field, not above it — as on the admin screen, so the two
   forms read the same. A fixed label width lines every input up on one
   edge; without it "עיר" and "מספר מיטות" would start their boxes in
   different places and the column would look ragged. */
.ar-account .ar-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ar-account .ar-field > label {
	flex: 0 0 118px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.ar-account .ar-field > label + * {
	flex: 1 1 auto;
	min-width: 0;
}

/* Wide fields keep the label above: a full-width box beside a narrow label
   leaves the label stranded far from what it names. */
.ar-account .ar-field-wide {
	display: block;
}

.ar-account .ar-field-wide > label {
	display: block;
	margin-bottom: 5px;
}

/* Phones: back to stacked. A fixed label plus an input leaves a box too
   narrow to type in. */
@media (max-width: 600px) {
	.ar-account .ar-field {
		display: block;
	}

	.ar-account .ar-field > label {
		display: block;
		margin-bottom: 5px;
	}
}

.ar-sec-body > .ar-field-wide,
.ar-sec-body > .ar-calendar-editor,
.ar-sec-body > .ar-map-preview {
	grid-column: 1 / -1;
}

/* A hidden field must not leave a hole in the grid. */
.ar-sec-body > [hidden] {
	display: none;
}

@media (max-width: 600px) {
	.ar-sec-body {
		grid-template-columns: 1fr;
	}
}

/* Categories not yet open */
.ar-account .ar-type.is-soon {
	opacity: .5;
	cursor: default;
	flex-direction: column;
	gap: 0;
	line-height: 1.25;
	text-align: center;
}

.ar-account .ar-type.is-soon small {
	font-size: 11px;
	color: var(--ar-muted, #7a8595);
}

/* The category shown as a fact on the edit form. A quiet pill, not a control:
   there is nothing to choose here. */
.ar-type-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	background: var(--ar-primary-soft, #e8f4f6);
	color: var(--ar-primary-dark, #107886);
	font-size: 14px;
	font-weight: 600;
}

/* Fields */

.ar-field {
	margin: 0;
}

.ar-field > label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

/* No blanket width cap. It was capping the title and the description at 420px
   and leaving half the row empty — the width belongs to the field, not to a
   single rule for all of them. */
/* ⚠️ The theme sets its own tall padding and a min-height on every form field
   on the site, and it reaches in here — the same cause as the pink buttons.
   The fields came out half a row taller than they should be, with a wide band
   of empty space inside each one.

   Everything a theme commonly injects is stated back explicitly, and the height
   is pinned so no min-height can stretch it. box-sizing keeps the stated height
   honest whatever padding is inherited. */
.ar-form .ar-field input[type="text"],
.ar-form .ar-field input[type="email"],
.ar-form .ar-field input[type="tel"],
.ar-form .ar-field input[type="url"],
.ar-form .ar-field input[type="date"],
.ar-form .ar-field input[type="number"],
.ar-form .ar-field select,
.ar-field input[type="text"],
.ar-field input[type="email"],
.ar-field input[type="tel"],
.ar-field input[type="url"],
.ar-field input[type="date"],
.ar-field input[type="number"],
.ar-field select {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	min-height: 0;
	padding: 0 11px;
	margin: 0;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	line-height: normal;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
}

/* A select keeps room for its own arrow on the correct side of an RTL box. */
.ar-form .ar-field select,
.ar-field select {
	padding-inline-end: 30px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7684' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 12px center;
}

/* The textarea keeps padding on both axes — it is meant to be tall — but its
   inherited min-height and margins are still cleared. */
.ar-form .ar-field textarea,
.ar-field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
	padding: 9px 11px;
	margin: 0;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	line-height: 1.5;
	background: #fff;
}

.ar-field input:focus,
.ar-field select:focus,
.ar-field textarea:focus {
	outline: 2px solid var(--ar-primary, #1596a8);
	outline-offset: 1px;
}

.ar-req {
	color: #c0392b;
}

.ar-note {
	margin: 5px 0 0;
	font-size: 13px;
	opacity: .75;
}

/* The character count. Left-aligned under the box, out of the way until it
   matters — grey while there is room, amber near the end, red past it. */
.ar-count-note {
	margin: 4px 0 0;
	font-size: 12px;
	text-align: left;
	color: var(--ar-muted, #6b7684);
}

.ar-count-note.is-near {
	color: #a86a12;
}

.ar-count-note.is-over {
	color: #b32d2e;
	font-weight: 600;
}

/* A list that is not open yet — the neighbourhood before a city is chosen.
   Plainly switched off rather than missing: the field keeps its place in the
   form, and its placeholder says what has to happen first.

   Two things had to be got right here, and both were wrong:
   - `.ar-field select:disabled`, not `select:disabled`. The plain grey rule tied
     on specificity with `.ar-field select { background:#fff }`, which comes
     later — so the lock colour was overwritten by white and the field looked
     enabled and empty, not switched off.
   - `background-color`, not the `background` shorthand. The shorthand resets
     background-image, which is where the drop-down arrow lives — so the one
     field that most needed to say "I am a list, not a box" was the only one
     with no arrow at all. */
.ar-account .ar-field select:disabled {
	background-color: #eceff2;
	color: #949ca6;
	border-color: #d9dee3;
	cursor: not-allowed;
	opacity: 1; /* Safari fades disabled controls to near-white on its own */
}

.ar-account .ar-field.is-locked label {
	color: #8b949e;
}

/* "Not on the list? Tell us." — one line spanning both columns, directly under
   the city/neighbourhood row. As a grid sibling it clears the row above rather
   than crowding in beside a field. The lists are closed on purpose (an owner
   picks a city and cannot invent one, which stops two spellings of the same
   place from splitting the board); this is the way out for a town that really
   is missing. */
.ar-sec-body > .ar-missing-term {
	grid-column: 1 / -1;
	margin: -4px 0 2px;
	font-size: 12.5px;
}

.ar-account .ar-missing-term a {
	color: var(--ar-primary, #1596a8);
	text-decoration: underline;
}

.ar-unit {
	margin-inline-start: 8px;
	opacity: .75;
}

.ar-code-input {
	font-size: 22px !important;
	letter-spacing: 8px;
	font-weight: 700;
	text-align: center;
}

/* Category picker */

.ar-types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* No boxes around choices. A frame around every option turns a list of ten
   amenities into ten competing objects; the words and their ticks are enough,
   given room to breathe. */
.ar-type,
.ar-check {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.ar-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.ar-types {
	gap: 8px 22px;
}

/* The add form's category chooser — prominent, because the category decides the
   whole form and the rest of it stays hidden until one is picked. */
.ar-type-choose {
	display: block; /* stack: label, one row of options, hint — not the field's columns */
	background: var(--ar-soft, #f5f7f9);
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 20px;
}
.ar-choose-lbl {
	display: block;
	font-size: 17px;
	font-weight: 800;
	margin-bottom: 12px;
}
/* Wrap cleanly to a second line if they do not fit — no scrollbar. */
.ar-types-big { gap: 10px; flex-wrap: wrap; }
.ar-types-big .ar-type { white-space: nowrap; }
/* No radio circle: the highlighted card itself is the selection. The input is
   kept (the form still needs it) but taken out of sight. */
.ar-types-big .ar-type input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.ar-types-big .ar-type {
	padding: 10px 18px;
	border: 1.5px solid var(--ar-line, #e6e9ef);
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	transition: border-color .12s, background .12s, box-shadow .12s;
}
.ar-types-big .ar-type:hover { border-color: var(--ar-primary, #1596a8); }
.ar-types-big .ar-type:has(input:checked) {
	border-color: var(--ar-primary, #1596a8);
	background: var(--ar-soft-teal, #eef7f8);
	box-shadow: inset 0 0 0 1px var(--ar-primary, #1596a8);
}
.ar-choose-hint { margin: 12px 0 0; font-size: 13px; color: var(--ar-muted, #6b7684); }

/* Buttons */

.ar-btn {
	display: inline-block;
	padding: 10px 22px;
	border: 0;
	border-radius: 4px;
	background: var(--ar-primary, #1596a8);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.ar-btn:hover {
	background: var(--ar-primary-dark, #11798a);
	color: #fff;
}

.ar-btn-small {
	padding: 6px 14px;
	font-size: 14px;
}

.ar-link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--ar-primary, #1596a8);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.ar-danger {
	color: #c0392b;
}

/* The save bar stays on screen.
   The form is long — categories, prices, a calendar — and changing one number
   near the top meant scrolling past everything else to reach a button. Sticky
   rather than fixed, so at the foot of the form it settles into its own place
   instead of hovering over the end of the page forever.

   An opaque background is not decoration here: the fields scroll underneath. */
.ar-actions {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-top: 24px;
	padding: 14px 0;
	background: #fff;
	box-shadow:
		0 -1px 0 #e9edf1,
		0 -10px 16px -12px rgba(20, 35, 60, .3);
}

/* The bar spans the form's full width even where a part is padded, so nothing
   shows through at its edges. */
.ar-account .ar-actions {
	margin-inline: 0;
}

@media (max-width: 600px) {
	.ar-actions {
		padding: 12px 0;
		gap: 10px 12px;
	}

	/* The save button takes the row on a phone; the other two share the next.
	   Wrapping them all into a column would push the fields too far up. */
	.ar-actions .ar-btn {
		flex: 1 1 100%;
	}
}

/* Header and toolbar */

.ar-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	padding-bottom: 12px;
	margin-bottom: 20px;
	border-bottom: 1px solid #e3e3e3;
}

.ar-head-nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* ---------- Going back, and signing out ----------
   These two must not look alike. They used to: signing out wore .ar-link, the
   same small underlined text as "ביטול" and "חזרה" — every one of which is
   harmless navigation. With no back link on the bar at all, the only thing that
   looked like a way out was the one that ended the session. */

/* .ar-head-back and not .ar-back: that name is already the "חזרה לתוצאות"
   button on the listing page, and public.css is loaded here too. Its rule is
   scoped to .ar-single-top so nothing collides today — but a name that means
   two things is a collision waiting for someone to widen a selector. */
.ar-account .ar-head-back {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 12px;
	border: 1px solid var(--ar-primary, #1596a8);
	border-radius: 6px;
	background: #fff;
	color: var(--ar-primary, #1596a8);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
}

.ar-account .ar-head-back:hover {
	background: var(--ar-primary, #1596a8);
	color: #fff;
}

/* Grey, unboxed, and smaller. It should be findable without being the thing the
   eye lands on when looking for the way back. */
.ar-account .ar-signout {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 4px;
	border: 0;
	background: none;
	color: #7d8794;
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1;
	height: auto;
	min-height: 0;
	text-decoration: none;
	cursor: pointer;
}

.ar-account .ar-signout:hover {
	color: #c0392b;
	background: none;
}

.ar-logout {
	margin: 0;
}

@media (max-width: 600px) {
	/* The greeting takes its own row, so neither control shrinks to fit
	   beside it. */
	.ar-hello {
		flex: 1 1 100%;
	}

	.ar-head-nav {
		width: 100%;
		justify-content: space-between;
	}
}

.ar-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

/* The only filled button on the screen. Everything in the rows below is
   quieter than it, which is the whole point of the arrangement. */
.ar-toolbar .ar-btn {
	gap: 8px;
}

.ar-toolbar h2 {
	margin: 0;
}

.ar-count {
	opacity: .6;
	font-weight: normal;
}

/* Icons are drawn in the markup rather than fetched from a font or a library,
   and they inherit the surrounding colour — so the bin turns red at exactly
   the moment the word beside it does. */
.ar-account .ar-i {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Board tabs ---------- */

.ar-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0 0 4px;
	border-bottom: 1px solid #e3e6ea;
}

.ar-account .ar-tab {
	padding: 10px 18px;
	margin-bottom: -1px;
	border-bottom: 3px solid transparent;
	color: var(--ar-muted, #7a8595);
	font-size: 14.5px;
	text-decoration: none;
}

.ar-account .ar-tab:hover {
	color: var(--ar-text, #1f2933);
}

.ar-account .ar-tab.is-on {
	color: var(--ar-primary, #1596a8);
	border-bottom-color: var(--ar-primary, #1596a8);
	font-weight: 700;
}

/* A small circle with the count of published listings in the category. */
.ar-tab-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	margin-inline-start: 6px;
	border-radius: 999px;
	background: var(--ar-primary-soft, #e8f4f6);
	color: var(--ar-primary-dark, #107886);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
}

.ar-account .ar-tab.is-on .ar-tab-n {
	background: var(--ar-primary, #1596a8);
	color: #fff;
}

/* A board that did not answer. Said in its own place, so the rest of the
   personal area carries on around it rather than falling over with it. */
.ar-source-down {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 16px;
	padding: 12px 14px;
	background: #f8f8f9;
	border: 1px dashed #cdd4d8;
	border-radius: 5px;
	font-size: 13.5px;
	color: var(--ar-muted, #7a8595);
}

/* ---------- The VILOT boards, read-only ----------
   Exchange / rental / demand listings pulled from the sheets. Read-only for
   now, so no action buttons — a card per listing, its fields as label/value. */

.ar-board-lead {
	margin: 4px 0 16px;
	font-size: 14.5px;
	color: var(--ar-text, #1f2933);
}

.ar-board-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.ar-board-item {
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 8px;
	background: #fff;
}

/* Closed by default: a scannable row of title + status, like the holiday
   listings. The full field list is behind the click, not sprayed open. */
.ar-board-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	list-style: none;
}

/* The browser's default disclosure triangle, removed in both dialects. */
.ar-board-summary::-webkit-details-marker { display: none; }
.ar-board-summary::marker { content: ''; }

.ar-board-titlewrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}

.ar-board-title {
	font-size: 16px;
	font-weight: 600;
}

/* "פרטים ⌄" — the word plus a caret that flips when the card opens. */
.ar-board-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--ar-primary, #1596a8);
	white-space: nowrap;
}

.ar-board-toggle::after {
	content: '';
	width: 8px;
	height: 8px;
	border-inline-end: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-bottom: 2px;
	transition: transform .15s;
}

.ar-board-details[open] .ar-board-toggle::after {
	transform: rotate(-135deg);
	margin-bottom: -2px;
}

.ar-board-id {
	margin: 0;
	padding: 0 16px;
	font-size: 12px;
	color: var(--ar-muted, #7a8595);
}

/* Two columns on a desk, one on a phone. Label muted above its value, so a long
   sheet reads as a form rather than a wall. */
.ar-board-pairs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 22px;
	margin: 10px 0 0;
	padding: 0 16px 16px;
}

.ar-board-pairs > div {
	min-width: 0;
}

.ar-board-pairs dt {
	font-size: 12px;
	color: var(--ar-muted, #7a8595);
	margin: 0 0 2px;
}

.ar-board-pairs dd {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	word-break: break-word;
}

@media (max-width: 600px) {
	.ar-board-pairs {
		grid-template-columns: 1fr;
	}
}

/* The board add / edit / remove controls were removed with the sheet-writing
   layer they belonged to. The boards are read-only until their data moves to
   the database — see סדר-בנייה.md. */

/* Category is an outlined tag, status a filled pill. Two different questions,
   so they must not look like the same kind of label. */
/* Filled and fully rounded. As an outlined box with square corners it was
   shaped exactly like the buttons in the same row and read as one — a label
   that invites a press it cannot answer.
   It still has to stay apart from the status label beside it, which is also
   filled: this one is a saturated colour with a rounded end, that one is a pale
   tint with square corners. Two questions, two shapes. */
.ar-tag {
	display: inline-block;
	margin-inline-end: 6px;
	padding: 2px 10px;
	border: 0;
	border-radius: 999px;
	background: #5b6673; /* an unknown category still reads as a label */
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	vertical-align: 1px;
}

/* The same four hues as before, now as the fill rather than the outline. */
.ar-tag-nofesh        { background: #157a8a; }
.ar-tag-haskara       { background: #3f6ea8; }
.ar-tag-mechira       { background: #7a5c8f; }
.ar-tag-yechidat-diur { background: #2f7a52; }

/* Listing rows */

.ar-listings {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Top-aligned, not centred: the buttons sit inside the body now, so the row is
   taller than the thumbnail and centring floated the picture away from the name
   it belongs to. */
.ar-listing {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}

.ar-listing-img {
	flex: 0 0 80px;
	height: 80px;
	border-radius: 4px;
	overflow: hidden;
	background: #f2f2f2;
}

.ar-listing-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ar-no-img {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef1f2;
	border: 1px dashed #cdd4d8;
	color: #9aa4ab;
}

.ar-no-img .ar-i {
	width: 22px;
	height: 22px;
	flex: none;
}

.ar-listing-body {
	flex: 1 1 auto;
	min-width: 0;
}

.ar-listing-body h3 {
	margin: 0 0 4px;
	font-size: 17px;
}

.ar-listing-meta {
	margin: 0;
	font-size: 13px;
	opacity: .8;
}

/* Under the name, not across the row from it.
   At the far edge these sat half a screen from the listing they act on, and
   their number changes with the listing — so the edit button was never twice in
   the same place. Two flats sharing a name, a city and a price is ordinary
   here, and that is where a long reach to a moving button goes wrong. */
.ar-listing-actions {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 7px;
	/* Room to breathe under the details line — at 10px the boxes crowded the
	   text they belong to. */
	margin-top: 14px;
}

.ar-inline-form {
	display: inline-flex;
	margin: 0;
}

/* ---------- Row actions ----------
   Nothing hidden behind a menu, and nothing relying on hover: a telephone has
   no hover, so an unlabelled icon is a guess — and one of these is a bin.

   Every action is the same fixed height, set here and not through padding.
   Padding would make the two-line buttons taller than the one-line ones, which
   is precisely the misalignment that made the old row look broken. */
/* Lying down rather than standing up.
   Stacked at 56px they were four times the height of the line of text they now
   sit under — the buttons landed before the flat's name did, in a list whose
   only job is telling one flat from another. Side by side they come to 34,
   which is still a comfortable target with the padding at its sides. */
.ar-account .ar-act {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	height: 34px;
	min-width: 0;
	padding: 0 12px;
	margin: 0;
	border: 1px solid #e3e6ea;
	border-radius: 4px;
	background: #fff;
	color: var(--ar-muted, #7a8595);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}

.ar-account .ar-act:hover {
	background: #f0f2f3;
	border-color: #cdd4d8;
	color: var(--ar-text, #1f2933);
}

/* Editing is the one action people came for, so it carries the colour — but as
   an outline. A filled button here would compete with "add a listing", which
   is the only thing on the page that earns a solid fill. */
.ar-account .ar-act-main {
	border-color: var(--ar-primary, #1596a8);
	color: var(--ar-primary, #1596a8);
	font-weight: 600;
}

.ar-account .ar-act-main:hover {
	background: var(--ar-primary, #1596a8);
	border-color: var(--ar-primary, #1596a8);
	color: #fff;
}

/* Red only on contact. A row of permanently red bins reads as four warnings. */
.ar-account .ar-act-danger:hover {
	background: #fdeceb;
	border-color: #f3c8c5;
	color: #b3261e;
}

.ar-account .ar-act-renew {
	border-color: #d9b45a;
	color: #8a6a1a;
}

.ar-account .ar-act-renew:hover {
	background: #fcf3d5;
	border-color: #d9b45a;
	color: #7a5c10;
}

.ar-account .ar-act[disabled] {
	opacity: .5;
	cursor: default;
}

.ar-account .ar-act[disabled]:hover {
	background: #fff;
	border-color: #e3e6ea;
	color: var(--ar-muted, #7a8595);
}

.ar-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 12px;
}

.ar-status-ok {
	background: #d5f5e3;
	color: #1e6b41;
}

.ar-status-wait {
	background: #fcf3d5;
	color: #8a6d1a;
}

.ar-status-draft {
	background: #f0f0f1;
	color: #555;
}

/* Blocked by the site. Red, because unlike every other state here it is not
   something the owner can undo by pressing anything. */
.ar-status-blocked {
	background: #fdeceb;
	color: #b3261e;
	font-weight: 700;
}

.ar-blocked-note {
	margin: 8px 0 0;
	padding: 9px 12px;
	border-radius: 5px;
	background: #fdeceb;
	border-inline-start: 3px solid #c0392b;
	font-size: 13.5px;
	line-height: 1.6;
	color: #7a2019;
}

/* The picture warning, reduced from a full-width strip to a label. It kept the
   warning colour: it is the one label here that asks to be acted on. */
.ar-status-nopic {
	background: #fcf3d5;
	color: #8a6d1a;
	font-weight: 700;
}

/* Image gallery in the form */

.ar-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.ar-thumb {
	position: relative;
	display: block;
	width: 100px;
	cursor: grab;
}

.ar-thumb.is-dragging {
	opacity: .4;
	cursor: grabbing;
}

.ar-thumb img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
	pointer-events: none;
}

/* Marked on the picture itself. "The first one is the main one" written in a
   note underneath is a rule the reader has to hold in their head while looking
   somewhere else entirely. */
.ar-thumb-main {
	position: absolute;
	top: 5px;
	inset-inline-start: 5px;
	background: var(--ar-primary, #1596a8);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 3px;
}

/* ---------- Removing a picture ----------
   A bin sitting on the picture. The control underneath is still a checkbox, so
   removal works without JavaScript and stays undoable until the form is saved —
   which is why the checked state has to be visible on the picture itself. */

.ar-thumb-del {
	position: absolute;
	top: 5px;
	inset-inline-end: 5px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	cursor: pointer;
}

/* Off-screen, not display:none — a hidden input is skipped by the keyboard, and
   this is the only way to remove a picture without a mouse. */
.ar-thumb-del input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}

/* The icon carries the button's own look — background and all — rather than the
   label around it. It is the input's sibling, so the ticked state below can be
   reached with a plain combinator instead of :has(). */
.ar-thumb-del svg {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 6px;
	border-radius: 4px;
	/* Dark rather than white: it sits on a photograph, and a pale bin
	   disappears over a bright sky. */
	background: rgba( 0, 0, 0, .55 );
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.ar-thumb-del:hover svg {
	background: rgba( 192, 57, 43, .92 );
}

/* The focus ring belongs on the bin, since the box it comes from is off-screen.
   Without this, tabbing through the gallery is invisible. */
.ar-thumb-del input:focus-visible + svg {
	outline: 2px solid var(--ar-primary, #1596a8);
	outline-offset: 3px;
	border-radius: 2px;
}

/* The ticked state rides on the icon, the input's own sibling, rather than on
   anything needing :has(). This is the one piece of feedback that must never go
   missing — everything below it is an enhancement on top of it. */
.ar-thumb-del input:checked + svg {
	background: #c0392b;
}

/* Marked for removal: the picture dims and says so. Nothing is deleted yet, and
   a picture that looked untouched until the form was saved would make the tick
   feel as though it had not registered. */
.ar-thumb:has( .ar-thumb-del input:checked ) img {
	opacity: .35;
	filter: grayscale( 1 );
}

/* Sits exactly where the main-picture badge sits, and that badge steps aside
   below. Anchoring it to the bottom instead put it over the arrows: .ar-thumb
   wraps the button bar as well as the picture, so its bottom is not the
   picture's bottom. */
.ar-thumb-gone {
	display: none;
	position: absolute;
	top: 5px;
	inset-inline-start: 5px;
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	padding: 2px 4px;
	border-radius: 3px;
}

.ar-thumb:has( .ar-thumb-del input:checked ) .ar-thumb-gone {
	display: block;
}

/* Two labels stacked in one corner is a pile. The main-picture badge steps
   aside while the removal notice is up. */
.ar-thumb:has( .ar-thumb-del input:checked ) .ar-thumb-main {
	display: none;
}

/* Where :has() is missing, the dimming and the notice simply do not appear. The
   bin still works — it is a real checkbox — and it still turns red, which is
   the part that matters. An earlier fallback here revealed the notice on every
   picture instead, announcing that all of them were about to go. */

.ar-thumb-bar {
	display: flex;
	align-items: center;
	gap: 3px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.ar-account .ar-thumb-move,
.ar-account .ar-thumb-first {
	box-sizing: border-box;
	height: 24px;
	min-height: 0;
	padding: 0 7px;
	border: 1px solid #d7dcdf;
	border-radius: 3px;
	background: #fff;
	color: var(--ar-text, #1f2933);
	font-family: inherit;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.ar-account .ar-thumb-move { width: 24px; padding: 0; }

.ar-account .ar-thumb-move:hover,
.ar-account .ar-thumb-first:hover {
	background: #f0f2f3;
	border-color: #b9c2c7;
}

.ar-account .ar-thumb-move[disabled] {
	opacity: .35;
	cursor: default;
	background: #fff;
	border-color: #d7dcdf;
}

.ar-remove {
	display: block;
	width: 100%;
	font-size: 12px;
	margin-top: 2px;
	cursor: pointer;
}

.ar-gallery-help {
	margin-top: 0;
}

.ar-next-step {
	background: #eef7f8;
	border: 1px solid #cbe6ea;
	border-radius: 4px;
	padding: 9px 12px;
}

/* ?ar_diag=1 — administrators only, and plain on purpose. */
.ar-diag {
	margin: 0 0 18px;
	padding: 12px 14px;
	background: #fbfbfc;
	border: 1px dashed #cdd4d8;
	border-radius: 5px;
	font-size: 13px;
}

.ar-diag table {
	width: auto;
	margin-top: 6px;
	border-collapse: collapse;
}

.ar-diag th,
.ar-diag td {
	padding: 2px 10px 2px 0;
	text-align: start;
	font-weight: 400;
	border: 0;
}

.ar-diag th {
	color: #6b7680;
	white-space: nowrap;
}

.ar-empty {
	padding: 30px 0;
	text-align: center;
	opacity: .7;
}

/* Sign in with Google.
   Google's own colours and shape, because a button people recognise is one
   they trust — this is not the place for the site's palette. */

.ar-account .ar-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 420px;
	height: 48px;
	box-sizing: border-box;
	padding: 0 18px;
	border: 1px solid #dadce0;
	border-radius: 4px;
	background: #fff;
	color: #3c4043;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: none;
}

.ar-account .ar-google-btn:hover {
	background: #f8f9fa;
	border-color: #d2d5d9;
	color: #3c4043;
}

/* ---------- The login card ----------
   A card rather than a form spread across the page. A login screen is four
   boxes in a column; with nothing holding them together they read as loose
   fragments instead of one thing to fill in. */

.ar-account .ar-login {
	display: flex;
	justify-content: center;
	padding: 10px 0 30px;
}

.ar-account .ar-login-card {
	width: 100%;
	max-width: 400px;
}

.ar-account .ar-login-card h2 {
	margin: 0 0 6px;
	font-size: 24px;
	text-align: center;
}

.ar-login-lead {
	margin: 0 0 22px;
	text-align: center;
	color: var(--ar-muted, #7a8595);
	font-size: 14px;
}

.ar-login-crest {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #e6f4f6;
	color: var(--ar-primary, #1596a8);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ar-login-crest svg {
	width: 26px;
	height: 26px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Every control on this screen is 46px tall — buttons and fields alike. One
   box at a different height is the whole design. */
.ar-account .ar-login-card .ar-google-btn,
.ar-account .ar-login-card .ar-btn-block,
.ar-account .ar-login-card .ar-field input {
	height: 46px;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	border-radius: 5px;
	font-size: 15px;
}

.ar-account .ar-btn-block {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
}

/* The label lives inside the frame, above the text: it has no width to
   negotiate with the field, and it cannot break onto its own line on a narrow
   telephone the way a label beside a box does. */
.ar-account .ar-inset {
	border: 1px solid #cfd6da;
	border-radius: 5px;
	background: #fff;
	padding: 7px 13px 5px;
	margin-bottom: 12px;
}

.ar-account .ar-inset:focus-within {
	border-color: var(--ar-primary, #1596a8);
	box-shadow: 0 0 0 3px rgba(21, 150, 168, .15);
}

.ar-account .ar-inset label {
	display: block;
	margin: 0;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ar-muted, #7a8595);
}

.ar-account .ar-inset input {
	width: 100%;
	max-width: none;
	height: 26px;
	border: 0;
	padding: 0;
	margin: 0;
	background: none;
	font: inherit;
	font-size: 15px;
	box-shadow: none;
}

.ar-account .ar-inset input:focus {
	outline: 0;
	box-shadow: none;
}

.ar-login-note {
	margin: 14px 0 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ar-muted, #7a8595);
	text-align: center;
}

.ar-login-again {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
}

/* The address repeated back. A typo caught here costs a click; caught after
   five minutes of waiting for a message that was never coming, it costs the
   whole visit. */
.ar-mailed {
	background: #eef7f8;
	border: 1px solid #cbe6ea;
	border-radius: 5px;
	padding: 11px 13px;
	margin-bottom: 16px;
	font-size: 13.5px;
	text-align: center;
}

.ar-mailed b {
	display: block;
	margin-top: 2px;
	word-break: break-all;
}

/* "or by email code" — a line with the words sitting in it. */
.ar-login-or {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 420px;
	margin: 18px 0;
	color: var(--ar-muted, #7a8595);
	font-size: 14px;
}

.ar-login-or::before,
.ar-login-or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #e3e6ea;
}

/* Declarations — the consent gate above the save button.
   A gold side stripe, as on the existing boards, so it reads as a notice and
   not as another group of fields. */

.ar-declarations {
	margin: 26px 0 0;
	padding: 14px 18px;
	background: #fdfaf0;
	border: 1px solid #f0e3bd;
	border-inline-start: 4px solid var(--ar-accent, #efb02c);
	border-radius: 4px;
}

.ar-declaration {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 0;
	font-size: 15px;
	line-height: 1.55;
	cursor: pointer;
}

.ar-declaration input[type="checkbox"] {
	margin-top: 4px;
	flex-shrink: 0;
}

.ar-declaration a {
	color: var(--ar-primary, #1596a8);
	text-decoration: underline;
}

/* The donation block — its own colour (teal) so it reads apart from the gold
   consent declarations that follow it. */
.ar-donation-block {
	margin: 26px 0 0;
	padding: 14px 18px;
	background: #f0f8fa;
	border: 1px solid #cfe6ea;
	border-inline-start: 4px solid var(--ar-primary, #1596a8);
	border-radius: 4px;
}

.ar-donation-title { margin: 0 0 6px; font-size: 16px; }

.ar-donation-intro { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; }

.ar-donation-link {
	color: var(--ar-primary, #1596a8);
	font-weight: 700;
	text-decoration: underline;
	white-space: nowrap;
}

.ar-donation-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 0;
	font-size: 15px;
	line-height: 1.55;
	cursor: pointer;
}

.ar-donation-check input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }

.ar-donation-hl { color: var(--ar-primary-dark, #107886); font-weight: 700; }

/* "הכל" toggle sits on its own line above the list it controls. */
.ar-check-all { flex-basis: 100%; grid-column: 1 / -1; font-weight: 600; }

/* "התרומה נרשמה" — for a listing that already gave; only the upgrade is offered. */
.ar-donation-given {
	margin: 0 0 8px;
	font-size: 14.5px;
	font-weight: 600;
	color: #1e6b41;
}

/* The highlight status inside the donation block. */
.ar-donation-status { margin: 0; font-size: 15px; line-height: 1.55; }
.ar-donation-status .ar-feat-star { color: var(--ar-accent, #efb02c); }
.ar-donation-note { margin: 6px 0 0; font-size: 13px; color: var(--ar-muted, #6b7684); }

/* ---------- The declarations at the moment of saving ----------
   The script moves the block above into this dialog. The dialog sits inside the
   form so the tick boxes are still submitted with it. */

.ar-declare-dialog {
	width: min(460px, calc(100vw - 32px));
	box-sizing: border-box;
	padding: 22px 24px 20px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: inherit;
	box-shadow: 0 18px 44px rgba(15, 25, 45, .28);
}

.ar-declare-dialog::backdrop {
	background: rgba(12, 22, 38, .45);
}

.ar-declare-dialog h2 {
	margin: 0;
	font-size: 19px;
}

/* Inside the dialog the block is the whole subject, so it drops the tinted
   panel it wears in the form — there is nothing left for it to stand out
   from. */
.ar-declare-dialog .ar-declarations {
	margin: 14px 0 0;
	padding: 0;
	background: none;
	border: 0;
}

.ar-declare-warn {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #c0392b;
}

.ar-declare-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

@media (max-width: 600px) {
	.ar-declare-dialog {
		padding: 18px 16px 16px;
	}

	.ar-declare-actions .ar-btn {
		flex: 1 1 auto;
	}
}

/* The pictures just chosen, before anything is sent */

.ar-chosen {
	margin-top: 10px;
}

.ar-chosen-title {
	margin: 0;
	font-size: 13px;
	color: #1e6b41;
	font-weight: 600;
}

.ar-chosen-hint {
	margin: 2px 0 8px;
	font-size: 12px;
	color: #777;
}

.ar-chosen-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ar-chosen-cell {
	position: relative;
	width: 92px;
}

.ar-chosen-cell img {
	width: 92px;
	height: 92px;
	object-fit: cover;
	border-radius: 5px;
	border: 1px solid #ddd;
	display: block;
}

/* The main picture gets a ring, so which one is the cover is visible at a glance. */
.ar-chosen-cell:first-child img {
	border-color: var(--ar-primary, #1596a8);
	box-shadow: 0 0 0 2px var(--ar-primary, #1596a8);
}

.ar-chosen-main {
	position: absolute;
	inset-inline-start: 4px;
	bottom: 4px;
	background: var(--ar-primary, #1596a8);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 3px;
	line-height: 1.4;
}

/* Remove a picture chosen by mistake — a bin on the corner, not a tick underneath. */
.ar-chosen-del {
	position: absolute;
	top: -7px;
	inset-inline-end: -7px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #c0392b;
	color: #fff;
	font-size: 16px;
	line-height: 20px;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.ar-chosen-del:hover {
	background: #a5281c;
}

/* Make this one the cover. Hidden on the first, which already is. */
.ar-chosen-first {
	position: absolute;
	inset-inline-start: 4px;
	top: 4px;
	background: rgba(255,255,255,.92);
	color: #333;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 11px;
	padding: 2px 7px;
	cursor: pointer;
}

.ar-chosen-first:hover {
	background: #fff;
	border-color: var(--ar-primary, #1596a8);
	color: var(--ar-primary, #1596a8);
}

/* Preview the advertisement */

.ar-account .ar-preview-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 20px;
	border: 1.5px solid var(--ar-primary, #1596a8);
	border-radius: 4px;
	background: #fff;
	color: var(--ar-primary, #1596a8);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.ar-account .ar-preview-btn:hover {
	background: var(--ar-primary, #1596a8);
	color: #fff;
}

.ar-preview-hint {
	font-size: 13px;
}

/* Map preview in the form */

.ar-map-preview {
	margin-top: 10px;
	grid-column: 1 / -1;
}

/* A button, not a box to fill in. With a thin grey border on white it was the
   exact shape of the text fields around it, so "בדיקת המיקום במפה" read as a
   field someone had typed into. An outline in the brand colour, with a pin, and
   it plainly does something when pressed. */
.ar-account .ar-map-check,
.ar-form .ar-map-check {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	border: 1.5px solid var(--ar-primary, #1596a8);
	border-radius: 6px;
	background: #fff;
	color: var(--ar-primary, #1596a8);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ar-account .ar-map-check::before,
.ar-form .ar-map-check::before {
	content: "\1F4CD"; /* 📍 — the same pin the public map button uses */
	font-size: 15px;
}

.ar-account .ar-map-check:hover,
.ar-form .ar-map-check:hover {
	background: var(--ar-primary, #1596a8);
	color: #fff;
}

/* Full width and taller: in a narrow strip it is impossible to tell whether
   the pin landed on the right building, which is the whole purpose. */
.ar-map-preview-frame {
	margin-top: 10px;
}

.ar-map-preview-frame[hidden] {
	display: none;
}

.ar-map-preview-frame iframe {
	width: 100%;
	height: 340px;
	border: 1px solid #ddd;
	border-radius: 4px;
	display: block;
}

.ar-map-preview-msg {
	margin: 6px 0 0;
	font-size: 13px;
	color: #666;
}

/* Bump, renew, and the freeze warning */

/* Bump and renew both carry .ar-act, which already gives them their shape and
   height. Only what makes them different from the other actions belongs here —
   anything else would pull them back out of line with the rest of the row. */

.ar-account .ar-bump-btn { white-space: nowrap; }

/* Waiting out the interval: still readable, plainly not pressable. It keeps
   its place rather than disappearing, so the row does not reshuffle itself
   under the reader's eye. */
.ar-account .ar-bump-btn.is-waiting,
.ar-account .ar-bump-btn[disabled] {
	border-color: #dcdfe4;
	background: #f7f8fa;
	color: #8a919b;
	cursor: default;
	font-weight: 400;
}

.ar-frozen-note,
.ar-frozen-warn {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	padding: 7px 11px;
	border-radius: 4px;
}

.ar-frozen-note {
	background: #fdf3e7;
	color: #8a5a12;
}

.ar-frozen-warn {
	background: #fcf9e8;
	color: #7a6a1a;
}

/* .ar-needs-img was removed with the strip it styled. The warning is now the
   .ar-status-nopic label in the listing's own line, which keeps every row the
   same height — a strip made one listing read as two. */

.ar-action-note {
	width: 100%;
	margin: 6px 0 0;
	font-size: 13px;
	color: #1e6b41;
}

.ar-action-note.is-error {
	color: #c0392b;
}

/* ============================================================
   Theme armour

   The theme styles every control on the site and its rules reach in here too.
   Stated explicitly, at the end of the file so ties resolve this way.
   ============================================================ */

.ar-account button,
.ar-account input,
.ar-account select,
.ar-account textarea {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
}

.ar-account .ar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: auto;
	min-height: 0;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background: var(--ar-primary, #1596a8);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
}

.ar-account .ar-btn:hover {
	background: var(--ar-primary-dark, #11798a);
	color: #fff;
}

.ar-account .ar-btn-small {
	padding: 7px 16px;
	font-size: 14px;
}

.ar-account .ar-link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--ar-primary, #1596a8);
	font: inherit;
	text-decoration: underline;
	height: auto;
	min-height: 0;
}

.ar-account .ar-danger {
	color: #c0392b;
}

.ar-account .ar-field input[type="text"],
.ar-account .ar-field input[type="email"],
.ar-account .ar-field input[type="tel"],
.ar-account .ar-field input[type="url"],
.ar-account .ar-field input[type="date"],
.ar-account .ar-field input[type="number"],
.ar-account .ar-field select,
.ar-account .ar-field textarea {
	box-sizing: border-box;
	height: auto;
	min-height: 0;
	padding: 11px 13px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: inherit;
	/* Never below 16px on a phone: a smaller field makes iOS zoom the page in
	   as soon as it is tapped, and the form jumps under the owner's hands. */
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}

/* A drop-down must not look like a box someone typed into. appearance:none
   strips the native arrow, and without one back a <select> is a text field with
   words already in it — which is exactly how "כתובת מדויקת" read. A drawn
   chevron says: this opens, it is not for typing.
   On the left because the page is right-to-left; extra padding on that side so
   the value never slides under the arrow. */
.ar-account .ar-field select {
	padding-inline-start: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236b7680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
	cursor: pointer;
}

.ar-account .ar-type,
.ar-account .ar-check {
	box-shadow: none;
	text-transform: none;
}

.ar-account .ar-type input[type="radio"],
.ar-account .ar-check input[type="checkbox"] {
	-webkit-appearance: auto;
	appearance: auto;
	width: auto;
	height: auto;
	margin: 0;
}

.ar-account .ar-thumb img {
	box-shadow: none;
}

/* ---------- Login card: the last word on heights ----------
   The theme-armour block above resets every field and button to auto height.
   These rules sit after it on purpose: on this one screen the boxes must all
   be 46px, and a rule earlier in the file would simply be overruled. */

.ar-account .ar-login-card .ar-google-btn,
.ar-account .ar-login-card .ar-btn,
.ar-account .ar-login-card .ar-field input[type="text"],
.ar-account .ar-login-card .ar-field input[type="email"] {
	box-sizing: border-box;
	height: 46px;
	min-height: 46px;
	width: 100%;
	max-width: none;
	border-radius: 5px;
	font-size: 16px;
	padding: 0 13px;
}

.ar-account .ar-login-card .ar-btn {
	padding: 0 18px;
	font-size: 15px;
}

/* The label inside the frame, and the field with no frame of its own. */
.ar-account .ar-login-card .ar-inset input[type="email"] {
	height: 26px;
	min-height: 0;
	border: 0;
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.ar-account .ar-login-card .ar-inset input[type="email"]:focus {
	outline: 0;
	box-shadow: none;
}

/* The resend control is a link, not one of the 46px boxes. */
.ar-account .ar-login-again .ar-link {
	height: auto;
	min-height: 0;
	font-size: 13px;
}

/* Phones: the form is filled standing in a stairwell more often than at a
   desk, so nothing may overflow and targets stay large. */
@media (max-width: 600px) {
	/* The two rules that used to lay this row out for a phone are gone: the
	   buttons already sit under the name at every width, which is what the
	   phone needed. One arrangement now, not two that could drift apart. */

	.ar-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.ar-field input,
	.ar-field select,
	.ar-field textarea {
		max-width: 100%;
	}
}

/* ============================================================================
   האזור האישי — שתי קבוצות
   ============================================================================
   "הדירות שלי" ו"החפצים שלי", כל אחת עם הלשוניות שלה ועם כפתור ההוספה שלה.
   ========================================================================== */

.ar-group { margin-bottom: 34px; }

.ar-group-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.ar-group-name {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.ar-group-n {
	font-weight: 400;
	font-size: 13.5px;
	color: var(--ar-muted, #6b7684);
}

/* כפתור ההוספה של החפצים במתאר בלבד — שתי קבוצות ושני כפתורים מלאים באותו
   עמוד מתחרים על אותה תשומת לב, ואף אחד מהם אינו הפעולה הראשית כאן. */
.ar-account .ar-btn-ghost {
	background: #fff !important;
	color: var(--ar-primary, #1596a8) !important;
	border: 1.5px solid var(--ar-primary, #1596a8) !important;
}

/* קבוצה ריקה — מסבירה למה היא קיימת, ונושאת את הכפתור בעצמה. */
.ar-empty-cta {
	text-align: center;
	padding: 26px 18px 28px;
	border: 1px dashed var(--ar-line, #e6e9ef);
	border-radius: 12px;
	background: #fbfcfd;
}

.ar-empty-lead {
	margin: 0 0 4px;
	font-size: 15px;
	color: var(--ar-dark, #0e2846);
}

.ar-empty-sub {
	margin: 0 0 14px;
	font-size: 13.5px;
	color: var(--ar-muted, #6b7684);
}

/* ============================================================================
   המתג בין שתי המשפחות
   ============================================================================
   ⚠️ מעל הכל, לפני הלשוניות. זו על גבי זו, קבוצת החפצים ישבה מתחת לכל הדירות
   של בעלת הנכס — ואיש אינו גולל מעבר למודעות שלו כדי לגלות לוח שהוא לא יודע
   שקיים. כאן שני השמות נראים לפני כל דבר אחר, והמספרים אומרים מה יש בכל אחד
   בלי לפתוח אותו.
   ========================================================================== */

.ar-gswitch {
	display: inline-flex;
	background: var(--ar-soft, #f1f5f9);
	border-radius: 10px;
	padding: 4px;
	gap: 4px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.ar-gswitch-b {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 20px;
	border-radius: 8px;
	font-size: 15px;
	color: var(--ar-muted, #6b7684);
	text-decoration: none;
}

.ar-gswitch-b:hover { color: var(--ar-primary, #1596a8); }

.ar-gswitch-b.is-on {
	background: #fff;
	color: var(--ar-primary, #1596a8);
	font-weight: 700;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .08 );
}

.ar-gswitch-n {
	background: rgba( 0, 0, 0, .06 );
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	padding: 1px 8px;
}

.ar-gswitch-b.is-on .ar-gswitch-n { background: #e2f2f4; }

/* מחזיק את כפתור ההוספה בקצה כשאין כותרת לקבוצה. */
.ar-group-spacer { flex: 1; }

/* ============================================================================
   🔴 שדה מוסתר שלא הוסתר
   ============================================================================
   ⚠️ `.ar-account .ar-field { display: flex }` מנצח את הכלל `[hidden] { display:
   none }` של הדפדפן — שני מחלקות מול תכונה אחת. כלומר `field.hidden = true`
   בסקריפט **לא עשה כלום**, וכל השדות של כל הקטגוריות הוצגו יחד: במסך "מסירה"
   הופיעו גם השדות של יד שנייה ושל השבת אבידה.

   זו גם חלק מהצפיפות — הטופס הראה פי שלושה שדות ממה שהיה צריך.
   ========================================================================== */

.ar-account .ar-field[hidden],
.ar-account [hidden] { display: none !important; }

/* ============================================================================
   המתג נשאר קבוע בגלילה
   ============================================================================
   ההיסט נמדד בסקריפט אל --ar-sticky-top, מתחת לכותרת הדביקה של האתר — אותו
   מנגנון של שורת הכותרת בטבלה.
   ========================================================================== */

.ar-gswitch {
	position: sticky;
	top: var( --ar-sticky-top, 0px );
	z-index: 5;
	background: #fff;
	box-shadow: 0 6px 10px -8px rgba( 14, 40, 70, .35 );
}

/* ============================================================================
   טופס שעדיין לא נפתח — העמוד לא מתקצר
   ============================================================================
   ⚠️ עד שנבחרת קטגוריה גוף הטופס מוסתר, ולכן העמוד היה גבוה בכמה סנטימטרים
   בלבד: הפוטר טיפס עד מתחת לבורר הקטגוריות ומתחתיו נשאר שטח ריק לבן עד תחתית
   המסך. זה נראה כמו עמוד שנשבר, לא כמו טופס שממתין.

   גובה מזערי מחזיק את העמוד במקומו בזמן שהטופס נפתח ונסגר, וגם מונע את הקפיצה
   של הפוטר ברגע הבחירה.
   ========================================================================== */

.ar-account .ar-form { min-height: 62vh; }

.ar-choose-hint {
	margin: 12px 0 0;
	font-size: 13.5px;
	color: var(--ar-muted, #6b7684);
}

/* ============================================================================
   האזור האישי — תפריט צד
   ============================================================================
   בתוך תבנית האתר, עם ההדר והפוטר. התפריט הוא רשימת קישורים: כפתור "אחורה"
   בדפדפן עובד, לכל סעיף יש כתובת שאפשר לשמור, ושום דבר כאן אינו תלוי בסקריפט.
   ========================================================================== */

.ar-area {
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.ar-side {
	flex: 0 0 216px;
	background: #16283f;
	color: #cfd8e3;
	padding: 18px 0 16px;
	display: flex;
	flex-direction: column;
}

.ar-side-who {
	padding: 0 18px 14px;
	border-bottom: 1px solid rgba( 255, 255, 255, .09 );
	display: flex;
	flex-direction: column;
}

.ar-side-name { color: #fff; font-weight: 700; font-size: 15px; }
.ar-side-mail { font-size: 12px; color: #93a3b6; word-break: break-all; }

.ar-side-menu { padding: 12px 10px; }

.ar-side-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: #cfd8e3 !important;
	text-decoration: none;
	font-size: 14.5px;
}

.ar-side-link:hover { background: rgba( 255, 255, 255, .07 ); color: #fff !important; }

.ar-side-link.is-on {
	background: var(--ar-primary, #1596a8);
	color: #fff !important;
	font-weight: 600;
}

.ar-side-n {
	margin-inline-start: auto;
	background: rgba( 255, 255, 255, .15 );
	border-radius: 20px;
	font-size: 11.5px;
	padding: 1px 8px;
}

.ar-area-main {
	flex: 1;
	min-width: 0;
	padding: 20px 22px 26px;
}

.ar-sec-title { margin: 0 0 4px; font-size: 20px; }
.ar-sec-lead { margin: 0 0 16px; color: var(--ar-muted, #6b7684); font-size: 13.5px; }

/* ⚠️ בנייד התפריט נפתח לשורה נגללת, לא להמבורגר. סעיף שמסתתר מאחורי כפתור הוא
   סעיף שלא קיים — זו בדיוק התקלה שתוקנה עם לוח החפצים. */
@media ( max-width: 782px ) {
	.ar-area { flex-direction: column; }

	.ar-side { flex: none; padding: 12px 0 0; }

	.ar-side-who { padding-inline: 14px; }

	.ar-side-menu {
		display: flex;
		gap: 6px;
		overflow-x: auto;
		padding: 10px 12px;
		-webkit-overflow-scrolling: touch;
	}

	.ar-side-link {
		white-space: nowrap;
		background: rgba( 255, 255, 255, .07 );
		padding: 7px 12px;
		border-radius: 20px;
		font-size: 13.5px;
	}

	.ar-side-link svg { display: none; }

	.ar-area-main { padding: 16px 14px 20px; }
}

/* ---- סטטיסטיקות ---- */

.ar-stat-cards {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 130px, 1fr ) );
	gap: 12px;
	margin-bottom: 16px;
}

.ar-stat {
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 12px;
	padding: 14px;
	text-align: center;
	background: #fbfcfd;
}

.ar-stat b { display: block; font-size: 24px; color: var(--ar-primary, #1596a8); }
.ar-stat span { font-size: 12.5px; color: var(--ar-muted, #6b7684); }

.ar-stat-lead {
	background: #f0f8f9;
	border-inline-start: 3px solid var(--ar-primary, #1596a8);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	margin: 0 0 16px;
}

.ar-stat-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.ar-stat-table th {
	text-align: start;
	font-size: 12.5px;
	color: var(--ar-muted, #6b7684);
	font-weight: 600;
	padding: 8px 6px;
	border-bottom: 1px solid var(--ar-line, #e6e9ef);
}

.ar-stat-table td { padding: 10px 6px; border-bottom: 1px solid var(--ar-line, #e6e9ef); }
.ar-stat-table .ar-num { text-align: center; }
.ar-stat-tip { color: var(--ar-muted, #6b7684); font-size: 12.5px; }
.ar-stat-ok { color: #2e8b57; }

.ar-stat-note { margin-top: 14px; font-size: 12.5px; color: var(--ar-muted, #6b7684); }

@media ( max-width: 620px ) {
	.ar-stat-table thead { display: none; }
	.ar-stat-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--ar-line, #e6e9ef); }
	.ar-stat-table td { display: inline-block; border: 0; padding: 2px 6px; }
	.ar-stat-table td:first-child { display: block; font-weight: 600; }
	.ar-stat-tip { display: block !important; }
}

/* ---- הפרטים שלי ---- */

.ar-profile-form { max-width: 520px; }

.ar-p-static {
	padding: 9px 0;
	color: var(--ar-muted, #6b7684);
	font-size: 14.5px;
}

.ar-p-note {
	margin: 2px 0 16px;
	font-size: 12.5px;
	color: var(--ar-muted, #6b7684);
}

.ar-p-head {
	margin: 22px 0 4px;
	font-size: 16px;
	padding-top: 18px;
	border-top: 1px solid var(--ar-line, #e6e9ef);
}

.ar-p-channels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.ar-p-channel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 8px;
	padding: 9px 14px;
	font-size: 14px;
	cursor: pointer;
}

/* ⚠️ תיבת סימון אמיתית ונראית. `input { width: 100% }` בערכות עיצוב מותח אותה
   על כל השורה ומעלים את הציור שלה — זה בדיוק מה שקרה בבורר הערים. */
.ar-p-channel input[type="checkbox"],
.ar-p-apply input[type="checkbox"] {
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 0 !important;
	margin: 0 !important;
	flex: 0 0 auto !important;
}

.ar-p-apply {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fbfcfd;
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 13.5px;
	margin-bottom: 18px;
	cursor: pointer;
}

/* ---- חיפושים שמורים ---- */

.ar-saved-board {
	margin: 18px 0 8px;
	font-size: 15px;
	color: var(--ar-primary, #1596a8);
}

.ar-saved-list { margin: 0; padding: 0; list-style: none; }

.ar-saved-list li {
	padding: 9px 0;
	border-bottom: 1px solid var(--ar-line, #e6e9ef);
	font-size: 14px;
}

/* ============================================================================
   המועדפים בתוך האזור האישי — שלושה בשורה
   ============================================================================
   ⚠️ רשת הכרטיסים של הלוח נבנתה ל-`minmax(240px, 1fr)` ברוחב של 1340 פיקסלים.
   בתוך עמודת התוכן של האזור האישי, לצד תפריט הצד, נשאר מקום לכרטיס אחד — והוא
   נמתח לכל הרוחב. הכרטיס לא גדל בטעות; הרשת פשוט לא ידעה שהיא בתוך מכל צר.

   מספר קבוע במקום auto-fill: כאן ידוע בדיוק כמה מקום יש, ואין סיבה לתת לדפדפן
   לנחש.
   ========================================================================== */

.ar-account .ar-grid {
	grid-template-columns: repeat( 3, 1fr );
	gap: 14px;
}

@media ( max-width: 1100px ) {
	.ar-account .ar-grid { grid-template-columns: repeat( 2, 1fr ); }
}

@media ( max-width: 640px ) {
	.ar-account .ar-grid { grid-template-columns: 1fr; }
}

/* התמונה בכרטיס מתכווצת יחד איתו — היחס נשמר ואין עוד תיבת ענק ריקה. */
.ar-account .ar-card-img { aspect-ratio: 4 / 3; }

/* ---- זהות ויציאה בתוך הפאנל ---- */

.ar-side-hello { display: block; font-size: 12px; color: #93a3b6; }
.ar-side-name { display: block; }

.ar-side { justify-content: flex-start; }
.ar-side-out { margin-top: auto; padding: 10px 14px 0; }

.ar-side-signout {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none !important;
	border: 0 !important;
	color: #93a3b6 !important;
	font-size: 13px;
	padding: 8px 4px !important;
	cursor: pointer;
	box-shadow: none !important;
}

.ar-side-signout:hover { color: #fff !important; }

/* ⚠️ הסרגל העליון נשאר רק בטפסים, ושם יש בו קישור אחד. ריק — הוא לא צובע קו
   מפריד מעל תוכן שאין מעליו כלום. */
.ar-head:empty,
.ar-head-nav:empty { display: none; }

/* ---- סטטיסטיקות: הערה משותפת ותא ריק ---- */

.ar-stat-all { color: var(--ar-muted, #6b7684); font-weight: 400; font-size: 12.5px; }
.ar-stat-dash { color: #c4cad2; }

@media ( max-width: 782px ) {
	.ar-side-out { margin-top: 0; padding: 0 14px 10px; }
}

/* ---- שורת מודעה: התמונה היא הקישור לתמונות ---- */

.ar-listing-img {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	text-decoration: none;
}

/* הרמז נכנס בריחוף ובמיקוד מקלדת — בלי מיקוד הוא בלתי נגיש למי שאינו בעכבר. */
.ar-img-hint {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	background: rgba( 14, 40, 70, .78 );
	color: #fff;
	font-size: 11.5px;
	text-align: center;
	padding: 4px 2px;
	transform: translateY( 100% );
	transition: transform .15s;
}

.ar-listing-img:hover .ar-img-hint,
.ar-listing-img:focus .ar-img-hint,
.ar-listing-img:focus-visible .ar-img-hint { transform: translateY( 0 ); }

/* ⚠️ בנייד אין ריחוף — הרמז פשוט מוצג. בלעדיו אין שום סימן שהתמונה לחיצה,
   ומאז שכפתור "תמונה" ירד זו הדרך היחידה להגיע לשם. */
@media ( hover: none ) {
	.ar-img-hint { transform: translateY( 0 ); }
}

/* תאריך העדכון בשורה משלו, ולא נגרר בסוף שורת העובדות. */
.ar-listing-when {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: var(--ar-muted, #6b7684);
}

/* ---- "הוספת מודעה" — השורה הראשונה בפאנל ---- */

.ar-side-link[href*="ar_sec=new"] {
	background: var(--ar-primary, #1596a8);
	color: #fff !important;
	font-weight: 600;
	margin-bottom: 8px;
}

.ar-side-link[href*="ar_sec=new"]:hover { background: #12808f; }

/* ---- הקוביות ---- */

.ar-tile-head {
	margin: 20px 0 10px;
	font-size: 15px;
	color: var(--ar-muted, #6b7684);
}

.ar-tiles {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 190px, 1fr ) );
	gap: 12px;
}

.ar-tile {
	display: flex;
	flex-direction: column;
	gap: 3px;
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 12px;
	padding: 16px 16px 15px;
	text-decoration: none;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.ar-tile:hover {
	border-color: var(--ar-primary, #1596a8);
	box-shadow: 0 3px 10px rgba( 14, 40, 70, .08 );
}

.ar-tile-name {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--ar-dark, #0e2846);
}

/* ⚠️ שורת ההסבר היא מה שהופך קוביה לבחירה. "מסירת חפץ" ו"מכירת חפץ" נבדלות
   במילה אחת, ומי שלא מכירה את הלוח לא יודעת במה. */
.ar-tile-hint { font-size: 12.5px; color: var(--ar-muted, #6b7684); }

/* ============================================================================
   רק שורה אחת מודגשת בכל רגע
   ============================================================================
   ⚠️ "הוספת מודעה" הייתה במילוי מלא תמיד, והשורה הפעילה גם היא — שתי שורות
   בצבע מלא אומרות לקורא שהוא בשני מקומות. עכשיו היא במתאר: בולטת ונבדלת, אבל
   המילוי שמור למקום שבו את נמצאת עכשיו.
   ========================================================================== */

.ar-side-link[href*="ar_sec=new"] {
	background: transparent;
	border: 1.5px solid var(--ar-primary, #1596a8);
	color: #fff !important;
	font-weight: 600;
	margin-bottom: 10px;
}

.ar-side-link[href*="ar_sec=new"]:hover {
	background: rgba( 21, 150, 168, .22 );
}

/* כשזה אכן המסך הפתוח — מילוי, כמו כל שורה פעילה אחרת. */
.ar-side-link[href*="ar_sec=new"].is-on {
	background: var(--ar-primary, #1596a8);
	border-color: var(--ar-primary, #1596a8);
}

/* ---- אייקון בקוביה ---- */

.ar-tile-icon {
	color: var(--ar-primary, #1596a8);
	display: block;
	margin-bottom: 6px;
}

/* ============================================================================
   טופס הפריט — לפי form_design.html
   ============================================================================
   התווית מעל השדה ולא לצידו, שדות ברוחב מלא, וזוגות בשתי עמודות שנערמות בנייד.

   ⚠️ הצבע נשאר של האתר (#1596a8) ולא #0097a7 שבקובץ — הם קרובים עד כדי כך
   שההבדל אינו נראה כבחירה אלא כטעות, והטופס יושב בתוך מסך שכולו בצבע האחד.

   ⚠️ הפריסה נשענת על `.ar-field-wide` שכבר קיים בקוד: כותרת, תיאור וגלריה
   מסומנים כך ממילא, ולכן הם נפרשים על שתי העמודות בלי לגעת ב-PHP.
   ========================================================================== */

.ar-account .ar-item-form {
	max-width: 680px;
	padding: 30px 32px 32px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba( 0, 0, 0, .05 ), 0 8px 10px -6px rgba( 0, 0, 0, .01 );
}

.ar-account .ar-item-form > h2 {
	margin: 0 0 22px;
	padding-bottom: 12px;
	font-size: 1.5rem;
	color: #0f172a;
	border-bottom: 2px solid #f1f5f9;
}

/* שתי עמודות, ומה שרחב נפרש על שתיהן. */
.ar-account .ar-item-form .ar-form-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.ar-account .ar-item-form .ar-form-body > *:not(.ar-field),
.ar-account .ar-item-form .ar-field-wide { grid-column: 1 / -1; }

/* ⚠️ display:block מנצח את `.ar-account .ar-field { display:flex }` בזכות
   מחלקה שלישית. בלעדיו התווית נשארת לצד השדה ברוחב קבוע. */
.ar-account .ar-item-form .ar-field {
	display: block;
	margin-bottom: 20px;
}

.ar-account .ar-item-form .ar-field > label {
	display: block;
	flex: none;
	width: auto;
	margin: 0 0 6px;
	font-weight: 600;
	font-size: .9rem;
	color: #475569;
}

.ar-account .ar-item-form .ar-field input[type="text"],
.ar-account .ar-item-form .ar-field input[type="tel"],
.ar-account .ar-item-form .ar-field input[type="url"],
.ar-account .ar-item-form .ar-field input[type="email"],
.ar-account .ar-item-form .ar-field input[type="number"],
.ar-account .ar-item-form .ar-field select,
.ar-account .ar-item-form .ar-field textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: .95rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #334155;
	box-sizing: border-box;
	transition: border-color .2s, box-shadow .2s;
}

.ar-account .ar-item-form .ar-field input:focus,
.ar-account .ar-item-form .ar-field select:focus,
.ar-account .ar-item-form .ar-field textarea:focus {
	outline: none;
	border-color: var(--ar-primary, #1596a8);
	box-shadow: 0 0 0 4px rgba( 21, 150, 168, .25 );
}

.ar-account .ar-item-form .ar-field textarea {
	resize: vertical;
	min-height: 100px;
}

/* תיבות סימון אינן נמתחות — ראו בורר הערים. */
.ar-account .ar-item-form .ar-field input[type="checkbox"],
.ar-account .ar-item-form .ar-field input[type="radio"] {
	width: auto !important;
	padding: 0 !important;
}

/* אזור התמונות כמסגרת מקווקוות שאפשר ללחוץ בכל שטחה. */
.ar-account .ar-item-form input[type="file"] {
	display: block;
	width: 100%;
	padding: 16px;
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
	color: #64748b;
	cursor: pointer;
	box-sizing: border-box;
}

.ar-account .ar-item-form input[type="file"]:hover {
	background: #f1f5f9;
	border-color: var(--ar-primary, #1596a8);
}

.ar-account .ar-item-form .ar-form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
}

@media ( max-width: 600px ) {
	.ar-account .ar-item-form { padding: 20px 18px 24px; }
	.ar-account .ar-item-form .ar-form-body { grid-template-columns: 1fr; }
}

/* ============================================================================
   שורת מודעה נמוכה — שתי שורות במקום ארבע
   ============================================================================
   הגובה נאכל בכפתורים שישבו בשורה משלהם ובתמונה הגדולה, לא בטקסט. הכפתורים
   עולים לשמאל התוכן וממורכזים אנכית מולו, והתמונה קטנה — היא הייתה האלמנט
   הגבוה ביותר, וכלומר היא זו שהכתיבה את גובה כל המודעה.
   ========================================================================== */

.ar-account .ar-listing {
	align-items: center;
	gap: 12px;
	padding: 10px 0;
}

.ar-account .ar-listing-img {
	width: 72px;
	height: 56px;
	flex: 0 0 72px;
}

.ar-account .ar-listing-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ⚠️ הכפתורים חייבים להיות בן ישיר של הגוף כדי לשבת בעמודה השנייה. הערות
   האזהרה (חסומה / ירדה מהאתר / ימים אחרונים) נפרשות על שתי העמודות, כי הן
   משפטים שלמים ולא תגיות. */
.ar-account .ar-listing-body {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 14px;
}

.ar-account .ar-listing-body > h3,
.ar-account .ar-listing-meta { grid-column: 1; margin: 0; }

.ar-account .ar-listing-body > h3 { font-size: 15.5px; line-height: 1.3; }

.ar-account .ar-listing-meta { margin-top: 3px; font-size: 12.5px; }

.ar-account .ar-listing-when { color: var(--ar-muted, #6b7684); }

.ar-account .ar-listing-actions {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: flex;
	gap: 7px;
	margin: 0;
}

.ar-account .ar-listing-body > .ar-blocked-note,
.ar-account .ar-listing-body > .ar-frozen-note,
.ar-account .ar-listing-body > .ar-frozen-warn {
	grid-column: 1 / -1;
	margin: 6px 0 0;
}

/* בנייד אין מקום לשתי עמודות — הכפתורים יורדים מתחת, כמו קודם. */
@media ( max-width: 620px ) {
	.ar-account .ar-listing-body { grid-template-columns: 1fr; }

	.ar-account .ar-listing-actions {
		grid-column: 1;
		grid-row: auto;
		margin-top: 8px;
		flex-wrap: wrap;
	}
}

/* ============================================================================
   טופס הדירה — אותה שפה עיצובית כמו טופס הפריט
   ============================================================================
   הרעיון מ-apartment_edit_form.html, לא השדות: כרטיס לבן · תווית מעל השדה ·
   שדות ברוחב מלא עם טבעת מיקוד · כותרת סעיף ממוספרת בעיגול · מאפיינים ברשת
   בתוך תיבה מוצללת · שורת פעולות מופרדת בקו.

   ⚠️ שני טפסים בשתי שפות עיצוב באותו אזור אישי נקראים כשני אתרים, ולכן
   הבורר הוא `.ar-form` הכללי — שניהם מקבלים אותה מסגרת.
   ========================================================================== */

.ar-account .ar-form {
	max-width: 760px;
	padding: 30px 34px 32px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba( 0, 0, 0, .05 ), 0 8px 10px -6px rgba( 0, 0, 0, .01 );
}

.ar-account .ar-form > h2 {
	margin: 0 0 6px;
	font-size: 1.6rem;
	color: #0f172a;
}

/* התגית של הקטגוריה יושבת מתחת לכותרת ומסיימת את הראש. */
.ar-account .ar-form .ar-field-type {
	margin: 0 0 22px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f1f5f9;
}

.ar-account .ar-type-badge {
	display: inline-block;
	background: #e0f2fe;
	color: #0369a1;
	font-size: .85rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 16px;
}

/* ---- כותרת סעיף ממוספרת ---- */

.ar-account .ar-sec > h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 30px 0 16px;
	padding-bottom: 8px;
	font-size: 1.12rem;
	font-weight: 700;
	color: #1e293b;
	border-bottom: 1px solid #f1f5f9;
}

.ar-account .ar-sec-n {
	background: var(--ar-primary, #1596a8);
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .85rem;
	flex: none;
}

/* ---- שדות: תווית מעל, זוגות בשתי עמודות ---- */

.ar-account .ar-sec-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.ar-account .ar-sec-body > *:not(.ar-field),
.ar-account .ar-sec-body > .ar-field-wide { grid-column: 1 / -1; }

.ar-account .ar-form .ar-field {
	display: block;
	margin-bottom: 18px;
}

.ar-account .ar-form .ar-field > label {
	display: block;
	flex: none;
	width: auto;
	margin: 0 0 6px;
	font-weight: 600;
	font-size: .9rem;
	color: #475569;
}

.ar-account .ar-form .ar-field input[type="text"],
.ar-account .ar-form .ar-field input[type="tel"],
.ar-account .ar-form .ar-field input[type="url"],
.ar-account .ar-form .ar-field input[type="email"],
.ar-account .ar-form .ar-field input[type="number"],
.ar-account .ar-form .ar-field input[type="date"],
.ar-account .ar-form .ar-field select,
.ar-account .ar-form .ar-field textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: .95rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #334155;
	box-sizing: border-box;
	transition: border-color .2s, box-shadow .2s;
}

.ar-account .ar-form .ar-field input:focus,
.ar-account .ar-form .ar-field select:focus,
.ar-account .ar-form .ar-field textarea:focus {
	outline: none;
	border-color: var(--ar-primary, #1596a8);
	box-shadow: 0 0 0 4px rgba( 21, 150, 168, .25 );
}

.ar-account .ar-form .ar-field textarea { resize: vertical; min-height: 100px; }

.ar-account .ar-form .ar-note,
.ar-account .ar-form .ar-hint {
	font-size: .8rem;
	color: #64748b;
	margin: 4px 0 0;
}

/* ⚠️ תיבות סימון ורדיו לעולם לא ברוחב מלא — זו המלכודת שהעלימה את התיבות
   בבורר הערים: `width: 100%` מותח את התיבה ומוחק את הציור שלה. */
.ar-account .ar-form .ar-field input[type="checkbox"],
.ar-account .ar-form .ar-field input[type="radio"],
.ar-account .ar-form .ar-check input {
	width: auto !important;
	padding: 0 !important;
	accent-color: var(--ar-primary, #1596a8);
}

/* ---- מאפיינים: רשת בתוך תיבה ---- */

.ar-account .ar-checks {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 140px, 1fr ) );
	gap: 12px;
	background: #f8fafc;
	padding: 16px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.ar-account .ar-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .9rem;
	cursor: pointer;
	margin: 0;
}

/* ---- תמונות ---- */

.ar-account .ar-form input[type="file"] {
	display: block;
	width: 100%;
	padding: 16px;
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
	color: #64748b;
	cursor: pointer;
	box-sizing: border-box;
}

.ar-account .ar-form input[type="file"]:hover {
	background: #f1f5f9;
	border-color: var(--ar-primary, #1596a8);
}

/* ---- שורת הפעולות ---- */

.ar-account .ar-form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 2px solid #f1f5f9;
}

@media ( max-width: 640px ) {
	.ar-account .ar-form { padding: 20px 18px 24px; }
	.ar-account .ar-sec-body { grid-template-columns: 1fr; }
}

/* ============================================================================
   הפאנל מוקפא בצד
   ============================================================================
   ⚠️ `overflow: hidden` על .ar-area הוסר, והוא היה חייב לרדת: ברגע שאב כלשהו
   אינו visible הוא הופך לאזור הגלילה שאליו `position: sticky` נמדד — והפאנל
   היה "נדבק" לראש מכל שאינו נגלל לעולם, כלומר לא זז. אותה מלכודת בדיוק ששיתקה
   את שורת הכותרת בטבלה.

   העיגול עבר לפאנל עצמו, כי הוא זה שנשען על פינת המסגרת.
   ========================================================================== */

.ar-area { overflow: visible; }

@media ( min-width: 783px ) {
	/* stretch מותח את הפאנל לגובה המכל, ופריט מתוח אינו יכול להידבק. */
	.ar-area { align-items: flex-start; }

	.ar-side {
		position: sticky;
		top: var( --ar-sticky-top, 0px );
		align-self: flex-start;
		max-height: calc( 100vh - var( --ar-sticky-top, 0px ) - 12px );
		overflow-y: auto;
		border-start-start-radius: 13px;
		border-end-start-radius: 13px;
	}
}

/* ============================================================================
   פחות אוויר בין הסעיפים
   ============================================================================
   היו שני מפרידים זה על גב זה — קו תחתון של הסעיף וקו נוסף מתחת לכותרת הבאה —
   ומעליהם מרווח כפול. נשאר מפריד אחד.
   ========================================================================== */

.ar-account .ar-sec {
	padding: 4px 0 0;
	border-bottom: 0;
}

.ar-account .ar-sec > h3 {
	margin: 20px 0 14px;
	padding-bottom: 7px;
}

.ar-account .ar-sec:first-of-type > h3 { margin-top: 6px; }

/* בלי פינות מעוגלות: הפאנל קצר מהצד שממולו, ופינה מעוגלת על עמוד שנגמר באמצע
   נראית כמו חיתוך ולא כמו עיצוב. */
.ar-side {
	border-radius: 0 !important;
}

/* ============================================================================
   שדות ברבע שורה
   ============================================================================
   הרשת עברה לארבע עמודות. שדה רגיל תופס שתיים (חצי שורה), שדה רחב את כולן,
   והמספרים הקצרים — חדרים · מיטות · מזרונים · קומה — עמודה אחת כל אחד, וכך
   ארבעתם בשורה. המחיר ומחיר שבת וחג באותה מידה, זה לצד זה.
   ========================================================================== */

.ar-account .ar-sec-body { grid-template-columns: repeat( 4, 1fr ); }

.ar-account .ar-sec-body > .ar-field { grid-column: span 2; }

.ar-account .ar-sec-body > .ar-field-wide,
.ar-account .ar-sec-body > *:not(.ar-field) { grid-column: 1 / -1; }

.ar-account .ar-sec-body > .ar-field[data-key="rooms"],
.ar-account .ar-sec-body > .ar-field[data-key="beds"],
.ar-account .ar-sec-body > .ar-field[data-key="mattresses"],
.ar-account .ar-sec-body > .ar-field[data-key="floor"],
.ar-account .ar-sec-body > .ar-field[data-key="price"],
.ar-account .ar-sec-body > .ar-field[data-key="price_shabbat"] { grid-column: span 1; }

/* ⚠️ יחידת המחיר ("ללילה") ירדה לשורה משלה מתחת לשדה. משהתווית עברה למעלה היא
   נותרה צמודה לקצה השדה וחפפה אותו. */
.ar-account .ar-form .ar-unit {
	display: block;
	margin: 4px 0 0;
	margin-inline-start: 0;
	font-size: .8rem;
	color: #64748b;
	opacity: 1;
}

@media ( max-width: 900px ) {
	.ar-account .ar-sec-body { grid-template-columns: repeat( 2, 1fr ); }
	.ar-account .ar-sec-body > .ar-field { grid-column: span 2; }
	.ar-account .ar-sec-body > .ar-field[data-key="rooms"],
	.ar-account .ar-sec-body > .ar-field[data-key="beds"],
	.ar-account .ar-sec-body > .ar-field[data-key="mattresses"],
	.ar-account .ar-sec-body > .ar-field[data-key="floor"],
	.ar-account .ar-sec-body > .ar-field[data-key="price"],
	.ar-account .ar-sec-body > .ar-field[data-key="price_shabbat"] { grid-column: span 1; }
}

@media ( max-width: 560px ) {
	.ar-account .ar-sec-body { grid-template-columns: 1fr; }
	.ar-account .ar-sec-body > .ar-field,
	.ar-account .ar-sec-body > .ar-field[data-key] { grid-column: 1 / -1; }
}

/* ---- שורת מודעה: התגיות על שורת הכותרת ---- */

.ar-account .ar-listing-body > h3 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.ar-account .ar-listing-body > h3 .ar-tag,
.ar-account .ar-listing-body > h3 .ar-status {
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.6;
}

.ar-account .ar-dot { color: #c4cad2; margin: 0 2px; }

.ar-account .ar-listing-meta strong { font-weight: 600; color: var(--ar-dark, #0e2846); }

/* רווח בין המודעות במקום קו דק צמוד — הן נקראות כפריטים נפרדים. */
.ar-account .ar-listings { display: grid; gap: 10px; }

.ar-account .ar-listing {
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 12px;
	padding: 12px 14px;
}

/* הפס הצבעוני בצד ההערה המשותפת ירד — הודעה קצרה על רקע תכול אינה זקוקה גם
   לקו שיצביע עליה. */
.ar-account .ar-stat-lead { border-inline-start: 0; }

/* ============================================================================
   חיפושים שמורים
   ============================================================================
   כשאין מה להציג, הסעיף מתמרכז סביב ההסבר — אייקון, כותרת, ומה לעשות כדי
   שיהיה כאן משהו. כשיש רשימה הוא חוזר להיות רשימה רגילה, מיושרת לימין.
   ========================================================================== */

.ar-saved-icon { display: none; }

.ar-saved-sec.is-empty { text-align: center; }

.ar-saved-sec.is-empty .ar-saved-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #1e293b;
	margin: 8px 0 14px;
}

.ar-saved-sec.is-empty .ar-sec-title { margin-bottom: 6px; }

.ar-saved-empty {
	background: #f8fafc;
	border-radius: 10px;
	padding: 18px 20px;
	font-size: 14.5px;
	line-height: 1.75;
	color: #475569;
	max-width: 520px;
	margin: 6px auto 0;
}

.ar-saved-empty strong { color: var(--ar-primary, #1596a8); font-weight: 600; }

.ar-saved-tip {
	margin: 16px 0 0;
	font-size: 12.5px;
	color: var(--ar-muted, #6b7684);
}

/* ============================================================================
   הפרטים שלי
   ============================================================================
   התווית לצד השדה, השדות ברוחב אחיד, המייל נעול, וערוצי הקשר כגלולות שנדלקות.
   ========================================================================== */

.ar-profile-form .ar-field {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.ar-profile-form .ar-field > label {
	flex: 0 0 90px;
	margin: 0;
	font-weight: 600;
	font-size: .95rem;
	color: #334155;
	text-align: start;
}

.ar-profile-form .ar-field input,
.ar-profile-form .ar-field select {
	flex: 1;
	padding: 10px 14px;
	font-size: .95rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #334155;
	box-sizing: border-box;
}

.ar-profile-form .ar-field input:focus,
.ar-profile-form .ar-field select:focus {
	outline: none;
	border-color: var(--ar-primary, #1596a8);
	box-shadow: 0 0 0 4px rgba( 21, 150, 168, .25 );
}

/* ⚠️ נעול ולא מושבת. שדה disabled אינו נקרא בקול על ידי חלק מקוראי המסך
   ואינו ניתן למיקוד — והכתובת הזו היא מידע שצריך להיות אפשר להעתיק. */
.ar-profile-form .ar-p-locked {
	background: #f1f5f9;
	color: #64748b;
	cursor: default;
}

.ar-profile-form .ar-p-note { margin: -6px 0 16px 0; }

.ar-p-head {
	margin: 6px 0 2px;
	padding-top: 20px;
	border-top: 1px solid var(--ar-line, #e6e9ef);
	font-size: 1.25rem;
}

/* ---- ערוצי הקשר כגלולות ---- */

.ar-p-channels { gap: 10px; margin: 12px 0 20px; }

.ar-p-channel {
	border: 0;
	padding: 0;
	background: none;
}

/* התיבה עצמה יוצאת מהמסך אך נשארת במקלדת ובקורא המסך — הגלולה היא התווית
   שלה, ולחיצה עליה מסמנת אותה. */
.ar-p-channel input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.ar-p-channel > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1.5px solid #cbd5e1;
	border-radius: 999px;
	padding: 9px 18px;
	font-size: 14.5px;
	color: #64748b;
	background: #fff;
	cursor: pointer;
	transition: all .15s;
}

.ar-p-channel > span::before {
	content: "✓";
	font-weight: 700;
	opacity: .35;
}

.ar-p-channel input:checked + span {
	border-color: var(--ar-primary, #1596a8);
	background: #eafaf8;
	color: #0f766e;
	font-weight: 600;
}

.ar-p-channel input:checked + span::before { opacity: 1; }

/* מיקוד מקלדת חייב להיראות — בלעדיו הגלולה בלתי שמישה בלי עכבר. */
.ar-p-channel input:focus-visible + span {
	box-shadow: 0 0 0 4px rgba( 21, 150, 168, .25 );
}

/* ============================================================================
   מסך הזנת הקוד
   ============================================================================
   ⚠️ שדה הקוד תופס את כל הרוחב, והתווית מוסתרת לעין בלבד. קודם היא ישבה לצידו
   וגזלה ממנו מחצית מהשורה — שש ספרות גדולות נדחסו לתיבה קטנה, והתווית חזרה על
   מה שהתיבה שמעליה כבר אמרה.
   ========================================================================== */

.ar-account .ar-field-code {
	display: block;
	margin-bottom: 14px;
}

.ar-account .ar-code-input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 12px;
	font-size: 28px !important;
	letter-spacing: 10px;
	font-weight: 700;
	text-align: center;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;

	/* ⚠️ ספרות נקראות משמאל לימין גם בעמוד בעברית. בלי זה סמן ההקלדה קופץ
	   לקצה הלא נכון והקוד נראה הפוך בזמן ההקלדה. */
	direction: ltr;
	unicode-bidi: plaintext;
}

.ar-account .ar-code-input:focus {
	outline: none;
	border-color: var(--ar-primary, #1596a8);
	box-shadow: 0 0 0 4px rgba( 21, 150, 168, .25 );
}

/* הכתובת היא הדבר היחיד במסך שאינו ידוע מהכותרת — היא מודגשת, ושורת התוקף
   יושבת מתחתיה כהערה ולא כהודעה בפני עצמה. */
.ar-mailed {
	display: flex;
	flex-direction: column;
	gap: 3px;
	line-height: 1.5;
}

.ar-mailed b {
	font-size: 15px;
	direction: ltr;
	unicode-bidi: plaintext;
	word-break: break-all;
}

.ar-mailed-ttl {
	font-size: 12px;
	color: var(--ar-muted, #6b7684);
}

/* ============================================================================
   שמירה בעבודה — סימני חיים
   ============================================================================
   אי אפשר להציג אחוזים אמיתיים בשליחת טופס רגילה, ולכן מוצג מה שכן נכון: פס
   שזז, מונה שמתקדם, ואזהרה לא לסגור. מספר שמשתנה הוא ההבדל בין "עובד" לבין
   "נתקע" — וזו ההבחנה היחידה שהקורא באמת צריך.
   ========================================================================== */

.ar-saving {
	margin-top: 14px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 10px;
}

.ar-saving-bar {
	height: 6px;
	border-radius: 20px;
	background: #e2e8f0;
	overflow: hidden;
	margin-bottom: 10px;
}

.ar-saving-bar span {
	display: block;
	height: 100%;
	width: 35%;
	border-radius: 20px;
	background: var(--ar-primary, #1596a8);
	animation: ar-saving-slide 1.4s ease-in-out infinite;
}

/* ⚠️ נע הלוך ושוב ולא מתמלא: פס שמתמלא מבטיח סיום בזמן ידוע, ואנחנו לא יודעים
   אותו. הבטחה שתישבר גרועה מהיעדר הבטחה. */
@keyframes ar-saving-slide {
	0%   { transform: translateX( -120% ); }
	100% { transform: translateX( 320% ); }
}

.ar-saving-text {
	margin: 0;
	font-size: 13px;
	color: var(--ar-muted, #6b7684);
	line-height: 1.6;
}

.ar-saving-text strong { color: #b32d2e; }

.ar-saving-time {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: var(--ar-muted, #6b7684);
}

.ar-saving-time b {
	font-variant-numeric: tabular-nums;
	direction: ltr;
	unicode-bidi: plaintext;
	color: var(--ar-dark, #0e2846);
}

/* מכבד העדפת מערכת להפחתת תנועה — אז הפס עומד והמונה עושה את העבודה. */
@media ( prefers-reduced-motion: reduce ) {
	.ar-saving-bar span { animation: none; width: 100%; opacity: .5; }
}

/* ============================================================================
   סידור התמונות שנבחרו — לפני השמירה הראשונה
   ============================================================================
   מסך התמונות השמורות כבר נתן גרירה וחיצים. כאן, ברגע שבו בוחרים תמונות בפעם
   הראשונה, היה אפשר רק לקדם אחת לראש — והוא בדיוק הרגע שבו רוב בעלי הנכסים
   קובעים את הסדר ולא חוזרים אליו.
   ========================================================================== */

.ar-chosen-bar {
	display: flex;
	gap: 3px;
	justify-content: center;
	margin-top: 4px;
	flex-wrap: wrap;
}

.ar-chosen-move {
	min-width: 26px;
	padding: 3px 6px;
	font-size: 13px;
	line-height: 1.2;
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 5px;
	background: #fff !important;
	color: var(--ar-dark, #0e2846) !important;
	cursor: pointer;
}

.ar-chosen-move:hover {
	border-color: var(--ar-primary, #1596a8);
	color: var(--ar-primary, #1596a8) !important;
}

/* הכפתור קיים כבר, רק מצטרף עכשיו לשורה במקום לעמוד לבדו. */
.ar-chosen-bar .ar-chosen-first {
	position: static;
	margin: 0;
	padding: 3px 8px;
	font-size: 12px;
}

/* ---- העלאה מיידית: התצוגה המקומית מוחלפת בגלריה האמיתית ---- */

/* ⚠️ כשהמעלה פעיל, התצוגה הישנה של "קבצים שנבחרו" מיותרת ומבלבלת — היא מראה
   תמונות שכבר הועלו כאילו הן עדיין ממתינות. */
.ar-upnow .ar-chosen { display: none; }

.ar-upnow-box { margin-top: 10px; }

.ar-upnow-live {
	margin-top: 10px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid var(--ar-line, #e6e9ef);
	border-radius: 8px;
}

/* כאן ההתקדמות אמיתית — הפס מתמלא לפי מה שהדפדפן מדווח, ולא נע סתם. */
.ar-upnow-live .ar-saving-bar span {
	animation: none;
	transition: width .2s;
}

.ar-upnow-live p {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--ar-muted, #6b7684);
}

/* ⚠️ מסך ההתחברות קצר, והפוטר טיפס אליו באמצע הדף — מתחתיו נשאר שטח לבן עד
   תחתית המסך. אותה תקלה שתוקנה בטופס ההוספה (1.78.1), באותו פתרון: גובה מזערי
   שמחזיק את העמוד במקומו. */
.ar-account .ar-login { min-height: 62vh; align-items: flex-start; }

/* ⭐ "יש לי וואטסאפ במספר הזה" — השאלה שנשאלת פעם אחת בטופס הפרסום.

   ⚠️ היא אינה שדה רגיל אלא שאלה, ולכן היא נראית אחרת: משטח רך עם מסגרת,
   ותיבת הסימון לצד הטקסט ולא בטור התוויות. ב-`.ar-field` הרגיל היא הייתה
   מתיישרת לטור של שאר השדות ונקראת כעוד שדה חובה שצריך למלא.

   ⚠️ והתיבה עצמה בגודל קבוע: `input { width: 100% }` של ערכות מסוימות מותח
   תיבת סימון על כל השורה ומוחק את הציור שלה. זה כבר הרס פעם אחת את בורר
   הערים. */
.ar-account .ar-field.ar-wa-ask {
	display: block;
	margin: 16px 0;
	padding: 12px 14px;
	border: 1px solid #d8e6ea;
	border-radius: 9px;
	background: #f4fafb;
}

.ar-account .ar-wa-ask > label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	width: auto;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.ar-account .ar-wa-ask input[type="checkbox"] {
	width: 17px;
	min-width: 17px;
	height: 17px;
	margin: 2px 0 0;
	flex: none;
}

.ar-account .ar-wa-ask small {
	display: block;
	margin-top: 3px;
	color: #6b7684;
	font-size: 12.5px;
	line-height: 1.5;
}

/* ⭐ תיבת הסינון שמעל רשימה ארוכה (ערים).

   ⚠️ העטיפה היא שמחזיקה את השתיים זו מעל זו. `.ar-field` הוא flex, והכלל
   `.ar-field > label + *` נותן את כל הרוחב לאלמנט שאחרי התווית — בלי עטיפה
   תיבת הסינון הייתה תופסת אותו והרשימה נדחקת לצידה כעמודה שלישית צרה. */
.ar-account .ar-opt-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

/* 🔴 עד 2.5.0 התיבה הזאת נראתה **בדיוק כמו שדה**: רקע לבן, אותו מסגרת,
   אותו עיגול, אותו גופן. ומתחת לתווית אחת ("עיר") ישבו שתי תיבות לבנות
   זהות זו מעל זו — העליונה עוזרת חיפוש, התחתונה התשובה.

   ⚠️ **וזה נקרא כשני שדות.** מה שישב בעליונה נראה כמו התשובה, ומה שבתחתונה
   כמו שדה נוסף. המנהלת דיווחה בדיוק כך: *"לא ברור עיר ושכונה. משהו שם
   התבלבל. השכונה לפני עיר."* — שם שכונה ישב בתיבת הסינון, מעל העיר.

   התיקון: היא כבר אינה נראית כשדה. רקע אפור, זכוכית מגדלת, וגובה נמוך
   יותר — הצורה המוסכמת ל"חיפוש בתוך רשימה". הרשימה הלבנה שמתחת היא
   היחידה שנראית כמו תשובה. */
.ar-account .ar-opt-filter {
	width: 100%;
	/* ריפוד מוגדל בצד ההתחלה כדי לפנות מקום לאייקון. */
	padding: 6px 11px 6px 11px;
	padding-inline-start: 32px;
	border: 1px solid #e2e7ec;
	border-radius: 7px;
	background-color: #f3f5f7;
	/* זכוכית מגדלת מוטבעת — בלי קובץ ובלי ספריית אייקונים. */
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238a95a1' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.2-4.2'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 9px center;
	font: inherit;
	font-size: 13.5px;
	color: #454f60;
}

/* ⚠️ המסמך כולו RTL, אבל תיבה אחת עלולה לרוץ LTR. האייקון עובר איתה. */
.ar-account .ar-opt-filter:dir(ltr) {
	background-position: left 9px center;
}

.ar-account .ar-opt-filter::placeholder {
	color: #8a95a1;
	font-size: 13px;
}

.ar-account .ar-opt-filter:focus {
	outline: none;
	border-color: var(--ar-primary, #1596a8);
	background-color: #fff;
}

/* ביטול ה-X המובנה של Chrome ב-input[type=search] — הוא נראה כמו "נקה שדה"
   ומוסיף עוד רמז מטעה שזו תיבת קלט של ממש. */
.ar-account .ar-opt-filter::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

/* ============================================================
   ⭐ שאלת סיבת ההסרה — הפאנל שמחליף את confirm() של הדפדפן
   ============================================================ */

.ar-account .ar-remove-form {
	position: relative;
}

.ar-account .ar-why {
	position: absolute;
	z-index: 20;
	inset-inline-end: 0;
	top: calc(100% + 6px);
	width: 272px;
	padding: 14px;
	background: #fff;
	border: 1px solid #d7dde5;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(14, 40, 70, .16);
	text-align: start;
}

.ar-account .ar-why-q {
	margin: 0 0 10px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ar-dark, #0e2846);
}

.ar-account .ar-why-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 10px;
}

.ar-account .ar-why-btn {
	flex: 1 1 auto;
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--ar-dark, #0e2846);
	background: #f3f6f9;
	border: 1px solid #d7dde5;
	border-radius: 7px;
	cursor: pointer;
}

/* ⚠️ הסיבות ה"טובות" נבדלות: הן זוכות ב-24 השעות, ו"אחר" מסיר מיד. */
.ar-account .ar-why-btn.is-good {
	background: #edfaef;
	border-color: #bfe3c8;
	color: #1e6b41;
}

.ar-account .ar-why-btn:hover,
.ar-account .ar-why-btn:focus {
	border-color: #8fa5bd;
}

.ar-account .ar-why-note {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.55;
	color: #6a7684;
}

.ar-account .ar-why-cancel {
	padding: 0;
	font: inherit;
	font-size: 13px;
	color: #6a7684;
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
}

/* השורה שאומרת לבעלים מה קרה למודעה שלו */
.ar-account .ar-closed-row {
	margin: 6px 0 0;
	font-size: 13.5px;
	color: #6a7684;
}

.ar-account .ar-closed-row strong {
	color: #1e6b41;
}

@media (max-width: 560px) {
	.ar-account .ar-why {
		position: fixed;
		inset-inline: 12px;
		top: auto;
		bottom: 12px;
		width: auto;
	}
}

/* ההשעיה — המסך שמשתמש מושעה רואה במקום הלוח שלו.
   ⚠️ אין כאן שום טופס ושום כפתור פעולה במכוון: הדרך היחידה קדימה היא
   עמוד צור קשר, וכפתור נוסף רק היה מזמין ניסיונות שייכשלו. */

.ar-suspended {
	max-width: 520px;
	margin: 40px auto;
	padding: 28px 24px;
	text-align: center;
	background: #fdf6e8;
	border: 1px solid #e3c99a;
	border-radius: 12px;
}

.ar-suspended h2 {
	margin: 0 0 12px;
	font-size: 20px;
	color: #8a5a10;
}

.ar-suspended p {
	margin: 0 0 8px;
	color: #4a4a4a;
	line-height: 1.6;
}

.ar-suspended p:last-child {
	margin-bottom: 0;
}

.ar-suspended a {
	color: #8a5a10;
	font-weight: 600;
}
