/**
 * =======================================================================
 * REAL ESTATE EXTENSION STYLES
 * Path: /slfx_extensions/realestate/css/re.css
 * =======================================================================
 */

/* --- Public Feed Header --- */
.re-header {
	margin-bottom: 40px;
}

body.re-public h1 {
	margin-bottom: 10px;
	color: #373737;
}

.primary-divider {
	max-width: 100px;
	border-top: 2px solid #dd4B39;
	margin: 20px auto;
}

/* --- Real Estate Entry Cards --- */
/* The z-index and position absolute fix for the drop-shadow lifted bug */
.re-entry {
	position: relative;
	z-index: 3;
	padding: 20px 20px 30px 20px ;
	margin: 0 auto 20px auto;
	margin-bottom: 20px;
	border-radius: 4px;
	background: #ffffff; /* Forces a solid background so the shadow works */
}

.re-title {
	margin-top: 0;
	color: #333;
	border-bottom: 2px solid #eee;
	padding-bottom: 10px;
	font-style: normal;
	font-size: 1.25em;
	line-height: 1.3;
	text-transform: uppercase;
}

.re-meta {
	font-style: italic;
	font-size: 1em;
	margin-bottom: 20px;
	color: #373737;
}

.re-content {
	line-height: 1.6;
	font-size: 15px;
}
.re-content strong {
	color: #444;
}

/* --- Masonry Grid Layout --- */
.re-feed-container {
	/* Extra small devices (phones, less than 768px) */
	column-count: 1;
	column-gap: 20px;
	padding: 10px;
	max-width: 1600px;
	margin: 0 auto;
}

/* The ultimate column-break prevention wrapper */
.re-column-item {
	-webkit-column-break-inside: avoid; /* Old Chrome/Safari */
	page-break-inside: avoid; /* Old Firefox */
	break-inside: avoid; /* Modern Standard */
	
	/* THE FIX: 'table' is mathematically unbreakable in CSS columns */
	display: table; 
	width: 100%;
}

/* Ensure the shadow container behaves normally inside the new wrapper */
.re-column-item .drop-shadow.lifted {
	position: relative;
	display: block;
	margin: 0 auto 20px; 
}

/* --- Fix for Stretched Shadows on Tall Cards --- */
.re-column-item .drop-shadow.lifted::before,
.re-column-item .drop-shadow.lifted::after {
	top: auto;          
	bottom: 15px;       
	height: 40px;       
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.re-feed-container {
		column-count: 2;
	}
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
	.re-feed-container {
		column-count: 3;
	}
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1600px) {
	.re-feed-container {
		column-count: 4;
	}
}