body
{
	margin: 0;
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "Noto Sans", sans-serif;
	background-color: #202020;
	color: #222;
}


/*
 * General
 */
a
{
	text-decoration: none;
}
a.standard
{
	color: #49e;
	text-decoration: none;
	
	cursor: pointer;
}
a.standard:hover
{
	text-decoration: underline;
}
select
{
	/* -webkit-appearance: none; */
	height: 30px;
	min-height: 30px;
	max-height: 30px;
	font-size: 15px;
	border: 1px solid #888;
	border-top: 1px solid #888;
	border-left: 1px solid #888;
	/*box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.25);*/
	border-radius: 5px;
	padding: 0px;
	padding-left: 10px;
	margin: 0px 0px;
	text-align: left;
	background-color: white;
	cursor: pointer;
}
input
{
	height: 36px;
	min-height: 36px;
	max-height: 36px;
	font-size: 15px;
	border: 1px solid #888;
	border-top: 1px solid #888;
	border-left: 1px solid #888;
	border-radius: 5px;
	padding: 0px;
	padding-left: 10px;
	margin: 0px 4px;
	text-align: left;
	background-color: white;
}

button.standard
{
	display: inline-flex;
	width: fit-content;
	align-items: center;
	height: 36px;
	min-height: 36px;
	padding: 6px 12px;
	gap: 6px;
	
	background: #49e;
	border: 1px solid #c4c4c4;
	border-radius: 999px;
	color: #fff;
	line-height: 22px;

	font-size: 14px;
	
	cursor: pointer;
	box-sizing: border-box;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
	transition: background-color 0.12s ease, border-color 0.12s ease;
}
button.standard:hover
{
	background-color: #5af;
}
button.standard:disabled
{
	color: #999;
	opacity: 0.8;
}
button.standard.dark
{
	background: #666;
}
button.standard.dark:hover
{
	background-color: #777;
}



input.standard
{
	align-items: center;
	text-align: center;
	height: 36px;
	min-height: 36px;
	padding: 6px 12px;
	gap: 6px;
	
	background: #49e;
	border: 1px solid #c4c4c4;
	border-radius: 999px;
	color: #fff;
	line-height: 22px;

	font-size: 14px;
	
	cursor: pointer;
	box-sizing: border-box;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
	transition: background-color 0.12s ease, border-color 0.12s ease;
}
input.standard:hover
{
	background-color: #5af;
}
input.standard:disabled
{
	color: #999;
	opacity: 0.8;
}
input.standard.dark
{
	background: #666;
}
input.standard.dark:hover
{
	background-color: #777;
}



button.standard.icon
{
	align-items: center;
	
	width: fit-content;
	display: flex;
	height: 30px;
	padding: 0px 4px;
	gap: 2px;
	
	border-radius: 6px;
	line-height: 22px;

	font-size: 14px;
}
button.standard.icon img
{
	width: 30px;
	height: 30px;
	
	margin: 0px;
}
button.standard.icon span.icon
{
    width: 30px;
    height: 30px;
}

.switch
{
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	border-radius: 999px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
	transition: background-color 0.12s ease, border-color 0.12s ease;
}


.slider
{
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 34px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

input + .slider
{
	background-color: #aaa;
}
input + .slider:hover
{
	background-color: #bbb;
}

input:checked + .slider
{
	background-color: #49e;
}

input:focus + .slider
{
	box-shadow: 0 0 1px #49e;
}

input:checked + .slider:before
{
	transform: translateX(26px);
}
input:checked + .slider:hover
{
	background-color: #5af;
}




.root
{
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	min-height: 0;
}
.top-panel
{
	background-color: #202020;
	color: #f5f5f5;
	height: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	flex: 0 0 auto;
}
.main-panel
{
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	height: calc(100vh - 108px);
	height: calc(100dvh - 108px);
}

.main-panel .left-panel
{
	flex: 1;
	min-height: 0;
	background: #ada; /* test color */
}

.main-panel .right-panel
{
	width: 450px;
	height: 100%;
	min-height: 0;
	background: #fff;
	padding: 0px 0;
	box-sizing: border-box;
	overflow-y: auto;
}
.content-panel
{
	width: 100%;
	height: calc(100vh - 108px);
	height: calc(100dvh - 108px);
	min-height: 0;
	background: #fff;
	padding: 0px 0;
	box-sizing: border-box;
	overflow-y: auto;
}
.price-history-list-horizontal
{
	width: 100vw;
	overflow-x: auto;
	-ms-overflow-style: none;  /* IE/old Edge */
	scrollbar-width: none;     /* Firefox */
	-webkit-overflow-scrolling: touch; /* iOS smooth scroll */
}

.price-history-list-horizontal::-webkit-scrollbar
{
	display: none; /* Chrome/Safari/iOS */
}


.parent_of_header
{
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0 16px;
	box-sizing: border-box;
}

/* LEFT – logo + title */

.header
{
	display: flex;
	align-items: center;
	margin-right: 32px;
}

.header .icon img
{
	display: block;
	width: 26px;
	height: 26px;
	margin-right: 6px;
}

.header_title .header_map_link
{
	text-decoration: none;
}

.header_title .name
{
	font-size: 24px;
	font-weight: 500;
	color: #6ab0ff;
	text-transform: lowercase;
	line-height: 1;
	margin-bottom: 1px;
}

/* RIGHT – nav links */

.header_main_panel
{
	display: flex;
	align-items: center;
	gap: 0px;
	font-size: 16px;
}

.header_link a
{
	display: flex;
	align-items: center;
	font-size: 17px;
	gap: 0px;
	color: #f5f5f5;
	text-decoration: none;
	height: 48px;
	padding: 0 16px;
	box-sizing: border-box;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.header_link a img
{
	display: block;
	height: 20px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.95;
}

.header_link a:hover
{
	background-color: #3b3b3b;
}

.header_link a.selected
{
	color: #6ab0ff;
}

.header_link a.selected img
{
	filter:
		brightness(0) saturate(100%)
		invert(74%)
		sepia(19%)
		saturate(1767%)
		hue-rotate(183deg)
		brightness(101%)
		contrast(101%);
}

.header_link.about a
{
	color: #a0a0a0;
}


@media (max-width: 770px) {

	.parent_of_header
	{
		padding: 0 10px;
	}

	.header_link a
	{
		padding: 0 12px;
	}
	
	.header
	{
		margin-right: 0px;
	}
}

/* ----- FILTER BAR ----- */

.filter-bar
{
	background-color: #e3e3e3;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
	padding: 0px 10px 11px 10px;
	box-sizing: border-box;

	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;

	/* allow wrap when too narrow (desktop can still overflow in your real app if you prefer) */
	flex-wrap: wrap;
}

.filter-bar-left
{
	padding: 0px;
	display: flex;
	align-items: center;
	gap: 0px 10px;
	flex: 1 1 auto;
	min-width: 0;
	flex-wrap: wrap;
}

.filter-bar-right
{
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	white-space: nowrap;
}

/* search */

.filter-search
{
	position: relative;
	width: 235px;
	max-width: 260px;
	margin-top: 12px;
}

.filter-search input
{
	width: 100%;
	padding: 8px 30px 8px 10px;
	border-radius: 999px;
	border: 1px solid #c4c4c4;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.filter-search button.clear_project
{
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-60%);
	border: none;
	background: transparent;
	padding: 0;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;

	stroke: #777;
}
.filter-search button.clear_project:hover
{
	stroke: #08f;
}
.filter-search button.clear_project:active
{
	stroke: #08f;
}

.filter-search button.clear_project svg
{
	width: 40px;
	height: 40px;
	padding-top: 6px;
}


.filter-search button.search_project
{
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-60%);
	border: none;
	background: transparent;
	padding: 0;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;

	stroke: #777;
}
.filter-search button.search_project:hover
{
	stroke: #08f;
}
.filter-search button.search_project:active
{
	stroke: #08f;
}
.filter-search button.search_project.disabled
{
	stroke: #ddd;
}
.filter-search button.search_project.disabled:hover
{
	stroke: #ddd;
}

.filter-search button.search_project svg
{
	width: 40px;
	height: 40px;
	padding-top: 6px;
}



/* pill dropdown */

.pill-dropdown
{
	position: relative;
}

.pill-button
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid #c4c4c4;
	background: #f9f9f9;
	font-size: 14px;
	cursor: pointer;
	box-sizing: border-box;
	min-height: 36px;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}
.pill-button:hover
{
	background: #ffffff;
	border-color: #b8b8b8;
}
.pill-button:disabled
{
	opacity: 0.82;                /* was too low */
	cursor: not-allowed;

	background: #f4f4f4;          /* subtle */
	border-color: #d2d2d2;

	filter: grayscale(0.2);       /* optional, very light */
}

.pill-button:disabled:hover
{
	background: #f4f4f4;
	border-color: #d2d2d2;
}


.pill-button-label
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	max-width: 190px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* fixed widths */
#typeDropdown .pill-button
{
	width: 195px;
	justify-content: flex-start;
	margin-top: 11px;
}
#roomsDropdown .pill-button
{
	width: 140px;
	justify-content: flex-start;
	margin-top: 11px;
}
#areaDropdown .pill-button
{
	width: 130px;
	justify-content: flex-start;
	margin-top: 11px;
}
#priceDropdown .pill-button
{
	width: 182px;
	justify-content: flex-start;
	margin-top: 11px;
	padding: 5px 10px 5px 10px;
}
#statusDropdown .pill-button
{
	width: 180px;
	justify-content: flex-start;
	margin-top: 11px;
	padding: 5px 10px 5px 10px;
}

#statusDropdown .pill-button:has(.filter-status-badge)
{
	padding: 4px 10px 4px 7px;
}


/* order group keeps dropdown + dir button on one line */
.order-group
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	white-space: nowrap;
	margin-left: auto;
}

.pill-icon
{
	width: 24px;
	height: 24px;
	display: block;
	flex-shrink: 0;
}

.pill-caret
{
	width: 0;
	height: 0;
	margin-left: auto;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #555;
}


/* popup panel – unified */

.pill-panel
{
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 6px;
	min-width: 210px;
	padding: 8px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
	z-index: 50;

	display: block;

	/* closed state */
	opacity: 0;
	transform: translateY(-10px) scale(0.97);
	visibility: hidden;
	pointer-events: none;

	/* SLOWER close */
	transition:
		opacity 300ms ease,
		transform 300ms cubic-bezier(0.2, 0.6, 0.2, 1),
		visibility 0s linear 300ms;
}

.pill-panel.open
{
	opacity: 1;
	transform: translateY(0) scale(1);
	visibility: visible;
	pointer-events: auto;

	/* FASTER open */
	transition:
		opacity 160ms ease-out,
		transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
		visibility 0s linear 0s;
}


.pill-panel-options
{
	display: flex;
	flex-direction: column;
	gap: 2px; /* IMPORTANT: no dead gap between rows */
}

/* option row – less “form”, more “menu” */

.pill-panel-option
{
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #222;
	font-size: 15px;
	cursor: pointer;
	white-space: nowrap;

	padding: 9px 12px 9px 40px;
	border-radius: 10px;
	transition: background-color 0.12s ease;
	user-select: none;

	border-bottom: 0px solid transparent;
}
.pill-panel-option.with-icon
{
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #022;
	font-size: 15px;
	cursor: pointer;
	white-space: nowrap;

	padding: 8px 12px 8px 40px;
	border-radius: 10px;
	transition: background-color 0.12s ease;
	user-select: none;

	border-bottom: 0px solid transparent;
}

.pill-panel-option:last-child
{
	border-bottom: none;
}

/* hover = light blue, checked = neutral gray */
.pill-panel-option:hover
{
	background: rgba(47, 120, 255, 0.14);
}

