/* PAC Matrimony Profile Filter - styles */
.pac-mf {
	--mf-rose: #e6126f;
	--mf-maroon: #7a0f2e;
	--mf-ink: #2a1d22;
	--mf-muted: #6f6168;
	--mf-line: #ecdfe4;
	--mf-bg: #fff7f9;
	--mf-radius: 14px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 0 40px;
	color: var(--mf-ink);
	font-family: inherit;
	box-sizing: border-box;
}
.pac-mf *, .pac-mf *::before, .pac-mf *::after { box-sizing: border-box; }

/* Heading */
.pac-mf__head { text-align: center; margin-bottom: 22px; }
.pac-mf__title { margin: 0 0 6px; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; color: var(--mf-maroon); }
.pac-mf__subtitle { margin: 0; color: var(--mf-muted); font-size: 16px; }

/* Filter bar */
.pac-mf__form {
	display: grid;
	grid-template-columns: 1fr 1.5fr 1fr 1fr auto;
	gap: 16px;
	align-items: end;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--mf-line);
	border-top: 4px solid var(--mf-rose);
	border-radius: var(--mf-radius);
	box-shadow: 0 10px 30px rgba(122, 15, 46, .08);
}
.pac-mf__field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--mf-muted); }
.pac-mf__field select {
	width: 100%;
	height: 46px;
	padding: 0 38px 0 14px;
	font-size: 15px;
	color: var(--mf-ink);
	background-color: var(--mf-bg);
	border: 1px solid var(--mf-line);
	border-radius: 10px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237a0f2e' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}
.pac-mf__field select:hover { border-color: #d9b9c5; }
.pac-mf__field select:focus { outline: none; border-color: var(--mf-rose); box-shadow: 0 0 0 3px rgba(230, 18, 111, .18); }

.pac-mf__range { display: flex; align-items: center; gap: 8px; }
.pac-mf__range select { flex: 1; min-width: 0; }
.pac-mf__to { color: var(--mf-muted); font-size: 13px; }

.pac-mf__actions { display: flex; align-items: center; gap: 12px; }
.pac-mf__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 28px;
	font-size: 15px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none;
	white-space: nowrap;
	background: linear-gradient(135deg, var(--mf-rose), var(--mf-maroon));
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}
.pac-mf__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(122, 15, 46, .3); }
.pac-mf__btn:focus-visible, .pac-mf__reset:focus-visible, .pac-mf__close:focus-visible { outline: 3px solid rgba(230, 18, 111, .45); outline-offset: 2px; }
.pac-mf__btn.is-loading { opacity: .7; pointer-events: none; }
.pac-mf__reset { font-size: 14px; color: var(--mf-maroon); text-decoration: underline; white-space: nowrap; }

/* Messages */
.pac-mf__hint { margin: 28px 0 0; text-align: center; color: var(--mf-muted); font-size: 16px; }
.pac-mf__count { margin: 26px 0 14px; color: var(--mf-muted); font-size: 15px; }
.pac-mf__count strong { color: var(--mf-maroon); font-size: 18px; }
.pac-mf__empty { margin-top: 28px; padding: 40px 20px; text-align: center; background: var(--mf-bg); border: 1px dashed #d9b9c5; border-radius: var(--mf-radius); }
.pac-mf__empty h3 { margin: 0 0 6px; color: var(--mf-maroon); }
.pac-mf__empty p { margin: 0; color: var(--mf-muted); }

/* Results grid */
.pac-mf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.pac-mf__card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--mf-line);
	border-radius: var(--mf-radius);
	transition: transform .25s, box-shadow .25s;
}
.pac-mf__card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(122, 15, 46, .14); }
.pac-mf__photo { position: relative; aspect-ratio: 4 / 5; background: var(--mf-bg); }
.pac-mf__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pac-mf__photo::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to top, rgba(42, 12, 24, .85), transparent); }
.pac-mf__photo-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.pac-mf__photo-text h3 { margin: 0; font-size: 20px; line-height: 1.2; color: #fff; }
.pac-mf__photo-text span { font-size: 14px; opacity: .92; }
.pac-mf__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 14px 16px 16px; list-style: none; }
.pac-mf__meta li { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 14px; color: var(--mf-ink); }
.pac-mf__meta svg { color: var(--mf-rose); flex: none; }
.pac-mf__tag { padding: 3px 10px; font-size: 12px !important; font-weight: 600; color: var(--mf-maroon) !important; background: #fde7ef; border-radius: 999px; }

/* Pagination */
.pac-mf__pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pac-mf__pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--mf-maroon); text-decoration: none; font-weight: 600;
	background: #fff; border: 1px solid var(--mf-line); border-radius: 10px;
}
.pac-mf__pagination .page-numbers.current, .pac-mf__pagination .page-numbers:hover { color: #fff; background: var(--mf-maroon); border-color: var(--mf-maroon); }

/* Login popup */
.pac-mf__overlay { display: none; position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center; padding: 20px; background: rgba(30, 8, 18, .65); }
.pac-mf__overlay.is-open { display: flex; }
.pac-mf__popup { position: relative; width: 100%; max-width: 400px; padding: 34px 28px 28px; text-align: center; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); animation: pac-mf-pop .25s ease-out; }
.pac-mf__popup h3 { margin: 0 0 8px; font-size: 22px; color: var(--mf-maroon); }
.pac-mf__popup p { margin: 0 0 20px; color: var(--mf-muted); }
.pac-mf__close { position: absolute; top: 8px; right: 12px; width: 36px; height: 36px; font-size: 26px; line-height: 1; color: #8a7a82; background: none; border: 0; cursor: pointer; }
@keyframes pac-mf-pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

/* Tablet */
@media (max-width: 1024px) {
	.pac-mf__form { grid-template-columns: repeat(2, 1fr); }
	.pac-mf__actions { grid-column: 1 / -1; }
}
/* Mobile */
@media (max-width: 600px) {
	.pac-mf__form { grid-template-columns: 1fr; padding: 18px; }
	.pac-mf__actions { flex-direction: column; align-items: stretch; }
	.pac-mf__btn { width: 100%; }
	.pac-mf__reset { text-align: center; }
	.pac-mf__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.pac-mf__photo-text h3 { font-size: 16px; }
	.pac-mf__meta { padding: 12px; }
}
@media (max-width: 380px) { .pac-mf__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
	.pac-mf *, .pac-mf *::before { transition: none !important; animation: none !important; }
}
