/**
 * Doctor listing cards
 */

.dap-doc-list-card {
	display: flex;
	flex-direction: column;
	background: var(--dap-surface);
	border: 1px solid var(--dap-border);
	border-radius: var(--dap-radius-lg);
	overflow: hidden;
	box-shadow: var(--dap-shadow-sm);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	height: 100%;
}

.dap-doc-list-card:hover {
	box-shadow: var(--dap-shadow-md);
	transform: translateY(-4px);
}

.dap-doc-list-media {
	position: relative;
	display: block;
	text-decoration: none;
}

.dap-doc-list-image {
	aspect-ratio: 4 / 5;
	background: linear-gradient(160deg, #e8f4fc 0%, #f8fafc 100%);
	overflow: hidden;
}

.dap-doc-list-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.dap-doc-list-card:hover .dap-doc-list-photo {
	transform: scale(1.04);
}

.dap-doc-list-photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
}

.dap-doc-list-photo-placeholder svg {
	width: 52px;
	height: 52px;
}

.dap-doc-list-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: var(--dap-shadow-sm);
}

.dap-doc-list-badge.dap-availability-available {
	background: #dcfce7;
	color: #166534;
}

.dap-doc-list-badge.dap-availability-unavailable,
.dap-doc-list-badge.dap-availability-on-leave {
	background: #fee2e2;
	color: #991b1b;
}

.dap-doc-list-fee {
	position: absolute;
	bottom: 12px;
	right: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.94);
	color: var(--dap-navy);
	box-shadow: var(--dap-shadow-sm);
}

.dap-doc-list-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 18px 20px;
}

.dap-doc-list-dept {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--dap-accent-dark);
}

.dap-doc-list-name {
	margin: 0 0 6px;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
}

.dap-doc-list-name a {
	color: var(--dap-navy);
	text-decoration: none;
}

.dap-doc-list-name a:hover {
	color: var(--dap-accent-dark);
}

.dap-doc-list-spec {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dap-accent-dark);
}

.dap-doc-list-meta {
	margin: 0 0 14px;
	flex: 1;
	font-size: 13px;
	color: var(--dap-muted);
}

.dap-doc-list-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.dap-doc-list-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: var(--dap-radius-sm);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	flex: 1;
	min-width: 0;
}

.dap-doc-list-btn-outline {
	background: #fff;
	color: var(--dap-navy) !important;
	border: 1px solid var(--dap-border);
}

.dap-doc-list-btn-outline:hover {
	border-color: var(--dap-accent);
	color: var(--dap-accent-dark) !important;
}

.dap-doc-list-actions .dap-appointment-button {
	flex: 1;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 10px 14px !important;
	font-size: 13px !important;
	min-width: 0;
}

@media (max-width: 767px) {
	.dap-doc-list-card {
		height: auto !important;
		min-height: 100%;
	}

	.dap-doc-list-image {
		aspect-ratio: auto;
		height: 340px;
	}

	.dap-doc-list-actions {
		flex-direction: column;
	}
}
