/* JobSnap Directory — front-end styles. Theme-agnostic, brand-matched, override as needed. */

.sp-directory {
	--sp-pink: #ec1e63;
	--sp-pink-dark: #c9144f;
	--sp-ink: #15171c;
	--sp-muted: #6b7280;
	--sp-line: #ececf1;
	--sp-bg-soft: #faf7f8;
	max-width: 1180px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
	color: var(--sp-ink);
}

/* ---------- Archive head + filters ---------- */
.sp-archive__head { text-align: center; margin-bottom: 2rem; }
.sp-archive__title { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.sp-archive__title::after {
	content: ""; display: block; width: 56px; height: 4px; margin: .75rem auto 0;
	background: var(--sp-pink); border-radius: 999px;
}

.sp-filters {
	display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center;
	margin: 0 auto 2.25rem; padding: 1rem 1.1rem; max-width: 920px;
	background: #fff; border: 1px solid var(--sp-line); border-radius: 16px;
	box-shadow: 0 6px 20px rgba(20,23,28,.05);
}
.sp-filters input[type="search"],
.sp-filters select {
	padding: .6rem .8rem; border: 1px solid var(--sp-line); border-radius: 10px;
	font-size: .95rem; background: #fff; min-width: 180px; color: var(--sp-ink);
}
.sp-filters input[type="search"]:focus,
.sp-filters select:focus { outline: none; border-color: var(--sp-pink); box-shadow: 0 0 0 3px rgba(236,30,99,.12); }
.sp-filters button {
	padding: .6rem 1.4rem; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--sp-pink); color: #fff; font-size: .95rem; font-weight: 600;
	transition: background .15s ease;
}
.sp-filters button:hover { background: var(--sp-pink-dark); }
.sp-filters__reset { font-size: .9rem; color: var(--sp-muted); text-decoration: underline; }

/* ---------- Grid of cards ---------- */
.sp-grid {
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.sp-card {
	position: relative; border: 1px solid var(--sp-line); border-radius: 18px; overflow: hidden;
	background: #fff; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.sp-card:hover { box-shadow: 0 16px 40px rgba(20,23,28,.1); transform: translateY(-3px); border-color: #e3c4d0; }
.sp-card__link { display: block; color: inherit; text-decoration: none; }

/* media band with soft pink wash behind avatar */
.sp-card__media {
	position: relative; height: 128px;
	background: linear-gradient(135deg, #fde7ef 0%, #fbf1f4 100%);
}
.sp-card__img {
	position: absolute; left: 1.25rem; bottom: -34px;
	width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
	border: 4px solid #fff; background: #fff; box-shadow: 0 4px 12px rgba(20,23,28,.12);
}
.sp-card__body { padding: 2.75rem 1.25rem 1.3rem; }
.sp-card__name { margin: 0 0 .3rem; font-size: 1.18rem; font-weight: 700; line-height: 1.3; }
.sp-card__loc { margin: 0 0 .6rem; color: var(--sp-muted); font-size: .9rem; display: flex; align-items: center; gap: .3rem; }
.sp-card__loc::before { content: "📍"; font-size: .85em; }
.sp-card__services {
	margin: 0; color: #374151; font-size: .85rem; line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-card__rating {
	position: absolute; top: .9rem; right: .9rem; margin: 0;
	background: rgba(21,23,28,.72); color: #fff; font-weight: 600; font-size: .82rem;
	padding: .25rem .55rem; border-radius: 999px; backdrop-filter: blur(2px);
}
.sp-card__cta {
	display: inline-block; margin-top: 1rem; font-size: .85rem; font-weight: 600;
	color: var(--sp-pink);
}
.sp-card:hover .sp-card__cta { color: var(--sp-pink-dark); }

/* ---------- Pagination ---------- */
.sp-pagination { margin-top: 2.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.sp-pagination .page-numbers {
	min-width: 40px; text-align: center; padding: .5rem .75rem;
	border: 1px solid var(--sp-line); border-radius: 10px; text-decoration: none; color: var(--sp-ink);
	font-size: .9rem; transition: all .15s ease;
}
.sp-pagination .page-numbers:hover { border-color: var(--sp-pink); color: var(--sp-pink); }
.sp-pagination .page-numbers.current { background: var(--sp-pink); color: #fff; border-color: var(--sp-pink); }

.sp-empty { padding: 3.5rem 1rem; text-align: center; color: var(--sp-muted); font-size: 1.05rem; }

/* ---------- Single profile ---------- */
.sp-breadcrumb { margin-bottom: 1.25rem; }
.sp-breadcrumb a { color: var(--sp-muted); text-decoration: none; font-size: .9rem; }
.sp-breadcrumb a:hover { color: var(--sp-pink); }

.sp-single__head {
	display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2.25rem;
	padding: 2rem; background: linear-gradient(135deg, #fde7ef 0%, #fbf1f4 100%);
	border-radius: 20px;
}
.sp-single__avatar {
	width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
	border: 5px solid #fff; background: #fff; box-shadow: 0 6px 18px rgba(20,23,28,.12);
}
.sp-single__name { margin: 0 0 .3rem; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.sp-single__loc { margin: 0; color: var(--sp-muted); }
.sp-single__rating {
	display: inline-block; margin: .5rem 0 0; background: var(--sp-ink); color: #fff;
	font-weight: 600; font-size: .85rem; padding: .25rem .6rem; border-radius: 999px;
}

.sp-single__cols { display: grid; gap: 2.5rem; grid-template-columns: 2fr 1fr; align-items: start; }
.sp-block { margin-bottom: 2rem; }
.sp-block h2 {
	font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; padding-bottom: .5rem;
	border-bottom: 2px solid var(--sp-line);
}
.sp-block__body { line-height: 1.7; color: #374151; }
.sp-facts { background: var(--sp-bg-soft); border: 1px solid var(--sp-line); border-radius: 16px; padding: 1.4rem; }
.sp-facts h2 { border: 0; padding: 0; margin-bottom: .85rem; }
.sp-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem .9rem; }
.sp-facts dt { font-weight: 600; color: var(--sp-ink); font-size: .9rem; }
.sp-facts dd { margin: 0; color: #4b5563; font-size: .9rem; }

.sp-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sp-tags a {
	display: inline-block; padding: .4rem .85rem; background: #fde7ef; border-radius: 999px;
	font-size: .85rem; color: var(--sp-pink-dark); text-decoration: none; font-weight: 500;
	transition: background .15s ease;
}
.sp-tags a:hover { background: #fbd0e0; }
.sp-map { width: 100%; height: 260px; border: 0; border-radius: 14px; margin-top: .25rem; }

@media (max-width: 860px) {
	.sp-single__cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.sp-single__head { flex-direction: column; text-align: center; padding: 1.5rem; }
	.sp-filters input[type="search"], .sp-filters select { min-width: 0; flex: 1 1 140px; }
}
