/* ── Offers Loop Grid ─────────────────────────────────────────── */
.jhr-offers-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 30px;
	row-gap: 35px;
}

.jhr-offer-item[hidden],
.jhr-offer-item.is-hidden {
	display: none !important;
}

/* Equal height: the template fills its grid cell */
.jhr-offers-equal-yes .jhr-offer-item {
	display: flex;
	flex-direction: column;
}
.jhr-offers-equal-yes .jhr-offer-item > .elementor {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
.jhr-offers-equal-yes .jhr-offer-item > .elementor > .e-con,
.jhr-offers-equal-yes .jhr-offer-item > .elementor > .elementor-section {
	flex: 1 1 auto;
}

.jhr-offers-grid__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 20px 0;
}
.jhr-offers-grid__empty[hidden] {
	display: none;
}

.jhr-offers-grid__notice {
	padding: 16px;
	border: 1px dashed #caa938;
	color: #555;
	font-size: 13px;
	text-align: center;
}

/* ── Filter buttons (shared) ──────────────────────────────────
   Defaults = the shortcodes' pill buttons. Selectors are 0,2,1 so the
   Elementor kit's ".elementor-kit-N button" (0,1,1) and theme
   "[type=button]:focus" (0,2,0) can't restyle them, while the widgets'
   own style controls ({{WRAPPER}} …, 0,4,0) still override.
------------------------------------------------------------------ */
.jhr-offers-filter {
	width: 100%;
}

.jhr-offers-filter__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 16px;
}

.jhr-offers-filter button.jhr-offers-filter__btn {
	font-family: 'Titillium Web', sans-serif;
	font-size: 12px;
	line-height: 1.2;
	font-weight: normal;
	padding: 3px 14px;
	border: 1px solid #999;
	border-radius: 30px;
	background: #fff;
	color: #999;
	cursor: pointer;
	transition: all 0.25s ease;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

.jhr-offers-filter button.jhr-offers-filter__btn:hover,
.jhr-offers-filter button.jhr-offers-filter__btn:focus-visible,
.jhr-offers-filter button.jhr-offers-filter__btn.is-active {
	background: #caa938;
	border-color: #caa938;
	color: #fff;
}

.jhr-offers-filter button.jhr-offers-filter__btn:focus-visible {
	outline: 2px solid #a88b1e;
	outline-offset: 2px;
}

.jhr-offers-filter .jhr-offers-filter__btn[hidden],
.jhr-offers-filter [data-dim][hidden] {
	display: none !important;
}

/* ── Network Offers Filter — [merged_offers_grid] rows ──────────── */
.jhr-nfilter__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

/* Row 1: content type (pills) */
.jhr-nfilter__row--primary {
	gap: 10px;
	margin-bottom: 6px;
}

/* Row 2: location (text with vertical dividers) */
.jhr-nfilter__row--secondary {
	gap: 0;
	margin-top: 0;
}

.jhr-nfilter .jhr-nfilter__row--secondary button.jhr-offers-filter__btn {
	border: none;
	border-radius: 0;
	background: transparent;
	color: #999;
	padding: 3px 14px;
	font-weight: normal;
	transition: color 0.25s ease;
	position: relative;
}

.jhr-nfilter .jhr-nfilter__row--secondary .jhr-offers-filter__btn + .jhr-offers-filter__btn::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 12px;
	width: 1px;
	background: #ccc;
}

.jhr-nfilter-divider- .jhr-nfilter__row--secondary .jhr-offers-filter__btn::before {
	display: none;
}

.jhr-nfilter .jhr-nfilter__row--secondary button.jhr-offers-filter__btn.is-active {
	color: #caa938;
	font-weight: bold;
	background: transparent;
	border: none;
}

.jhr-nfilter .jhr-nfilter__row--secondary button.jhr-offers-filter__btn:hover,
.jhr-nfilter .jhr-nfilter__row--secondary button.jhr-offers-filter__btn:focus-visible {
	color: #caa938;
	background: transparent;
	border: none;
}

/* ── Network Offers Grid — built-in card (shortcode .offer-card) ── */
.jhr-offers-grid--builtin {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.jhr-offers-equal-yes .jhr-offer-item > .jhr-ncard {
	flex: 1 1 auto;
}

.jhr-offers-grid .jhr-ncard {
	background: #fff;
	border: none;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jhr-offers-grid .jhr-ncard:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.jhr-ncard-lift-yes .jhr-offers-grid .jhr-ncard:hover {
	transform: translateY(-5px);
}

.jhr-offers-grid .jhr-ncard__image {
	overflow: hidden;
}

.jhr-offers-grid .jhr-ncard__image a {
	display: block;
}

.jhr-offers-grid .jhr-ncard__image img {
	width: 100%;
	max-width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
	transition: transform 0.3s ease;
}

.jhr-ncard-zoom-yes .jhr-offers-grid .jhr-ncard:hover .jhr-ncard__image img {
	transform: scale(1.05);
}

.jhr-offers-grid .jhr-ncard__content {
	padding: 20px;
	text-align: center;
}

.jhr-offers-grid .jhr-ncard .jhr-ncard__title {
	font-family: 'Playfair Display', serif;
	font-size: 18px;
	font-weight: 500;
	margin: 3px;
	color: #caa938;
}

.jhr-offers-grid .jhr-ncard__hotel {
	display: flex;
	align-items: center;
	justify-content: var(--jhr-ncard-justify, center);
	gap: 3px;
	font-size: 13px;
	width: 100%;
	margin-bottom: 20px;
}

.jhr-offers-grid .jhr-ncard__pin {
	flex-shrink: 0;
	fill: #caa938;
}

.jhr-offers-grid .jhr-ncard .jhr-ncard__hotel a {
	color: #555;
	text-decoration: none;
}

.jhr-offers-grid .jhr-ncard .jhr-ncard__hotel a:hover {
	color: #caa938;
}

.jhr-offers-grid .jhr-ncard__desc {
	font-size: 15px;
	color: #555;
	margin-bottom: 20px;
}

.jhr-offers-grid .jhr-ncard .jhr-ncard__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 15px 30px;
	font-size: 14px;
	font-weight: normal;
	line-height: 1;
	color: #caa938;
	background: #fff;
	border: 1px solid #caa938;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.jhr-offers-grid .jhr-ncard .jhr-ncard__btn:hover,
.jhr-offers-grid .jhr-ncard .jhr-ncard__btn:focus-visible {
	background: #caa938;
	color: #fff;
}

.jhr-offers-grid .jhr-ncard__btn-icon {
	display: inline-flex;
	font-size: 18px;
	margin-right: 6px;
}

.jhr-offers-grid .jhr-ncard__btn-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
