@import url(../assets/fonts/icomoon/style.css);

html{
  --proprius-accent-color: #FF0000;
  --proprius-accent-contrast-color: #FFFFFF;
  --proprius-border-color: #DDD;
  --proprius-contrast-color: #FFFFFF;
  --proprius-color: #141313;
}

/*
.single-property .property-header .property-price{
  background-color: var(--proprius-color);
  color: var(--proprius-contrast-color);
  padding: 0 .25em;
}
*/

.proprius-wrapper {
	max-width: var(--wp--style--global--wide-size, 960px);
	margin: auto;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--body, inherit);
	color: var(--wp--preset--color--contrast, inherit);
	line-height: var(--wp--style--root--line-height, 1.5);
}

.proprius-wrapper a {
	text-decoration: none;
}

.proprius-wrapper a:hover {
	text-decoration: none;
}

.proprius-wrapper .room-details:empty, .proprius-wrapper .property-rooms-details[data-units="1"] .room-unit {
	display: none;
}

.proprius-wrapper .property-rooms-details tbody tr td {
	background-color: transparent;
	border-top: none;
	border-bottom: none;
}

.proprius-wrapper .property-rooms-details tbody tr td.room-unit,
  .proprius-wrapper .property-rooms-details tbody tr td.room-unit ~ td,
  .proprius-wrapper .property-rooms-details tbody tr td.room-level,
  .proprius-wrapper .property-rooms-details tbody tr td.room-level ~ td {
	border-top: solid 1px var(--proprius-border-color);
}

.proprius-wrapper .property-rooms-details tbody tr:last-child {
	border-bottom: solid 1px var(--proprius-border-color);
}

.proprius-wrapper .property-characteristic {
	break-inside: avoid;
}

.proprius-wrapper .property-characteristic .property-characteristic-type::after, .proprius-wrapper .property-evaluation .property-evaluation-label::after, .proprius-wrapper .property-expense .property-expense-label::after {
	content: ":";
}

.proprius-wrapper .property-characteristic .property-subcharacteristic:not(:last-child)::after {
	content: ", ";
}

.proprius-wrapper .property-characteristic .property-subcharacteristic-number::before {
	content: "(";
}

.proprius-wrapper .property-characteristic .property-subcharacteristic-number::after {
	content: ")";
}

.proprius-wrapper .property-money .property-money-currency {
	font-size: .6em;
	vertical-align: super;
}

.proprius-wrapper .property-expense {
	display: flex;
	justify-content: space-between;
}

.proprius-wrapper .property-expense .property-expense-info {
	display: none;
}

.proprius-wrapper .property-evaluation > div {
	display: flex;
	justify-content: space-between;
}

/* === Archive Layout === */

.proprius-wrapper .property-archive-header {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: solid 2px var(--proprius-accent-color);
}

.proprius-wrapper .property-archive-title {
	font-size: 1.4em;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.proprius-wrapper .property-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 24px;
}

