/* SeeADoctor Directory - Frontend Styles */

.sad-archive-wrap {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sad-archive-title {
	font-size: 32px;
	margin-bottom: 24px;
	color: #1f2937;
}

.sad-directory {
	--sad-blue: #1a73e8;
	--sad-blue-dark: #1558b0;
	--sad-grey-bg: #f6f8fb;
	--sad-text: #1f2937;
	--sad-muted: #6b7280;
	max-width: 1200px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--sad-text);
}

.sad-search-wrap {
	margin-bottom: 24px;
}

.sad-search-input {
	width: 100%;
	padding: 14px 18px;
	font-size: 16px;
	border: 1px solid #e0e4e9;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	box-sizing: border-box;
}

.sad-search-input:focus {
	outline: none;
	border-color: var(--sad-blue);
	box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.sad-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.sad-card {
	background: #fff;
	border: 1px solid #edf0f3;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(16,24,40,0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	flex-direction: column;
}

.sad-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(16,24,40,0.09);
}

.sad-card-photo-link {
	display: block;
}

.sad-card-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center top;
	display: block;
	background: var(--sad-grey-bg);
}

.sad-card-photo-placeholder,
.sad-single-photo.sad-card-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 56px;
	background: var(--sad-grey-bg);
}

.sad-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sad-card-body-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.sad-card-name {
	margin: 0 0 2px;
	font-size: 18px;
	color: var(--sad-text);
}

.sad-card-specialty {
	margin: 0;
	color: var(--sad-blue);
	font-weight: 600;
	font-size: 14px;
}

.sad-card-hospital,
.sad-card-experience,
.sad-card-fee {
	margin: 0;
	color: var(--sad-muted);
	font-size: 14px;
}

.sad-card-fee {
	font-weight: 600;
	color: var(--sad-text);
}

.sad-btn-row {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sad-btn-book,
.sad-btn-whatsapp {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	color: #fff !important;
	padding: 10px 14px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.sad-btn-book {
	background: var(--sad-blue);
}

.sad-btn-book:hover {
	background: var(--sad-blue-dark);
}

.sad-btn-whatsapp {
	background: #25D366;
}

.sad-btn-whatsapp:hover {
	opacity: 0.9;
}

.sad-whatsapp-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: #fff;
}

.sad-btn-book-lg {
	padding: 12px 20px;
	font-size: 15px;
}

.sad-single-meta .sad-btn-row {
	margin-top: 16px;
}

.sad-btn-row-bottom {
	max-width: 900px;
	margin: 24px auto 0;
}

.sad-no-results {
	color: var(--sad-muted);
	padding: 30px 0;
	text-align: center;
}

/* Single doctor page */
.sad-single-wrap {
	max-width: 900px;
	margin: 40px auto 60px;
	padding: 0 20px;
}

.sad-single-doctor {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sad-single-name {
	margin: 0 0 8px;
	font-size: 26px;
	color: #1f2937;
}

.sad-single-header {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #edf0f3;
	border-radius: 16px;
	padding: 26px;
	box-shadow: 0 2px 10px rgba(16,24,40,0.05);
	margin-bottom: 28px;
}

.sad-single-photo {
	width: 220px;
	height: 220px;
	object-fit: cover;
	object-position: center top;
	border-radius: 14px;
	flex-shrink: 0;
}

.sad-single-meta {
	flex: 1;
	min-width: 220px;
}

.sad-single-specialty {
	color: #1a73e8;
	font-weight: 700;
	font-size: 18px;
	margin: 0 0 8px;
}

.sad-single-hospital,
.sad-single-experience,
.sad-single-fee {
	margin: 0 0 6px;
	color: #4b5563;
	font-size: 15px;
}

.sad-single-bio h2 {
	font-size: 20px;
	margin-bottom: 10px;
}

@media (max-width: 600px) {
	.sad-single-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.sad-single-photo {
		width: 160px;
		height: 160px;
	}
	.sad-single-meta .sad-btn-row {
		width: 100%;
	}
}

/*
 * Doctor pages aren't blog posts — hide the theme's default post meta
 * (date, likes, comment count) and comment form if the active theme
 * still prints them on singular templates. This targets the most common
 * class names used by WordPress themes; if something still shows up,
 * inspect it in your browser and send the class name so it can be added.
 */
body.sad-doctor-page .entry-meta,
body.sad-doctor-page .entry-footer,
body.sad-doctor-page .post-meta,
body.sad-doctor-page .posted-on,
body.sad-doctor-page .entry-date,
body.sad-doctor-page .comments-link,
body.sad-doctor-page .comments-area,
body.sad-doctor-page #comments,
body.sad-doctor-page .post-likes,
body.sad-doctor-page .like-button,
body.sad-doctor-page .wp_ulike_btn_wrapper,
body.sad-doctor-page .wp-block-post-date,
body.sad-doctor-page .wp-block-latest-comments,
body.sad-doctor-page .single-post-meta {
	display: none !important;
}

/* ── Consultation availability badges ─────────────────────────── */
.sad-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sad-badges--single {
	margin-top: 12px;
	margin-bottom: 4px;
}

.sad-badges--card {
	padding: 0 18px 14px;
	margin-top: 4px;
}

.sad-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

.sad-badge--online {
	background: #e8f4fd;
	color: #0a6fc2;
	border: 1px solid #b3d9f5;
}

.sad-badge--physical {
	background: #eaf7ee;
	color: #1a7a3c;
	border: 1px solid #a8dbb8;
}

.sad-badges--single .sad-badge {
	font-size: 13px;
	padding: 5px 12px;
}
