/* Elementor wrapper reset — stretch to parent container */
.elementor-widget-apartment-plans {
	align-self: stretch !important;
	flex-grow: 1 !important;
	display: flex !important;
	flex-direction: column !important;
}

.elementor-widget-apartment-plans .elementor-widget-container {
	flex-grow: 1 !important;
	display: flex !important;
	flex-direction: column !important;
}

/* Apartment Plans Widget */
.ra-apartment-plans {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch !important;
	min-height: 400px;
	flex-grow: 1 !important;
	overflow: hidden;
}

.ra-apartment-plans--empty {
	padding: 40px;
	text-align: center;
	background: #f5f5f5;
}

/* Sidebar */
.ra-sidebar {
	display: flex;
	flex-direction: column;
	justify-content: flex-start !important;
	align-self: stretch !important;
	flex-shrink: 0;
	box-sizing: border-box;
	background-color: #000000;
	padding: 10.75vw 5.25vw 0 !important;
}

html:not([dir="rtl"]) .ra-sidebar {
	padding: 10.75vw 1vw 10.75vw 3.25vw !important
}

html:not([dir="rtl"]) .ra-sidebar__button::after {
	transform: scale(-1);
}

.ra-sidebar__title {
	margin: 0 0 40px;
	text-align: start;
}

/* Categories list */
.ra-categories {
	display: flex;
	flex-direction: column;
	max-width: 215px;
}

.ra-category {
	width: 100%;
	min-width: 0;
}

/* Category toggle button */
.ra-category__toggle,
.ra-category__toggle:hover,
.ra-category__toggle:focus,
.ra-category__toggle:active {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	width: 100%;
	min-width: 0;
	align-items: center;
	gap: 10px;
	padding-top: 7px;	
	padding-bottom: 5px;	
	padding-inline-end: 15px;
	padding-inline-start: 0;
	border: none !important;
	background: transparent !important;
	color: inherit;
	cursor: pointer;
	text-align: start;
	box-shadow: none !important;
	outline: none;
	opacity: 1;
	border-radius: 0;
	border-bottom: 1px solid #ffffff !important;
	white-space: normal;
}

