/* ==========================================================
   GOLF COMMUNITY LIVING
   REAL ESTATE DIRECTORY
   /assets/css/gl-realestate.css

   This file intentionally builds on the shared gl-card,
   gl-grid, gl-button, gl-page-header and gl-section styles.
   ========================================================== */

.gl-realestate-search {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr)) auto;
	gap: 16px;
	align-items: end;
}

.gl-realestate-search__field label {
	display: block;
	margin-bottom: 7px;
	color: var(--gl-text);
	font-size: .78rem;
	font-weight: 800;
}

.gl-realestate-search__field select {
	width: 100%;
	min-height: 48px;
	padding: 10px 36px 10px 12px;
	background: #fff;
	color: var(--gl-text);
	border: 1px solid var(--gl-border);
	border-radius: var(--gl-radius-sm);
}

.gl-realestate-search__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
}

.gl-realestate-search__clear {
	font-size: .84rem;
	font-weight: 800;
	text-decoration: none;
}

.gl-realestate-card__media {
	aspect-ratio: 2 / 1;
	text-decoration: none;
}

.gl-realestate-card__noimage {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: var(--gl-muted);
	font-size: .85rem;
	font-weight: 800;
	text-align: center;
}

.gl-realestate-card__price {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	padding: 9px 14px;
	background: rgba(0,0,0,.78);
	color: #fff;
	font-size: 1rem;
	font-weight: 900;
	line-height: 1;
}

.gl-realestate-card__community {
	margin-bottom: 6px;
	color: var(--gl-primary);
	font-size: .72rem;
	font-weight: 900;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.gl-realestate-card__location {
	margin-bottom: 13px;
}

.gl-realestate-card__headline {
	margin: 0 0 17px;
	color: var(--gl-muted);
	font-size: .9rem;
	line-height: 1.55;
}

.gl-realestate-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 15px;
	padding-top: 15px;
	border-top: 1px solid var(--gl-border);
	color: var(--gl-muted);
	font-size: .78rem;
}

.gl-realestate-card__facts span {
	display: inline-flex;
	gap: 4px;
}

.gl-realestate-card__facts strong {
	color: var(--gl-text);
}

.gl-realestate-card__footer {
	margin-top: auto;
}

.gl-realestate-empty {
	padding: clamp(35px,5vw,60px);
	background: var(--gl-surface-soft);
	border: 1px solid var(--gl-border);
	border-radius: var(--gl-radius);
	text-align: center;
}

.gl-realestate-empty h2 {
	margin-bottom: 10px;
}

.gl-realestate-empty p {
	max-width: 650px;
	margin: 0 auto 22px;
	color: var(--gl-muted);
}

@media (max-width: 1050px) {
	.gl-realestate-search {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}

	.gl-realestate-search__actions {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.gl-realestate-search {
		grid-template-columns: 1fr;
	}

	.gl-realestate-search__actions {
		grid-column: auto;
		flex-wrap: wrap;
	}

	.gl-realestate-search__actions .gl-button {
		width: 100%;
	}
}

/* ==========================================================
   REAL ESTATE PROPERTY DETAIL
   ========================================================== */

.gl-realestate-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 24px;
	color: var(--gl-muted);
	font-size: .78rem;
}

.gl-realestate-breadcrumb a {
	font-weight: 700;
	text-decoration: none;
}

.gl-realestate-detail-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 40px;
}

.gl-realestate-detail-head h1 {
	margin-bottom: 12px;
}

.gl-realestate-detail-head__location {
	margin: 0;
	color: var(--gl-muted);
	line-height: 1.55;
}

.gl-realestate-detail-head__price {
	flex: 0 0 auto;
	text-align: right;
}

.gl-realestate-detail-head__price span {
	display: block;
	margin-bottom: 3px;
	color: var(--gl-muted);
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.gl-realestate-detail-head__price strong {
	color: var(--gl-primary);
	font-size: clamp(1.55rem,3vw,2.25rem);
	line-height: 1;
}


/* Gallery */

.gl-realestate-gallery-section {
	padding-top: 30px;
}

.gl-realestate-gallery {
	display: grid;
	grid-template-columns: minmax(0,2fr) minmax(260px,1fr);
	gap: 10px;
	height: min(540px,46vw);
}

.gl-realestate-gallery--single {
	display: block;
	height: auto;
}

.gl-realestate-gallery__main,
.gl-realestate-gallery__thumbs a {
	display: block;
	overflow: hidden;
	background: var(--gl-surface-soft);
	border-radius: var(--gl-radius);
}

.gl-realestate-gallery__main {
	height: 100%;
}

.gl-realestate-gallery--single .gl-realestate-gallery__main {
	aspect-ratio: 2 / 1;
}

.gl-realestate-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gl-realestate-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 10px;
	min-height: 0;
}

.gl-realestate-gallery__thumbs a {
	min-height: 0;
}


/* Main content */

