/* ===== Apartment Selector ===== */

.aps-no-scroll { overflow: hidden; }

/* widget on the page is invisible; only the overlay matters */
.aps-widget { display: contents; }

/* ---------- Overlay ---------- */
.aps-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 30px;
	background: rgba(80, 90, 100, 0.85);
}
.aps-overlay.aps-open { display: flex; }

/* Text direction follows the site language; LAYOUT stays fixed (see below). */
body.rtl       .aps-overlay { direction: rtl; }
body:not(.rtl) .aps-overlay { direction: ltr; }

/* ---------- Modal ---------- */
.aps-modal {
	position: relative;
	width: 100%;
	max-width: 1180px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
}
/* inner scroller – keeps the close button (which overflows the corner) visible */
.aps-modal-body {
	max-height: 90vh;
	overflow-y: auto;
	padding: 50px 40px;
	border-radius: 8px;
	box-sizing: border-box;
}

/* ---------- Close button (fixed top-left in both languages) ---------- */
.aps-close {
	position: absolute;
	top: -16px;
	left: -16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #4aa3e8, #1f6fb2);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	z-index: 2;
}
.aps-close > span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	background: #fff;
}
.aps-close > span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.aps-close > span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Steps ---------- */
.aps-step { display: none; }
.aps-step.active { display: block; }

/* ---------- Title (border + notch are handled by the theme) ---------- */
.aps-title-box {
	max-width: 580px;
	margin: 0 auto;
	padding: 12px 24px;
	text-align: center;
}
.aps-title {
	font-size: 22px;
	font-weight: 500;
	color: #333;
}
.gradient-notch-line {
	display: block;
	margin: 0 auto;
	max-width: 580px; /* same as .aps-title-box */
}
.aps-types-col .gradient-notch-line { max-width: none; }

/* ---------- Buttons (shared look for categories + types) ---------- */
.aps-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 18px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	background-color: #cfd3d6;
	color: #333;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.aps-btn:hover { filter: brightness(0.97); }
.aps-btn.aps-active {
	background-color: #2c8fd6;
	color: #fff;
	border-color: transparent;
}

/* ---------- Step 1: categories row ---------- */
.aps-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 28px;
}
.aps-categories .aps-btn { width: auto; min-width: 180px; }

/* ---------- Step 2: two columns (fixed: types right, plan left) ---------- */
.aps-step2-inner {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	direction: rtl; /* keeps the layout identical in RTL and LTR */
}
.aps-types-col {
	flex: 0 0 320px;
	max-width: 320px;
}
.aps-types-col .aps-title-box { max-width: none; }
.aps-plan {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
}
.aps-plan-img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* types list */
.aps-types { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.aps-type-item .aps-btn { width: 100%; }

/* PDF button (icon on the left, fixed in both languages) */
.aps-pdf-btn,
.aps-acc-pdf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	color: #2c8fd6;
	font-size: 15px;
	text-decoration: none;
	direction: ltr;
}
.aps-pdf-icon {
	display: inline-block;
	width: 22px;
	height: 22px;
	border: 1px solid #2c8fd6;
	border-radius: 50%;
	position: relative;
	flex: 0 0 auto;
}
.aps-pdf-icon::before {
	content: "";
	position: absolute;
	top: 4px; left: 50%;
	width: 2px; height: 8px;
	background: #2c8fd6;
	transform: translateX(-50%);
}
.aps-pdf-icon::after {
	content: "";
	position: absolute;
	top: 9px; left: 50%;
	width: 7px; height: 7px;
	border-right: 2px solid #2c8fd6;
	border-bottom: 2px solid #2c8fd6;
	transform: translate(-50%, 0) rotate(45deg);
}

/* back button (arrow on the left, pointing left, fixed in both languages) */
.aps-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	color: #555;
	font-size: 14px;
	cursor: pointer;
	direction: ltr;
}
.aps-back:hover { color: #2c8fd6; }
.aps-back-arrow {
	width: 8px; height: 8px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg); /* points left */
	flex: 0 0 auto;
}

/* mobile accordion panel (hidden on desktop) */
.aps-type-panel { display: none; }

/* ===================================================================
 *  MOBILE  (<= 768px) : accordion mode
 * =================================================================== */
@media ( max-width: 768px ) {
	.aps-modal { padding: 40px 18px; }

	.aps-title { font-size: 18px; }
	.aps-title-box { padding: 10px 14px; }

	.aps-categories { flex-direction: column; }
	.aps-categories .aps-btn { width: 100%; min-width: 0; }

	/* single column */
	.aps-step2-inner { flex-direction: column; gap: 0; }
	.aps-types-col { flex: 1 1 auto; max-width: none; width: 100%; }

	/* the shared desktop plan is hidden – plan shows inside each item */
	.aps-plan { display: none; }

	/* accordion content under the active type */
	.aps-type-panel {
		display: block;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
		text-align: center;
	}
	.aps-type-item.aps-expanded .aps-type-panel {
		max-height: 1200px;
		padding: 14px 0 6px;
	}
	.aps-acc-img { max-width: 100%; height: auto; }
}

.heaara{font-size:60%;line-height:1.2em;}