/**
 * The retreat card design.
 *
 * This began life as a <style> block inside an Elementor HTML widget on the
 * retreats page. That made it one careless widget deletion away from being
 * gone — which is exactly what happened. It lives here now: the design travels
 * with the plugin, survives page edits, and is the same on every page the
 * shortcode is dropped onto.
 *
 * Everything is scoped to .hm-retreats so it cannot leak into the rest of the
 * site, and it relies on no framework.
 *
 * Tokens: navy #132845, ivory #F8F5EC, gold #d1a02c (rules and borders),
 * #8c6c1e (gold text on light), olive #54503F, muted #8a8370.
 */

.hm-retreats * {
	box-sizing: border-box;
}

/* Brand chips ------------------------------------------------------------ */

.hm-retreats .filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 26px 0 40px;
}

.hm-retreats .chip {
	font-family: "Jost", Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 9px 18px;
	border-radius: 2px;
	cursor: pointer;
	background: transparent;
	border: 1px solid rgba(209, 160, 44, 0.37);
	color: #54503F;
	transition: .18s;
}

.hm-retreats .chip:hover {
	border-color: #d1a02c;
	color: #8c6c1e;
}

.hm-retreats .chip[aria-pressed="true"] {
	background: #132845;
	border-color: #132845;
	color: #fff;
}

.hm-retreats .chip .n {
	opacity: .55;
	font-weight: 400;
	margin-left: 6px;
}

/* The grid --------------------------------------------------------------- */

.hm-retreats .cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px 30px;
}

.hm-retreats .card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(209, 160, 44, 0.21);
	border-radius: 2px;
	overflow: hidden;
	transition: .18s;
	text-decoration: none;
}

.hm-retreats .card:hover {
	border-color: #d1a02c;
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(19, 40, 69, .09);
}

/* 3:2 stops a landscape travel photo dominating a three-up grid. The fixed
   ratio is also what keeps every card the same height whatever shape the
   photographer's original was. */
.hm-retreats .shot {
	aspect-ratio: 3/2;
	background: #F8F5EC;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hm-retreats .shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hm-retreats .shot .ph {
	font-family: "Jost", Helvetica, Arial, sans-serif;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #8a8370;
	text-align: center;
	padding: 0 14px;
}

/* Card body -------------------------------------------------------------- */

.hm-retreats .cbody {
	padding: 24px 24px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.hm-retreats .cbrand {
	font-family: "Jost", Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: #8c6c1e;
	margin-bottom: 11px;
}

.hm-retreats .card h3 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
	color: #132845;
	margin: 0 0 10px;
	transition: .18s;
}

.hm-retreats .card:hover h3 {
	color: #8c6c1e;
}

.hm-retreats .cmeta {
	font-family: "Jost", Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #8a8370;
	line-height: 1.6;
}

/* Price and availability sit on the baseline of the card, so cards with them
   and cards without still line up. */
.hm-retreats .cfoot {
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid rgba(209, 160, 44, 0.21);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.hm-retreats .cprice {
	font-family: "Jost", Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #54503F;
}

.hm-retreats .cprice b {
	font-weight: 600;
	color: #132845;
}

.hm-retreats .status {
	font-family: "Jost", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	white-space: nowrap;
}

.hm-retreats .s-open { color: #8a8370; }
.hm-retreats .s-few  { color: #9A5B1E; }
.hm-retreats .s-out  { color: #8a8370; }

.hm-retreats .card.gone {
	opacity: .72;
}

.hm-retreats .empty {
	padding: 54px 0;
	text-align: center;
	color: #8a8370;
	font-size: 16px;
}

/* Only editors ever see this one. */
.hm-retreats .hm-retreats-error {
	padding: 18px 20px;
	background: #FCF4E6;
	border: 1px solid rgba(209, 160, 44, 0.37);
	font-family: "Jost", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #54503F;
}

.hm-retreats [hidden] {
	display: none !important;
}

@media (max-width: 1024px) {
	.hm-retreats .cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px 24px;
	}
}

@media (max-width: 767px) {
	.hm-retreats .cards {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.hm-retreats .filters {
		gap: 8px;
		margin: 22px 0 32px;
	}

	.hm-retreats .chip {
		font-size: 12px;
		padding: 8px 14px;
	}
}