@media screen and (max-width: 767px) {
	.proprius-wrapper .property-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media screen and (max-width: 499px) {
	.proprius-wrapper .property-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Card --- */

.proprius-wrapper .property-grid .proprius-property {
	background-color: var(--proprius-contrast-color, #fff);
	border: solid 1px #eee;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	padding: 12px;
	transition: border-color 300ms, box-shadow 300ms, transform 300ms;
}

.proprius-wrapper .property-grid .proprius-property:hover {
	transform: translateY(-3px);
	border-color: var(--proprius-accent-color);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	z-index: 5;
}

/* --- Address --- */

.proprius-wrapper .property-grid .proprius-property .property-address {
	color: inherit;
	display: flex;
	align-items: center;
	font-size: .8em;
	font-weight: 600;
	line-height: 1.3;
	min-height: 2.6em;
	margin-bottom: 8px;
}

.proprius-wrapper .property-grid .proprius-property .property-address::before {
	color: var(--proprius-accent-color);
	font-size: 1.4em;
	margin-right: .3em;
	flex-shrink: 0;
}

/* --- Thumbnail --- */

.proprius-wrapper .property-grid .proprius-property .property-thumbnail {
	margin: 0 -12px;
	overflow: hidden;
}

.proprius-wrapper .property-grid .proprius-property .property-thumbnail img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 400ms;
}

.proprius-wrapper .property-grid .proprius-property:hover .property-thumbnail img {
	transform: scale(1.03);
}

/* --- Price Bar --- */

.proprius-wrapper .property-grid .proprius-property .property-price {
	background-color: var(--proprius-accent-color);
	color: var(--proprius-accent-contrast-color);
	font-size: .85em;
	line-height: 1.3;
	padding: 6px 12px;
	margin: 0 -12px;
}

.proprius-wrapper .property-grid .proprius-property .property-price .property-money {
	font-weight: 700;
	font-size: 1.1em;
}

.proprius-wrapper .property-grid .proprius-property .property-price .proprius-separator {
	opacity: .5;
}

.proprius-wrapper .property-grid .proprius-property .property-price a {
	color: inherit;
}

/* --- Description --- */

.proprius-wrapper .property-grid .proprius-property .property-description {
	padding-top: 10px;
	font-size: .85em;
	line-height: 1.5;
	opacity: .75;
	flex-grow: 1;
}

/* --- MLS ID --- */

.proprius-wrapper .property-grid .proprius-property .property-id {
	display: block;
	color: inherit;
	font-size: .75em;
	opacity: .5;
	margin-top: 10px;
	padding-top: 8px;
	border-top: solid 1px var(--proprius-border-color);
}

.proprius-wrapper .property-grid .proprius-property .property-address:hover,
  .proprius-wrapper .property-grid .proprius-property .property-id:hover {
	color: var(--proprius-accent-color);
	opacity: 1;
}

/* --- View Details --- */

.proprius-wrapper .property-grid .proprius-property .property-view-details {
	display: inline-flex;
	align-items: center;
	color: var(--proprius-accent-color);
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 8px 0;
}

.proprius-wrapper .property-grid .proprius-property .property-view-details::after {
	margin-left: .3em;
	font-size: .85em;
}

.proprius-wrapper .property-grid .proprius-property .property-view-details:hover {
	color: var(--proprius-color);
}

/* --- Meta Footer --- */

.proprius-wrapper .property-grid .proprius-property .property-meta:empty {
	display: none;
}

.proprius-wrapper .property-grid .proprius-property .property-meta {
	background-color: #f7f7f7;
	border-top: solid 1px var(--proprius-border-color);
	border-radius: 0 0 8px 8px;
	margin: 0 -12px -12px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 1.2em;
}

.proprius-wrapper .property-grid .proprius-property .property-meta .proprius-separator {
	display: none;
}

.proprius-wrapper .property-grid .proprius-property .property-meta span {
	font-size: .85em;
	font-weight: 600;
}

.proprius-wrapper .property-grid .proprius-property .property-meta span::before {
	margin-right: .3em;
	vertical-align: middle;
	color: var(--proprius-accent-color);
}

/* --- Pagination --- */

.proprius-wrapper .property-grid + .navigation.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin: 24px 0;
}

.proprius-wrapper .property-grid + .navigation.pagination .nav-links > * {
	border-radius: 4px;
	color: inherit;
	padding: 4px 14px;
	min-width: 2em;
	text-align: center;
}

.proprius-wrapper .property-grid + .navigation.pagination .nav-links > a:not(.prev):not(.next):hover {
	color: var(--proprius-accent-color);
}

.proprius-wrapper .property-grid + .navigation.pagination .next:hover,
  .proprius-wrapper .property-grid + .navigation.pagination .prev:hover,
  .proprius-wrapper .property-grid + .navigation.pagination .nav-links .current {
	border-color: var(--proprius-accent-color);
	background-color: var(--proprius-accent-color);
	color: var(--proprius-accent-contrast-color);
	font-weight: bold;
}

.proprius-wrapper .property-grid + .navigation.pagination .next,
  .proprius-wrapper .property-grid + .navigation.pagination .prev {
	border: 1px solid var(--proprius-border-color);
	color: var(--proprius-accent-color);
	font-size: 0;
	font-weight: bold;
}

.proprius-wrapper .property-grid + .navigation.pagination .next::before {
	font-size: 1rem;
	content: "\203A";
}

.proprius-wrapper .property-grid + .navigation.pagination .prev::before {
	font-size: 1rem;
	content: "\2039";
}

/* === Single Property Layout === */

.single-proprius-property .proprius-wrapper .hentry.proprius-property {
	display: grid;
	grid-template-rows: repeat(3, auto);
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
}

.single-proprius-property .proprius-wrapper .hentry.proprius-property > * {
	padding: 16px;
}

/* --- Header --- */

.single-proprius-property .property-header {
	grid-column: 1 / -1;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	padding-bottom: 12px;
	border-bottom: solid 1px var(--proprius-border-color);
}

.single-proprius-property .property-header .property-address {
	flex-basis: 100%;
	font-size: 1.5em;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 .15em;
	line-height: 1.25;
}

.single-proprius-property .property-header .property-address .property-unit::before {
	content: "#";
}

.single-proprius-property .property-header .property-address .property-unit::after {
	content: " - ";
}

.single-proprius-property .property-header .property-address .property-street::after {
	content: ", ";
}

.single-proprius-property .property-header .property-category {
	font-size: .85em;
	opacity: .7;
}

.single-proprius-property .property-header .property-price {
	font-size: 1.5em;
	font-weight: 700;
	color: var(--proprius-accent-color);
}

.single-proprius-property .property-header a {
	color: inherit;
}

.single-proprius-property .property-header a:hover {
	color: var(--proprius-accent-color);
}

/* --- Gallery --- */

.single-proprius-property .property-gallery {
	grid-column: 1 / span 3;
	padding-right: 0;
}

.single-proprius-property .property-gallery .property-gallery-slider {
	border-radius: 6px;
	overflow: hidden;
}

.single-proprius-property .property-gallery .swiper-button-next,
  .single-proprius-property .property-gallery .swiper-button-prev {
	color: var(--proprius-contrast-color);
	text-shadow: 0 0 10px var(--proprius-color);
}

.single-proprius-property .property-gallery .property-gallery-thumbnails {
	margin-top: 10px;
}

.single-proprius-property .property-gallery .property-gallery-thumbnails .property-gallery-image {
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
}

.single-proprius-property .property-gallery .property-gallery-image img {
	display: block;
}

.single-proprius-property .property-gallery .property-gallery-thumbnails .property-gallery-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center;
}

