/**
 * HD Estatik Cards - Portal-style image overlays for featured listing grids.
 * Accent: #16add0 (matches the original homesinjuneau.com card design).
 */

.hd-featured-listings .es-listing__image {
	position: relative;
}

/* readability scrim behind the price */
.hd-featured-listings .es-listing__image:after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
	pointer-events: none;
	z-index: 2;
}

.hd-featured-listings .hd-card-overlay__tags {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 4;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.hd-featured-listings .hd-card-overlay__tags a {
	display: inline-block;
	background: #16add0;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 3px;
	line-height: 1.4;
	transition: background .2s ease;
}
.hd-featured-listings .hd-card-overlay__tags a:hover {
	background: #0d93b2;
	color: #fff;
}

.hd-featured-listings .hd-card-overlay__price {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 4;
	pointer-events: none;
}
.hd-featured-listings .hd-card-overlay__price .es-price {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	background: none;
	padding: 0;
}

/* price shows on the photo now - hide the duplicate under the title */
.hd-featured-listings .es-listing__content .es-badges {
	display: none;
}

/* keep slick arrows/dots and save-controls above the scrim */
.hd-featured-listings .es-listing__image .slick-prev,
.hd-featured-listings .es-listing__image .slick-next,
.hd-featured-listings .es-listing__image .es-slick-dots,
.hd-featured-listings .es-listing__image .es-property__control {
	z-index: 5;
}

/* ------------------------------------------------------------------
 * Vertical card: white content box attached under the image slider
 * ------------------------------------------------------------------ */
.hd-featured-listings .es-listing {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.09);
	height: 100%;
}
.hd-featured-listings .es-listing__image {
	margin: 0;
}
.hd-featured-listings .es-listing__content {
	padding: 16px 18px 18px;
	flex: 1;
}
.hd-featured-listings .es-listing__title {
	font-size: 17px;
	line-height: 1.35;
	margin: 0 0 6px;
}
.hd-featured-listings .es-listing__title a {
	color: #263238;
	text-decoration: none;
}
.hd-featured-listings .es-listing__title a:hover {
	color: #16add0;
}

/* address + short description are hidden in Estatik's grid view - show them */
.hd-featured-listings .es-listing__content .es-address.es-listing--hide-on-grid {
	display: block;
	font-size: 13px;
	color: #78909c;
	margin: 0 0 8px;
}
.hd-featured-listings .es-listing__content .es-excerpt.es-listing--hide-on-grid {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: #546e7a;
	margin: 0 0 10px;
}

/* ------------------------------------------------------------------
 * Card footer: hide term tags at the bottom of the card
 * ------------------------------------------------------------------ */
.hd-featured-listings .es-listing__footer {
	display: none;
}

/* breadcrumb chevrons: half the original spacing */
.es-breadcrumbs { gap: 2px !important; }
.es-breadcrumbs .es-icon_chevron-right { margin-left: 7px !important; margin-right: 4px !important; }

/* back-to-search-results: yellow pill matching the OH back button */
a.es-back-search-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 15px 6px 11px !important;
	margin-bottom: 12px;
	border-radius: 6px;
	background: rgba(252, 201, 67, 0.16) !important;
	border: 1px solid rgba(252, 201, 67, 0.80);
	color: #9c7a00 !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-decoration: none !important;
	transition: background 0.18s ease, color 0.18s ease;
}
a.es-back-search-btn:hover {
	background: #fcc943 !important;
	color: #1f2933 !important;
}
a.es-back-search-btn .es-icon { font-size: 12px; }