.gl-realestate-detail__lede {
	margin: 0 0 30px;
	color: var(--gl-text);
	font-size: 1.2rem;
	font-weight: 650;
	line-height: 1.6;
}

.gl-realestate-facts {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	margin-bottom: 42px;
	border-top: 1px solid var(--gl-border);
	border-left: 1px solid var(--gl-border);
}

.gl-realestate-facts > div {
	padding: 19px;
	border-right: 1px solid var(--gl-border);
	border-bottom: 1px solid var(--gl-border);
}

.gl-realestate-facts strong,
.gl-realestate-facts span {
	display: block;
}

.gl-realestate-facts strong {
	margin-bottom: 3px;
	color: var(--gl-text);
	font-size: 1.08rem;
}

.gl-realestate-facts span {
	color: var(--gl-muted);
	font-size: .72rem;
	font-weight: 700;
}

.gl-realestate-description {
	margin-bottom: 46px;
}

.gl-realestate-description h2,
.gl-realestate-community-callout h2 {
	margin-bottom: 14px;
}

.gl-realestate-description__copy {
	color: #4f5a53;
	line-height: 1.75;
}

.gl-realestate-community-callout {
	padding: 28px;
	background: var(--gl-surface-soft);
	border: 1px solid var(--gl-border);
	border-radius: var(--gl-radius);
}

.gl-realestate-community-callout p {
	color: var(--gl-muted);
}


/* Agent/contact rail */

.gl-realestate-contact-rail {
	display: grid;
	gap: 20px;
}

.gl-realestate-agent-card,
.gl-realestate-inquiry-card {
	padding: 25px;
	background: #fff;
	border: 1px solid var(--gl-border);
	border-radius: var(--gl-radius);
	box-shadow: 0 4px 18px rgba(18,30,22,.05);
}

.gl-realestate-agent-card__photo {
	width: 88px;
	height: 88px;
	margin-bottom: 20px;
	overflow: hidden;
	border-radius: 50%;
}

.gl-realestate-agent-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gl-realestate-agent-card h2,
.gl-realestate-inquiry-card h2 {
	margin-bottom: 7px;
	font-size: 1.4rem;
}

.gl-realestate-agent-card__company {
	margin-bottom: 13px;
	color: var(--gl-muted);
	font-size: .9rem;
}

.gl-realestate-agent-card__phone {
	margin-bottom: 12px;
	font-size: 1.05rem;
	font-weight: 800;
}

.gl-realestate-agent-card__phone a,
.gl-realestate-agent-card__profile {
	text-decoration: none;
}

.gl-realestate-agent-card__profile {
	font-size: .82rem;
	font-weight: 800;
}

.gl-realestate-inquiry-card > p {
	margin-bottom: 20px;
	color: var(--gl-muted);
	font-size: .88rem;
	line-height: 1.55;
}


/* Inquiry form */

.gl-realestate-inquiry-form {
	display: grid;
	gap: 15px;
}

.gl-realestate-form-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--gl-text);
	font-size: .78rem;
	font-weight: 800;
}

.gl-realestate-form-field label span {
	color: #9b2525;
}

.gl-realestate-form-field input,
.gl-realestate-form-field textarea {
	width: 100%;
	padding: 10px 12px;
	background: #fff;
	color: var(--gl-text);
	border: 1px solid var(--gl-border);
	border-radius: var(--gl-radius-sm);
}

.gl-realestate-form-field input {
	min-height: 46px;
}

.gl-realestate-form-field textarea {
	resize: vertical;
}

.gl-realestate-form-field input:focus,
.gl-realestate-form-field textarea:focus {
	border-color: var(--gl-primary);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(22,63,107,.10);
}

.gl-realestate-form-message {
	margin-bottom: 18px;
	padding: 13px 14px;
	border-radius: var(--gl-radius-sm);
	font-size: .86rem;
}

.gl-realestate-form-message strong {
	display: block;
}

.gl-realestate-form-message--success {
	background: #edf8ef;
	color: #245f32;
	border: 1px solid #c9e5cf;
}

.gl-realestate-form-message--error {
	background: #fff0f0;
	color: #8a2020;
	border: 1px solid #efcaca;
}

.gl-realestate-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}


/* Responsive */

@media (max-width: 960px) {

	.gl-realestate-gallery {
		height: auto;
		grid-template-columns: 1fr;
	}

	.gl-realestate-gallery__main {
		aspect-ratio: 2 / 1;
	}

	.gl-realestate-gallery__thumbs {
		grid-template-columns: repeat(3,minmax(0,1fr));
	}

	.gl-realestate-gallery__thumbs a {
		aspect-ratio: 2 / 1;
	}
}

@media (max-width: 700px) {

	.gl-realestate-detail-head {
		display: block;
	}

	.gl-realestate-detail-head__price {
		margin-top: 24px;
		text-align: left;
	}

	.gl-realestate-facts {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}

	.gl-realestate-gallery__thumbs {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
}

@media (max-width: 480px) {

	.gl-realestate-facts {
		grid-template-columns: 1fr 1fr;
	}
}