.pill-panel-option.checked
{
	background: rgba(0, 0, 0, 0.08);
}

.pill-panel-option.checked:hover
{
	background: rgba(47, 120, 255, 0.14);
}

/* hide native checkbox visually (keep it accessible) */
.pill-panel-option input
{
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	pointer-events: none;
}

/* custom check indicator box */
.pill-panel-option::before
{
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	background: #fff;
	box-sizing: border-box;
}

.pill-panel-option.checked::before
{
	background: #2f78ff;
	border-color: #2f78ff;
}

/* centered checkmark */
.pill-panel-option.checked::after
{
	content: "✓";
	position: absolute;
	left: 21px; /* 12 + 9 */
	top: 50%;
	transform: translate(-50%, -52%);
	font-size: 14px;
	color: #fff;
	font-weight: 800;
	line-height: 1;
}

.pill-panel-option-img
{
	width: 24px;
	height: 24px;
	display: block;
	background-color: #222;
}

.pill-dropdown .apartment
{
	-webkit-mask-image: url("images/apartment.svg");
	mask-image: url("images/apartment.svg");
}
.pill-dropdown .house
{
	-webkit-mask-image: url("images/house.svg");
	mask-image: url("images/house.svg");
}
.pill-dropdown .land
{
	-webkit-mask-image: url("images/land.svg");
	mask-image: url("images/land.svg");
}
.pill-dropdown .commercial
{
	-webkit-mask-image: url("images/commercial.svg");
	mask-image: url("images/commercial.svg");
}
.pill-dropdown .parking
{
	-webkit-mask-image: url("images/parking.svg");
	mask-image: url("images/parking.svg");
}
.pill-dropdown .storage-unit
{
	-webkit-mask-image: url("images/storage-unit.svg");
	mask-image: url("images/storage-unit.svg");
}

.project-tile-type .apartment
{
	-webkit-mask-image: url("images/apartment.svg");
	mask-image: url("images/apartment.svg");
}
.project-tile-type .house
{
	-webkit-mask-image: url("images/house.svg");
	mask-image: url("images/house.svg");
}
.project-tile-type .land
{
	-webkit-mask-image: url("images/land.svg");
	mask-image: url("images/land.svg");
}
.project-tile-type .commercial
{
	-webkit-mask-image: url("images/commercial.svg");
	mask-image: url("images/commercial.svg");
}
.project-tile-type .parking
{
	-webkit-mask-image: url("images/parking.svg");
	mask-image: url("images/parking.svg");
}
.project-tile-type .storage-unit
{
	-webkit-mask-image: url("images/storage-unit.svg");
	mask-image: url("images/storage-unit.svg");
}


/* single-select option layout */
.pill-panel-option.single
{
	padding-left: 14px;
	padding-right: 46px;
}

.pill-panel-option.single::before
{
	display: none;
}

.pill-panel-option.single::after
{
	display: none;
}

/* single-select: show a right-side check for selected item */
.pill-panel-option.single.checked::after
{
	display: block;
	content: "✓";
	position: absolute;
	left: auto;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #2f78ff;
	font-weight: 800;
	font-size: 15px;
}

/* hidden values */
.filter-hidden
{
	display: none;
}

/* status badges */

.filter-status-badge
{
	display: inline-block;
	border-radius: 999px;
	padding: 0px 8px;
	height: 26px;
	line-height: 26px;
	font-size: 12px;
	font-weight: 700;
	text-transform: lowercase;
	
	white-space: nowrap;
}

.pill-button-label:has(> .filter-status-badge:nth-child(3)) .filter-status-badge
{
	position: relative;

	/* force a circle */
	width: 26px;
	height: 26px;
	border-radius: 999px;

	/* kill layout influence of text */
	padding: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
	letter-spacing: 0 !important;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	overflow: hidden; /* just in case */
}

.pill-button-label:has(> .filter-status-badge:nth-child(3)) .filter-status-badge::before
{
	content: attr(data-short);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	color: #fff; /* change if needed */
}




.filter-status-available
{
	background-color: #4caf50;
	color: #fff;
}

.filter-status-reserved
{
	background-color: #ddbb00;
	color: #fff;
}

.filter-status-sold
{
	background-color: #a63a3a;
	color: #fff;
}

/* status panel: avoid blue background clash, keep neutral hovers */
#statusPanel .pill-panel-option:hover
{
	background: rgba(0, 0, 0, 0.04);
}
#statusPanel .pill-panel-option.checked
{
	background: rgba(0, 0, 0, 0.06);
}

#statusPanel .pill-panel-option.checked:hover
{
	background: rgba(0, 0, 0, 0.04);
}

/* status pills bigger only inside dropdown (does not affect filter width) */
#statusPanel .filter-status-badge
{
	padding: 4px 10px;
	font-size: 14px;
	min-width: 110px;
	text-align: center;
}

/* Reset */

#clearFilter
{
	padding: 7px 18px;
	margin-top: 11px;
	margin-left: 0px;
	margin-right: 0px;
	
	border-radius: 999px;
	border: none;
	background-color: #4a4a4a;
	color: #fff;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;

	
	cursor: pointer;
	box-sizing: border-box;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
	transition: background-color 0.12s ease, border-color 0.12s ease;
}
#clearFilter:hover
{
	background-color: #6a6a6a;
}



		/* Split pill (order): left area opens menu, right icon toggles direction */
#orderDropdown .pill-button
{
	width: 200px;
	justify-content: flex-start;
	padding: 0;
	margin-top: 11px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
}

#orderDropdown .pill-button .pill-caret
{
	display: none;
}

.order-split
{
	display: inline-flex;
	align-items: stretch;
	width: 100%;
	height: 36px;
}


.order-open
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 4px 0 12px;
	flex: 1 1 auto;
	min-width: 0;
	height: 36px;
	background: transparent;
	border: none;
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-align: left;
}

.order-open:focus
{
	outline: none;
}

.order-dir-inpill
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	height: 36px;
	border: none;
	border-left: 1px solid #c4c4c4;
	background: transparent;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	user-select: none;
}

.order-dir-inpill:focus
{
	outline: none;
}

#orderDropdown .pill-button:hover .order-open,
#orderDropdown .pill-button:hover .order-dir-inpill
{
	background: rgba(0, 0, 0, 0.03);
}

#orderDropdown .order-open,
#orderDropdown .order-dir-inpill
{
	color: #222;
}