.ra-category__name {
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

.ra-category--open > .ra-category__toggle {
	border-bottom: none !important;
}

/* Chevron arrow — CSS-only triangle */
.ra-category__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.ra-category__chevron::before {
	content: '';
	display: block;
	width: 12px;
	height: 12px;
	border-style: solid;
	border-width: 2px 2px 0 0;
	transform: rotate(135deg);
	margin-top: -3px;
	transition: transform 0.3s ease, margin-top 0.3s ease;
}

.ra-category--open > .ra-category__toggle .ra-category__chevron::before {
	transform: rotate(-45deg);
	margin-top: 3px;
}

/* Apartment list (collapsed by default, animated via max-height) */
.ra-category__list {
	display: flex;
	flex-direction: column;
	max-height: 0;
	overflow: hidden;
	transition: padding 0.3s ease;
}

.ra-category--open > .ra-category__list {
	max-height: 500px;
	border-bottom: 1px solid #ffffff;
}

/* Apartment button */
.ra-apt-btn,
.ra-apt-btn:hover,
.ra-apt-btn:focus,
.ra-apt-btn:active {
	display: block;
	width: 100%;
	border: none !important;
	border-radius: 6px;
	background: transparent !important;
	color: inherit;
	cursor: pointer;
	padding: 0;
	text-align: start;
	transition: opacity 0.15s;
	box-shadow: none !important;
	outline: none;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
}

.ra-apt-btn:last-child {
    padding-bottom: 5px;
}

/* Sidebar Button */
.ra-sidebar__button,
.ra-sidebar__button:hover,
.ra-sidebar__button:focus,
.ra-sidebar__button:active {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 40px;
	padding: 14px 36px;
	border: 1px solid #ffffff;
	border-radius: 999px;
	background: transparent;
	color: #ffffff;
	font-family: 'Noto Sans Hebrew', sans-serif;
	font-size: 18px;
	font-weight: 400;
	width: fit-content;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ra-sidebar__button::after {
	content: '';
	display: inline-block;
	width: 25px;
	height: 8px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg width='25' height='8' viewBox='0 0 25 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.146532 3.32842C-0.0487289 3.52368-0.048729 3.84027 0.146532 4.03553L3.32851 7.21751C3.52377 7.41277 3.84036 7.41277 4.03562 7.21751C4.23088 7.02225 4.23088 6.70566 4.03562 6.5104L1.20719 3.68197L4.03562 0.853547C4.23088 0.658285 4.23088 0.341703 4.03562 0.14644C3.84036-0.0488218 3.52378-0.0488218 3.32851 0.14644L0.146532 3.32842ZM24.1921 3.68198L24.1921 3.18198 0.500086 3.18197 0.500086 3.68197 0.500086 4.18197 24.1921 4.18198 24.1921 3.68198Z' fill='white'/%3E%3C/svg%3E") no-repeat center;
	mask: url("data:image/svg+xml,%3Csvg width='25' height='8' viewBox='0 0 25 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.146532 3.32842C-0.0487289 3.52368-0.048729 3.84027 0.146532 4.03553L3.32851 7.21751C3.52377 7.41277 3.84036 7.41277 4.03562 7.21751C4.23088 7.02225 4.23088 6.70566 4.03562 6.5104L1.20719 3.68197L4.03562 0.853547C4.23088 0.658285 4.23088 0.341703 4.03562 0.14644C3.84036-0.0488218 3.52378-0.0488218 3.32851 0.14644L0.146532 3.32842ZM24.1921 3.68198L24.1921 3.18198 0.500086 3.18197 0.500086 3.68197 0.500086 4.18197 24.1921 4.18198 24.1921 3.68198Z' fill='white'/%3E%3C/svg%3E") no-repeat center;
	flex-shrink: 0;
}

.ra-sidebar__button:hover {
	background-color: #ffffff;
	color: #000000;
}

/* Content Area */
.ra-content {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

/* Panels — one apartment at a time, with fade */
.ra-panel {
	display: none;
	width: 100%;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ra-panel--active {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	opacity: 1;
	height: 100%;
}

/* Apartment Card */
.ra-card {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: row-reverse;
}

/* Image wrap (image + caption) */
.ra-card__image-wrap {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.ra-card__caption {
	max-width: 975px;
	padding: 23px 30px;
	font-size: 12px;
	line-height: 1.4;
	color: #000000;
	background: #ffffff;
	text-align: start;
	margin-inline-end: auto;
}

/* Image wrapper */
.ra-card__image {
	position: relative;
	width: 100%;
	flex: 1;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
}

.ra-card__image img {
	max-width: 743px;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

/* Card footer — full-height overlay on inline-start side of image */
.ra-card__footer {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: start;
	gap: 12px;
	padding: 0;
	width: 100%;
    max-width: 338px;
	margin: 0 !important;
}

/* Info Bar — vertical list */
.ra-info-bar {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 16px 25px 16px;
	box-sizing: border-box;
}

/* Info row — label + dots + value */
.ra-info-row {
	display: grid;
    grid-template-columns: 1fr 1fr;
	align-items: baseline;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px dashed currentColor;
}

.ra-info-row:last-child,
.ra-info-row--single,
.ra-info-row:has(+ .ra-section-plan) {
	border-bottom: none;
}

.ra-info-row__label {
	margin: 0;
	font-weight: 400;
	width: 100%;
	text-align: start;
}

.ra-info-row__value {
	margin: 0;
	font-weight: 200;
	white-space: nowrap;
	width: 100%;
	text-align: end;
}

.ra-info-row--single {
	grid-template-columns: 1fr;
}

/* PDF Download Button */
.ra-card__pdf-wrap {
	display: flex;
	justify-content: flex-end;
	padding: 12px 30px 0;
	background: #ffffff;
}

.ra-card__pdf-btn {
	font-family: 'IBM Plex Sans Hebrew Regular', sans-serif;
	font-size: 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 16px;
	background: #BFD6D2;
	border: none;
	border-radius: 40px;
	color: #000000 !important;
	font-weight: 400;
	text-decoration: none;
	cursor: pointer;
}

.ra-card__pdf-btn svg {
	flex-shrink: 0;
}

/* Section Plan */
.ra-section-plan {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 120px 25px 0;
}

.ra-section-plan img {
	max-width: 200px;
	height: auto;
	display: block;
}

.ra-section-plan__caption {
	font-size: 11px;
	opacity: 0.7;
	text-align: center;
	line-height: 1.4;
}

/* Compass */
.ra-compass {
	position: absolute;
	top: 15px;
	left: 20px;
	z-index: 2;
}

.ra-compass img {
	max-width: 54px;
	height: auto;
	display: block;
}

/* Responsive: stack on mobile */
@media (max-width: 1400px) {
	.ra-card {
		flex-direction: column;
	}

	.ra-card__footer {
		max-width: 100%;
	}

	.ra-content {
		padding: 0 !important;
	}

	.ra-section-plan {
		padding: 25px 25px  0;
	}
}

@media (max-width: 767px) {
	.ra-apartment-plans {
		flex-direction: column !important;
		min-height: auto;
	}

	.ra-sidebar {
		width: 100% !important;
		padding: 64px 64px 64px 30px !important;
	}

	html:not([dir="rtl"]) .ra-sidebar {
		padding: 30px 16px !important;
	}

	.ra-sidebar__title {
		font-size: 24px;
		margin-bottom: 35px;
	}

	.ra-category__toggle,
	.ra-category__toggle:hover,
	.ra-category__toggle:focus,
	.ra-category__toggle:active {
		font-size: 16px;
		gap: 30px;
		padding: 6px 0;
	}

	.ra-category__chevron::before {
		width: 10px;
		height: 10px;
	}

	.ra-apt-btn,
	.ra-apt-btn:hover,
	.ra-apt-btn:focus,
	.ra-apt-btn:active {
		font-size: 14px;
	}

	.ra-content {
		width: 100% !important;
		min-width: 100% !important;
		padding: 16px;
	}

	.ra-card__image {
		position: relative;
		min-height: 100vw;
		aspect-ratio: auto;
		overflow: hidden;
	}

	.ra-card__image img {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) rotate(-90deg);
		width: 100vw;
		height: 100vw;
		max-width: none;
		max-height: none;
		object-fit: contain;
	}

	.ra-compass img {
		max-width: 40px;
		height: auto;
		transform: unset;
		display: block;
	}

	.ra-card__footer {
		position: relative;
		inset-inline-start: auto;
		align-items: stretch;
		width: 100%;
	}

	.ra-info-bar {
		max-width: none;
		padding: 32px 65px 28px;
	}

	.ra-info-row {
		grid-template-columns: 1fr 0.5fr;
	}

	.ra-info-row__label,
	.ra-info-row__value {
		font-size: 16px;
	}

	.ra-info-row__value {
		font-family: 'IBM Plex Sans Hebrew Regular';
	}

	.ra-info-row__label {
		font-family: 'IBM Plex Sans Hebrew SemiBold';
		font-weight: 600;
	}

	.ra-sidebar__button,
	.ra-sidebar__button:hover,
	.ra-sidebar__button:focus,
	.ra-sidebar__button:active {
		font-size: 15px;
		padding: 10px 24px;
		margin-top: 24px;
	}
}
