/* ==========================================================================
   /professionals and /professionals/{city}

   Only the two components these pages add: the city grid on the hub and the
   city chips at the foot of a city page. Everything else -- hero, breadcrumb,
   section headers, the card grid -- reuses the profession page's classes so
   the two page types stay visually identical without duplicating rules.
   ========================================================================== */

/* ==========================================================================
   Listing pagination

   Not specific to /professionals -- this file is linked site-wide from
   header.php, and every listing grid (profession hubs, profession-in-city,
   skill pages, city pages) uses these classes.
   ========================================================================== */

/* Pagination hides cards with a class while the filters hide them with inline
   style.display. Two separate mechanisms on purpose: if both wrote to
   style.display they would overwrite each other, and a card would reappear on
   the wrong page as soon as a filter changed. !important because the filter's
   inline style="display:''" would otherwise win. */
.kdp-card.kd-paged-out {
	display: none !important;
}

.kd-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 28px;
}

.kd-pagination[hidden] {
	display: none;
}

.kd-pagination__status {
	font-size: 14px;
	color: #6b6a80;
}

.kd-pagination__pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.kd-pagination__btn {
	min-width: 40px;
	padding: 8px 12px;
	background: #fff;
	border: 1.5px solid #e4e3ee;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #2b2b40;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.kd-pagination__btn:hover:not(:disabled):not(.is-current) {
	border-color: var(--bs-primary, #0d6efd);
	background: #faf9fd;
}

.kd-pagination__btn:disabled {
	opacity: .45;
	cursor: default;
}

.kd-pagination__btn.is-current {
	background: var(--bs-primary, #0d6efd);
	border-color: var(--bs-primary, #0d6efd);
	color: #fff;
	cursor: default;
}

.kd-pagination__gap {
	padding: 0 2px;
	color: #8b8aa0;
}

@media (max-width: 640px) {
	.kd-pagination {
		flex-direction: column;
		align-items: stretch;
	}

	.kd-pagination__pages {
		justify-content: center;
	}

	.kd-pagination__status {
		text-align: center;
	}
}

.kd-city-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.kd-city-card {
	display: block;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #ecebf3;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(20, 20, 43, .05);
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.kd-city-card:hover,
.kd-city-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(20, 20, 43, .1);
	border-color: #d9d7ea;
	color: inherit;
}

.kd-city-card__head {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* lucide swaps the <i> for an <svg> at runtime, so both are sized here --
   targeting only `i` would stop applying the moment the icons initialise. */
.kd-city-card__head i,
.kd-city-card__head svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	color: var(--bs-primary, #0d6efd);
}

.kd-city-card__name {
	font-size: 17px;
	font-weight: 700;
	color: #2b2b40;
	line-height: 1.3;
}

.kd-city-card__state {
	margin-top: 2px;
	font-size: 12px;
	color: #8b8aa0;
}

.kd-city-card__meta {
	margin-top: 10px;
	font-size: 13px;
	color: #6b6a80;
}

.kd-city-card__count {
	font-weight: 700;
	color: #2b2b40;
}

/* "N more choreographers in Ahmedabad ->" under a previewed trade section */
.kd-section-more {
	margin-top: 16px;
}

.kd-section-more__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--bs-primary, #0d6efd);
	text-decoration: none;
}

.kd-section-more__link:hover,
.kd-section-more__link:focus-visible {
	text-decoration: underline;
}

.kd-section-more__link i,
.kd-section-more__link svg {
	width: 15px;
	height: 15px;
}

/* ---- city chips at the foot of a city page ---- */

.kd-city-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.kd-city-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	background: #faf9fd;
	border: 1.5px solid #e4e3ee;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: #2b2b40;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}

.kd-city-chip:hover,
.kd-city-chip:focus-visible {
	border-color: var(--bs-primary, #0d6efd);
	background: #fff;
	color: #2b2b40;
}

.kd-city-chip__count {
	font-size: 12px;
	font-weight: 700;
	color: #8b8aa0;
}

.kd-city-chip--all {
	font-weight: 700;
}

/* The "see the full guide" link sits opposite the section heading on wide
   screens; on narrow ones it drops under it rather than squeezing the title. */
@media (max-width: 640px) {
	.kd-professionals__header {
		display: block;
	}

	.kd-professionals__header .kd-prof-hero__btn {
		margin-top: 12px;
	}

	.kd-city-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}
}
