/* Doctors Directory - front-end styles */
.dd-wrapper { max-width: 100%; }

/* Filter bar */
.dd-filter-bar, .dd-search-box {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	background: #f6f7f9;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 28px;
}
.dd-filter-field, .dd-search-field {
	display: flex;
	flex-direction: column;
	flex: 1 1 160px;
	min-width: 150px;
}
.dd-search-field-text { flex: 2 1 220px; }
.dd-filter-field label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7280;
	margin-bottom: 6px;
}
.dd-filter-field input[type="text"],
.dd-filter-field select,
.dd-search-field input[type="text"],
.dd-search-field select {
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	width: 100%;
}
.dd-filter-submit, .dd-search-submit {
	flex: 0 0 auto;
	flex-direction: row;
	gap: 8px;
}

.dd-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all .15s ease;
}
.dd-btn-primary { background: #2563eb; color: #fff; }
.dd-btn-primary:hover { background: #1d4ed8; color: #fff; }
.dd-btn-reset { background: #fff; color: #374151; border-color: #d1d5db; }
.dd-btn-reset:hover { background: #f3f4f6; }
.dd-btn-outline { background: transparent; border-color: #2563eb; color: #2563eb; }
.dd-btn-outline:hover { background: #2563eb; color: #fff; }

/* Grid */
.dd-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, 1fr);
}
.dd-columns-1 { grid-template-columns: repeat(1, 1fr); }
.dd-columns-2 { grid-template-columns: repeat(2, 1fr); }
.dd-columns-3 { grid-template-columns: repeat(3, 1fr); }
.dd-columns-4 { grid-template-columns: repeat(4, 1fr); }
.dd-columns-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 992px) {
	.dd-columns-3, .dd-columns-4, .dd-columns-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.dd-grid { grid-template-columns: repeat(1, 1fr) !important; }
	.dd-filter-bar, .dd-search-box { flex-direction: column; align-items: stretch; }
}

/* Cards */
.dd-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s ease, transform .15s ease;
}
.dd-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.dd-card-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; background: #f3f4f6; }
.dd-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dd-thumb-placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	background: #eef2ff; color: #6366f1;
}
.dd-thumb-placeholder .dashicons { font-size: 48px; width: 48px; height: 48px; }
.dd-thumb-placeholder-lg .dashicons { font-size: 72px; width: 72px; height: 72px; }
.dd-card-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dd-card-title { margin: 0 0 2px; font-size: 17px; }
.dd-card-title a { color: #111827; text-decoration: none; }
.dd-card-designation { margin: 0 0 4px; color: #6366f1; font-size: 13px; font-weight: 600; }
.dd-card-meta { margin: 0; font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.dd-card-meta .dashicons { font-size: 16px; width: 16px; height: 16px; }
.dd-card-cta { margin-top: 12px; text-align: center; }

/* Category card */
.dd-category-card { align-items: center; text-align: center; padding: 24px 16px; text-decoration: none; gap: 8px; }
.dd-category-icon { width: 56px; height: 56px; border-radius: 50%; background: #eef2ff; color: #6366f1; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.dd-category-count { font-size: 12px; color: #9ca3af; }

/* Pagination */
.dd-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.dd-pagination .page-numbers { padding: 8px 14px; border: 1px solid #d1d5db; border-radius: 6px; text-decoration: none; color: #374151; font-size: 14px; }
.dd-pagination .page-numbers.current { background: #2563eb; color: #fff; border-color: #2563eb; }
.dd-pagination .page-numbers:hover { background: #f3f4f6; }

.dd-no-results { grid-column: 1 / -1; text-align: center; color: #6b7280; padding: 40px 0; }
.dd-wrapper.dd-loading { opacity: .5; pointer-events: none; }

/* Single doctor / hospital details */
.dd-single-header { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.dd-single-thumb { flex: 0 0 220px; width: 220px; height: 220px; border-radius: 12px; overflow: hidden; background: #eef2ff; }
.dd-single-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dd-single-heading { flex: 1 1 300px; }
.dd-single-title { margin: 0 0 6px; font-size: 28px; }
.dd-single-designation { color: #6366f1; font-weight: 600; margin: 0 0 10px; }
.dd-single-tags { margin: 0 0 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.dd-tag { background: #eef2ff; color: #4f46e5; padding: 4px 12px; border-radius: 999px; font-size: 12px; text-decoration: none; }
.dd-single-hospital, .dd-single-city { margin: 4px 0; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.dd-single-hospital a { color: #2563eb; text-decoration: none; }

.dd-single-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
@media (max-width: 600px) { .dd-single-info-grid { grid-template-columns: 1fr; } }
.dd-info-item { display: flex; flex-direction: column; gap: 2px; }
.dd-info-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; font-weight: 600; }
.dd-info-value { font-size: 15px; color: #111827; }

.dd-single-content { margin-bottom: 32px; }
.dd-single-doctors h2, .dd-single-content h2 { font-size: 20px; margin-bottom: 16px; }

.dd-archive-header { margin-bottom: 24px; }
.dd-archive-title { font-size: 30px; margin: 0 0 8px; }