.single-proprius-property .property-gallery .property-gallery-image .property-gallery-image-description,
  .single-proprius-property .property-gallery .property-gallery-image .property-gallery-image-zoom {
	position: absolute;
	background-color: var(--proprius-color);
	color: var(--proprius-contrast-color);
}

.single-proprius-property .property-gallery .property-gallery-image .property-gallery-image-zoom:hover {
	background-color: var(--proprius-accent-color);
	color: var(--proprius-accent-contrast-color);
}

.single-proprius-property .property-gallery .property-gallery-image .property-gallery-image-zoom {
	top: 10%;
	left: 0;
	padding: 0 .5em 0 .25em;
	border-top-right-radius: .75em;
	border-bottom-right-radius: .75em;
}

.single-proprius-property .property-gallery .property-gallery-image .property-gallery-image-zoom::before {
	content: "\e987";
}

.single-proprius-property .property-gallery .property-gallery-image .property-gallery-image-description {
	bottom: 0;
	right: 0;
	padding: 2px 6px;
	font-size: .75em;
	opacity: .85;
}

/* --- Description Sidebar --- */

.single-proprius-property .property-description {
	grid-column: span 2;
}

.single-proprius-property .property-description .property-id {
	display: inline-block;
	font-size: .8em;
	opacity: .6;
	margin-bottom: 12px;
}

.single-proprius-property .property-description h4,
  .single-proprius-property .property-description h5 {
	font-size: .75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--proprius-accent-color);
	margin: 1.5em 0 .5em;
	padding-bottom: .35em;
	border-bottom: solid 2px var(--proprius-accent-color);
}

.single-proprius-property .property-remarks {
	margin-bottom: 16px;
	line-height: 1.6;
}

