/* History page only — all selectors scoped under #maincontent.history-page */

#maincontent.history-page .history-intro {
	margin: 0 0 28px;
	color: #555;
	font-size: 13px;
	line-height: 1.7;
}

#maincontent.history-page .history-legend {
	margin: 0 0 32px;
	font-size: 12px;
	color: #666;
	line-height: 1.8;
}

#maincontent.history-page .history-legend span {
	display: inline-block;
	margin-right: 16px;
}

#maincontent.history-page .history-legend i {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 5px;
	border-radius: 50%;
	vertical-align: middle;
}

#maincontent.history-page .history-legend .dot-event { background: #ca3232; }
#maincontent.history-page .history-legend .dot-sale { background: #2f5d8c; }
#maincontent.history-page .history-legend .dot-rental { background: #b8860b; }

#maincontent.history-page .history-timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

#maincontent.history-page .history-timeline:before {
	content: "";
	position: absolute;
	left: 96px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: #e5e5e5;
}

#maincontent.history-page .history-year-group {
	position: relative;
	margin: 0 0 24px;
	clear: both;
}

#maincontent.history-page .history-year-badge {
	float: left;
	width: 80px;
	padding-top: 20px;
	text-align: right;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: bold;
	color: #ca3232;
	line-height: 1.2;
}

#maincontent.history-page .history-items {
	margin: 0 0 0 120px;
	padding: 0;
	list-style: none;
}

#maincontent.history-page .history-item {
	position: relative;
	margin: 0 0 18px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #ededed;
	border-width: 0 1px 1px 0;
	box-shadow: 1px 1px 0 #f6f6f6;
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

#maincontent.history-page .history-item:hover {
	border-color: #e2e2e2;
	box-shadow: 2px 3px 0 #eee;
}

#maincontent.history-page .history-item:after {
	content: "";
	position: absolute;
	left: -31px;
	top: 26px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ca3232;
	border: 2px solid #fff;
	outline: 1px solid #ca3232;
}

#maincontent.history-page .history-item.mode-sale:after {
	background: #2f5d8c;
	outline-color: #2f5d8c;
}

#maincontent.history-page .history-item.mode-rental:after {
	background: #b8860b;
	outline-color: #b8860b;
}

#maincontent.history-page .history-media {
	float: left;
	width: 320px;
	margin: 0 20px 0 0;
}

#maincontent.history-page .history-media a {
	display: block;
	border: 1px solid #ececec;
	background: #f7f7f7;
	overflow: hidden;
}

#maincontent.history-page .history-media img {
	display: block;
	width: 320px;
	height: 214px;
	object-fit: cover;
	border: 0;
	transition: transform 0.35s ease;
}

#maincontent.history-page .history-media a:hover img {
	transform: scale(1.03);
}

#maincontent.history-page .history-body {
	overflow: hidden;
}

#maincontent.history-page .history-meta {
	margin: 0 0 8px;
}

#maincontent.history-page .history-tag {
	display: inline-block;
	padding: 1px 8px;
	margin: 0 6px 0 0;
	font-size: 11px;
	line-height: 18px;
	color: #fff;
	background: #ca3232;
}

#maincontent.history-page .history-tag.sale { background: #2f5d8c; }
#maincontent.history-page .history-tag.rental { background: #b8860b; }

#maincontent.history-page .history-location {
	display: inline-block;
	padding: 1px 8px;
	font-size: 11px;
	line-height: 18px;
	color: #666;
	background: #f3f3f3;
	border: 1px solid #e8e8e8;
}

#maincontent.history-page .history-title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 15px;
	line-height: 1.45;
	color: #222;
	font-weight: bold;
	border: 0;
	float: none;
	text-align: left;
}

#maincontent.history-page .history-partner {
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: #777;
}

#maincontent.history-page .history-partner strong {
	color: #555;
	font-weight: normal;
}

#maincontent.history-page .history-item.history-noimg .history-media {
	display: none;
}

#maincontent.history-page .history-item.history-noimg .history-body {
	margin-left: 0;
}

@media (max-width: 780px) {
	#maincontent.history-page .history-timeline:before {
		left: 14px;
	}

	#maincontent.history-page .history-year-badge {
		float: none;
		width: auto;
		padding: 0 0 10px 36px;
		text-align: left;
	}

	#maincontent.history-page .history-items {
		margin-left: 36px;
	}

	#maincontent.history-page .history-item:after {
		left: -28px;
	}

	#maincontent.history-page .history-media {
		float: none;
		width: 100%;
		margin: 0 0 12px;
	}

	#maincontent.history-page .history-media img {
		width: 100%;
		height: auto;
	}
}