#orderDropdown .order-open .pill-button-label
{
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
	max-width: 100%;
}
/* Base icon box */
#orderDropdown .sort-ico-img
{
	/* default: do NOT paint anything until mask actually works */
	background: transparent;

	margin-top: 3px;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;

	/* important for masks (so you don't get weird stretching/tiling) */
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* Only paint the icon when the browser supports mask-image */
@supports ((-webkit-mask-image: url("")) or (mask-image: url("")))
{
	#orderDropdown .sort-ico-img
	{
		background: black;
	}
}

/* Use absolute paths to avoid relative-path issues on subpages */
.sort-random       { -webkit-mask-image: url("images/sort-random.svg");       mask-image: url("images/sort-random.svg"); }
.sort-price        { -webkit-mask-image: url("images/sort-price.svg");        mask-image: url("images/sort-price.svg"); }
.sort-area         { -webkit-mask-image: url("images/sort-area.svg");         mask-image: url("images/sort-area.svg"); }
.sort-floor        { -webkit-mask-image: url("images/sort-floor.svg");        mask-image: url("images/sort-floor.svg"); }
.sort-rooms        { -webkit-mask-image: url("images/sort-rooms.svg");        mask-image: url("images/sort-rooms.svg"); }
.sort-date-removed { -webkit-mask-image: url("images/sort-date-removed.svg"); mask-image: url("images/sort-date-removed.svg"); }
.sort-date-added   { -webkit-mask-image: url("images/sort-date-added.svg");   mask-image: url("images/sort-date-added.svg"); }



.order-dir-inpill.disabled
{
	opacity: 0.45;
	pointer-events: none;
}

/* order direction button */
.order-dir
{
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid #c4c4c4;
	background: #f9f9f9;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
}

.order-dir:hover
{
	background: #ffffff;
	border-color: #b8b8b8;
}

.order-dir.disabled
{
	opacity: 0.45;
	pointer-events: none;
}

#statusDropdown .pill-button:has(.filter-status-reserved):has(.filter-status-sold) .pill-button-label .filter-status-badge
{
	position: relative;

	/* force a circle */
	width: 26px;
	height: 26px;
	border-radius: 999px;

	/* kill layout influence of text */
	padding: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
	letter-spacing: 0 !important;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	overflow: hidden; /* just in case */
}

#statusDropdown .pill-button:has(.filter-status-reserved):has(.filter-status-sold) .pill-button-label .filter-status-badge::before
{
	content: attr(data-short);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	color: #fff; /* change if needed */
}

@media (max-width: 1424px) {
	.filter-search
	{
		/*width: calc(100vw - 1186px);/**/
		width: clamp(190px, calc(235px - (235px - (100vw - 1206px)) / 2), 235px);
	}

	#typeDropdown .pill-button
	{
		/*width: calc(100vw - 1216px);*/
		width: clamp(123px, calc(195px - (195px - (100vw - 1236px)) / 2), 195px);
	}

	#statusDropdown
	{
		width: 125px;
	}
	#statusDropdown .pill-button
	{
		width: 100%;
	}

	.pill-button-label .filter-status-badge
	{
		position: relative;

		/* force a circle */
		width: 26px;
		height: 26px;
		border-radius: 999px;

		/* kill layout influence of text */
		padding: 0 !important;
		line-height: 0 !important;
		font-size: 0 !important;
		letter-spacing: 0 !important;

		display: inline-flex;
		align-items: center;
		justify-content: center;

		overflow: hidden; /* just in case */
	}

	.pill-button-label .filter-status-badge::before
	{
		content: attr(data-short);
		font-size: 14px;
		font-weight: 700;
		line-height: 1;
		text-transform: uppercase;
		color: #fff; /* change if needed */
	}
}

@media (max-width: 1340px) {

	#typeButton .pill-button-label span span
	{
		display: none;
	}
}

@media (max-width: 1280px) {
	
	#orderDropdown .pill-button
	{
		width: 120px;
	}
	#orderDropdown .pill-button .title
	{
		display: none;
	}

	.order-dir-inpill
	{
		width: 32px;
		min-width: 32px;
	}
}


/* 
 * MAP Projects list
 */

.project-list
{
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.project-card
{
	cursor: pointer;
	display: flex;
	text-decoration: none;
	color: #111;
	background-color: #fff;
	border: none;
	border-radius: 0;
	border-bottom: 1px solid #ddd;
	padding: 10px 10px 10px 8px;
	gap: 12px;
	align-items: stretch;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover
{
	background-color: #f6f6f6;
	box-shadow: none;
}

.project-card.highlight
{
	background-color: #f6f6f6;
	box-shadow: none;
}

.project-card:first-child
{
	border-top: 1px solid #ddd;
}

.project-card.history-item
{
	padding: 0px 10px 0px 8px;
}

/* Wrapper for one item (card + ROI overlay) */
.project-card-wrap
{
	position: relative;
}

/* Ensure card stays below ROI in stacking order */
.project-card-wrap > .project-card
{
	position: relative;
	z-index: 1;
}

.project-card-image
{
	width: 126px;
	height: 126px;
	border-radius: 4px;
	margin: 2px 0px;
	flex: 0 0 126px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #C5C9D1;
}

.project-card-image img
{
	width: 100%;
	height: auto;
	border-radius: 4px;
	object-fit: cover;
	transition: opacity 0.3s ease;
    opacity: 0;
}
.project-card-image img.is-loaded
{
	opacity: 1;
}
.project-card-image img.no-fade
{
	transition: none !important;
}

.project-card:hover .project-card-image img
{
	filter: sepia(0.6) saturate(1.3) brightness(1.05);
}
.project-card.highlight .project-card-image img
{
	filter: sepia(0.6) saturate(1.3) brightness(1.05);
}

.project-card-left-panel
{
	gap: 12px;
	align-items: stretch;
	display: flex;
	width: 400px;
	height: 100%;
	
	padding: 8px 10px;
	
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);

	position: sticky;
	top: 0px;
	left: 0px;
	z-index: 5;
}

.project-card:hover .project-card-left-panel
{
	background-color: #f6f6f6;
	box-shadow: none;
}

.project-card.highlight .project-card-left-panel
{
	background-color: #f6f6f6;
	box-shadow: none;
}

.project-card-body
{
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.project-card-body,
.project-card-body *
{
	line-height: 1.38;
}

.price-history-list
{
	width: 2000px;
}
.price-history-list:has(.list_empty)
{
	width: 100vw;
}


.price-history-list .project-card .project-card-body
{
	width: 260px;
	max-width: 260px;
	height: 130px;
}
.history-chart-wrap
{
	padding: 8px 0px;
	width: calc(100% - 400px);
}

.history-chart-wrap .parent-of-graph
{
	width: 100%;
	margin: 0px;
	padding: 0px;
	height: 130px;
}
.history-chart-wrap .parent-of-graph .graph
{
	margin: 0px;
	height: 130px;
}
.project-card.history-item .graph_loader
{
	gap: 12px;
	align-items: stretch;
	display: flex;
	width: 100%;
	max-width: 100%;
	height: 100%;
	
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	
}
.project-card.history-item .graph_loader .left
{
	width: calc(100% + 420px - 100vw);
}
.project-card.history-item .graph_loader .graph_loader
{
	width: calc(100vw - 420px);
	background: #4477ee18;
}

.price-history-list-horizontal .list_loading
{
	position: sticky;
	top: 0px;
	left: 0px;
	z-index: 5;
}




.project-card-header
{
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 2px;
}

.project-title
{
	font-size: 17px;
	font-weight: 600;
	margin: 0;
	
	letter-spacing: 0.01em;
	
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.project-location
{
	font-size: 13px;
	color: #888;
}

.project-card-main
{
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
}

.project-type
{
	font-size: 14.5px;
	font-weight: 600;
}

.project-size
{
	font-size: 13.5px;
	color: #555;
}

.project-size .dot-separator
{
	margin: 0 4px;
}

.project-card-footer
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
	padding-top: 2px;
	font-size: 13px;
	flex-wrap: nowrap;
}

.project-price
{
	margin-top: 2px;
}

.project-price .value
{
	font-size: 15.5px;
	font-weight: 700;
	color: #111;
}

.project-status-badge
{
	margin-left: auto;
	padding: 6px 0;
	border-radius: 999px;
	background-color: #777;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: lowercase;
	white-space: nowrap;
	min-width: 95px;
	text-align: center;
	box-sizing: border-box;
}
.project-status-badge.free
{
	background-color: #4caf50;
}
.project-status-badge.reserved
{
	background-color: #4caf50;
}
.project-status-badge.sold
{
	background-color: #a63a3a;
}

.project-card-unavailable .project-status-badge
{
	background-color: #ddbb00;
	color: #fff;
}


div.list_empty
{
	background: transparent;
	height: calc(100vh - 160px);
	height: calc(100dvh - 160px);
	line-height: calc(100vh - 160px);
	line-height: calc(100svh - 160px);
	line-height: calc(100dvh - 160px);
	text-align: center;
	vertical-align: center;
	font-size: 20px;
	color: #aaa;
}
.projects-scroll div.list_empty
{
	height: calc(100vh - 190px);
	height: calc(100dvh - 190px);
	line-height: calc(100vh - 190px);
	line-height: calc(100svh - 190px);
	line-height: calc(100dvh - 190px);
}





/* Map */
#map
{
	width: 100%;
	height: 100%;
	border-right: 1px solid rgba(0, 0, 0, 0.10);
}

.leaflet-container
{
	font-family: inherit;
}

/* Results counter */
.results-counter
{
	position: sticky;
	top: 0;
	z-index: 50;

	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;

	padding: 18px 12px 8px 12px;
	margin: 0;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}


.results-counter__label,
.results-counter__sep
{
	color: #666;
	font-size: 14px;
}

.results-counter__value
{
	font-weight: 900;
	color: #1d1d1d;
	font-size: 16px;
}

.results-counter__value--muted
{
	color: #222;
	opacity: 0.85;
}

/* Marker styles (Leaflet divIcons) */
.marker-bg
{
	width: 14px;
	height: 12px;
	border-radius: 50%;
	background: rgba(25, 118, 255, 0.85);
	border: 2px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.marker-fg
{
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #1976ff;
	border: 3px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	color: white;
	font-size: 14px;
	letter-spacing: -0.3px;
}

.marker-fg--big
{
	width: 42px;
	height: 42px;
	font-size: 15px;
}
/*
 * Marker
 */
.marker
{
    background: #0088ff;
    color: white;
	border: 2px solid #fff;
    text-align: center;
	align-items: center;
	display: flex;
	justify-content: center;
	font-size: 16px;
    padding: 3px;
    border-radius: 50%;
}
.marker:hover
{
    background: #ee0;
    color: white;
}
.marker.higlight
{
    background: #ee0;
    color: white;
}
.marker_highlight
{
    background: #dd0;
    color: white;
	border: 2px solid white;
    text-align: center;
	align-items: center;
	display: flex;
	justify-content: center;
	font-size: 16px;
    padding: 3px;
    border-radius: 50%;
}
.marker_highlight:hover
{
    background: #ee0;
}
.small_marker
{
    background: #0088ff;
    color: white;
	border: 2px solid #fff;
	align-items: center;
	display: flex;
    padding: 3px;
    border-radius: 50%;
}
.small_marker:hover
{
    background: #ee0;
}
.small_marker.highlight
{
    background: #ee0;
}
.small_marker_highlight
{
    background: #dd0;
	border: 2px solid white;
	align-items: center;
	display: flex;
    padding: 3px;
    border-radius: 50%;
}
.small_marker_highlight:hover
{
    background: #ff0;
}
.yellow_marker_highlight
{
    background: #dd0;
	border: 2px solid white;
	align-items: center;
	display: flex;
    padding: 3px;
    border-radius: 50%;
}


/* Layering fix: dropdowns above Leaflet map */
.main-layout,
.top-controls,
.filters-bar,
.right-panel
{
	position: relative;
	z-index: 10;
}

.left-panel
{
	position: relative;
	z-index: 1;
	overflow: hidden;
}

#map
{
	position: relative;
	z-index: 1;
}

.leaflet-pane,
.leaflet-control,
.leaflet-top,
.leaflet-bottom
{
	z-index: 1 !important;
}

.pill-panel,
.pill-panel-context,
.dropdown-panel,
.dropdown-menu
{
	position: absolute;
	z-index: 9999 !important;
}


/*
 * Marker popup
 */
div.marker_popup
{
	
}
div.marker_popup img.project
{
	margin-top: -10px;
	margin-left: -16px;
	margin-right: -16px;
	width: calc(100% + 32px);
	height: auto;
	border-radius: 8px;
	text-align: center;
}
div.marker_popup div.title
{
	font-size: 12px;
	margin-left: -15px;
	margin-right: -15px;
	margin-bottom: -8px;
	min-width: 100px;
	text-align: center;
}

/* Search suggestions (left auxiliary list) */
.filter-bar-left
{
	position: relative;
}

.search-suggest
{
	position: absolute;
	left: 0;
	top: 52px; /* below search input */
	width: 410px;
	max-height: calc(100vh - 210px);
	max-height: calc(100dvh - 210px);
	overflow: auto;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
	z-index: 9999;
	backdrop-filter: blur(10px);
}

.search-suggest.hidden
{
	display: none;
}

.search-suggest-section
{
	padding: 10px;
}

.search-suggest-title
{
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.2px;
	color: #666;
	padding: 4px 6px 8px 6px;
}
.search-suggest-title .u
{
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.search-suggest-divider
{
	height: 2px;
	background: rgba(0, 0, 0, 0.16);
	margin: 0 10px;
}

.search-suggest-item
{
	display: grid;
	grid-template-columns: 60px 1fr 70px;
	gap: 10px;
	align-items: center;
	padding: 7px 14px 7px 9px;
	border-radius: 12px;
	cursor: pointer;
}

.search-suggest-item:hover
{
	background: rgba(25, 118, 255, 0.10);
}

.search-suggest-item:active
{
	background: rgba(25, 118, 255, 0.16);
}
.search-suggest-item.highlight
{
	background: #55aaff22;
}

.search-suggest-item--city
{
	grid-template-columns: 1fr 70px;
	padding: 10px 14px 10px 9px;
}

.search-suggest-thumb
{
	width: 60px;
	height: 60px;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #f2f2f2;
}

.search-suggest-main
{
	min-width: 0;
}

.search-suggest-name
{
	font-size: 14px;
	font-weight: 800;
	color: #1d1d1d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.search-suggest-name .u
{
	display: inline;
	background: #55aaff44;
}

.search-suggest-sub
{
	margin-top: 2px;
	font-size: 12px;
	font-weight: 650;
	color: #777;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-suggest-count
{
	justify-self: end;
	font-size: 14px;
	font-weight: 900;
	color: #1d1d1d;
}

@media (max-width: 1180px)
{
	.search-suggest
	{
		width: 360px;
	}
}

@media (min-width: 1173px) {
	
	#orderDropdown .pill-button span.sort-ico-img
	{
		display: none;
	}
}
@media (max-width: 1172px) {
	
	#orderDropdown .pill-button
	{
		width: 80px;
	}
	#orderDropdown .pill-button-label span.title
	{
		display: none;
	}
	#orderDropdown .pill-button-label span.value
	{
		display: none;
	}
}

/* --- Minimal separation for suggest panel (keep original look) --- */
.search-suggest
{
	background: rgba(255,255,255,0.98);
	border: 1px solid rgba(0, 0, 0, 0.20);
	box-shadow: 0 24px 72px rgba(0,0,0,0.26), 0 2px 0 rgba(255,255,255,0.65) inset;
}

.search-suggest-group
{
	padding-bottom: 6px;
	margin-bottom: 10px;
	border-bottom: 2px solid rgba(0, 0, 0, 0.18);
}

.search-suggest-group:last-child
{
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.search-suggest-item
{
	border-radius: 12px;
}

.search-suggest-item + .search-suggest-item
{
	margin-top: 4px;
}

.search-suggest-item
{
	background: transparent;
}

.search-suggest-item:hover
{
	background: rgba(0,0,0,0.06);
}

.search-suggest-item.is-active,
.search-suggest-item:focus-visible
{
	background: rgba(25, 118, 255, 0.10);
	outline: none;
}


.project-header-card
{
	margin: 6px 12px 10px 12px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.10);
	border-radius: 16px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.project-header-top
{
	display: flex;
	gap: 12px;
	align-items: center;
}

.project-header-image
{
	position: relative;
	width: 78px;
	height: 78px;
	flex: 0 0 78px;
}

.project-header-image img
{
	width: 100%;
	height: 100%;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.project-header-badge
{
	position: absolute;
	top: -7px;
	right: -7px;
	min-width: 34px;
	height: 24px;
	padding: 0 8px;
	border-radius: 12px;
	background: #2b77ff;
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.project-header-meta
{
	min-width: 0;
	flex: 1;
}

.project-header-title
{
	font-size: 20px;
	font-weight: 900;
	line-height: 1.1;
	margin: 0;
}

.project-header-sub
{
	color: rgba(0, 0, 0, 0.62);
	font-weight: 600;
	margin-top: 4px;
}

.project-header-tags
{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.project-header-tag
{
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.045);
	border: 1px solid rgba(0, 0, 0, 0.10);
	font-weight: 700;
	color: rgba(0, 0, 0, 0.76);
	white-space: nowrap;
}

.project-header-tag .tag-ico
{
	font-size: 14px;
	line-height: 1;
}

.project-header-gallery
{
	margin-top: 10px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.project-header-gallery img
{
	width: 100%;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	border: 1px solid rgba(0, 0, 0, 0.10);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	background: rgba(0, 0, 0, 0.03);
}



/* Project header (single project above list) */
.project-project-header
{
    padding: 12px 8px;
    gap: 14px;
    align-items: flex-start;
    border-bottom: 1px solid #e7e7e7;
    background: #fff;
}

.project-project-header-imageWrap
{
	margin: 0px;
    border-radius: 6px;
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
	background: #C5C9D1;
    position: relative;
}

.project-project-header-imageWrap img
{
    border-radius: 6px;
    width: 150px;
    height: 150px;
    display: block;
    object-fit: cover;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.project-project-header-imageWrap img.is-loaded
{
	opacity: 1;
}
.project-project-header-imageWrap img.no-fade
{
	transition: none !important;
}

.project-card:hover img
{
	filter: sepia(0.6) saturate(1.3) brightness(1.05);
}

.project-project-header-countBadge
{
	position: absolute;
	top: 4px;
	right: 4px;

	min-width: 40px;
	height: 30px;
	padding: 0 6px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.2px;
	color: #fff;

	background: #3C79FF;
	border-radius: 6px;
	box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}


.project-project-header-types
{
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 6px;
    color: #333;
    font-size: 13.5px;
}

.project-project-header-type
{
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
}

.project-project-header-typeIcon
{
    width: 18px;
    height: 18px;
    display: inline-block;
}

.project-project-header-gallery
{
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

.project-project-header-gallery img
{
	width: 69px;
	height: 69px;
	object-fit: cover;
	border-radius: 6px;

	opacity: 0;
	transition: opacity 0.3s ease;
}


.project-project-header-thumb
{
	position: relative;
	width: 82px;
	height: 69px;
	flex: 0 0 82px;
	border-radius: 6px;
	overflow: hidden;

	background: #C5C9D1;
}

.project-project-header-thumb img
{
	width: 82px;
	height: 69px;
	object-fit: cover;
	border-radius: 6px;

	opacity: 0;
	transition: opacity 0.3s ease;
}
.project-project-header-thumb img.is-loaded
{
	opacity: 1;
}
.project-project-header-thumb img.no-fade
{
	transition: none !important;
}

.project-project-header-thumb img
{
	width: 100%;
	height: 100%;
	border-radius: 0;
}

.project-project-header-thumb--fade::after
{
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 75%;
	height: 100%;
	background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.92));
	pointer-events: none;
}


/* PROJECT GRID */

.projects-grid
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	padding: 16px;
	box-sizing: border-box;
}

.project-tile
{
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	border: 1px solid rgba(0,0,0,0.08);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.project-tile:hover
{
	box-shadow: 0 10px 26px rgba(0,0,0,0.18);
	transform: translateY(-2px);
}

.project-tile-image
{
	position: relative;
	aspect-ratio: 6 / 5;
	height: auto;
	background: #eef3ff;
	
}

.project-tile-image img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity 0.32s ease-out;
}
.project-tile-image img.is-loaded
{
	opacity: 1;
}
.project-card-image img.no-fade
{
	transition: none !important;
}

.project-tile-count
{
	position: absolute;
	top: 10px;
	right: 10px;
	background: #2f78ff;
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	padding: 6px 10px;
	border-radius: 10px;
	box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.project-tile-body
{
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.project-tile-title
{
	font-size: 16px;
	font-weight: 800;
	color: #111;
	line-height: 1.2;
}

.project-tile-location
{
	font-size: 13px;
	color: #777;
}

.project-tile-types
{
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.project-tile-type
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #222;
}

.project-type-icon
{
	width: 18px;
	height: 18px;
	display: inline-block;
	background-color: #3b82f6;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}


.pill-icon
{
	background-color: #3b82f6;
}






/* Bottom loading spinner */
.loading-wrap
{
	width: 100%;
	padding: 18px 0 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.loading-spinner
{
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 6px solid rgba(0, 0, 0, 0.0);
	border-left-color: #4b7dff;
	border-top-color: #4b7dff;
	border-right-color: rgba(0, 0, 0, 0.0);
	animation: loadingSpin 1s linear infinite;
}

/*
 * Properties list
 */
.project-list
{
	width: 100%;
	border-top: 1px solid rgba(0, 0, 0, 0.10);
}

/* Whole row as anchor */
.props-row-link
{
	display: grid;
	grid-template-columns: 320px 130px 80px 90px 190px 130px 155px;
	align-items: center;
	gap: 10px;
	padding: 6px 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.10);
	background: #fff;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.props-row-link:hover
{
	background: #efefef;
}


@keyframes loadingSpin
{
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}


@media (max-width: 1178px)
{
	.props-row-link
	{
		grid-template-columns: 320px 130px 80px 90px 150px 120px 100px;
	}
}

@media (max-width: 1079px)
{
	/* Compact stacking */
	.props-row-link
	{
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto auto;
		row-gap: 6px;
	}

	.props-row-link .c-kindrooms { grid-column: 2; grid-row: 1; justify-self: start; }
	.props-row-link .c-floor { grid-column: 2; grid-row: 2; justify-self: start; }
	.props-row-link .c-area { grid-column: 1; grid-row: 2; justify-self: start; }
	.props-row-link .c-ext { grid-column: 1; grid-row: 3; justify-self: start; }
	.props-row-link .c-price { grid-column: 2; grid-row: 3; justify-self: start; }
	.props-row-link .c-status { grid-column: 1 / span 2; grid-row: 4; justify-self: end; }
}

.props-cell
{
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	color: #222;
}

.props-name
{
	display: grid;
	grid-template-columns: 54px 1fr;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

/* Square thumbnail, slightly smaller to fit more rows */
.props-thumb
{
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #C5C9D1;
}
.props-thumb img
{
	width: 54px;
	height: 54px;
	border-radius: 6px;
	object-fit: cover;
	transition: opacity 0.3s ease;
    opacity: 0;
}
.props-thumb img.is-loaded
{
	opacity: 1;
}
.props-thumb img.no-fade
{
	transition: none !important;
}

.props-row-link:hover .props-thumb img
{
	filter: sepia(0.6) saturate(1.3) brightness(1.05);
}
.props-row-link.highlight .props-thumb img
{
	filter: sepia(0.6) saturate(1.3) brightness(1.05);
}



.props-title
{
	font-size: 16px;
	font-weight: 700;
	color: #111;
	line-height: 1.15;
	
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.props-sub
{
	margin-top: 2px;
	color: #777;
	font-size: 12px;
}

.props-strong
{
	font-weight: 700;
	color: #111;
}

.props-status
{
	justify-self: end;
}

/* Smaller badge (not a button now, row is clickable) */
.props-status .project-status-badge
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
	text-transform: lowercase;
}



/* Missing thumbnail placeholder (no data: urls, no broken image icon) */
.props-thumb-missing
{
	width: 54px;
	height: 54px;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.10);
	background: #e9e9e9;
	display: block;
}

/*
 * Item
 */

.header-left
{
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	min-width: 220px;
}

.brand
{
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.brand img
{
	width: 26px;
	height: 26px;
	display: block;
}

.brand .name
{
	font-size: 22px;
	font-weight: 500;
	color: #6ab0ff;
	text-transform: lowercase;
	white-space: nowrap;
}

.header-center
{
	flex: 1 1 auto;
	text-align: center;
	color: #f0f0f0;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	box-sizing: border-box;
	transition: color 0.15s ease, background-color 0.15s ease;
}


.header-right
{
	flex: 0 0 auto;
	min-width: 220px;
	text-align: right;
	color: #cfcfcf;
	font-size: 14px;
	font-weight: 650;
	white-space: nowrap;
}

.header-right a
{
	color: #cfcfcf;
	text-decoration: none;
}

.header-right a:hover
{
	text-decoration: underline;
}

/* Hide email on narrow screens */
@media (max-width: 760px)
{
	.header-right
	{
		display: none;
	}

	.header-left
	{
		min-width: 0;
	}
}

/* ================= DETAIL HEADER ================= */

.detail-header
{
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
	background: #fafafa;
}

.back-button
{
	border: none;
	background: #e6e6e6;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 800;
	white-space: nowrap;
}

@media (max-width: 660px)
{
	.detail-header
	{
		gap: 12px;
		padding: 10px 20px;
	}
	.back-button
	{
		height: 40px;
	}
}

.breadcrumb
{
	font-size: 15px;
	font-weight: 750;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.breadcrumb-project
{
	color: inherit;
	text-decoration: none;
}

.breadcrumb-project:hover
{
	text-decoration: underline;
}

.breadcrumb-project:focus-visible
{
	outline: 2px solid rgba(106, 176, 255, 0.9);
	outline-offset: 2px;
	border-radius: 6px;
}


/* ================= MAIN LAYOUT ================= */

body.item
{
	background: white;
}
.item .page
{
	display: flex;
	align-items: stretch; /* IMPORTANT: stretch columns to same height */
	gap: 16px;
	padding: 16px;
	box-sizing: border-box;
}

.item .left-panel
{
	width: 360px;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-self: stretch;
	min-width: 0;
}

.item .left-fill
{
	flex: 1 1 auto; /* fills the gap so bottom aligns with right content */
}

.item .right-panel
{
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
}

.item .card
{
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

/* ================= ROI (Variant B - Gray) ================= */

a.project-roi-link
{
	display: inline-flex;
	align-items: center;
	gap: 6px;

	margin-left: 10px;

	height: 24px;
	padding: 0 10px;
	border-radius: 999px;

	background: #ffffff;
	border: 1px solid #d9dde4;

	font-size: 12px;
	font-weight: 800;
	color: #7b8794;

	text-decoration: none;
	cursor: pointer;
	user-select: none;

	flex: 0 1 auto;
	max-width: 120px;
	min-width: 0;

	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

/* Kill underline in every state (anchors love underlines via global styles) */
a.project-roi-link,
a.project-roi-link:link,
a.project-roi-link:visited,
a.project-roi-link:hover,
a.project-roi-link:active,
a.project-roi-link:focus
{
	text-decoration: none !important;
}

/* Hover (still gray, slightly more visible) */
a.project-roi-link:hover
{
	background: #f6f8fb;
	border-color: #bfc7d4;
	color: #5f6c7b;

	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0,0,0,0.10);

	filter: none !important; /* block any inherited weirdness */
}

/* Press */
a.project-roi-link:active
{
	transform: translateY(0);
	box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

/* Keyboard focus */
a.project-roi-link:focus-visible
{
	outline: none;
	border-color: #8fb7ff;
	box-shadow: 0 0 0 3px rgba(47,120,255,0.18), 0 6px 18px rgba(0,0,0,0.08);
}

/* Icon (NO recolor, NO filter) */
a.project-roi-link .roi-icon-img
{
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;

	filter: none !important;
	mix-blend-mode: normal;

	opacity: 0.90;
	transition: opacity 0.15s ease;
}

a.project-roi-link:hover .roi-icon-img
{
	opacity: 1;
	filter: none !important;
}

/* Text (ensure it never gets underline from global styles) */
a.project-roi-link .roi-text
{
	text-decoration: none !important;
	white-space: nowrap;
}
/* ROI overlay positioned relative to wrapper (same visual place as inside card) */
.project-roi-link-abs
{
	position: absolute;
	left: 225px;
	bottom: 12px;

	z-index: 5; /* above card anchor */
}

/* If you ever see ROI become unclickable, this guarantees it captures clicks */
.project-roi-link-abs
{
	pointer-events: auto;
}


/* ================= PREVIEW IMAGE ================= */

.item .preview-image
{
	position: relative;
	aspect-ratio: 6 / 5;
	background: #eef3ff;
}

.item .preview-image img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ================= MAP BUTTON (compact) ================= */

.item .map-button
{
	position: relative;
	aspect-ratio: 6 / 2.2;
	cursor: pointer;
	background: #eef3ff;
}

.item .map-button img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.item .map-button::after
{
	content: "Zobraziť mapu";
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	backdrop-filter: blur(6px);
}

.item .map-button:hover::after
{
	background: rgba(47, 120, 255, 0.85);
}

/* ================= PRIMARY BUTTON ================= */

.item .project-link
{
	display: block;
	text-align: center;
	padding: 10px 14px;
	border-radius: 999px;
	background: #2f78ff;
	color: #fff;
	text-decoration: none;
	font-weight: 900;
	font-size: 14px;
}
.project-link:hover
{
	background: #2f78ffee;
	cursor: pointer;
}

/* ================= INFO BLOCK ================= */

.item .info
{
	padding: 12px;
}

.item .info-grid
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
}

.item .info-row
{
	display: grid;
	gap: 2px;
}

.item .info-label
{
	color: #6d6d6d;
	font-size: 12px;
	font-weight: 850;
}

.item .info-value
{
	color: #111;
	font-size: 15px;
	font-weight: 850;
}

.item .info-link
{
	color: #2f78ff;
	text-decoration: none;
	font-weight: 900;
}

.item .info-link:hover
{
	text-decoration: underline;
}

/* Mobile: compact rows (label left, value right) */
@media (max-width: 760px)
{
	.item .page
	{
		flex-direction: column;
	}

	.item .left-panel
	{
		width: 100%;
	}

	.item .info-grid
	{
		grid-template-columns: 1fr;
		gap: 0;
	}

	.item .info-row
	{
		grid-template-columns: 1fr 1fr;
		align-items: baseline;
		padding: 10px 0;
		border-bottom: 1px solid rgba(0,0,0,0.06);
	}

	.item .info-row:last-child
	{
		border-bottom: none;
	}

	.item .info-label
	{
		font-size: 13px;
		font-weight: 800;
	}

	.item .info-value
	{
		font-size: 15px;
		font-weight: 900;
		text-align: right;
	}
}

/* ================= PRICE + STATUS ================= */

.price-row
{
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(0,0,0,0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.price
{
	font-size: 24px;
	font-weight: 950;
	color: #111;
	letter-spacing: 0.2px;
	white-space: nowrap;
}

/* EXACT BASE STYLE from your .project-status-badge (test7.html), just scaled via .detail modifier */
.project-status-badge
{
	margin-left: auto;
	padding: 6px 0;
	border-radius: 999px;
	background-color: #4caf50;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: lowercase;
	white-space: nowrap;
	min-width: 95px;
	text-align: center;
	box-sizing: border-box;
}

/* modifiers */
.project-status-badge.detail
{
	font-size: 16px;
	font-weight: 800;
	min-width: 150px;
	padding: 10px 0;
}

.project-status-badge.reserved
{
	background-color: #ddbb00;
	color: #fff;
}

.project-status-badge.sold
{
	background-color: #a63a3a;
	color: #fff;
}

/* ================= GRAPH PLACEHOLDER + CONTACT ================= */

.price-placeholder
{
	height: 110px;
	border-radius: 12px;
	background: #f1f1f1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 14px;
	font-weight: 800;
	margin-top: 12px;
	cursor: pointer;
	overflow: hidden;
}

/* Calculator button */
.calc-btn
{
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(47,120,255,0.25);
	background: rgba(47,120,255,0.10);
	color: #0f2b66;
	font-weight: 900;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

.calc-btn:hover
{
	background: rgba(47,120,255,0.14);
	border-color: rgba(47, 120, 255, 0.40);
	cursor: pointer;
}
/* ONLY icon size – nothing else */
.calc-btn-icon
{
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	display: block;
}

.contact
{
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(0,0,0,0.08);
	text-align: center;
}

.contact-label
{
	color: #666;
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 6px;
}

.contact a
{
	display: block;
	color: #2f78ff;
	text-decoration: none;
	font-weight: 800;
	margin-top: 6px;
}

.contact a:hover { text-decoration: underline; }

/* ================= FLOORPLAN ================= */

.floorplan
{
	flex: 1 1 auto;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.floorplan img
{
	width: 100%;
	height: auto;
	display: block;
}


.floorplan div.empty
{
	background: transparent;
	height: calc(100vh - 160px);
	height: calc(100dvh - 160px);
	line-height: calc(100vh - 160px);
	line-height: calc(100svh - 160px);
	line-height: calc(100dvh - 160px);
	text-align: center;
	vertical-align: center;
	font-size: 20px;
	color: #aaa;
}

.floorplan-footer
{
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 12px;
	border-top: 1px solid rgba(0,0,0,0.08);
	background: rgba(255,255,255,0.92);
}

.source-chip
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,0.10);
	background: #f6f6f6;
	color: #333;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	max-width: 100%;
}

.source-chip span
{
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 72vw;
}

.source-chip:hover
{
	background: #ffffff;
	border-color: rgba(0,0,0,0.18);
}

div.item_map_panel
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
}

div.item_map_panel div.parent_of_map
{
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;
}
div.item_map_panel div.parent_of_map div.parent_of_parent_of_map
{
	width: min(800px, calc(100vw - 40px));
	
	height: 70vh;
	height: 70svh;
	height: 70dvh;
	background-color: white;

	box-sizing: border-box;
	
	border: 0px solid transparent;
	border-top: 1px solid #dddddd77;
	border-left: 1px solid #dddddd77;
	box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.25);
	border-radius: 20px;
	
	position: relative;
}
div.item_map_panel div.map
{
	border-radius: 15px;
	margin: 12px;
	max-width: calc(100% - 24px);
	max-height: calc(100% - 24px);
}

div.parent_of_parent_of_parent_of_graph div.close_button
{
    position: absolute;
    top: 0px;
    right: 0px;
}
div.parent_of_parent_of_map div.close_button
{
    position: absolute;
    top: 0px;
    right: 0px;
}


div.close_button
{
    position: absolute;
    top: 0px;
    right: 0px;
    color: black;
    background-color: white;
    border: none;
    border-radius: 16px;
    width: 44px;
    height: 44px;
    cursor: pointer;
	z-index: 9999999;
}
div.close_button svg
{
	stroke: #333;
	stroke-width: 0.1px;
    width: 20px;
    height: 20px;
	margin: 12px;
}

div.close_button:hover svg
{
	stroke: #777;
}


div.graph_panel
{
	margin: 5px;
}
div.graph_panel:hover
{
	background-color: #eee;
	cursor: pointer;
	margin: 5px;
	border-radius: 6px;
}

div.all_prices
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
}

div.all_prices div.parent_of_parent_of_parent_of_graph
{
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;
}

div.all_prices div.parent_of_parent_of_graph
{
	box-sizing: border-box;

	width: min(800px, calc(100vw - 40px));
	
	height: 180px;
	background-color: white;

	border: 0px solid transparent;
	border-top: 1px solid #dddddd77;
	border-left: 1px solid #dddddd77;
	box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.25);
	border-radius: 20px;

	margin: 0px;   /* namiesto 50px */
	padding: 14px;
	position: relative;
	
}
div.parent_of_graph2
{
	position: relative;
	width: 100%;
	height: 100%;

	background-color: #f5f5f5;
	
	border-radius: 16px;
	
	overflow-x: auto;
	overflow-y: hidden;
	-ms-overflow-style: none;  /* IE/old Edge */
	scrollbar-width: none;     /* Firefox */
	-webkit-overflow-scrolling: touch; /* iOS smooth scroll */

	/* dočasne vypnúť skrývanie scrollbarov */
	-ms-overflow-style: auto;
	scrollbar-width: auto;
	
	overscroll-behavior: contain;
}

@media (max-width: 760px)
{
	div.parent_of_graph2
	{
		overflow-x: scroll;
	}
}



div.all_prices div.parent_of_graph
{
	width: 2000px;
	height: 100%;
	background-color: #f5f5f5;
	overflow: hidden;
	
	border-radius: 16px;
}
div.all_prices .close_button
{
    position: absolute;
	top: 0px;
	right: 0px;
}



/*
 * Project
 */
body.project-page{
	margin: 0px;
	padding: 0px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	background: #fff;
	color: #111;
}

.project-page input[type="checkbox"]{
	width: 18px;
	height: 18px;
	accent-color: #3C79FF;
}

.project-page .header
{
	margin-right: 0px;
}

/* =========================
   Header (like apartment detail)
   ========================= */

.project-page .top-panel{
	background: #202020;
	color: #f5f5f5;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	padding: 0px 16px;
	
}

.project-page .top-panel-inner{
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin: 0 auto;
}

.project-page .brand{
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

/* Logo styles – same classes as map page (test7.html) */
.project-page .header{
	display: flex;
	align-items: center;
}

.project-page .header .icon img{
	display: block;
	width: 26px;
	height: 26px;
	margin-right: 6px;
}

.project-page .header_title .header_map_link{
	text-decoration: none;
}

.project-page .header_title .name{
	font-size: 24px;
	font-weight: 500;
	color: #6ab0ff;
	text-transform: lowercase;
	line-height: 1;
	margin-bottom: 1px;
}

.project-page .back-button{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.25);
	background: rgba(255,255,255,0.07);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	user-select: none;
}

.project-page .back-button:hover{
	background: rgba(255,255,255,0.11);
}

.project-page .header-center{
	text-align: center;
	font-weight: 600;
	font-size: 22px;
	color: rgba(255,255,255,0.92);
	white-space: nowrap;
}

.project-page .header-right{
	display: flex;
	justify-content: flex-end;
	align-items: center;
	font-weight: 700;
	color: rgba(255,255,255,0.82);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.project-page .header-right a{
	color: inherit;
	text-decoration: none;
	font-weight: 700;
}

.project-page .header-right a:hover{
	text-decoration: underline;
}

@media (max-width: 840px){
	.project-page .header-right{
		display: none;
	}
	.project-page .header_title{
		display: none;
	}
}

@media (max-width: 560px){
	.project-page .top-panel-inner{
		grid-template-columns: 1fr auto;
	}

	.project-page .header-center{
		grid-column: 2 / 3;
	}
}

/* =========================
   Page layout
   ========================= */

.project-page .page{
	
	margin: 0px;
	padding: 20px 20px 28px 20px;
}
@media (max-width: 840px){
	.project-page .page{
		padding: 0px 0px 28px 0px;
	}
}

.project-page .card{
	background: #fff;
	border: 1px solid rgba(0,0,0,0.10);
	border-radius: 14px;
	box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* =========================
   Hero (image + info + map)
   ========================= */

.project-page .hero{
	display: grid;
	grid-template-columns: 320px 1fr 480px;
	gap: 20px;
	align-items: stretch;
}

/* UPRAVA: stredná bublina dole zarovnaná s preview image */
.project-page .hero-info{
	align-self: stretch;
	display: flex;
	flex-direction: column;
	padding: 14px 14px 12px;
	height: calc(100% - 26px);
}
.project-page .hero-info a
{
	cursor: pointer;
}

@media (max-width: 1270px){
	.project-page .hero{
		grid-template-columns: 320px 1fr;
	}

	.project-page .hero-info{
		align-self: start;
	}
}

@media (max-width: 840px){
	.project-page .hero{
		grid-template-columns: 1fr;
	}

	.project-page .hero-info{
		align-self: start;
		max-width: calc(100% - 40px);
		padding: 15px 20px;
	}
}

.project-page .preview-img{
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	display: block;
	border-radius: 14px;
	border: 1px solid rgba(0,0,0,0.10);
	box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

@media (max-width: 840px){
	.project-page .preview-img{
		margin: 20px 20px 0px 20px;
		width: calc(100% - 42px);
		aspect-ratio: 1 / 1;
		height: auto;
	}
}

/* UPRAVA: názov Slnečnice menší */
.project-page .project-name{
	font-size: 24px;
	font-weight: 900;
	margin: 2px 0 10px 0;
	line-height: 1.08;
}

.project-page .type-chips{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 5px;
	margin-bottom: 15px;
}

/* UPRAVA: typy sú BUTTONY a scrollujú na zoznamy dole */
.project-page .type-chip{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.045);
	border: 1px solid rgba(0, 0, 0, 0.10);
	font-weight: 700;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.78);
	white-space: nowrap;
}

.project-page button.type-chip{
	cursor: pointer;
}

.project-page button.type-chip:hover{
	background: rgba(47,120,255,0.08);
	border-color: rgba(47,120,255,0.30);
}

.project-page .ico{
	width: 20px;
	height: 20px;
	display: inline-block;
	background-color: #3b82f6;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.project-page .ico.apartment, .project-page .tab-ico.apartment{
		-webkit-mask-image: url("images/apartment.svg");
		mask-image: url("images/apartment.svg");
	}
.project-page .ico.house, .project-page .tab-ico.house{
		-webkit-mask-image: url("images/house.svg");
		mask-image: url("images/house.svg");
	}
.project-page .ico.land, .project-page .tab-ico.land{
		-webkit-mask-image: url("images/land.svg");
		mask-image: url("images/land.svg");
	}
.project-page .ico.commercial, .project-page .tab-ico.commercial{
		-webkit-mask-image: url("images/commercial.svg");
		mask-image: url("images/commercial.svg");
	}
.project-page .ico.parking, .project-page .tab-ico.parking{
		-webkit-mask-image: url("images/parking.svg");
		mask-image: url("images/parking.svg");
	}
.project-page .ico.storage-unit, .project-page .tab-ico.storage-unit{
		-webkit-mask-image: url("images/storage-unit.svg");
		mask-image: url("images/storage-unit.svg");
	}

/* UPRAVA: texty v bubline menej natlačené (line-height + gap) */
.project-page .info-grid{
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 12px 12px;
	align-items: baseline;
	font-size: 15px;
	line-height: 1.38;
}

@media (max-width: 450px){
	.project-page .info-grid{
		grid-template-columns: 120px 1fr;
	}
}

.project-page .info-key{
	font-weight: 900;
	color: #111;
}

.project-page .info-val{
	font-weight: 700;
	color: rgba(0,0,0,0.80);
}

.project-page .info-val a{
	color: #2f78ff;
	text-decoration: none;
	font-weight: 700;
	display: block;
	line-height: 25px;
}

.project-page .info-val a:hover{
	text-decoration: underline;
}

/* UPRAVA: CTA hover efekt jasný (aj translate) */
.project-page .cta{
	margin-top: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	font-size: 14px;
	padding: 0 18px;
	border-radius: 999px;
	background: #3C79FF;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(0,0,0,0.18);
	transition: background 0.14s ease, box-shadow 0.14s ease;
	align-self: center;
}

.project-page .cta:hover{
	background: #2f6bff;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.project-page .map-control{
	height: 100%;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid rgba(0,0,0,0.10);
	box-shadow: 0 8px 18px rgba(0,0,0,0.18);
	background: #fff;
}


.project-page #map{
	width: 100%;
	height: 100%;
	min-height: 320px;
}

/* =========================
   Section titles
   ========================= */

/* UPRAVA: nadpisy ako Popis/Galeria/Predaj/Vývoj cien menšie */
.project-page .section-title{
	font-size: 24px;
	font-weight: 900;
	margin: 18px 0 10px 0;
	padding: 0px 0px;
}

.project-page .section-content{
	padding: 0px 20px;
}

.project-page .desc{
	font-size: 17px;
	line-height: 1.55;
	color: rgba(0,0,0,0.82);
	margin: 0px;
	padding: 0px;
}


@media (max-width: 1270px){
	.project-page .card-secondary{
		margin: 0px;
		padding: 0px;
	}
	.project-page .card-map{
		margin: 0px;
		background: #fff;
	}
	.project-page .map-control{
		margin: 2px;
		width: calc(100vw - 44px);
	}
}

/* =========================
   Gallery (no visible scrollbar)
   ========================= */

/* UPRAVA: galéria titulky menšie */
.project-page .gallery-title{
	font-size: 20px;
	font-weight: 900;
	margin: 18px 0 10px 0;
}

.project-page .gallery-rail{
	position: relative;
}

.project-page .gallery-track{
	display: flex;
	gap: 14px;
	padding: 10px 0px;
	overflow-x: auto;
	scroll-behavior: smooth;

	-ms-overflow-style: none;
	scrollbar-width: none;
}

.project-page .stats-table th.center span.long{
	display: block;
}
.project-page .stats-table th.center span.short{
	display: none;
}

.project-page .gallery-track::-webkit-scrollbar{
	display: none;
}

.project-page .gallery-img{
	width: 220px;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
	border: 1px solid rgba(0,0,0,0.10);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	background: rgba(0,0,0,0.03);
	flex: 0 0 auto;
}

.project-page .gallery-img:hover {
	cursor: pointer;
}

.project-page .gallery-arrow{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,0.10);
	background: rgba(255,255,255,0.92);
	box-shadow: 0 12px 22px rgba(0,0,0,0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
	z-index: 5;
}

.project-page .gallery-arrow:hover{
	background: #fff;
}

.project-page .gallery-arrow svg{
	stroke: rgba(0,0,0,0.78);
	stroke-width: 2.4;
}

.project-page .gallery-arrow.left{ left: 8px; }
.project-page .gallery-arrow.right{ right: 8px; }

/* =========================
   Sales cards
   ========================= */

/* UPRAVA: card-header menší a bez duplicít (nechávame ho len tu, section-title pre Predaj/Vývoj cien už nedávame) */
.project-page .card-header{
	padding: 14px 20px 6px 20px;
	font-size: 20px;
	font-weight: 900;
}

.project-page .card-body{
	padding: 0px 20px 14px 20px;
}

.project-page .stats-table{
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.project-page .stats-table th, .project-page .stats-table td{
	padding: 12px 10px;
	border-bottom: 1px solid rgba(0,0,0,0.10);
	white-space: nowrap;
}

.project-page .stats-table th{
	font-weight: 900;
	color: #111;
}

.project-page .stats-table th.center, .project-page .stats-table td.center{
	text-align: center;
}

.project-page .pos{ color: #0a9f2a; font-weight: 900; }
.project-page .neg{ color: #c62020; font-weight: 900; }

.project-page .chart-placeholder{
	margin-top: 14px;
	height: 210px;
	border-radius: 14px;
	border: 1px solid rgba(0,0,0,0.10);
	background: #eaf2ff;
	box-shadow: inset 0 2px 0 rgba(255,255,255,0.7);
}

/* =========================
   Tabs + filters + table (sticky inside card)
   ========================= */

.project-page .list-card{
	margin-top: 18px;
	padding: 12px;

}
.project-properties {

}

@media (max-width: 840px){
	.project-page .card{
		border-left: 0px solid black;
		border-right: 0px solid black;
		
		border-radius: 0px;
		box-shadow: 0 8px 18px 8px rgba(0,0,0,0.18);
		margin: 8px 0px 28px 0px;
	}

	.project-page .stats-table th.center span.long{
		display: none;
	}
	.project-page .stats-table th.center span.short{
		display: block;
	}
}

@media (max-width: 840px){
	.project-page .card-secondary{
		margin: 28px 0px;
		padding: 5px 20px 15px 20px;
		background: #fff;
		
		border-bottom: 1px solid rgba(0,0,0,0.10);
		border-left: 0px solid transparent;
		border-right: 0px solid transparent;
		box-shadow: 0 8px 18px 8px rgba(0,0,0,0.18);
	}
	.project-page .gallery-title{
		padding: 0px 20px 0px 20px;
	}
	.project-page .card-gallery{
		margin: 28px 0px;
		padding: 5px 0px 15px 0px;
		background: #fff;
	}
	.project-page .gallery-arrow.left{ left: 12px; }
	.project-page .gallery-arrow.right{ right: 12px; }
	.project-page .gallery-track{
		padding: 10px 20px;
	}
}


@media (max-width: 840px){
	.project-page .card-map{
		margin: 28px 0px 10px 0px;
		background: #fff;
	}
	.project-page .card-map .map-control{
		margin: 0px 20px;
		width: calc(100vw - 42px);
		height: 100%;
	}
}

/* UPRAVA: zrušená “bublina v bubline” – sticky-area je už len sticky kontajner bez border/shadow */
.project-page .sticky-area{
	position: sticky;
	top: 0px;
	z-index: 10;

	/* extend to card edges */
	margin: 0px 0px 0px -12px;
	padding: 12px 12px 0px;
	width: 100%;

	border-radius: 0;
	border: none;
	box-shadow: none;
	transition: background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;

	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.project-page .sticky-area.is-stuck{
	background: rgba(255,255,255,0.78);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(0,0,0,0.08);
	box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

.project-page .tabs-row{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	padding: 10px;
	background: transparent;
	border: none;
	box-shadow: none;
}

/* UPRAVA: tab headery (text+ikona) väčšie */
.project-page .tab-btn{
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 40px;
	padding: 0 16px 0 14px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,0.14);
	background: #fff;
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	color: #111;
}

.project-page .tab-btn:hover{
	background: rgba(0,0,0,0.04);
}

.project-page .tab-btn .tab-ico{
	width: 24px;
	height: 24px;
	display: inline-block;
	background-color: #3b82f6;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.project-page .tab-btn.active{
	background: #3C79FF;
	border-color: rgba(60,121,255,0.65);
	color: #fff;
	box-shadow: 0 10px 18px rgba(60,121,255,0.18);
}

.project-page .tab-btn.active .tab-ico{
	background-color: #fff;
}

.project-page .tab-count{
	opacity: 0.85;
	font-weight: 700;
}

.project-page .shown{
	margin-left: auto;
	font-weight: 600;
	color: rgba(0,0,0,0.42);
	white-space: nowrap;
}

.project-page .shown b{
	color: #111;
}

.project-page .filters-row{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 0px;
	padding: 10px;
}
.project-page .filters-row .checkbox{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
	margin: 4px 20px 4px 0px;
}

.project-page .pill-dropdown{
	position: relative;
}

.project-page .pill-button{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid #c4c4c4;
	background: #f9f9f9;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
	min-height: 36px;
}

.project-page .pill-button:hover{
	background: #fff;
}
.project-page .pill-button-label{
	min-width: 50px;
	text-align: left;
}

.project-page .pill-caret{
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #555;
}

.project-page .pill-panel{
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 6px;
	min-width: 220px;
	max-width: 320px;
	
	padding: 8px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	box-shadow: 0 10px 22px rgba(0,0,0,0.18);
	z-index: 999;
	display: none;
}

.project-page .pill-panel.open{
	display: block;
}

.project-page .pill-option{
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 800;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.project-page .pill-option:last-child{
	border-bottom: none;
}

.project-page .pill-option:hover{
	background: rgba(47,120,255,0.10);
}

.project-page .pill-option.checked::after{
	content: "✓";
	float: right;
	color: #2f78ff;
	font-weight: 900;
}


.project-page #typeDropdown .pill-button
{
	margin-top: 0px;
}
.project-page #roomsDropdown .pill-button
{
	margin-top: 0px;
}
.project-page #areaDropdown .pill-button
{
	margin-top: 0px;
}
.project-page #priceDropdown .pill-button
{
	margin-top: 0px;
}
.project-page #statusDropdown .pill-button
{
	margin-top: 0px;
}


/* =========================
   Multi-select panel ("všetky izby") – style like list-test.html
   ========================= */

.project-page .pill-panel-options{
	display: flex;
	flex-direction: column;
	gap: 0px; /* IMPORTANT: no dead gap between rows */
	padding: 0; /* panel already has padding */
}

/* option row – less “form”, more “menu” */
.project-page .pill-panel-option{
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;

	color: #222;
	font-size: 15px;
	font-weight: 800;

	cursor: pointer;
	white-space: nowrap;

	padding: 10px 12px 10px 40px; /* left space for checkmark */
	border-radius: 10px;

	transition: background-color 0.12s ease;
	user-select: none;

	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-page .pill-panel-option:last-child{
	border-bottom: none;
}

/* hover = light blue, checked = neutral gray */
.project-page .pill-panel-option:hover{
	background: rgba(47, 120, 255, 0.10);
}

.project-page .pill-panel-option:active{
	background: rgba(47, 120, 255, 0.14);
}

.project-page .pill-panel-option.checked{
	background: rgba(0, 0, 0, 0.04);
}

.project-page .pill-panel-option.checked:hover{
	background: rgba(47, 120, 255, 0.10);
}

/* hide native checkbox visually (keep it accessible) */
.project-page .pill-panel-option input[type="checkbox"]{
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	pointer-events: none;
}

/* custom check indicator box */
.project-page .pill-panel-option::before{
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	background: #fff;
	box-sizing: border-box;
}

.project-page .pill-panel-option.checked::before{
	background: #2f78ff;
	border-color: #2f78ff;
}

/* centered checkmark */
.project-page .pill-panel-option.checked::after{
	content: "✓";
	position: absolute;
	left: 21px; /* 12 + 9 */
	top: 50%;
	transform: translate(-50%, -52%);
	font-size: 14px;
	color: #fff;
	font-weight: 800;
	line-height: 1;
}

/* label text inside */
.project-page .pill-panel-option span{
	font-weight: 800;
	font-size: 15px;
	color: rgba(0, 0, 0, 0.88);
}


.project-page .filters-row-statuses{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 0px;
}
.project-page .status-toggle{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	border: 2px solid rgba(0,0,0,0.12);
	background: #fff;
	font-weight: 900;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
}

.project-page .status-toggle.free{
	border-color: rgba(76,175,80,0.55);
	color: rgba(12,120,30,0.95);
}

.project-page .status-toggle.reserved{
	border-color: rgba(221,187,0,0.65);
	color: rgba(140,118,0,0.95);
}

.project-page .status-toggle.sold{
	border-color: rgba(166, 58, 58, 0.65);
	color: rgba(166, 58, 58, 0.95);
}

.project-page .status-toggle.active.free{
	background: #4caf50;
	border-color: #4caf50;
	color: #fff;
}

.project-page .status-toggle.active.reserved{
	background: #ddbb00;
	border-color: #ddbb00;
	color: #fff;
}

.project-page .status-toggle.active.sold{
	background: #a63a3a;
	border-color: #a63a3a;
	color: #fff;
}

/* ---- Table heads (3 varianty) ---- */
.project-page .table-head{
	margin-top: 0px;
	display: grid;
	gap: 0px;
	width: calc(100% - 24px);
	padding: 8px 12px;
	border: none;
	border-bottom: 1px solid rgba(0,0,0,0.5);
	border-radius: 0;
	background: transparent;
	font-weight: 900;
	font-size: 15px;
}

.project-page .table-head.flats,
.project-page .row.flats
{
	grid-template-columns: 160px 120px 150px 90px 120px 120px 1fr;
	grid-template-columns: 160px 120px 150px 90px 120px 120px 1fr;
}

.project-page .table-head.houses,
.project-page .row.houses
{
	grid-template-columns: 160px 150px 110px 110px 110px 1fr;
}

.project-page .table-head.land,
.project-page .row.land
{
	grid-template-columns: 160px 120px 120px 1fr;
}

.project-page .table-head.commercial,
.project-page .row.commercial
{
	grid-template-columns: 160px 120px 120px 120px 120px 1fr;
}

.project-page .table-head.parking,
.project-page .row.parking
{
	grid-template-columns: 160px 120px 150px 120px 1fr;
}

.project-page .table-head.storage-unit,
.project-page .row.storage-unit
{
	grid-template-columns: 160px 120px 120px 120px 120px 1fr;
}


.project-page .table{
	margin-top: 0px;
	border-top: none;
}

.project-page .table .table-column-type-short{
	display: none;
}
.project-page .table .table-column-type-long{
	display: block;
}
.project-page .table .badge .long{
	display: block;
}
.project-page .table .badge .short{
	display: none;
}

.project-page .row{
	display: grid;
	align-items: center;
	padding: 7px 12px;
	border-bottom: 1px solid rgba(0,0,0,0.10);
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.project-page .row:hover{
	background: #efefef;
}

.project-page .cell{
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	color: #222;
}

.project-page .cell strong{
	color: #111;
}

.project-page .badge{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	font-weight: 900;
	font-size: 13px;
	text-transform: lowercase;
	color: #fff;
	justify-self: start;
}
.project-page .table .badge{
	min-width: 90px;
}

.project-page .badge.free{ background: #4caf50; }
.project-page .badge.reserved{ background: #ddbb00; }
.project-page .badge.sold{ background: #a63a3a; }


.project-page .source{
	margin-top: 12px;
	text-align: center;
}

.project-page .source span{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: rgba(0,0,0,0.55);
	font-weight: 600;
	font-size: 13px;
}

.project-page .source a{
	color: #2f78ff;
	text-decoration: none;
	font-weight: 600;
}

.project-page .source a:hover{
	text-decoration: underline;
}

@media (max-width: 970px){
	.project-page .table-head.flats, .project-page .row.flats{
		grid-template-columns:
			17.89%
			13.42%
			16.78%
			10.06%
			13.42%
			13.42%
			15%;
	}
}

@media (max-width: 840px){
	.project-page .list-card{
		margin-top: 18px;
		margin-bottom: 0px;
		padding: 10px 0px 10px 0px;
	}
	.project-page .sticky-area{
		width: calc(100% - 12px);
	}
	.project-page .table-head{
		gap: 0px;
		padding: 5px 6px;
		width: 100%;
		font-size: 14px;
		font-weight: 700;
	}
	
	.project-page .tabs-row{
		display: flex;
		gap: 6px;
		flex-wrap: wrap;
		align-items: center;
		padding: 0px 10px;
	}

	.project-page .table .row{
		padding: 12px 6px;
	}
	
	.project-page .tab-btn{
		padding: 0 10px 0 10px;
		gap: 5px;
	}
	.project-page .tabs-row:has(> :nth-child(4)) .tab-btn span{
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 80px;
		white-space: nowrap;
	}
	.project-page .tab-count{
		display: none;
	}
	.project-page .shown{
		height: 30px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	

	.project-page .table-head.flats, .project-page .row.flats{
		grid-template-columns: 20% 15% 17% 0% 15% 14% 19%;
	}
	.project-page .table-head.houses, .project-page .row.houses{
		grid-template-columns: 21% 20% 17% 0% 20% 20%;
		gap: 3px;
	}
	.project-page .table-head.land, .project-page .row.land{
		grid-template-columns: 160px 120px 120px 1fr;
		gap: 3px;
	}
	
	.project-page .table-head.commercial, .project-page .row.commercial{
		grid-template-columns: 20% 15% 0% 19% 20% 26%;
	}
	
	.project-page .table-head.parking, .project-page .row.parking{
		grid-template-columns: 20% 15% 19% 20% 26%;
	}
	
	.project-page .table-head.storage-unit, .project-page .row.storage-unit {

		grid-template-columns: 20% 15% 0% 19% 20% 26%;
	}
	
	.project-page .table-head .floor{
		color: transparent;
	}
	.project-page .table .floor{
		display: none;
	}
	.project-page .table .table-column-floor{
		display: none;
	}
	.project-page .table-head .land{
		color: transparent;
	}
	.project-page .table .land{
		display: none;
	}
	.project-page .table .table-column-land{
		display: none;
	}
	
	.project-page .table span{
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}



@media (max-width: 620px){
	.project-page .table-head.flats, .project-page .row.flats{
		grid-template-columns: 23% 14.5% 10.5% 0% 17% 22% 11%;
		gap: 3px;
	}
	.project-page .table-head.houses, .project-page .row.houses{
		grid-template-columns: 23% 22% 20% 0% 22% 11%;
		gap: 3px;
	}
	.project-page .table-head.land, .project-page .row.land{
		grid-template-columns: 30% 30% 29% 11%;
		gap: 3px;
	}

	.project-page .table-head.commercial, .project-page .row.commercial{
		grid-template-columns: 23% 20% 0% 23% 22.6% 11%;
		gap: 3px;
	}
	
	.project-page .table-head.parking, .project-page .row.parking{
		grid-template-columns: 23% 20% 23% 22.6% 11%;
		gap: 3px;
	}
	
	.project-page .table-head.storage-unit, .project-page .row.storage-unit{
		grid-template-columns: 23% 20% 0% 23% 22.6% 11%;
		gap: 3px;
	}
	
	.project-page .table-head .floor{
		color: transparent;
	}
	.project-page .table-head .status{
		display: none;
	}
	.project-page .table .floor{
		display: none;
	}
	
	.project-page .table-head .land{
		color: transparent;
	}
	.project-page .table .land{
		display: none;
	}
	.project-page .table .land{
		display: none;
	}
	
	.project-page .table .table-column-type-short{
		display: block;
	}
	.project-page .table .table-column-type-long{
		display: none;
	}

	.project-page .table .row{
		padding: 12px 6px;
	}

	.project-page .table .badge{
		width: 30px;
		height: 30px;
		min-width: 30px;
		min-height: 30px;
		padding: 0 0px;
		border-radius: 15px;
		font-weight: 900;
		font-size: 15px;
		text-transform: uppercase;
	}
	.project-page .table .badge .long{
		display: none;
	}
	.project-page .table .badge .short{
		display: block;
	}
}
@media (max-width: 620px){
	.project-page .tabs-row:has(> :nth-child(4)) .shown{
		width: 100%;
	}
}

	
/* =========================
   Lazy images (gallery only) – copied behavior from projects.html
   ========================= */
.project-page .gallery-track .gallery-img{
	background: #eef3ff;
	/*opacity: 0;
	transition: opacity 0.32s ease;
	will-change: opacity;*/
}

.project-page .gallery-track .gallery-img.is-loaded{
	opacity: 1;
}

/* =========================
   Lightbox – dark loading + spinner + idle controls fade
   (keeps existing look; only affects lightbox overlay)
   ========================= */
.project-page .lightbox{
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.project-page .lightbox.open{
	display: block;
}

.project-page .lightbox-backdrop{
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.project-page .lightbox-stage{
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(980px, calc(100vw - 120px));
	height: min(640px, calc(100vh - 160px));
	height: min(640px, calc(100dvh - 160px));
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-page .lightbox-media{
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(16, 16, 16, 0.92);
	border-radius: 10px;
	box-shadow: 0 18px 40px rgba(0,0,0,0.45);
	overflow: hidden;
}

.project-page .lightbox-img{
	max-width: 100%;
	max-height: 100%;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
	opacity: 0;
	transition: opacity 0.20s ease;
}

.project-page .lightbox-img.is-loaded{
	opacity: 1;
}

.project-page .lightbox-loading{
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}


@keyframes spin{
	.project-page from{ transform: rotate(0deg); }
	.project-page to{ transform: rotate(360deg); }
}

.project-page .loading-spinner{
	width: 36px;
	height: 36px;
	border: 6px solid rgba(42, 116, 255, 0.18);
	border-left-color: #2a74ff;
	border-top-color: #2a74ff;
	border-radius: 50%;
	box-sizing: border-box;
	animation: spin 1.0s linear infinite;
}


.project-page .lightbox-close, .project-page .lightbox-nav{
	transition: opacity 0.25s ease;
}

.project-page .lightbox.controls-hidden .lightbox-close, .project-page .lightbox.controls-hidden .lightbox-nav{
	opacity: 0;
	pointer-events: none;
}

.project-page .lightbox-close{
	position: absolute;
	right: 12px;
	top: 12px;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,0.22);
	background: rgba(0,0,0,0.62);
	color: #fff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-page .lightbox-close:hover{
	background: rgba(0,0,0,0.75);
}

.project-page .lightbox-close-icon{
	width: 26px;
	height: 26px;
	display: block;
	color: #fff;
}

.project-page .lightbox-nav{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 54px;
	height: 54px;
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,0.20);
	background: rgba(0,0,0,0.50);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.project-page .lightbox-nav:hover{
	background: rgba(0,0,0,0.70);
}

.project-page .lightbox-nav svg{
	stroke: rgba(255,255,255,0.95);
	stroke-width: 3.0;
}

.project-page .lightbox-nav.left{ left: 12px; }
.project-page .lightbox-nav.right{ right: 12px; }

/* Mobile full-bleed for lightbox */
@media (max-width: 840px){
	.project-page .lightbox-stage{
		position: absolute;
		inset: 0;
		left: 0;
		top: 0;
		transform: none;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		padding: 0;
		margin: 0;
	}

	.project-page .lightbox-media{
		border-radius: 0;
		box-shadow: none;
	}

	.project-page .lightbox-img{
		width: 100vw;
		height: auto;
		max-height: calc(100vh - (env(safe-area-inset-top, 0px)) - (env(safe-area-inset-bottom, 0px)));
		max-height: calc(100dvh - (env(safe-area-inset-top, 0px)) - (env(safe-area-inset-bottom, 0px)));
		object-fit: contain;
	}

	.project-page .lightbox-close{
		top: calc(env(safe-area-inset-top, 0px) + 8px);
		right: calc(env(safe-area-inset-right, 0px) + 8px);
	}

	.project-page .lightbox-nav.left{
		left: calc(env(safe-area-inset-left, 0px) + 8px);
	}

	.project-page .lightbox-nav.right{
		right: calc(env(safe-area-inset-right, 0px) + 8px);
	}
}


body.project-page.no-scroll{overflow:hidden;}


/* =========================
   Gallery thumbs lazy placeholder (match projects.html)
   Visible change: blue placeholder + fade-in only
   ========================= */
.project-page .project-tile-image{
	position: relative;
	width: 220px;
	aspect-ratio: 1 / 1;
	height: auto;
	background: #eef3ff;
	border-radius: 16px;
	border: 1px solid rgba(0,0,0,0.10);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	flex: 0 0 auto;
	overflow: hidden;
}

.project-page .project-tile-image > img.gallery-img{
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 0;
	border: none;
	box-shadow: none;
	background: transparent;
	opacity: 0;
	transition: opacity 0.32s ease-out;
}

.project-page .project-tile-image > img.gallery-img.is-loaded{
	opacity: 1;
}

/* =========================
   Lightbox: keep fullscreen + carousel track
   (Only affects lightbox behavior/visibility; aligns with required look)
   ========================= */
.project-page .lightbox-stage{
	width: 100vw;
	height: 100vh;
	height: 100dvh;
}

.project-page .lightbox-media{
	width: 100vw;
	height: 100vh;
	height: 100dvh;
}

.project-page .lightbox-strip{
}

.project-page .lightbox-slide{
	flex: 0 0 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-page .lightbox-slide > img.lightbox-img{
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	border-radius: 0;
	object-fit: contain;
	box-shadow: none;
	background: transparent;
}

/* dark placeholder behind lightbox image */
.project-page .lightbox-media{
	background: #0b0b0b;
}

/* loader centered on dark placeholder */
.project-page .lightbox-loading{
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.35);
	z-index: 2;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.project-page .lightbox-loading.visible{
	opacity: 1;
}

/* controls hide: include source too (matches expected) */
.project-page .lightbox.controls-hidden .lightbox-source{
	opacity: 0;
	pointer-events: none;
}


/* ===== Fixes: lightbox swipe strip layout + thumb lazy look ===== */
.project-page .lightbox-strip{
	display: flex;
	width: 300%;
	height: 100%;
	will-change: transform;
}

.project-page .lightbox-slide{
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-page .lightbox-close:focus, .project-page .lightbox-close:focus-visible{
	outline: none;
	box-shadow: none;
}

/* thumbnails lazy: match projects.html (light blue placeholder + fade-in) */
/*.project-page .gallery-img{
	background: #eef3ff;
	opacity: 0;
	transition: opacity 0.30s ease;
	cursor: pointer;
}

.project-page .gallery-img.is-loaded{
	opacity: 1;
}*/

/* lightbox loader: match projects.html arc (half-ish ring) */
.project-page .lightbox-loader .loading-spinner{
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 6px solid transparent;
	border-left-color: #4a85ff;
	border-top-color: #4a85ff;
	animation: projectLoadingSpin 0.75s linear infinite;
}

@keyframes projectLoadingSpin{
	.project-page to{ transform: rotate(360deg); }
}


.project-page div.parent_of_graph
{
	width: 100%;
	height: 210px;

	overflow-x: auto;
	overflow-y: hidden;
	background-color: white;
	
	display: flex;

	position: relative;
}
.project-page div.parent_of_graph2
{
	width: 100%;
	min-width: 1090px;
	margin: 0px;
	padding: 0px;
	height: 200px;

	position: sticky;
	left: 0;
	z-index: 0;
	box-sizing: border-box;
}
.project-page div.parent_of_graph2 canvas.graph
{
	width: 100%;
	height: 100%;
}
.project-page div.parent_of_graph canvas.graph_left_panel
{
	margin: 0px;
	padding: 0px;

	position: sticky;
	left: 0;
	z-index: 10;
	box-sizing: border-box;
	
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}
.project-page div.parent_of_graph canvas.graph_right_panel
{
	margin: 0px;
	padding: 0px;

	position: sticky;
	right: 0;
	z-index: 10;
	box-sizing: border-box;
	
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}
@media (max-width: 700px){

	.project-page div.parent_of_graph canvas.graph_left_panel
	{
		display: none;
	}
}

.project-page .list_empty
{
	background: transparent;
	height: 300px;
	line-height: 300px;
	text-align: center;
	vertical-align: center;
	font-size: 20px;
	color: #aaa;
}


/*
 * Cookies
 */

div.allow_cookies
{
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.25);
	z-index: 9999;
	justify-content: center;
	align-items: center;
}


div.allow_cookies div.content img
{
	margin-top: 5px;
}
div.allow_cookies div.content
{
	width: fit-content;
	height: fit-content;
	font-size: 16px;
	padding: 15px;

	background-color: white;
	box-shadow: 2px 13px 13px rgba(0, 0, 0, 0.25);
	border-radius: 15px;
	
	position: relative;
}
div.allow_cookies div.content div.image-container
{
    position: relative;
    display: inline-block;
}

div.allow_cookies div.content div.image-container div.thumb img
{
    display: block;
}

div.allow_cookies div.content div.centered-content
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -49%);
    padding: 10px;
}

div.allow_cookies div.content div.centered-content div.middle_content
{
	background-color: #ffffffdd;
	width: 280px;
	height: 120px;
	padding: 8px 0px 8px 20px;
	border-radius: 25px;

	display: flex;
    text-align: center;
}

div.allow_cookies div.content img.icon
{
	width: 50px;
	height: 50px;
}
div.allow_cookies div.content div.image-container div.header
{
	display: flex;
	margin: 0px 0px 8px 0px;
}
div.allow_cookies div.content div.image-container div.title
{
	height: 40px;
	line-height: 40px;
	font-size: 36px;
	color: #6ab0ff;
	margin: 4px 0px;
	/*font-style: italic;*/
	text-weight: bold;
    text-align: justify;
}
div.allow_cookies div.content div.image-container div.text
{
	height: 20px;
	line-height: 20px;
	font-size: 16px;
	color: #222;
    text-align: left;
	
	margin-left: 10px;
}

div.allow_cookies div.content div.message
{
	max-width: 520px;
	margin: 20px 20px;
	line-height: 22px;
}
div.allow_cookies div.content div.buttons
{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
	padding: 0px;
	margin-top: 10px;
}

div.allow_cookies div.content div.buttons input
{
	font-size: 15px;
	min-height: 36px;
	font-weight: bold;
	border: solid 0px black;
}
div.allow_cookies div.content div.buttons input.disable_cookies
{
	/* -webkit-appearance: none; */
	background-color: #f9f9f9;
	color: #000;
	width: 150px;
	padding: 0px;
	margin: 0px;
	border: solid 1px transparent;
}
div.allow_cookies div.content div.buttons input.disable_cookies:hover
{
	background-color: #fff;
	cursor: pointer;
}
div.allow_cookies div.content div.enable_developer_mode
{
	width: 20px;
	height: 20px;
	background-color: #fafafa;
	/*background-color: #87B9F921;*/
}
div.allow_cookies div.content div.buttons input.allow_cookies
{
	/* -webkit-appearance: none; */
	/*background-color: #6bf;*/
	background-color: #1F8AFF;
	border-width: 0px;
	color: white;
	font-size: 15px;
	width: 150px;
}
div.allow_cookies div.content div.buttons input.allow_cookies:hover
{
	background-color: #1F8AFFCC;
	cursor: pointer;
}

div.allow_cookies div.grid
{
	width: 560px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
	gap: 5px;
}
div.allow_cookies div.item
{
	padding: 5px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
div.allow_cookies div.grid div.thumb
{
	padding: 0px;
	margin: 0px;
	border-radius: 6px;
	
	background: url("images/preview-blur-blue.jpg") center/cover no-repeat #e9ecef;
}
div.allow_cookies div.grid div.thumb img
{
	margin: 0px;
	width: 100%;
	aspect-ratio: 1;
	height: auto;
	border-radius: 6px;
	
    opacity:0;
    transition: opacity .5s ease;
}
div.allow_cookies div.grid div.thumb img.is-loaded
{
	opacity:1;
}
div.allow_cookies div.grid div.thumb img.no-fade
{
	transition: none !important;
}




div.allow_cookies .container
{
    width: 510px;
    margin: 10px auto;
}

div.allow_cookies .setting
{
    border-top: 1px solid #eee;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

div.allow_cookies .setting:last-child
{
    border-bottom: none;
}

div.allow_cookies .setting-info
{
    flex-grow: 1;
}

div.allow_cookies div.container div.title
{
	font-size: 19px;
    font-weight: bold;
    margin-bottom: 15px;
	width: 100%;

	justify-content: center;
	align-items: center;
}
div.allow_cookies .setting-title
{
    font-weight: bold;
    margin-bottom: 6px;
}

div.allow_cookies .setting-count
{
    display: inline-block;
    background-color: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 5px;
}

div.allow_cookies .setting-switch
{
    flex-shrink: 0;
	margin-left: 20px;
	height: 100%;
}



.template
{
	display: none;
}
.hidden
{
	display: none !important;
}
.blur
{
	filter: blur(2px);
}
.flex
{
	display: flex;
}
.no_scroll
{
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
}


