/* WhatsUpNJ Discovery Engine — white / blue / black system
   Card + chip structure modeled on the shadow-column layout you liked,
   recolored to the WUNJ palette. */

.wunj {
	--wunj-blue: #1d4ed8;      /* primary action blue */
	--wunj-navy: #0f2557;      /* deep headline navy  */
	--wunj-black: #111318;     /* near-black text     */
	--wunj-ink: #3d4453;       /* body text           */
	--wunj-line: #e4e8f0;      /* hairlines           */
	--wunj-white: #ffffff;
	--wunj-radius: 16px;
	--wunj-shadow: 0 8px 25px rgba(15, 37, 87, 0.10);
	--wunj-shadow-hover: 0 14px 40px rgba(15, 37, 87, 0.18);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--wunj-ink);
}

/* ---- Mood chips ---- */
.wunj-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 22px;
}
.wunj-chip {
	background: var(--wunj-white);
	color: var(--wunj-navy);
	border: 1.5px solid var(--wunj-line);
	border-radius: 999px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}
.wunj-chip:hover {
	border-color: var(--wunj-blue);
	color: var(--wunj-blue);
	transform: translateY(-2px);
	box-shadow: var(--wunj-shadow);
}
.wunj-chip.is-active {
	background: var(--wunj-blue);
	border-color: var(--wunj-blue);
	color: var(--wunj-white);
}

/* ---- Filter bar ---- */
.wunj-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	background: var(--wunj-white);
	border: 1px solid var(--wunj-line);
	border-radius: var(--wunj-radius);
	box-shadow: var(--wunj-shadow);
	padding: 16px;
	margin: 0 0 28px;
}
.wunj-filters input[type="search"] {
	flex: 1 1 220px;
}
.wunj-filters input,
.wunj-filters select {
	background: var(--wunj-white);
	color: var(--wunj-black);
	border: 1.5px solid var(--wunj-line);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 15px;
	font-family: inherit;
}
.wunj-filters input:focus,
.wunj-filters select:focus {
	outline: none;
	border-color: var(--wunj-blue);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.wunj-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: var(--wunj-navy);
	font-weight: 500;
	margin: 0;
}
.wunj-check input {
	accent-color: var(--wunj-blue);
	width: 17px;
	height: 17px;
}

/* ---- Results grid + shadow cards ---- */
.wunj-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}
.wunj-card {
	background: var(--wunj-white);
	border-radius: var(--wunj-radius);
	box-shadow: var(--wunj-shadow);
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}
.wunj-card:hover {
	box-shadow: var(--wunj-shadow-hover);
	transform: translateY(-4px);
}
.wunj-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--wunj-navy);
}
.wunj-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wunj-card-media-fallback {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--wunj-navy), var(--wunj-blue));
}
.wunj-badge {
	position: absolute;
	left: 14px;
	bottom: 14px;
	background: var(--wunj-blue);
	color: var(--wunj-white);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 6px 12px;
	border-radius: 8px;
}
.wunj-card-body {
	padding: 18px 20px 22px;
}
.wunj-card-title {
	font-size: 19px;
	line-height: 1.25;
	margin: 0 0 6px;
	font-weight: 600;
}
.wunj-card-title a {
	color: var(--wunj-navy);
	text-decoration: none;
}
.wunj-card-title a:hover {
	color: var(--wunj-blue);
}
.wunj-card-meta {
	font-size: 13.5px;
	color: var(--wunj-blue);
	font-weight: 500;
	margin: 0 0 10px;
}
.wunj-card-text {
	font-size: 14.5px;
	line-height: 1.5;
	margin: 0 0 10px;
	color: var(--wunj-ink);
}
.wunj-card-flags {
	font-size: 12.5px;
	color: var(--wunj-black);
	font-weight: 600;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ---- Favorites ---- */
.wunj-card {
	position: relative;
}
.wunj-fav {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: #b6c0d4;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(15, 37, 87, 0.25);
	transition: all 0.2s ease;
	padding: 0;
	z-index: 2;
}
.wunj-fav:hover {
	transform: scale(1.12);
	color: var(--wunj-blue);
	background: #fff;
}
.wunj-fav.is-saved {
	background: var(--wunj-blue);
	color: #fff;
}
.wunj-fav.is-inline {
	position: static;
	width: auto;
	height: auto;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	box-shadow: none;
}
.wunj-fav-actions {
	margin: 24px 0 0;
	display: flex;
	gap: 14px;
	align-items: center;
}
.wunj-route-btn {
	background: var(--wunj-blue);
	color: #fff !important;
	padding: 12px 22px;
	border-radius: 10px;
	font-weight: 600;
	text-decoration: none;
	font-size: 15px;
}
.wunj-route-btn:hover {
	background: var(--wunj-navy);
}
.wunj-clear-btn {
	color: var(--wunj-ink) !important;
	font-size: 14px;
	text-decoration: underline;
}

/* ---- Map ---- */
.wunj-map {
	width: 100%;
	border-radius: var(--wunj-radius);
	box-shadow: var(--wunj-shadow);
	margin: 0 0 28px;
	z-index: 1;
}
.wunj-pin span {
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wunj-blue, #1d4ed8);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(15, 37, 87, 0.45);
}
.wunj-popup {
	font-family: "Poppins", sans-serif;
	font-size: 13.5px;
	line-height: 1.45;
}
.wunj-popup a {
	color: #1d4ed8;
	font-weight: 600;
	text-decoration: none;
}

.wunj-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--wunj-ink);
	font-size: 16px;
}
.wunj-loading .wunj-grid {
	opacity: 0.45;
	transition: opacity 0.15s ease;
}

@media (max-width: 640px) {
	.wunj-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.wunj-filters input[type="search"] {
		flex-basis: 100%;
	}
}