.single-proprius-property .property-room-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.single-proprius-property .property-room-summary > div {
	background-color: #f5f5f5;
	border-radius: 6px;
	padding: 8px 12px;
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

.single-proprius-property .property-room-summary > div::before {
	display: block;
	font-size: 1.4em;
	margin-bottom: 2px;
	color: var(--proprius-accent-color);
}

.single-proprius-property .property-room-summary > div .value {
	font-weight: 700;
	font-size: 1.1em;
}

.single-proprius-property .property-room-summary > div .label {
	display: block;
	font-size: .7em;
	text-transform: uppercase;
	letter-spacing: .05em;
	opacity: .6;
}

.single-proprius-property .property-dimensions .property-dimension,
  .single-proprius-property .property-evaluation > * {
	display: flex;
	padding: 6px 0;
	border-bottom: solid 1px #eee;
}

.single-proprius-property .property-dimensions .property-dimension:last-child,
  .single-proprius-property .property-evaluation > *:last-child {
	border-bottom: none;
}

.single-proprius-property .property-dimensions .property-dimension .property-dimension-label {
	flex-grow: 1;
}

.single-proprius-property .property-dimensions .property-dimension .property-dimension-unit {
	padding-left: .25em;
	opacity: .5;
}

/* --- Details / Tabs --- */

.single-proprius-property .property-details {
	grid-column: 1 / -1;
	border-top: solid 1px var(--proprius-border-color);
	margin-top: 8px;
	padding-top: 24px;
}

.single-proprius-property .tabs [name="active_tab"] {
	display: none;
}

.single-proprius-property .tabs .tab-content {
	display: none;
}

.single-proprius-property .tabs .tab-name {
	background-color: var(--proprius-contrast-color);
	border: solid 1px #eee;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	font-weight: 600;
	padding: 12px 14px;
	margin-bottom: 8px;
	transition: border-color 200ms, color 200ms;
}

.single-proprius-property .tabs .tab-name:hover {
	border-color: var(--proprius-accent-color);
	color: var(--proprius-accent-color);
}

.single-proprius-property .tabs .tab-name:hover::before {
	border-left-color: var(--proprius-accent-color);
}

.single-proprius-property .tabs [name="active_tab"]:checked + .tab-name {
	border-color: var(--proprius-accent-color);
	color: var(--proprius-accent-color);
}

.single-proprius-property .tabs .tab-name::before {
	content: "";
	width: 0;
	height: 0;
	border-bottom: 5px solid transparent;
	border-top: 5px solid transparent;
	border-left: 5px solid var(--proprius-color);
	margin-right: 10px;
	flex-shrink: 0;
	transition: transform 200ms, border-left-color 200ms;
}

.single-proprius-property .tabs [name="active_tab"]:checked + .tab-name::before {
	transform: rotate(90deg);
	border-left-color: var(--proprius-accent-color);
}

.single-proprius-property .tabs .tab-content {
	padding: 12px 14px 12px 29px;
	margin-top: -8px;
	margin-bottom: 4px;
}

.single-proprius-property .tabs [name="active_tab"]:checked + .tab-name + .tab-content {
	display: block;
}

/* --- Single Property Responsive --- */

@media screen and (max-width: 899px) {
	.single-proprius-property .proprius-wrapper .hentry.proprius-property {
		grid-template-columns: 1fr;
	}

	.single-proprius-property .property-header,
	  .single-proprius-property .property-gallery,
	  .single-proprius-property .property-description,
	  .single-proprius-property .property-details {
		grid-column: 1 / -1;
	}

	.single-proprius-property .property-gallery {
		padding-right: 16px;
	}
}

.proprius-wrapper .proprius-property [class*="rooms-washrooms"]::before,
  .proprius-wrapper .proprius-property [class*="rooms-bathrooms"]::before,
  .proprius-wrapper .proprius-property [class*="rooms-total"]::before,
  .proprius-wrapper .proprius-property [class*="rooms-bedrooms-total"]::before,
  .proprius-wrapper .proprius-property .property-gallery .property-gallery-image .property-gallery-image-zoom::before,
  .proprius-wrapper .proprius-property .property-address::before,
  .proprius-wrapper .proprius-property .property-view-details::after,
  .proprius-wrapper .proprius-property .property-meta span::before,
  .proprius-wrapper .property-category > a::before {
    /* use !important to prevent issues with browser extensions that change fonts */
	font-family: 'icomoon' !important;
	speak: never;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
    /* Better Font Rendering =========== */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.proprius-wrapper .proprius-property [class*="rooms-washrooms"]::before {
	content: "\e900";
}

.proprius-wrapper .proprius-property [class*="rooms-bathrooms"]::before {
	content: "\e901";
}

.proprius-wrapper .proprius-property .property-address::before {
	content: "\e947";
}

.proprius-wrapper .proprius-property [class*="rooms-total"]::before {
	content: "\ea13";
}

.proprius-wrapper .proprius-property [class*="rooms-bedrooms-total"]::before {
	content: "\e902";
}

.proprius-wrapper .proprius-property .property-view-details::after {
	content: "\ea34";
}

.proprius-wrapper .property-category > a[href*="_proprius_code=C"]::before {
	content: "\e904";
}

.proprius-wrapper .property-category > a[href*="_proprius_code=F"]::before {
	content: "\e906";
}

.proprius-wrapper .property-category > a[href*="_proprius_code=I"]::before {
	content: "\e907";
}

.proprius-wrapper .property-category > a[href*="_proprius_code=M"]::before,
  .proprius-wrapper .property-category > a[href*="_proprius_code=P"]::before {
	content: "\e905";
}

.proprius-wrapper .property-category > a[href*="_proprius_code=R"]::before {
	content: "\e909";
}

.proprius-wrapper .property-category > a[href*="_proprius_code=T"]::before {
	content: "\e908";
}